@azure/storage-common 12.4.0 → 12.4.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/dist/browser/crc64.js
CHANGED
|
@@ -111,50 +111,11 @@ function logExceptionOnExit(e) {
|
|
|
111
111
|
|
|
112
112
|
if (ENVIRONMENT_IS_NODE) {
|
|
113
113
|
if (typeof process == 'undefined' || !process.release || process.release.name !== 'node') throw new Error('not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)');
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
// These modules will usually be used on Node.js. Load them eagerly to avoid
|
|
119
|
-
// the complexity of lazy-loading.
|
|
120
|
-
var fs = require('fs');
|
|
121
|
-
var nodePath = require('path');
|
|
122
|
-
|
|
123
|
-
if (ENVIRONMENT_IS_WORKER) {
|
|
124
|
-
scriptDirectory = nodePath.dirname(scriptDirectory) + '/';
|
|
125
|
-
} else {
|
|
126
|
-
scriptDirectory = __dirname + '/';
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// include: node_shell_read.js
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
read_ = (filename, binary) => {
|
|
133
|
-
// We need to re-wrap `file://` strings to URLs. Normalizing isn't
|
|
134
|
-
// necessary in that case, the path should already be absolute.
|
|
135
|
-
filename = isFileURI(filename) ? new URL(filename) : nodePath.normalize(filename);
|
|
136
|
-
return fs.readFileSync(filename, binary ? undefined : 'utf8');
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
readBinary = (filename) => {
|
|
140
|
-
var ret = read_(filename, true);
|
|
141
|
-
if (!ret.buffer) {
|
|
142
|
-
ret = new Uint8Array(ret);
|
|
143
|
-
}
|
|
144
|
-
assert(ret.buffer);
|
|
145
|
-
return ret;
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
readAsync = (filename, onload, onerror) => {
|
|
149
|
-
// See the comment in the `read_` function.
|
|
150
|
-
filename = isFileURI(filename) ? new URL(filename) : nodePath.normalize(filename);
|
|
151
|
-
fs.readFile(filename, function(err, data) {
|
|
152
|
-
if (err) onerror(err);
|
|
153
|
-
else onload(data.buffer);
|
|
154
|
-
});
|
|
155
|
-
};
|
|
114
|
+
// Node-only filesystem reads omitted in browser/react-native builds.
|
|
115
|
+
read_ = readBinary = readAsync = () => {
|
|
116
|
+
throw new Error('NodeJS filesystem reads are not supported in this environment.');
|
|
117
|
+
};
|
|
156
118
|
|
|
157
|
-
// end include: node_shell_read.js
|
|
158
119
|
if (process['argv'].length > 1) {
|
|
159
120
|
thisProgram = process['argv'][1].replace(/\\/g, '/');
|
|
160
121
|
}
|
package/dist/commonjs/crc64.js
CHANGED
|
@@ -111,6 +111,7 @@ function logExceptionOnExit(e) {
|
|
|
111
111
|
|
|
112
112
|
if (ENVIRONMENT_IS_NODE) {
|
|
113
113
|
if (typeof process == 'undefined' || !process.release || process.release.name !== 'node') throw new Error('not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)');
|
|
114
|
+
// NODE-READ-START (this block is replaced with a no-op in dist/browser and dist/react-native by copyJSFiles.cjs)
|
|
114
115
|
// `require()` is no-op in an ESM module, use `createRequire()` to construct
|
|
115
116
|
// the require()` function. This is only necessary for multi-environment
|
|
116
117
|
// builds, `-sENVIRONMENT=node` emits a static import declaration instead.
|
|
@@ -155,6 +156,7 @@ readAsync = (filename, onload, onerror) => {
|
|
|
155
156
|
};
|
|
156
157
|
|
|
157
158
|
// end include: node_shell_read.js
|
|
159
|
+
// NODE-READ-END
|
|
158
160
|
if (process['argv'].length > 1) {
|
|
159
161
|
thisProgram = process['argv'][1].replace(/\\/g, '/');
|
|
160
162
|
}
|
package/dist/esm/crc64.js
CHANGED
|
@@ -133,6 +133,7 @@ function logExceptionOnExit(e) {
|
|
|
133
133
|
|
|
134
134
|
if (ENVIRONMENT_IS_NODE) {
|
|
135
135
|
if (typeof process == 'undefined' || !process.release || process.release.name !== 'node') throw new Error('not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)');
|
|
136
|
+
// NODE-READ-START (this block is replaced with a no-op in dist/browser and dist/react-native by copyJSFiles.cjs)
|
|
136
137
|
// `require()` is no-op in an ESM module, use `createRequire()` to construct
|
|
137
138
|
// the require()` function. This is only necessary for multi-environment
|
|
138
139
|
// builds, `-sENVIRONMENT=node` emits a static import declaration instead.
|
|
@@ -177,6 +178,7 @@ readAsync = (filename, onload, onerror) => {
|
|
|
177
178
|
};
|
|
178
179
|
|
|
179
180
|
// end include: node_shell_read.js
|
|
181
|
+
// NODE-READ-END
|
|
180
182
|
if (process['argv'].length > 1) {
|
|
181
183
|
thisProgram = process['argv'][1].replace(/\\/g, '/');
|
|
182
184
|
}
|
|
@@ -111,50 +111,11 @@ function logExceptionOnExit(e) {
|
|
|
111
111
|
|
|
112
112
|
if (ENVIRONMENT_IS_NODE) {
|
|
113
113
|
if (typeof process == 'undefined' || !process.release || process.release.name !== 'node') throw new Error('not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)');
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
// These modules will usually be used on Node.js. Load them eagerly to avoid
|
|
119
|
-
// the complexity of lazy-loading.
|
|
120
|
-
var fs = require('fs');
|
|
121
|
-
var nodePath = require('path');
|
|
122
|
-
|
|
123
|
-
if (ENVIRONMENT_IS_WORKER) {
|
|
124
|
-
scriptDirectory = nodePath.dirname(scriptDirectory) + '/';
|
|
125
|
-
} else {
|
|
126
|
-
scriptDirectory = __dirname + '/';
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// include: node_shell_read.js
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
read_ = (filename, binary) => {
|
|
133
|
-
// We need to re-wrap `file://` strings to URLs. Normalizing isn't
|
|
134
|
-
// necessary in that case, the path should already be absolute.
|
|
135
|
-
filename = isFileURI(filename) ? new URL(filename) : nodePath.normalize(filename);
|
|
136
|
-
return fs.readFileSync(filename, binary ? undefined : 'utf8');
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
readBinary = (filename) => {
|
|
140
|
-
var ret = read_(filename, true);
|
|
141
|
-
if (!ret.buffer) {
|
|
142
|
-
ret = new Uint8Array(ret);
|
|
143
|
-
}
|
|
144
|
-
assert(ret.buffer);
|
|
145
|
-
return ret;
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
readAsync = (filename, onload, onerror) => {
|
|
149
|
-
// See the comment in the `read_` function.
|
|
150
|
-
filename = isFileURI(filename) ? new URL(filename) : nodePath.normalize(filename);
|
|
151
|
-
fs.readFile(filename, function(err, data) {
|
|
152
|
-
if (err) onerror(err);
|
|
153
|
-
else onload(data.buffer);
|
|
154
|
-
});
|
|
155
|
-
};
|
|
114
|
+
// Node-only filesystem reads omitted in browser/react-native builds.
|
|
115
|
+
read_ = readBinary = readAsync = () => {
|
|
116
|
+
throw new Error('NodeJS filesystem reads are not supported in this environment.');
|
|
117
|
+
};
|
|
156
118
|
|
|
157
|
-
// end include: node_shell_read.js
|
|
158
119
|
if (process['argv'].length > 1) {
|
|
159
120
|
thisProgram = process['argv'][1].replace(/\\/g, '/');
|
|
160
121
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "client",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"author": "Microsoft Corporation",
|
|
6
|
-
"version": "12.4.
|
|
6
|
+
"version": "12.4.1",
|
|
7
7
|
"description": "Azure Storage Common Client Library for JavaScript",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"repository": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@azure/abort-controller": "^2.1.2",
|
|
43
43
|
"@azure/core-auth": "^1.9.0",
|
|
44
44
|
"@azure/core-http-compat": "^2.2.0",
|
|
45
|
-
"@azure/core-rest-pipeline": "^1.
|
|
45
|
+
"@azure/core-rest-pipeline": "^1.24.0",
|
|
46
46
|
"@azure/core-tracing": "^1.2.0",
|
|
47
47
|
"@azure/core-util": "^1.11.0",
|
|
48
48
|
"@azure/logger": "^1.1.4",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"rimraf": "^6.1.0",
|
|
63
63
|
"typescript": "~6.0.2",
|
|
64
64
|
"vitest": "^4.1.2",
|
|
65
|
+
"@azure-tools/test-utils-vitest": "^2.0.1",
|
|
65
66
|
"@azure/dev-tool": "^1.0.0",
|
|
66
|
-
"@azure/eslint-plugin-azure-sdk": "^3.0.0"
|
|
67
|
-
"@azure-tools/test-utils-vitest": "^2.0.1"
|
|
67
|
+
"@azure/eslint-plugin-azure-sdk": "^3.0.0"
|
|
68
68
|
},
|
|
69
69
|
"type": "module",
|
|
70
70
|
"react-native": "./dist/react-native/index.js",
|