@teambit/html.modules.fetch-html-from-url 0.0.0-034c5b2303a7cfbea231b2b6ebdc01985a2ec634

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.
@@ -0,0 +1 @@
1
+ export declare function fetchHtmlFromUrl(url: string): Promise<string>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.fetchHtmlFromUrl = fetchHtmlFromUrl;
7
+ async function fetchHtmlFromUrl(url) {
8
+ return fetch(url).then(response => response.text()).then(data => data);
9
+ }
10
+
11
+ //# sourceMappingURL=fetch-html-from-url.js.map
@@ -0,0 +1 @@
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":[]}
@@ -0,0 +1 @@
1
+ export { fetchHtmlFromUrl } from './fetch-html-from-url';
package/dist/index.js ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";
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
+
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
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":[]}
@@ -0,0 +1,5 @@
1
+ export async function fetchHtmlFromUrl(url: string) {
2
+ return fetch(url)
3
+ .then((response) => response.text())
4
+ .then((data) => data);
5
+ }
package/index.ts ADDED
@@ -0,0 +1 @@
1
+ export { fetchHtmlFromUrl } from './fetch-html-from-url';
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@teambit/html.modules.fetch-html-from-url",
3
+ "version": "0.0.0-034c5b2303a7cfbea231b2b6ebdc01985a2ec634",
4
+ "homepage": "https://bit.cloud/teambit/html/modules/fetch-html-from-url",
5
+ "main": "dist/index.js",
6
+ "componentId": {
7
+ "scope": "teambit.html",
8
+ "name": "modules/fetch-html-from-url",
9
+ "version": "034c5b2303a7cfbea231b2b6ebdc01985a2ec634"
10
+ },
11
+ "dependencies": {},
12
+ "devDependencies": {
13
+ "@types/mocha": "9.1.0",
14
+ "chai": "4.3.0",
15
+ "@teambit/node.envs.node-babel-mocha": "0.1.22"
16
+ },
17
+ "peerDependencies": {},
18
+ "license": "Apache-2.0",
19
+ "optionalDependencies": {},
20
+ "peerDependenciesMeta": {},
21
+ "exports": {
22
+ ".": {
23
+ "require": "./dist/index.js",
24
+ "import": "./dist/esm.mjs"
25
+ }
26
+ },
27
+ "private": false,
28
+ "engines": {
29
+ "node": ">=12.22.0"
30
+ },
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "https://github.com/teambit/bit"
34
+ },
35
+ "keywords": [
36
+ "bit",
37
+ "components",
38
+ "collaboration",
39
+ "web",
40
+ "react",
41
+ "react-components",
42
+ "angular",
43
+ "angular-components"
44
+ ]
45
+ }
@@ -0,0 +1,41 @@
1
+ declare module '*.png' {
2
+ const value: any;
3
+ export = value;
4
+ }
5
+ declare module '*.svg' {
6
+ import type { FunctionComponent, SVGProps } from 'react';
7
+
8
+ export const ReactComponent: FunctionComponent<
9
+ SVGProps<SVGSVGElement> & { title?: string }
10
+ >;
11
+ const src: string;
12
+ export default src;
13
+ }
14
+ declare module '*.jpg' {
15
+ const value: any;
16
+ export = value;
17
+ }
18
+ declare module '*.jpeg' {
19
+ const value: any;
20
+ export = value;
21
+ }
22
+ declare module '*.gif' {
23
+ const value: any;
24
+ export = value;
25
+ }
26
+ declare module '*.bmp' {
27
+ const value: any;
28
+ export = value;
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
+ }
@@ -0,0 +1,42 @@
1
+ declare module '*.module.css' {
2
+ const classes: { readonly [key: string]: string };
3
+ export default classes;
4
+ }
5
+ declare module '*.module.scss' {
6
+ const classes: { readonly [key: string]: string };
7
+ export default classes;
8
+ }
9
+ declare module '*.module.sass' {
10
+ const classes: { readonly [key: string]: string };
11
+ export default classes;
12
+ }
13
+
14
+ declare module '*.module.less' {
15
+ const classes: { readonly [key: string]: string };
16
+ export default classes;
17
+ }
18
+
19
+ declare module '*.less' {
20
+ const classes: { readonly [key: string]: string };
21
+ export default classes;
22
+ }
23
+
24
+ declare module '*.css' {
25
+ const classes: { readonly [key: string]: string };
26
+ export default classes;
27
+ }
28
+
29
+ declare module '*.sass' {
30
+ const classes: { readonly [key: string]: string };
31
+ export default classes;
32
+ }
33
+
34
+ declare module '*.scss' {
35
+ const classes: { readonly [key: string]: string };
36
+ export default classes;
37
+ }
38
+
39
+ declare module '*.mdx' {
40
+ const component: any;
41
+ export default component;
42
+ }