@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.
@@ -1,20 +1,11 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
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
- return __awaiter(this, void 0, void 0, function* () {
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,"file":"fetch-html-from-url.js","sourceRoot":"","sources":["../fetch-html-from-url.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,4CAIC;AAJD,SAAsB,gBAAgB,CAAC,GAAW;;QAChD,OAAO,KAAK,CAAC,GAAG,CAAC;aACd,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;aACnC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;CAAA"}
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
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fetchHtmlFromUrl = void 0;
4
- var fetch_html_from_url_1 = require("./fetch-html-from-url");
5
- Object.defineProperty(exports, "fetchHtmlFromUrl", { enumerable: true, get: function () { return fetch_html_from_url_1.fetchHtmlFromUrl; } });
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,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AAAA,6DAAyD;AAAhD,uHAAA,gBAAgB,OAAA"}
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.112",
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.112"
9
+ "version": "0.0.114"
10
10
  },
11
11
  "dependencies": {},
12
12
  "devDependencies": {
13
13
  "@types/mocha": "9.1.0",
14
- "@types/jest": "26.0.20",
15
- "@types/node": "22.10.5"
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<SVGProps<SVGSVGElement> & { title?: string }>;
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
+ }
@@ -1,7 +0,0 @@
1
- ;
2
- ;
3
-
4
- export const compositions = [];
5
- export const overview = [];
6
-
7
- export const compositions_metadata = {"compositions":[]};