@ng-doc/keywords-loaders 16.6.0 → 16.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.cjs +8 -6
  2. package/package.json +3 -2
package/index.cjs CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var fetch = require('node-fetch');
6
+
7
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
+
9
+ var fetch__default = /*#__PURE__*/_interopDefaultLegacy(fetch);
10
+
5
11
  const ngApiPageTypes = ['class', 'interface', 'function', 'type-alias', 'enum', 'const', 'ngmodule', 'directive', 'pipe', 'decorator'];
6
12
 
7
13
  /**
@@ -26,7 +32,7 @@ function _async$3(f) {
26
32
  };
27
33
  }
28
34
  const fetchDocs = _async$3(function (version) {
29
- return fetch(`${getNgHost(version)}/generated/docs/app/search-data.json`).then(response => response.json());
35
+ return fetch__default["default"](`${getNgHost(version)}/generated/docs/app/search-data.json`).then(response => response.json());
30
36
  });
31
37
 
32
38
  /**
@@ -105,10 +111,6 @@ function ngKeywordsLoader(options) {
105
111
  });
106
112
  }
107
113
 
108
- /**
109
- *
110
- * @param endpoint
111
- */
112
114
  function _async$1(f) {
113
115
  return function () {
114
116
  for (var args = [], i = 0; i < arguments.length; i++) {
@@ -122,7 +124,7 @@ function _async$1(f) {
122
124
  };
123
125
  }
124
126
  const fetchKeywords = _async$1(function (endpoint) {
125
- return fetch(`${endpoint}/keywords.json`).then(response => response.json());
127
+ return fetch__default["default"](`${endpoint}/keywords.json`).then(response => response.json());
126
128
  });
127
129
 
128
130
  /**
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@ng-doc/keywords-loaders",
3
- "version": "16.6.0",
3
+ "version": "16.6.2",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
- "@ng-doc/core": "16.6.0"
6
+ "@ng-doc/core": "16.6.2",
7
+ "node-fetch": "2.6.11"
7
8
  },
8
9
  "publishConfig": {
9
10
  "access": "public"