@inditextech/weave-sdk 5.1.0 → 5.1.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/sdk.js +1 -1
- package/dist/sdk.node.js +14 -9
- package/dist/sdk.node.stats.html +1 -1
- package/dist/types.d.ts +21 -21
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/types.js.map +1 -1
- package/dist/types.stats.html +1 -1
- package/package.json +2 -2
package/dist/sdk.js
CHANGED
package/dist/sdk.node.js
CHANGED
|
@@ -9700,7 +9700,7 @@ var WeaveRegisterManager = class {
|
|
|
9700
9700
|
|
|
9701
9701
|
//#endregion
|
|
9702
9702
|
//#region package.json
|
|
9703
|
-
var version = "5.1.
|
|
9703
|
+
var version = "5.1.1";
|
|
9704
9704
|
|
|
9705
9705
|
//#endregion
|
|
9706
9706
|
//#region src/managers/setup.ts
|
|
@@ -28416,14 +28416,19 @@ let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzr
|
|
|
28416
28416
|
const POOL_SIZE_MULTIPLIER = 128;
|
|
28417
28417
|
let pool, poolOffset;
|
|
28418
28418
|
let fillPool = (bytes) => {
|
|
28419
|
-
if (bytes < 0
|
|
28420
|
-
|
|
28421
|
-
pool
|
|
28422
|
-
|
|
28423
|
-
|
|
28424
|
-
|
|
28425
|
-
|
|
28426
|
-
|
|
28419
|
+
if (bytes < 0) throw new RangeError("Wrong ID size");
|
|
28420
|
+
try {
|
|
28421
|
+
if (!pool || pool.length < bytes) {
|
|
28422
|
+
pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
|
|
28423
|
+
crypto.randomFillSync(pool);
|
|
28424
|
+
poolOffset = 0;
|
|
28425
|
+
} else if (poolOffset + bytes > pool.length) {
|
|
28426
|
+
crypto.randomFillSync(pool);
|
|
28427
|
+
poolOffset = 0;
|
|
28428
|
+
}
|
|
28429
|
+
} catch (e) {
|
|
28430
|
+
pool = void 0;
|
|
28431
|
+
throw e;
|
|
28427
28432
|
}
|
|
28428
28433
|
poolOffset += bytes;
|
|
28429
28434
|
};
|