@ms-cloudpack/esm-stub-utilities 0.6.13 → 0.6.15
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/browserEnvironment/index.cjs +4 -3
- package/lib/tsdoc-metadata.json +11 -11
- package/package.json +9 -12
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
/* eslint-disable @typescript-eslint/triple-slash-reference */
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
4
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
5
4
|
/* eslint-disable etc/no-deprecated */
|
|
6
5
|
|
|
7
6
|
// This file uses JS because it's loaded directly into the CJS sandbox environment (see runInSandbox.ts).
|
|
@@ -13,11 +12,13 @@
|
|
|
13
12
|
|
|
14
13
|
const btoa = require('btoa');
|
|
15
14
|
const atob = require('atob');
|
|
15
|
+
const { performance } = require('perf_hooks');
|
|
16
16
|
const util = require('util');
|
|
17
17
|
|
|
18
18
|
// These must be set up before JSDOM
|
|
19
|
-
global.
|
|
20
|
-
global.
|
|
19
|
+
!global.performance && (global.performance = /** @type {*} */ (performance));
|
|
20
|
+
!global.TextEncoder && (global.TextEncoder = util.TextEncoder);
|
|
21
|
+
!global.TextDecoder && (global.TextDecoder = /** @type {*} */ (util.TextDecoder));
|
|
21
22
|
|
|
22
23
|
require('jsdom-global')();
|
|
23
24
|
|
package/lib/tsdoc-metadata.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
-
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
-
{
|
|
4
|
-
"tsdocVersion": "0.12",
|
|
5
|
-
"toolPackages": [
|
|
6
|
-
{
|
|
7
|
-
"packageName": "@microsoft/api-extractor",
|
|
8
|
-
"packageVersion": "7.
|
|
9
|
-
}
|
|
10
|
-
]
|
|
11
|
-
}
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.35.2"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/esm-stub-utilities",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.15",
|
|
4
4
|
"description": "Generates ESM stubs for CommonJS entry files.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -14,28 +14,25 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@ms-cloudpack/json-utilities": "^0.0.6",
|
|
17
|
-
"@ms-cloudpack/path-utilities": "^2.2.
|
|
18
|
-
"@ms-cloudpack/path-string-parsing": "^1.0.
|
|
17
|
+
"@ms-cloudpack/path-utilities": "^2.2.3",
|
|
18
|
+
"@ms-cloudpack/path-string-parsing": "^1.0.2",
|
|
19
19
|
"atob": "^2.1.2",
|
|
20
20
|
"btoa": "^1.2.1",
|
|
21
21
|
"jsdom-global": "^3.0.2",
|
|
22
|
-
"jsdom": "^
|
|
22
|
+
"jsdom": "^22.0.0",
|
|
23
23
|
"regenerator-runtime": "^0.13.9",
|
|
24
24
|
"vm2": "^3.9.13"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@ms-cloudpack/eslint-
|
|
27
|
+
"@ms-cloudpack/eslint-plugin-internal": "*",
|
|
28
28
|
"@ms-cloudpack/scripts": "*",
|
|
29
29
|
"@ms-cloudpack/test-utilities": "*",
|
|
30
|
-
"@types/atob": "2.1.2",
|
|
31
|
-
"@types/btoa": "1.2.3",
|
|
32
|
-
"@types/jsdom": "21.1.
|
|
33
|
-
"@types/regenerator-runtime": "0.13.1"
|
|
34
|
-
"react-dom": "17.0.2",
|
|
35
|
-
"react": "17.0.2"
|
|
30
|
+
"@types/atob": "^2.1.2",
|
|
31
|
+
"@types/btoa": "^1.2.3",
|
|
32
|
+
"@types/jsdom": "^21.1.1",
|
|
33
|
+
"@types/regenerator-runtime": "^0.13.1"
|
|
36
34
|
},
|
|
37
35
|
"scripts": {
|
|
38
|
-
"api:update": "cloudpack-scripts api-update",
|
|
39
36
|
"api": "cloudpack-scripts api",
|
|
40
37
|
"build:watch": "cloudpack-scripts build-watch",
|
|
41
38
|
"build": "cloudpack-scripts build",
|