@teambit/html.modules.fetch-html-from-url 0.0.112 → 0.0.114
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.
- package/dist/fetch-html-from-url.js +7 -16
- package/dist/fetch-html-from-url.js.map +1 -1
- package/dist/index.js +18 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/types/asset.d.ts +15 -3
- package/dist/preview-1736711473672.js +0 -7
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
12
6
|
exports.fetchHtmlFromUrl = fetchHtmlFromUrl;
|
|
13
|
-
function fetchHtmlFromUrl(url) {
|
|
14
|
-
|
|
15
|
-
return fetch(url)
|
|
16
|
-
.then((response) => response.text())
|
|
17
|
-
.then((data) => data);
|
|
18
|
-
});
|
|
7
|
+
async function fetchHtmlFromUrl(url) {
|
|
8
|
+
return fetch(url).then(response => response.text()).then(data => data);
|
|
19
9
|
}
|
|
10
|
+
|
|
20
11
|
//# sourceMappingURL=fetch-html-from-url.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["fetchHtmlFromUrl","url","fetch","then","response","text","data"],"sources":["fetch-html-from-url.ts"],"sourcesContent":["export async function fetchHtmlFromUrl(url: string) {\n return fetch(url)\n .then((response) => response.text())\n .then((data) => data);\n}\n"],"mappings":";;;;;;AAAO,eAAeA,gBAAgBA,CAACC,GAAW,EAAE;EAClD,OAAOC,KAAK,CAACD,GAAG,CAAC,CACdE,IAAI,CAAEC,QAAQ,IAAKA,QAAQ,CAACC,IAAI,CAAC,CAAC,CAAC,CACnCF,IAAI,CAAEG,IAAI,IAAKA,IAAI,CAAC;AACzB","ignoreList":[]}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
exports
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "fetchHtmlFromUrl", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _fetchHtmlFromUrl().fetchHtmlFromUrl;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
function _fetchHtmlFromUrl() {
|
|
13
|
+
const data = require("./fetch-html-from-url");
|
|
14
|
+
_fetchHtmlFromUrl = function () {
|
|
15
|
+
return data;
|
|
16
|
+
};
|
|
17
|
+
return data;
|
|
18
|
+
}
|
|
19
|
+
|
|
6
20
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"names":["_fetchHtmlFromUrl","data","require"],"sources":["index.ts"],"sourcesContent":["export { fetchHtmlFromUrl } from './fetch-html-from-url';\n"],"mappings":";;;;;;;;;;;AAAA,SAAAA,kBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,iBAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/html.modules.fetch-html-from-url",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.114",
|
|
4
4
|
"homepage": "https://bit.cloud/teambit/html/modules/fetch-html-from-url",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.html",
|
|
8
8
|
"name": "modules/fetch-html-from-url",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.114"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@types/mocha": "9.1.0",
|
|
14
|
-
"
|
|
15
|
-
"@
|
|
14
|
+
"chai": "4.3.0",
|
|
15
|
+
"@teambit/node.envs.node-babel-mocha": "0.1.5"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {},
|
|
18
18
|
"license": "Apache-2.0",
|
package/types/asset.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ declare module '*.png' {
|
|
|
5
5
|
declare module '*.svg' {
|
|
6
6
|
import type { FunctionComponent, SVGProps } from 'react';
|
|
7
7
|
|
|
8
|
-
export const ReactComponent: FunctionComponent<
|
|
8
|
+
export const ReactComponent: FunctionComponent<
|
|
9
|
+
SVGProps<SVGSVGElement> & { title?: string }
|
|
10
|
+
>;
|
|
9
11
|
const src: string;
|
|
10
12
|
export default src;
|
|
11
13
|
}
|
|
12
|
-
|
|
13
|
-
// @TODO Gilad
|
|
14
14
|
declare module '*.jpg' {
|
|
15
15
|
const value: any;
|
|
16
16
|
export = value;
|
|
@@ -27,3 +27,15 @@ declare module '*.bmp' {
|
|
|
27
27
|
const value: any;
|
|
28
28
|
export = value;
|
|
29
29
|
}
|
|
30
|
+
declare module '*.otf' {
|
|
31
|
+
const value: any;
|
|
32
|
+
export = value;
|
|
33
|
+
}
|
|
34
|
+
declare module '*.woff' {
|
|
35
|
+
const value: any;
|
|
36
|
+
export = value;
|
|
37
|
+
}
|
|
38
|
+
declare module '*.woff2' {
|
|
39
|
+
const value: any;
|
|
40
|
+
export = value;
|
|
41
|
+
}
|