@azure/core-util 1.0.0-alpha.20210930.2 → 1.0.0-beta.1
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 +0 -6
- package/README.md +2 -7
- package/package.json +31 -24
- package/types/latest/core-util.d.ts +1 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -6,12 +6,7 @@ This library is intended to provide various shared utility functions for client
|
|
|
6
6
|
|
|
7
7
|
### Requirements
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
|
|
12
|
-
- Latest versions of Safari, Chrome, Edge, and Firefox.
|
|
13
|
-
|
|
14
|
-
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
|
9
|
+
- [Node.js](https://nodejs.org) version > 8.x
|
|
15
10
|
|
|
16
11
|
### Installation
|
|
17
12
|
|
|
@@ -35,6 +30,6 @@ If you run into issues while using this library, please feel free to [file an is
|
|
|
35
30
|
|
|
36
31
|
## Contributing
|
|
37
32
|
|
|
38
|
-
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/
|
|
33
|
+
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/master/CONTRIBUTING.md) to learn more about how to build and test the code.
|
|
39
34
|
|
|
40
35
|

|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/core-util",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"description": "Core library for shared utility methods",
|
|
5
5
|
"sdk-type": "client",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -8,9 +8,6 @@
|
|
|
8
8
|
"browser": {
|
|
9
9
|
"./dist-esm/src/isNode.js": "./dist-esm/src/isNode.browser.js"
|
|
10
10
|
},
|
|
11
|
-
"react-native": {
|
|
12
|
-
"./dist/index.js": "./dist-esm/src/index.js"
|
|
13
|
-
},
|
|
14
11
|
"types": "types/latest/core-util.d.ts",
|
|
15
12
|
"typesVersions": {
|
|
16
13
|
"<3.6": {
|
|
@@ -21,28 +18,30 @@
|
|
|
21
18
|
},
|
|
22
19
|
"scripts": {
|
|
23
20
|
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
|
|
24
|
-
"build:samples": "echo
|
|
25
|
-
"build:test": "
|
|
21
|
+
"build:samples": "echo Skipped.",
|
|
22
|
+
"build:test": "echo Just call build instead",
|
|
23
|
+
"build:ts": "tsc -p .",
|
|
26
24
|
"build:types": "downlevel-dts types/latest/ types/3.1/",
|
|
27
|
-
"build": "npm run
|
|
28
|
-
"check-format": "prettier --list-different
|
|
29
|
-
"clean": "rimraf dist dist-*
|
|
30
|
-
"docs": "typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src",
|
|
25
|
+
"build": "npm run build:ts && rollup -c 2>&1 && api-extractor run --local && npm run build:types",
|
|
26
|
+
"check-format": "prettier --list-different \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
|
27
|
+
"clean": "rimraf dist dist-* types *.tgz *.log",
|
|
31
28
|
"execute:samples": "echo skipped",
|
|
32
|
-
"extract-api": "
|
|
33
|
-
"format": "prettier --write
|
|
29
|
+
"extract-api": "npm run build:ts && api-extractor run --local",
|
|
30
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
|
34
31
|
"integration-test:browser": "echo skipped",
|
|
35
32
|
"integration-test:node": "echo skipped",
|
|
36
33
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
37
34
|
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
|
|
38
35
|
"lint": "eslint package.json api-extractor.json src test --ext .ts",
|
|
39
36
|
"pack": "npm pack 2>&1",
|
|
40
|
-
"
|
|
41
|
-
"test:
|
|
42
|
-
"test": "npm run
|
|
37
|
+
"prebuild": "npm run clean",
|
|
38
|
+
"test:browser": "npm run build:test:browser && npm run unit-test:browser && npm run integration-test:browser",
|
|
39
|
+
"test:node": "npm run build:test:node && npm run unit-test:node && npm run integration-test:node",
|
|
40
|
+
"test": "npm run unit-test:node && npm run build && npm run unit-test:browser && npm run integration-test:node && npm run integration-test:browser",
|
|
43
41
|
"unit-test:browser": "karma start --single-run",
|
|
44
|
-
"unit-test:node": "mocha -r esm
|
|
45
|
-
"unit-test": "npm run unit-test:node && npm run unit-test:browser"
|
|
42
|
+
"unit-test:node": "mocha -r esm --require ts-node/register --reporter ../../../common/tools/mocha-multi-reporter.js --timeout 1200000 --full-trace \"test/{,!(browser)/**/}*.spec.ts\"",
|
|
43
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
44
|
+
"docs": "typedoc --excludePrivate --excludeNotExported --excludeExternals --stripInternal --mode file --out ./dist/docs ./src"
|
|
46
45
|
},
|
|
47
46
|
"files": [
|
|
48
47
|
"dist/",
|
|
@@ -63,22 +62,27 @@
|
|
|
63
62
|
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
|
64
63
|
},
|
|
65
64
|
"engines": {
|
|
66
|
-
"node": ">=
|
|
65
|
+
"node": ">=8.0.0"
|
|
67
66
|
},
|
|
68
|
-
"homepage": "https://github.com/Azure/azure-sdk-for-js/blob/
|
|
67
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/core/core-util/",
|
|
69
68
|
"sideEffects": false,
|
|
70
69
|
"prettier": "@azure/eslint-plugin-azure-sdk/prettier.json",
|
|
71
70
|
"dependencies": {
|
|
72
|
-
"tslib": "^2.
|
|
71
|
+
"tslib": "^2.0.0"
|
|
73
72
|
},
|
|
74
73
|
"devDependencies": {
|
|
75
|
-
"@azure/dev-tool": "
|
|
76
|
-
"@microsoft/api-extractor": "
|
|
74
|
+
"@azure/dev-tool": "^1.0.0",
|
|
75
|
+
"@microsoft/api-extractor": "7.7.11",
|
|
76
|
+
"@rollup/plugin-commonjs": "11.0.2",
|
|
77
|
+
"@rollup/plugin-json": "^4.0.0",
|
|
78
|
+
"@rollup/plugin-multi-entry": "^3.0.0",
|
|
79
|
+
"@rollup/plugin-node-resolve": "^8.0.0",
|
|
80
|
+
"@rollup/plugin-replace": "^2.2.0",
|
|
77
81
|
"@types/chai": "^4.1.6",
|
|
78
82
|
"@types/mocha": "^7.0.2",
|
|
79
|
-
"@types/node": "^
|
|
83
|
+
"@types/node": "^8.0.0",
|
|
80
84
|
"@types/sinon": "^9.0.4",
|
|
81
|
-
"@azure/eslint-plugin-azure-sdk": "
|
|
85
|
+
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
|
|
82
86
|
"chai": "^4.2.0",
|
|
83
87
|
"downlevel-dts": "~0.4.0",
|
|
84
88
|
"cross-env": "^7.0.2",
|
|
@@ -100,6 +104,9 @@
|
|
|
100
104
|
"prettier": "^1.16.4",
|
|
101
105
|
"rimraf": "^3.0.0",
|
|
102
106
|
"rollup": "^1.16.3",
|
|
107
|
+
"rollup-plugin-sourcemaps": "^0.4.2",
|
|
108
|
+
"rollup-plugin-terser": "^5.1.1",
|
|
109
|
+
"rollup-plugin-visualizer": "^4.0.4",
|
|
103
110
|
"sinon": "^9.0.2",
|
|
104
111
|
"typescript": "~4.2.0",
|
|
105
112
|
"util": "^0.12.1",
|