@cuemath/web-utils 1.0.19-beta.2 → 1.0.19-beta.3
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,2 +1 @@
|
|
|
1
|
-
declare const loadScript: (url: string, id: string, onLoad: (event: Event) => void) => void;
|
|
2
|
-
export default loadScript;
|
|
1
|
+
export declare const loadScript: (url: string, id: string, onLoad: (event: Event) => void) => void;
|
package/dist/cjs/script/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.loadScript = void 0;
|
|
3
4
|
const loadScript = (url, id, onLoad) => {
|
|
4
5
|
const script = document.createElement('script');
|
|
5
6
|
script.id = id;
|
|
@@ -8,5 +9,5 @@ const loadScript = (url, id, onLoad) => {
|
|
|
8
9
|
script.async = true;
|
|
9
10
|
document.body.appendChild(script);
|
|
10
11
|
};
|
|
11
|
-
exports.
|
|
12
|
+
exports.loadScript = loadScript;
|
|
12
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/script/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/script/index.ts"],"names":[],"mappings":";;;AAAO,MAAM,UAAU,GAAG,CAAC,GAAW,EAAE,EAAU,EAAE,MAA8B,EAAE,EAAE;IACpF,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAEhD,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,MAAM,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;IAEpB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AACpC,CAAC,CAAC;AATW,QAAA,UAAU,cASrB"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
declare const loadScript: (url: string, id: string, onLoad: (event: Event) => void) => void;
|
|
2
|
-
export default loadScript;
|
|
1
|
+
export declare const loadScript: (url: string, id: string, onLoad: (event: Event) => void) => void;
|
package/dist/esm/script/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const loadScript = (url, id, onLoad) => {
|
|
1
|
+
export const loadScript = (url, id, onLoad) => {
|
|
2
2
|
const script = document.createElement('script');
|
|
3
3
|
script.id = id;
|
|
4
4
|
script.src = url;
|
|
@@ -6,5 +6,4 @@ const loadScript = (url, id, onLoad) => {
|
|
|
6
6
|
script.async = true;
|
|
7
7
|
document.body.appendChild(script);
|
|
8
8
|
};
|
|
9
|
-
export default loadScript;
|
|
10
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/script/index.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,CAAC,GAAW,EAAE,EAAU,EAAE,MAA8B,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/script/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,GAAW,EAAE,EAAU,EAAE,MAA8B,EAAE,EAAE;IACpF,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAEhD,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,MAAM,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;IAEpB,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AACpC,CAAC,CAAC"}
|