• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

adobe / reactor-extension-core-edge / 6540047345

16 Oct 2023 09:56PM UTC coverage: 64.905% (-0.1%) from 65.005%
6540047345

push

github

dompuiu
1.2.2

218 of 377 branches covered (0.0%)

Branch coverage included in aggregate %.

396 of 569 relevant lines covered (69.6%)

28.04 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/view/dataElements/path/api/loadExtensions.js
1
/*
2
Copyright 2021 Adobe. All rights reserved.
3
This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
you may not use this file except in compliance with the License. You may obtain a copy
5
of the License at http://www.apache.org/licenses/LICENSE-2.0
6

7
Unless required by applicable law or agreed to in writing, software distributed under
8
the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
OF ANY KIND, either express or implied. See the License for the specific language
10
governing permissions and limitations under the License.
11
*/
12

13
import fetch, { getFetchSettings } from '../../../utils/fetch';
14
import extensionsList from '../helpers/extensionsList';
15

16
let data;
17

18
export default async () => {
19
  if (data) {
×
20
    return data;
×
21
  }
22

23
  const { propertyId } = getFetchSettings();
×
24

25
  const url = `/properties/${propertyId}/extensions?page[size]=999&page[number]=1`;
×
26

27
  try {
×
28
    const d = await fetch(url);
×
29
    data = d;
×
30
    extensionsList.set(d);
×
31
    return d;
×
32
  } catch (e) {
33
    if (e instanceof TypeError) {
×
34
      throw new Error(`${e.message} when loading ${url}`);
×
35
    } else {
36
      throw e;
×
37
    }
38
  }
39
};
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc