@atlaspack/runtime-js 2.13.2-canary.3698 → 2.13.2-canary.3699
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/runtime-js",
|
|
3
|
-
"version": "2.13.2-canary.
|
|
3
|
+
"version": "2.13.2-canary.3699+be63a515a",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
"main": "lib/JSRuntime.js",
|
|
13
13
|
"source": "src/JSRuntime.js",
|
|
14
14
|
"engines": {
|
|
15
|
-
"atlaspack": "2.13.2-canary.
|
|
15
|
+
"atlaspack": "2.13.2-canary.3699+be63a515a",
|
|
16
16
|
"node": ">= 16.0.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atlaspack/diagnostic": "2.13.2-canary.
|
|
20
|
-
"@atlaspack/domain-sharding": "2.13.2-canary.
|
|
21
|
-
"@atlaspack/feature-flags": "2.13.2-canary.
|
|
22
|
-
"@atlaspack/plugin": "2.13.2-canary.
|
|
23
|
-
"@atlaspack/utils": "2.13.2-canary.
|
|
19
|
+
"@atlaspack/diagnostic": "2.13.2-canary.3699+be63a515a",
|
|
20
|
+
"@atlaspack/domain-sharding": "2.13.2-canary.3699+be63a515a",
|
|
21
|
+
"@atlaspack/feature-flags": "2.13.2-canary.3699+be63a515a",
|
|
22
|
+
"@atlaspack/plugin": "2.13.2-canary.3699+be63a515a",
|
|
23
|
+
"@atlaspack/utils": "2.13.2-canary.3699+be63a515a",
|
|
24
24
|
"nullthrows": "^1.1.1"
|
|
25
25
|
},
|
|
26
26
|
"type": "commonjs",
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "be63a515ad13dd5ec1e241843d9ef6fdae8699d5"
|
|
28
28
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
// @flow strict-local
|
|
2
|
+
|
|
1
3
|
import load from '../src/helpers/browser/esm-js-loader-retry.js';
|
|
2
4
|
import bundleManifest from '../src/helpers/bundle-manifest.js';
|
|
3
5
|
import {mock} from 'node:test';
|
|
@@ -33,6 +35,13 @@ describe('esm-js-loader-retry', () => {
|
|
|
33
35
|
globalThis.navigator = {onLine: true};
|
|
34
36
|
globalThis.CustomEvent = globalThis.CustomEvent || class {};
|
|
35
37
|
globalThis.dispatchEvent = mock.fn();
|
|
38
|
+
|
|
39
|
+
// Add mock for addEventListener
|
|
40
|
+
globalThis.addEventListener = mock.fn((event, callback) => {
|
|
41
|
+
if (event === 'online') {
|
|
42
|
+
callback();
|
|
43
|
+
}
|
|
44
|
+
});
|
|
36
45
|
});
|
|
37
46
|
|
|
38
47
|
it('should not throw', async () => {
|