es-module-shims 1.4.5 → 1.4.6
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/CHANGELOG.md +287 -277
- package/README.md +741 -741
- package/dist/es-module-shims.js +793 -789
- package/dist/es-module-shims.wasm.js +792 -788
- package/index.d.ts +157 -157
- package/package.json +67 -67
- package/dist/es-module-shims.min.js +0 -2
- package/dist/es-module-shims.min.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,157 +1,157 @@
|
|
|
1
|
-
interface ESMSInitOptions {
|
|
2
|
-
/**
|
|
3
|
-
* Enable Shim Mode
|
|
4
|
-
*/
|
|
5
|
-
shimMode?: boolean;
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Enable polyfill features.
|
|
9
|
-
* Currently supports ['css-modules', 'json-modules']
|
|
10
|
-
*/
|
|
11
|
-
polyfillEnable?: string[];
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Nonce for CSP build
|
|
15
|
-
*/
|
|
16
|
-
nonce?: boolean;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Disable retriggering of document readystate
|
|
20
|
-
*/
|
|
21
|
-
noLoadEventRetriggers: true,
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* #### Skip Processing Stability
|
|
25
|
-
*
|
|
26
|
-
* > Non-spec feature
|
|
27
|
-
*
|
|
28
|
-
* When loading modules that you know will only use baseline modules
|
|
29
|
-
* features, it is possible to set a rule to explicitly opt-out modules
|
|
30
|
-
* from rewriting. This improves performance because those modules then do
|
|
31
|
-
* not need to be processed or transformed at all, so that only local
|
|
32
|
-
* application code is handled and not library code.
|
|
33
|
-
*
|
|
34
|
-
* This can be configured by setting the importShim.skip URL regular
|
|
35
|
-
* expression:
|
|
36
|
-
*
|
|
37
|
-
* ```js
|
|
38
|
-
* importShim.skip = /^https:\/\/cdn\.com/;
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* By default, this expression supports jspm.dev, dev.jspm.io and
|
|
42
|
-
* cdn.pika.dev.
|
|
43
|
-
*/
|
|
44
|
-
skip: RegExp;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* #### Error hook
|
|
48
|
-
*
|
|
49
|
-
* Register a callback for any ES Module Shims module errors.
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
onerror: (e: any) => any;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* #### Resolve Hook
|
|
56
|
-
*
|
|
57
|
-
* Only supported in Shim Mode.
|
|
58
|
-
*
|
|
59
|
-
* Provide a custom resolver function.
|
|
60
|
-
*/
|
|
61
|
-
resolve: (id: string, parentUrl: string, resolve: (id: string, parentUrl: string) => string) => string | Promise<string>;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* #### Fetch Hook
|
|
65
|
-
*
|
|
66
|
-
* Only supported in Shim Mode.
|
|
67
|
-
*
|
|
68
|
-
* > Stability: Non-spec feature
|
|
69
|
-
*
|
|
70
|
-
* This is provided as a convenience feature since the pipeline handles
|
|
71
|
-
* the same data URL rewriting and circular handling of the module graph
|
|
72
|
-
* that applies when trying to implement any module transform system.
|
|
73
|
-
*
|
|
74
|
-
* The ES Module Shims fetch hook can be used to implement transform
|
|
75
|
-
* plugins.
|
|
76
|
-
*
|
|
77
|
-
* For example:
|
|
78
|
-
*
|
|
79
|
-
* ```js
|
|
80
|
-
* importShim.fetch = async function (url) {
|
|
81
|
-
* const response = await fetch(url);
|
|
82
|
-
* if (response.url.endsWith('.ts')) {
|
|
83
|
-
* const source = await response.body();
|
|
84
|
-
* const transformed = tsCompile(source);
|
|
85
|
-
* return new Response(new Blob([transformed], { type: 'application/javascript' }));
|
|
86
|
-
* }
|
|
87
|
-
* return response;
|
|
88
|
-
* };
|
|
89
|
-
* ```
|
|
90
|
-
*
|
|
91
|
-
* Because the dependency analysis applies by ES Module Shims takes care
|
|
92
|
-
* of ensuring all dependencies run through the same fetch hook, the above
|
|
93
|
-
* is all that is needed to implement custom plugins.
|
|
94
|
-
*
|
|
95
|
-
* Streaming support is also provided, for example here is a hook with
|
|
96
|
-
* streaming support for JSON:
|
|
97
|
-
*
|
|
98
|
-
* ```js
|
|
99
|
-
* importShim.fetch = async function (url) {
|
|
100
|
-
* const response = await fetch(url);
|
|
101
|
-
* if (!response.ok)
|
|
102
|
-
* throw new Error(`${response.status} ${response.statusText} ${response.url}`);
|
|
103
|
-
* const contentType = response.headers.get('content-type');
|
|
104
|
-
* if (!/^application\/json($|;)/.test(contentType))
|
|
105
|
-
* return response;
|
|
106
|
-
* const reader = response.body.getReader();
|
|
107
|
-
* return new Response(new ReadableStream({
|
|
108
|
-
* async start (controller) {
|
|
109
|
-
* let done, value;
|
|
110
|
-
* controller.enqueue(new Uint8Array([...'export default '].map(c => c.charCodeAt(0))));
|
|
111
|
-
* while (({ done, value } = await reader.read()) && !done) {
|
|
112
|
-
* controller.enqueue(value);
|
|
113
|
-
* }
|
|
114
|
-
* controller.close();
|
|
115
|
-
* }
|
|
116
|
-
* }), {
|
|
117
|
-
* status: 200,
|
|
118
|
-
* headers: {
|
|
119
|
-
* "Content-Type": "application/javascript"
|
|
120
|
-
* }
|
|
121
|
-
* });
|
|
122
|
-
* }
|
|
123
|
-
* ```
|
|
124
|
-
*/
|
|
125
|
-
fetch: (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* #### Revoke Blob URLs
|
|
129
|
-
*
|
|
130
|
-
* Set to *true* to cleanup blob URLs from memory after execution.
|
|
131
|
-
* Can cost some compute time for large loads.
|
|
132
|
-
*
|
|
133
|
-
*/
|
|
134
|
-
revokeBlobURLs: boolean;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Dynamic import(...) within any modules loaded will be rewritten as
|
|
139
|
-
* importShim(...) automatically providing full support for all es-module-shims
|
|
140
|
-
* features through dynamic import.
|
|
141
|
-
*
|
|
142
|
-
* To load code dynamically (say from the browser console), importShim can be
|
|
143
|
-
* called similarly:
|
|
144
|
-
*
|
|
145
|
-
* ```js
|
|
146
|
-
* importShim('/path/to/module.js').then(x => console.log(x));
|
|
147
|
-
* ```
|
|
148
|
-
*/
|
|
149
|
-
declare function importShim<Default, Exports extends object>(
|
|
150
|
-
specifier: string,
|
|
151
|
-
parentUrl?: string
|
|
152
|
-
): Promise<{ default: Default } & Exports>;
|
|
153
|
-
|
|
154
|
-
interface Window {
|
|
155
|
-
esmsInitOptions?: ESMSInitOptions;
|
|
156
|
-
importShim: typeof importShim;
|
|
157
|
-
}
|
|
1
|
+
interface ESMSInitOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Enable Shim Mode
|
|
4
|
+
*/
|
|
5
|
+
shimMode?: boolean;
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Enable polyfill features.
|
|
9
|
+
* Currently supports ['css-modules', 'json-modules']
|
|
10
|
+
*/
|
|
11
|
+
polyfillEnable?: string[];
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Nonce for CSP build
|
|
15
|
+
*/
|
|
16
|
+
nonce?: boolean;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Disable retriggering of document readystate
|
|
20
|
+
*/
|
|
21
|
+
noLoadEventRetriggers: true,
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* #### Skip Processing Stability
|
|
25
|
+
*
|
|
26
|
+
* > Non-spec feature
|
|
27
|
+
*
|
|
28
|
+
* When loading modules that you know will only use baseline modules
|
|
29
|
+
* features, it is possible to set a rule to explicitly opt-out modules
|
|
30
|
+
* from rewriting. This improves performance because those modules then do
|
|
31
|
+
* not need to be processed or transformed at all, so that only local
|
|
32
|
+
* application code is handled and not library code.
|
|
33
|
+
*
|
|
34
|
+
* This can be configured by setting the importShim.skip URL regular
|
|
35
|
+
* expression:
|
|
36
|
+
*
|
|
37
|
+
* ```js
|
|
38
|
+
* importShim.skip = /^https:\/\/cdn\.com/;
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* By default, this expression supports jspm.dev, dev.jspm.io and
|
|
42
|
+
* cdn.pika.dev.
|
|
43
|
+
*/
|
|
44
|
+
skip: RegExp;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* #### Error hook
|
|
48
|
+
*
|
|
49
|
+
* Register a callback for any ES Module Shims module errors.
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
onerror: (e: any) => any;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* #### Resolve Hook
|
|
56
|
+
*
|
|
57
|
+
* Only supported in Shim Mode.
|
|
58
|
+
*
|
|
59
|
+
* Provide a custom resolver function.
|
|
60
|
+
*/
|
|
61
|
+
resolve: (id: string, parentUrl: string, resolve: (id: string, parentUrl: string) => string) => string | Promise<string>;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* #### Fetch Hook
|
|
65
|
+
*
|
|
66
|
+
* Only supported in Shim Mode.
|
|
67
|
+
*
|
|
68
|
+
* > Stability: Non-spec feature
|
|
69
|
+
*
|
|
70
|
+
* This is provided as a convenience feature since the pipeline handles
|
|
71
|
+
* the same data URL rewriting and circular handling of the module graph
|
|
72
|
+
* that applies when trying to implement any module transform system.
|
|
73
|
+
*
|
|
74
|
+
* The ES Module Shims fetch hook can be used to implement transform
|
|
75
|
+
* plugins.
|
|
76
|
+
*
|
|
77
|
+
* For example:
|
|
78
|
+
*
|
|
79
|
+
* ```js
|
|
80
|
+
* importShim.fetch = async function (url) {
|
|
81
|
+
* const response = await fetch(url);
|
|
82
|
+
* if (response.url.endsWith('.ts')) {
|
|
83
|
+
* const source = await response.body();
|
|
84
|
+
* const transformed = tsCompile(source);
|
|
85
|
+
* return new Response(new Blob([transformed], { type: 'application/javascript' }));
|
|
86
|
+
* }
|
|
87
|
+
* return response;
|
|
88
|
+
* };
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* Because the dependency analysis applies by ES Module Shims takes care
|
|
92
|
+
* of ensuring all dependencies run through the same fetch hook, the above
|
|
93
|
+
* is all that is needed to implement custom plugins.
|
|
94
|
+
*
|
|
95
|
+
* Streaming support is also provided, for example here is a hook with
|
|
96
|
+
* streaming support for JSON:
|
|
97
|
+
*
|
|
98
|
+
* ```js
|
|
99
|
+
* importShim.fetch = async function (url) {
|
|
100
|
+
* const response = await fetch(url);
|
|
101
|
+
* if (!response.ok)
|
|
102
|
+
* throw new Error(`${response.status} ${response.statusText} ${response.url}`);
|
|
103
|
+
* const contentType = response.headers.get('content-type');
|
|
104
|
+
* if (!/^application\/json($|;)/.test(contentType))
|
|
105
|
+
* return response;
|
|
106
|
+
* const reader = response.body.getReader();
|
|
107
|
+
* return new Response(new ReadableStream({
|
|
108
|
+
* async start (controller) {
|
|
109
|
+
* let done, value;
|
|
110
|
+
* controller.enqueue(new Uint8Array([...'export default '].map(c => c.charCodeAt(0))));
|
|
111
|
+
* while (({ done, value } = await reader.read()) && !done) {
|
|
112
|
+
* controller.enqueue(value);
|
|
113
|
+
* }
|
|
114
|
+
* controller.close();
|
|
115
|
+
* }
|
|
116
|
+
* }), {
|
|
117
|
+
* status: 200,
|
|
118
|
+
* headers: {
|
|
119
|
+
* "Content-Type": "application/javascript"
|
|
120
|
+
* }
|
|
121
|
+
* });
|
|
122
|
+
* }
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
fetch: (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* #### Revoke Blob URLs
|
|
129
|
+
*
|
|
130
|
+
* Set to *true* to cleanup blob URLs from memory after execution.
|
|
131
|
+
* Can cost some compute time for large loads.
|
|
132
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
revokeBlobURLs: boolean;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Dynamic import(...) within any modules loaded will be rewritten as
|
|
139
|
+
* importShim(...) automatically providing full support for all es-module-shims
|
|
140
|
+
* features through dynamic import.
|
|
141
|
+
*
|
|
142
|
+
* To load code dynamically (say from the browser console), importShim can be
|
|
143
|
+
* called similarly:
|
|
144
|
+
*
|
|
145
|
+
* ```js
|
|
146
|
+
* importShim('/path/to/module.js').then(x => console.log(x));
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
declare function importShim<Default, Exports extends object>(
|
|
150
|
+
specifier: string,
|
|
151
|
+
parentUrl?: string
|
|
152
|
+
): Promise<{ default: Default } & Exports>;
|
|
153
|
+
|
|
154
|
+
interface Window {
|
|
155
|
+
esmsInitOptions?: ESMSInitOptions;
|
|
156
|
+
importShim: typeof importShim;
|
|
157
|
+
}
|
package/package.json
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "es-module-shims",
|
|
3
|
-
"version": "1.4.
|
|
4
|
-
"description": "Shims for the latest ES module features",
|
|
5
|
-
"main": "dist/es-module-shims.js",
|
|
6
|
-
"exports": {
|
|
7
|
-
".": "./dist/es-module-shims.js",
|
|
8
|
-
"./wasm": "./dist/es-module-shims.wasm.js"
|
|
9
|
-
},
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "rollup -c",
|
|
12
|
-
"bench": "bash bench/bench.sh",
|
|
13
|
-
"bench:clear": "rm -rf bench/results",
|
|
14
|
-
"footprint": "npm run build ; cat dist/es-module-shims.js | terser -mc | brotli | wc -c",
|
|
15
|
-
"footprint:wasm": "npm run build ; cat dist/es-module-shims.wasm.js | terser -mc | brotli | wc -c",
|
|
16
|
-
"prepublishOnly": "npm run build",
|
|
17
|
-
"test": "npm run test:test-base-href ; npm run test:test-csp ; npm run test:test-dom-order ; npm run test:test-early-module-load ; npm run test:test-polyfill ; npm run test:test-polyfill-wasm ; npm run test:test-preload-case ; npm run test:test-revoke-blob-urls ; npm run test:test-shim ; npm run test:test-shim-map-overrides",
|
|
18
|
-
"test:test-base-href": "cross-env TEST_NAME=test-base-href node test/server.mjs",
|
|
19
|
-
"test:test-csp": "cross-env TEST_NAME=test-csp node test/server.mjs",
|
|
20
|
-
"test:test-dom-order": "cross-env TEST_NAME=test-dom-order node test/server.mjs",
|
|
21
|
-
"test:test-early-module-load": "cross-env TEST_NAME=test-early-module-load node test/server.mjs",
|
|
22
|
-
"test:test-polyfill": "cross-env TEST_NAME=test-polyfill node test/server.mjs",
|
|
23
|
-
"test:test-polyfill-wasm": "cross-env TEST_NAME=test-polyfill-wasm node test/server.mjs",
|
|
24
|
-
"test:test-preload-case": "cross-env TEST_NAME=test-preload-case node test/server.mjs",
|
|
25
|
-
"test:test-revoke-blob-urls": "cross-env TEST_NAME=test-revoke-blob-urls node test/server.mjs",
|
|
26
|
-
"test:test-shim": "cross-env TEST_NAME=test-shim node test/server.mjs",
|
|
27
|
-
"test:test-shim-map-overrides": "cross-env TEST_NAME=test-shim-map-overrides node test/server.mjs"
|
|
28
|
-
},
|
|
29
|
-
"types": "index.d.ts",
|
|
30
|
-
"type": "module",
|
|
31
|
-
"files": [
|
|
32
|
-
"CHANGELOG.md",
|
|
33
|
-
"dist",
|
|
34
|
-
"index.d.ts"
|
|
35
|
-
],
|
|
36
|
-
"author": "Guy Bedford",
|
|
37
|
-
"license": "MIT",
|
|
38
|
-
"devDependencies": {
|
|
39
|
-
"@rollup/plugin-replace": "^2.4.2",
|
|
40
|
-
"cross-env": "^7.0.3",
|
|
41
|
-
"es-module-lexer": "^0.9.3",
|
|
42
|
-
"esm": "^3.2.25",
|
|
43
|
-
"kleur": "^4.1.4",
|
|
44
|
-
"mime-types": "^2.1.33",
|
|
45
|
-
"mocha": "^9.1.1",
|
|
46
|
-
"npm-run-all": "^4.1.5",
|
|
47
|
-
"open": "^8.0.8",
|
|
48
|
-
"preact": "^10.5.14",
|
|
49
|
-
"pretty-ms": "^3.2.0",
|
|
50
|
-
"rimraf": "^3.0.2",
|
|
51
|
-
"rollup": "^2.58.0",
|
|
52
|
-
"speed-limiter": "^1.0.2",
|
|
53
|
-
"tachometer": "^0.5.10",
|
|
54
|
-
"terser": "^5.10.0"
|
|
55
|
-
},
|
|
56
|
-
"directories": {
|
|
57
|
-
"test": "test"
|
|
58
|
-
},
|
|
59
|
-
"repository": {
|
|
60
|
-
"type": "git",
|
|
61
|
-
"url": "git+https://github.com/guybedford/es-module-shims.git"
|
|
62
|
-
},
|
|
63
|
-
"bugs": {
|
|
64
|
-
"url": "https://github.com/guybedford/es-module-shims/issues"
|
|
65
|
-
},
|
|
66
|
-
"homepage": "https://github.com/guybedford/es-module-shims#readme"
|
|
67
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "es-module-shims",
|
|
3
|
+
"version": "1.4.6",
|
|
4
|
+
"description": "Shims for the latest ES module features",
|
|
5
|
+
"main": "dist/es-module-shims.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./dist/es-module-shims.js",
|
|
8
|
+
"./wasm": "./dist/es-module-shims.wasm.js"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "rollup -c",
|
|
12
|
+
"bench": "bash bench/bench.sh",
|
|
13
|
+
"bench:clear": "rm -rf bench/results",
|
|
14
|
+
"footprint": "npm run build ; cat dist/es-module-shims.js | terser -mc | brotli | wc -c",
|
|
15
|
+
"footprint:wasm": "npm run build ; cat dist/es-module-shims.wasm.js | terser -mc | brotli | wc -c",
|
|
16
|
+
"prepublishOnly": "npm run build",
|
|
17
|
+
"test": "npm run test:test-base-href ; npm run test:test-csp ; npm run test:test-dom-order ; npm run test:test-early-module-load ; npm run test:test-polyfill ; npm run test:test-polyfill-wasm ; npm run test:test-preload-case ; npm run test:test-revoke-blob-urls ; npm run test:test-shim ; npm run test:test-shim-map-overrides",
|
|
18
|
+
"test:test-base-href": "cross-env TEST_NAME=test-base-href node test/server.mjs",
|
|
19
|
+
"test:test-csp": "cross-env TEST_NAME=test-csp node test/server.mjs",
|
|
20
|
+
"test:test-dom-order": "cross-env TEST_NAME=test-dom-order node test/server.mjs",
|
|
21
|
+
"test:test-early-module-load": "cross-env TEST_NAME=test-early-module-load node test/server.mjs",
|
|
22
|
+
"test:test-polyfill": "cross-env TEST_NAME=test-polyfill node test/server.mjs",
|
|
23
|
+
"test:test-polyfill-wasm": "cross-env TEST_NAME=test-polyfill-wasm node test/server.mjs",
|
|
24
|
+
"test:test-preload-case": "cross-env TEST_NAME=test-preload-case node test/server.mjs",
|
|
25
|
+
"test:test-revoke-blob-urls": "cross-env TEST_NAME=test-revoke-blob-urls node test/server.mjs",
|
|
26
|
+
"test:test-shim": "cross-env TEST_NAME=test-shim node test/server.mjs",
|
|
27
|
+
"test:test-shim-map-overrides": "cross-env TEST_NAME=test-shim-map-overrides node test/server.mjs"
|
|
28
|
+
},
|
|
29
|
+
"types": "index.d.ts",
|
|
30
|
+
"type": "module",
|
|
31
|
+
"files": [
|
|
32
|
+
"CHANGELOG.md",
|
|
33
|
+
"dist",
|
|
34
|
+
"index.d.ts"
|
|
35
|
+
],
|
|
36
|
+
"author": "Guy Bedford",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@rollup/plugin-replace": "^2.4.2",
|
|
40
|
+
"cross-env": "^7.0.3",
|
|
41
|
+
"es-module-lexer": "^0.9.3",
|
|
42
|
+
"esm": "^3.2.25",
|
|
43
|
+
"kleur": "^4.1.4",
|
|
44
|
+
"mime-types": "^2.1.33",
|
|
45
|
+
"mocha": "^9.1.1",
|
|
46
|
+
"npm-run-all": "^4.1.5",
|
|
47
|
+
"open": "^8.0.8",
|
|
48
|
+
"preact": "^10.5.14",
|
|
49
|
+
"pretty-ms": "^3.2.0",
|
|
50
|
+
"rimraf": "^3.0.2",
|
|
51
|
+
"rollup": "^2.58.0",
|
|
52
|
+
"speed-limiter": "^1.0.2",
|
|
53
|
+
"tachometer": "^0.5.10",
|
|
54
|
+
"terser": "^5.10.0"
|
|
55
|
+
},
|
|
56
|
+
"directories": {
|
|
57
|
+
"test": "test"
|
|
58
|
+
},
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "git+https://github.com/guybedford/es-module-shims.git"
|
|
62
|
+
},
|
|
63
|
+
"bugs": {
|
|
64
|
+
"url": "https://github.com/guybedford/es-module-shims/issues"
|
|
65
|
+
},
|
|
66
|
+
"homepage": "https://github.com/guybedford/es-module-shims#readme"
|
|
67
|
+
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(){function A(A,Q="text/javascript"){return URL.createObjectURL(new Blob([A],{type:Q}))}function Q(A,Q){if(Q=Q&&Q.split("#")[0].split("?")[0],-1!==A.indexOf("\\")&&(A=A.replace(/\\/g,"/")),"/"===A[0]&&"/"===A[1])return Q.slice(0,Q.indexOf(":")+1)+A;if("."===A[0]&&("/"===A[1]||"."===A[1]&&("/"===A[2]||2===A.length&&(A+="/"))||1===A.length&&(A+="/"))||"/"===A[0]){const B=Q.slice(0,Q.indexOf(":")+1);let C;if("/"===Q[B.length+1]?"file:"!==B?(C=Q.slice(B.length+2),C=C.slice(C.indexOf("/")+1)):C=Q.slice(8):C=Q.slice(B.length+("/"===Q[B.length])),"/"===A[0])return Q.slice(0,Q.length-C.length-1)+A;const e=C.slice(0,C.lastIndexOf("/")+1)+A,E=[];let g=-1;for(let A=0;e.length>A;A++)-1!==g?"/"===e[A]&&(E.push(e.slice(g,A+1)),g=-1):"."===e[A]?"."!==e[A+1]||"/"!==e[A+2]&&A+2!==e.length?"/"===e[A+1]||A+1===e.length?A+=1:g=A:(E.pop(),A+=2):g=A;return-1!==g&&E.push(e.slice(g)),Q.slice(0,Q.length-C.length)+E.join("")}}function B(A,B){return Q(A,B)||(-1!==A.indexOf(":")?A:Q("./"+A,B))}function C(A,B,C,e){for(let E in A){const I=Q(E,C)||E;let o=A[E];if("string"!=typeof o)continue;const s=t(e,Q(o,C)||o,C);s?B[I]=s:g(E,A[E],"bare specifier did not resolve")}}function e(A,Q){if(Q[A])return A;let B=A.length;do{const C=A.slice(0,B+1);if(C in Q)return C}while(-1!==(B=A.lastIndexOf("/",B-1)))}function E(A,Q){const B=e(A,Q);if(B){const C=Q[B];if(null===C)return;if(B.length>=A.length||"/"===C[C.length-1])return C+A.slice(B.length);g(B,C,"should have a trailing '/'")}}function g(A,Q,B){console.warn("Package target "+B+", resolving target '"+Q+"' for "+A)}function t(A,Q,B){let C=B&&e(B,A.scopes);for(;C;){const B=E(Q,A.scopes[C]);if(B)return B;C=e(C.slice(0,C.lastIndexOf("/")),A.scopes)}return E(Q,A.imports)||-1!==Q.indexOf(":")&&Q}function I(A,Q="@"){function B(A){try{return(0,eval)(A)}catch{}}if(!q)return G.then((()=>I(A)));const C=A.length+1,e=(q.__heap_base.value||q.__heap_base)+4*C-q.memory.buffer.byteLength;e>0&&q.memory.grow(Math.ceil(e/65536));const E=q.sa(C-1);if((Y?s:o)(A,new Uint16Array(q.memory.buffer,E,C)),!q.parse())throw Object.assign(Error(`Parse error ${Q}:${A.slice(0,q.e()).split("\n").length}:${q.e()-A.lastIndexOf("\n",q.e()-1)}`),{idx:q.e()});const g=[],t=[];for(;q.ri();){const Q=q.is(),C=q.ie(),e=q.ai(),E=q.id(),t=q.ss(),I=q.se();let o;q.ip()&&(o=B(A.slice(-1===E?Q-1:Q,-1===E?C+1:C))),g.push({n:o,s:Q,e:C,ss:t,se:I,d:E,a:e})}for(;q.re();)t.push(A.slice(q.es(),q.ee()));return[g,t,!!q.f()]}function o(A,Q){const B=A.length;let C=0;for(;B>C;){const B=A.charCodeAt(C);Q[C++]=(255&B)<<8|B>>>8}}function s(A,Q){const B=A.length;let C=0;for(;B>C;)Q[C]=A.charCodeAt(C++)}async function i(A,Q){A.b||Q[A.u]||(Q[A.u]=1,await A.L,await Promise.all(A.d.map((A=>i(A,Q)))),A.n||(A.n=A.d.some((A=>A.n))))}async function n(Q,B,C,e,E){if(await M,O>0&&(clearTimeout(O),O=0),P&&(P=!1,D()),await j,e&&F&&K&&U&&H&&v&&!X)return C&&e?null:R(C?A(C):Q);await G;const g=f(Q,B,C),t={};if(await i(g,t),CA=void 0,w(g,t),await E,C&&!Z&&!g.n){E&&(oA=!0,nA&&(sA=!0));const Q=R(A(C));return QA&&r(Object.keys(t)),Q}const I=await R(g.b);return!E||e&&g.b===g.u||(oA=!0,nA&&(sA=!0)),g.s&&(await R(g.s)).u$_(I),QA&&r(Object.keys(t)),I}function r(A){let Q=0;const B=A.length,C=self.requestIdleCallback?self.requestIdleCallback:self.requestAnimationFrame;C((function e(){const E=100*Q;if(B>=E){for(const Q of A.slice(E,E+100)){const A=x[Q];A&&URL.revokeObjectURL(A.b)}Q++,C(e)}}))}async function c(A,Q=this.url){return await j,(await m(A,""+Q)).r||d(A,Q)}function a(A){return`'${A.replace(/'/g,"\\'")}'`}function w(Q,B){if(Q.b||!B[Q.u])return;B[Q.u]=0;for(const A of Q.d)w(A,B);if(!Z&&!Q.n)return Q.b=CA=Q.u,void(Q.S=void 0);const[C]=Q.a,e=Q.S;let E=T&&CA?`import '${CA}';`:"";if(C.length){let B=0,g=0;for(const{s:t,se:I,d:o}of C)if(-1===o){const C=Q.d[g++];let o=C.b;if(o){if(C.s){E+=`${e.slice(B,t-1)}/*${e.slice(t-1,I)}*/${a(o)};import*as m$_${g} from'${C.b}';import{u$_ as u$_${g}}from'${C.s}';u$_${g}(m$_${g})`,B=I,C.s=void 0;continue}}else(o=C.s)||(o=C.s=A(`export function u$_(m){${C.a[1].map((A=>"default"===A?"$_default=m.default":`${A}=m.${A}`)).join(",")}}${C.a[1].map((A=>"default"===A?"let $_default;export{$_default as default}":"export let "+A)).join(";")}\n//# sourceURL=${C.r}?cycle`));E+=`${e.slice(B,t-1)}/*${e.slice(t-1,I)}*/${a(o)}`,B=I}else-2===o?(_[Q.r]={url:Q.r,resolve:c},E+=`${e.slice(B,t)}self._esmsm[${a(Q.r)}]`,B=I):(E+=`${e.slice(B,o+6)}Shim(${e.slice(t,I)}, ${Q.r&&a(Q.r)}`,B=I);E+=e.slice(B)}else E+=e;E=E.replace(/\/\/# sourceMappingURL=(.*)\s*$/,((A,B)=>A.replace(B,new URL(B,Q.r))));let g=!1;E=E.replace(/\/\/# sourceURL=(.*)\s*$/,((A,B)=>(g=!0,A.replace(B,new URL(B,Q.r))))),g||(E+="\n//# sourceURL="+Q.r),Q.b=CA=A(E),Q.S=void 0}async function l(A,Q){const C=await V(A,Q);if(!C.ok)throw Error(`${C.status} ${C.statusText} ${C.url}`);const e=C.headers.get("content-type");if(eA.test(e))return{r:C.url,s:await C.text(),t:"js"};if(EA.test(e))return{r:C.url,s:"export default "+await C.text(),t:"json"};if(gA.test(e))return{r:C.url,s:`var s=new CSSStyleSheet();s.replaceSync(${JSON.stringify((await C.text()).replace(/url\(\s*(?:(["'])((?:\\.|[^\n\\"'])+)\1|((?:\\.|[^\s,"'()\\])+))\s*\)/g,((Q,C,e,E)=>`url(${C}${B(e||E,A)}${C})`)))});export default s;`,t:"css"};throw tA.test(e)?Error("WASM modules not yet supported"):Error(`Unknown Content-Type "${e}"`)}function f(A,Q,B){let C=x[A];return C||(C=x[A]={u:A,r:void 0,f:void 0,S:void 0,L:void 0,a:void 0,d:void 0,b:void 0,s:void 0,n:!1,t:null},C.f=(async()=>{if(!B){let e;({r:C.r,s:B,t:e}=await(rA[A]||l(A,Q))),("css"===e&&!v||"json"===e&&!H)&&(C.n=!0)}try{C.a=I(B,C.u)}catch(e){console.warn(e),C.a=[[],[]]}return C.S=B,C})(),C.L=C.f.then((async()=>{let A=Q;C.d=(await Promise.all(C.a[0].map((async({n:Q,d:e})=>{if((0>e||F)&&(2!==e||K&&".resolve"!==B.slice(end,end+8))||(C.n=!0),!Q)return;const{r:E,m:g}=await m(Q,C.r||C.u);return!g||U&&!X||(C.n=!0),-1===e?(E||d(Q,C.r||C.u),W.test(E)?{b:E}:(A.integrity&&(A=Object.assign({},A,{integrity:void 0})),f(E,A).f)):void 0})))).filter((A=>A))})),C)}function D(){O>0&&"loading"!==document.readyState&&(clearTimeout(O),O=0);for(const A of document.querySelectorAll('link[rel="modulepreload"]'))k(A);for(const A of document.querySelectorAll('script[type="module-shim"],script[type="importmap-shim"],script[type="module"],script[type="importmap"]'))p(A)}function L(A){const Q={};return A.integrity&&(Q.integrity=A.integrity),A.referrerpolicy&&(Q.referrerPolicy=A.referrerpolicy),Q.credentials="use-credentials"===A.crossorigin?"include":"anonymous"===A.crossorigin?"omit":"same-origin",Q}function u(){IA--,0!==IA||BA||(sA&&document.dispatchEvent(new Event("DOMContentLoaded")),oA&&"complete"===document.readyState&&document.dispatchEvent(new Event("readystatechange")))}function p(A,Q){if(A.ep)return;const e=A.type.endsWith("-shim");e&&(Z=!0);const E=Z?A.type.slice(0,-5):A.type;if((e||!Z)&&null===A.getAttribute("noshim")&&(A.src||A.innerHTML))if(A.ep=!0,"module"===E){const Q="complete"!==document.readyState;Q&&IA++;const B=n(A.src||`${J}?${$++}`,L(A),!A.src&&A.innerHTML,!Z,Q&&iA);B.catch(AA),Q&&(iA=B.catch(u),B.then(u))}else"importmap"===E&&(j=j.then((async()=>{(A.src||Q)&&(X=!0),b=function(A,Q,e){const E={imports:Object.assign({},e.imports),scopes:Object.assign({},e.scopes)};if(A.imports&&C(A.imports,E.imports,Q,e),A.scopes)for(let g in A.scopes){const t=B(g,Q);C(A.scopes[g],E.scopes[t]||(E.scopes[t]={}),Q,e)}return E}(A.src?await(await V(A.src)).json():JSON.parse(A.innerHTML),A.src||J,b)})))}function k(A){A.ep||(A.ep=!0,rA[A.href]||(rA[A.href]=l(A.href,L(A))))}async function h(A,B){return t(b,Q(A,B)||A,B)}async function m(A,B){let C,e=Q(A,B);return C=z.resolve?await z.resolve(A,B,h):t(b,e||A,B),{r:C,m:e!==C}}function d(A,Q){throw Error("Unable to resolve specifier '"+A+(Q?"' from "+Q:"'"))}const N=Promise.resolve();let J;const y="undefined"!=typeof document;let R,F=!1,H=!1,v=!1;try{R=(0,eval)("u=>import(u)"),F=!0}catch(cA){if(y){let Q;self.addEventListener("error",(A=>Q=A.error)),R=B=>{const C=A(`import*as m from'${B}';self._esmsi=m;`),e=document.createElement("script");return e.type="module",e.src=C,document.head.appendChild(e),new Promise(((A,B)=>{e.addEventListener("load",(()=>{document.head.removeChild(e),self._esmsi?(A(self._esmsi,J),self._esmsi=null):B(Q)}))}))}}}let K=!1,U=!1;const M=Promise.all([R(A('import"data:text/css,{}"assert{type:"css"}')).then((()=>v=!0),(()=>{})),R(A('import"data:text/json,{}"assert{type:"json"}')).then((()=>H=!0),(()=>{})),R(A("import.meta")).then((()=>K=!0),(()=>{})),F&&y&&new Promise((A=>{self._$s=B=>{document.body.removeChild(Q),B&&(U=!0),delete self._$s,A()};const Q=document.createElement("iframe");Q.style.display="none",Q.srcdoc='<script type=importmap>{"imports":{"x":"data:text/javascript,"}}<\/script><script>import(\'x\').then(()=>1,()=>0).then(v=>parent._$s(v))<\/script>',document.body.appendChild(Q)}))]);if(y){const A=document.querySelector("base[href]");A&&(J=A.href)}if(!J&&"undefined"!=typeof location){J=location.href.split("#")[0].split("?")[0];const A=J.lastIndexOf("/");-1!==A&&(J=J.slice(0,A+1))}const Y=1===new Uint8Array(new Uint16Array([1]).buffer)[0];let q;const G=WebAssembly.compile((S="AGFzbQEAAAABXA1gAX8Bf2AEf39/fwBgAn9/AGAAAX9gAABgAX8AYAZ/f39/f38Bf2AEf39/fwF/YAN/f38Bf2AHf39/f39/fwF/YAV/f39/fwF/YAJ/fwF/YAh/f39/f39/fwF/AzIxAAECAwMDAwMDAwMDAwMDAwAEBQAGBAQAAAAABAQEBAQABgcICQoLDAACAAAACwMJDAQFAXABAQEFAwEAAQYPAn8BQfDwAAt/AEHw8AALB2QRBm1lbW9yeQIAAnNhAAABZQADAmlzAAQCaWUABQJzcwAGAnNlAAcCYWkACAJpZAAJAmlwAAoCZXMACwJlZQAMAnJpAA0CcmUADgFmAA8FcGFyc2UAEAtfX2hlYXBfYmFzZQMBCrc6MWgBAX9BACAANgK4CEEAKAKQCCIBIABBAXRqIgBBADsBAEEAIABBAmoiADYCvAhBACA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efined"!=typeof Buffer?Buffer.from(S,"base64"):Uint8Array.from(atob(S),(A=>A.charCodeAt(0))))).then(WebAssembly.instantiate).then((({exports:A})=>{q=A}));var S;let $=0;const x={};self.ESMS_DEBUG&&(self._esmsr=x);let O,b={imports:{},scopes:{}},X=!1,j=N,P=!0;self.importShim=async function(A,Q=J){return await M,await j,n((await m(A,Q)).r||d(A,Q),{credentials:"same-origin"})};const _={},T=navigator.userAgent.match(/Edge\/\d\d\.\d+$/);self._esmsm=_;const z=self.esmsInitOptions||{};delete self.esmsInitOptions;let Z="boolean"==typeof z.shimMode?z.shimMode:!!z.fetch||!!document.querySelector('script[type="module-shim"],script[type="importmap-shim"]');const V=z.fetch||((A,Q)=>fetch(A,Q)),W=z.skip||/^https?:\/\/(cdn\.skypack\.dev|jspm\.dev)\//,AA=z.onerror||(A=>{throw A}),QA=z.revokeBlobURLs,BA=z.noLoadEventRetriggers;let CA;const eA=/^(text|application)\/(x-)?javascript(;|$)/,EA=/^application\/json(;|$)/,gA=/^text\/css(;|$)/,tA=/^application\/wasm(;|$)/;let IA=0,oA=!1,sA=!1,iA=Promise.resolve(),nA=!1;document.addEventListener("DOMContentLoaded",(()=>nA=!0));const rA={};new MutationObserver((A=>{for(const Q of A)if("childList"===Q.type)for(const A of Q.addedNodes)if("SCRIPT"===A.tagName&&A.type)p(A,!P);else if("LINK"===A.tagName&&"modulepreload"===A.rel)k(A);else if(A.querySelectorAll){for(const Q of A.querySelectorAll('script[type="module-shim"],script[type="importmap-shim"],script[type="module"],script[type="importmap"]'))p(Q,!P);for(const Q of A.querySelectorAll("link[rel=modulepreload]"))k(Q)}})).observe(document,{childList:!0,subtree:!0}),y&&(D(),O=setInterval(D,20))}();
|
|
2
|
-
//# sourceMappingURL=es-module-shims.min.js.map
|