@zenfs/core 1.6.16 → 1.6.17
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/mixins/async.js +2 -1
- package/dist/utils.js +1 -7
- package/package.json +5 -1
package/dist/mixins/async.js
CHANGED
|
@@ -252,7 +252,8 @@ export function Async(FS) {
|
|
|
252
252
|
(_b = (_a = this._sync) === null || _a === void 0 ? void 0 : _a[`${key}Sync`]) === null || _b === void 0 ? void 0 : _b.call(_a, ...args);
|
|
253
253
|
}
|
|
254
254
|
catch (e) {
|
|
255
|
-
|
|
255
|
+
if (e.code != 'ENOENT')
|
|
256
|
+
throw new ErrnoError(e.errno, 'Out of sync! (' + e.message + ')', args[0], key);
|
|
256
257
|
}
|
|
257
258
|
return result;
|
|
258
259
|
};
|
package/dist/utils.js
CHANGED
|
@@ -136,11 +136,5 @@ export function normalizeOptions(options, encoding = 'utf8', flag, mode = 0) {
|
|
|
136
136
|
* @internal
|
|
137
137
|
*/
|
|
138
138
|
export function randomBigInt() {
|
|
139
|
-
|
|
140
|
-
return crypto.getRandomValues(new BigUint64Array(1))[0];
|
|
141
|
-
}
|
|
142
|
-
catch {
|
|
143
|
-
// fallback
|
|
144
|
-
return BigInt('0x' + randomHex(16 /* 4 bits per char */));
|
|
145
|
-
}
|
|
139
|
+
return BigInt('0x' + randomHex(8));
|
|
146
140
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenfs/core",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.17",
|
|
4
4
|
"description": "A filesystem, anywhere",
|
|
5
5
|
"funding": {
|
|
6
6
|
"type": "individual",
|
|
@@ -48,6 +48,10 @@
|
|
|
48
48
|
"./eslint": "./eslint.shared.js",
|
|
49
49
|
"./tests/*": "./tests/*"
|
|
50
50
|
},
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"access": "public",
|
|
53
|
+
"provenance": true
|
|
54
|
+
},
|
|
51
55
|
"scripts": {
|
|
52
56
|
"format": "prettier --write .",
|
|
53
57
|
"format:check": "prettier --check .",
|