@pezkuwi/util 14.0.11 → 14.0.13

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.
@@ -7,7 +7,7 @@
7
7
  const global = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : window;
8
8
 
9
9
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
10
- const packageInfo$3 = { name: '@pezkuwi/util', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.10' };
10
+ const packageInfo$4 = { name: '@pezkuwi/util', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.13' };
11
11
 
12
12
  function arrayChunk(array, chunkSize) {
13
13
  const outputSize = Math.ceil(array.length / chunkSize);
@@ -132,66 +132,120 @@
132
132
  const nMax = createCmp((a, b) => a > b);
133
133
  const nMin = createCmp((a, b) => a < b);
134
134
 
135
- const packageInfo$2 = { name: '@pezkuwi/x-global', path: (({ url: (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href)) }) && (typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))) ? new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.substring(0, new URL((typeof document === 'undefined' && typeof location === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : typeof document === 'undefined' ? location.href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('bundle-pezkuwi-util.js', document.baseURI).href))).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.10' };
136
-
137
- function evaluateThis(fn) {
138
- return fn('return this');
139
- }
140
- const xglobal = (typeof globalThis !== 'undefined'
141
- ? globalThis
142
- : typeof global !== 'undefined'
143
- ? global
144
- : typeof self !== 'undefined'
145
- ? self
146
- : typeof window !== 'undefined'
147
- ? window
148
- : evaluateThis(Function));
149
- function extractGlobal(name, fallback) {
150
- return typeof xglobal[name] === 'undefined'
151
- ? fallback
152
- : xglobal[name];
153
- }
154
- function exposeGlobal(name, fallback) {
155
- if (typeof xglobal[name] === 'undefined') {
156
- xglobal[name] = fallback;
157
- }
135
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
136
+
137
+ function getDefaultExportFromCjs (x) {
138
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
158
139
  }
159
140
 
160
- const build = /*#__PURE__*/Object.freeze({
161
- __proto__: null,
162
- exposeGlobal: exposeGlobal,
163
- extractGlobal: extractGlobal,
164
- packageInfo: packageInfo$2,
165
- xglobal: xglobal
166
- });
141
+ function getAugmentedNamespace(n) {
142
+ if (n.__esModule) return n;
143
+ var f = n.default;
144
+ if (typeof f == "function") {
145
+ var a = function a () {
146
+ if (this instanceof a) {
147
+ return Reflect.construct(f, arguments, this.constructor);
148
+ }
149
+ return f.apply(this, arguments);
150
+ };
151
+ a.prototype = f.prototype;
152
+ } else a = {};
153
+ Object.defineProperty(a, '__esModule', {value: true});
154
+ Object.keys(n).forEach(function (k) {
155
+ var d = Object.getOwnPropertyDescriptor(n, k);
156
+ Object.defineProperty(a, k, d.get ? d : {
157
+ enumerable: true,
158
+ get: function () {
159
+ return n[k];
160
+ }
161
+ });
162
+ });
163
+ return a;
164
+ }
165
+
166
+ var cjs$1 = {};
167
+
168
+ var cjs = {};
169
+
170
+ var packageInfo$3 = {};
171
+
172
+ Object.defineProperty(packageInfo$3, "__esModule", { value: true });
173
+ packageInfo$3.packageInfo = void 0;
174
+ packageInfo$3.packageInfo = { name: '@pezkuwi/x-global', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.13' };
175
+
176
+ (function (exports$1) {
177
+ Object.defineProperty(exports$1, "__esModule", { value: true });
178
+ exports$1.xglobal = exports$1.packageInfo = void 0;
179
+ exports$1.extractGlobal = extractGlobal;
180
+ exports$1.exposeGlobal = exposeGlobal;
181
+ var packageInfo_js_1 = packageInfo$3;
182
+ Object.defineProperty(exports$1, "packageInfo", { enumerable: true, get: function () { return packageInfo_js_1.packageInfo; } });
183
+ function evaluateThis(fn) {
184
+ return fn('return this');
185
+ }
186
+ exports$1.xglobal = (typeof globalThis !== 'undefined'
187
+ ? globalThis
188
+ : typeof commonjsGlobal !== 'undefined'
189
+ ? commonjsGlobal
190
+ : typeof self !== 'undefined'
191
+ ? self
192
+ : typeof window !== 'undefined'
193
+ ? window
194
+ : evaluateThis(Function));
195
+ function extractGlobal(name, fallback) {
196
+ return typeof exports$1.xglobal[name] === 'undefined'
197
+ ? fallback
198
+ : exports$1.xglobal[name];
199
+ }
200
+ function exposeGlobal(name, fallback) {
201
+ if (typeof exports$1.xglobal[name] === 'undefined') {
202
+ exports$1.xglobal[name] = fallback;
203
+ }
204
+ }
205
+ } (cjs));
206
+ getDefaultExportFromCjs(cjs);
207
+
208
+ var packageInfo$2 = {};
209
+
210
+ Object.defineProperty(packageInfo$2, "__esModule", { value: true });
211
+ packageInfo$2.packageInfo = void 0;
212
+ packageInfo$2.packageInfo = { name: '@pezkuwi/x-bigint', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.13' };
167
213
 
168
- function invalidFallback() {
169
- return Number.NaN;
170
- }
171
- const BigInt = extractGlobal('BigInt', invalidFallback);
172
-
173
- const _0n = BigInt(0);
174
- const _1n = BigInt(1);
175
- const _2n = BigInt(2);
176
- const _3n = BigInt(3);
177
- const _4n = BigInt(4);
178
- const _5n = BigInt(5);
179
- const _6n = BigInt(6);
180
- const _7n = BigInt(7);
181
- const _8n = BigInt(8);
182
- const _9n = BigInt(9);
183
- const _10n = BigInt(10);
184
- const _100n = BigInt(100);
185
- const _1000n = BigInt(1_000);
186
- const _1Mn = BigInt(1_000_000);
187
- const _1Bn = BigInt(1_000_000_000);
214
+ (function (exports$1) {
215
+ Object.defineProperty(exports$1, "__esModule", { value: true });
216
+ exports$1.BigInt = exports$1.packageInfo = void 0;
217
+ const x_global_1 = cjs;
218
+ var packageInfo_js_1 = packageInfo$2;
219
+ Object.defineProperty(exports$1, "packageInfo", { enumerable: true, get: function () { return packageInfo_js_1.packageInfo; } });
220
+ function invalidFallback() {
221
+ return Number.NaN;
222
+ }
223
+ exports$1.BigInt = (0, x_global_1.extractGlobal)('BigInt', invalidFallback);
224
+ } (cjs$1));
225
+ getDefaultExportFromCjs(cjs$1);
226
+
227
+ const _0n = cjs$1.BigInt(0);
228
+ const _1n = cjs$1.BigInt(1);
229
+ const _2n = cjs$1.BigInt(2);
230
+ const _3n = cjs$1.BigInt(3);
231
+ const _4n = cjs$1.BigInt(4);
232
+ const _5n = cjs$1.BigInt(5);
233
+ const _6n = cjs$1.BigInt(6);
234
+ const _7n = cjs$1.BigInt(7);
235
+ const _8n = cjs$1.BigInt(8);
236
+ const _9n = cjs$1.BigInt(9);
237
+ const _10n = cjs$1.BigInt(10);
238
+ const _100n = cjs$1.BigInt(100);
239
+ const _1000n = cjs$1.BigInt(1_000);
240
+ const _1Mn = cjs$1.BigInt(1_000_000);
241
+ const _1Bn = cjs$1.BigInt(1_000_000_000);
188
242
  const _1Qn = _1Bn * _1Bn;
189
- const _2pow53n = BigInt(Number.MAX_SAFE_INTEGER);
190
- const _sqrt2pow53n = BigInt(94906265);
243
+ const _2pow53n = cjs$1.BigInt(Number.MAX_SAFE_INTEGER);
244
+ const _sqrt2pow53n = cjs$1.BigInt(94906265);
191
245
 
192
- const U8_MAX = BigInt(256);
193
- const U16_MAX = BigInt(256 * 256);
194
- const U64_MAX = BigInt('0x10000000000000000');
246
+ const U8_MAX = cjs$1.BigInt(256);
247
+ const U16_MAX = cjs$1.BigInt(256 * 256);
248
+ const U64_MAX = cjs$1.BigInt('0x10000000000000000');
195
249
  function u8aToBigInt(value, { isLe = true, isNegative = false } = {}) {
196
250
  if (!isLe) {
197
251
  value = value.slice().reverse();
@@ -200,37 +254,37 @@
200
254
  if (isNegative && count && (value[count - 1] & 0x80)) {
201
255
  switch (count) {
202
256
  case 0:
203
- return BigInt(0);
257
+ return cjs$1.BigInt(0);
204
258
  case 1:
205
- return BigInt(((value[0] ^ 0x0000_00ff) * -1) - 1);
259
+ return cjs$1.BigInt(((value[0] ^ 0x0000_00ff) * -1) - 1);
206
260
  case 2:
207
- return BigInt((((value[0] + (value[1] << 8)) ^ 0x0000_ffff) * -1) - 1);
261
+ return cjs$1.BigInt((((value[0] + (value[1] << 8)) ^ 0x0000_ffff) * -1) - 1);
208
262
  case 4:
209
- return BigInt((((value[0] + (value[1] << 8) + (value[2] << 16) + (value[3] * 0x1_00_00_00)) ^ 0xffff_ffff) * -1) - 1);
263
+ return cjs$1.BigInt((((value[0] + (value[1] << 8) + (value[2] << 16) + (value[3] * 0x1_00_00_00)) ^ 0xffff_ffff) * -1) - 1);
210
264
  }
211
265
  const dvI = new DataView(value.buffer, value.byteOffset);
212
266
  if (count === 8) {
213
267
  return dvI.getBigInt64(0, true);
214
268
  }
215
- let result = BigInt(0);
269
+ let result = cjs$1.BigInt(0);
216
270
  const mod = count % 2;
217
271
  for (let i = count - 2; i >= mod; i -= 2) {
218
- result = (result * U16_MAX) + BigInt(dvI.getUint16(i, true) ^ 0xffff);
272
+ result = (result * U16_MAX) + cjs$1.BigInt(dvI.getUint16(i, true) ^ 0xffff);
219
273
  }
220
274
  if (mod) {
221
- result = (result * U8_MAX) + BigInt(value[0] ^ 0xff);
275
+ result = (result * U8_MAX) + cjs$1.BigInt(value[0] ^ 0xff);
222
276
  }
223
277
  return (result * -_1n) - _1n;
224
278
  }
225
279
  switch (count) {
226
280
  case 0:
227
- return BigInt(0);
281
+ return cjs$1.BigInt(0);
228
282
  case 1:
229
- return BigInt(value[0]);
283
+ return cjs$1.BigInt(value[0]);
230
284
  case 2:
231
- return BigInt(value[0] + (value[1] << 8));
285
+ return cjs$1.BigInt(value[0] + (value[1] << 8));
232
286
  case 4:
233
- return BigInt(value[0] + (value[1] << 8) + (value[2] << 16) + (value[3] * 0x1_00_00_00));
287
+ return cjs$1.BigInt(value[0] + (value[1] << 8) + (value[2] << 16) + (value[3] * 0x1_00_00_00));
234
288
  }
235
289
  const dvI = new DataView(value.buffer, value.byteOffset);
236
290
  switch (count) {
@@ -239,13 +293,13 @@
239
293
  case 16:
240
294
  return (dvI.getBigUint64(8, true) * U64_MAX) + dvI.getBigUint64(0, true);
241
295
  default: {
242
- let result = BigInt(0);
296
+ let result = cjs$1.BigInt(0);
243
297
  const mod = count % 2;
244
298
  for (let i = count - 2; i >= mod; i -= 2) {
245
- result = (result * U16_MAX) + BigInt(dvI.getUint16(i, true));
299
+ result = (result * U16_MAX) + cjs$1.BigInt(dvI.getUint16(i, true));
246
300
  }
247
301
  if (mod) {
248
- result = (result * U8_MAX) + BigInt(value[0]);
302
+ result = (result * U8_MAX) + cjs$1.BigInt(value[0]);
249
303
  }
250
304
  return result;
251
305
  }
@@ -290,41 +344,10 @@
290
344
 
291
345
  function hexToBigInt(value, { isLe = false, isNegative = false } = {}) {
292
346
  return !value || value === '0x'
293
- ? BigInt(0)
347
+ ? cjs$1.BigInt(0)
294
348
  : u8aToBigInt(hexToU8a(value), { isLe, isNegative });
295
349
  }
296
350
 
297
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
298
-
299
- function getDefaultExportFromCjs (x) {
300
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
301
- }
302
-
303
- function getAugmentedNamespace(n) {
304
- if (n.__esModule) return n;
305
- var f = n.default;
306
- if (typeof f == "function") {
307
- var a = function a () {
308
- if (this instanceof a) {
309
- return Reflect.construct(f, arguments, this.constructor);
310
- }
311
- return f.apply(this, arguments);
312
- };
313
- a.prototype = f.prototype;
314
- } else a = {};
315
- Object.defineProperty(a, '__esModule', {value: true});
316
- Object.keys(n).forEach(function (k) {
317
- var d = Object.getOwnPropertyDescriptor(n, k);
318
- Object.defineProperty(a, k, d.get ? d : {
319
- enumerable: true,
320
- get: function () {
321
- return n[k];
322
- }
323
- });
324
- });
325
- return a;
326
- }
327
-
328
351
  var bn = {exports: {}};
329
352
 
330
353
  const _nodeResolve_empty = {};
@@ -334,7 +357,7 @@
334
357
  default: _nodeResolve_empty
335
358
  });
336
359
 
337
- const require$$0$1 = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty$1);
360
+ const require$$0 = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty$1);
338
361
 
339
362
  bn.exports;
340
363
  (function (module) {
@@ -377,7 +400,7 @@
377
400
  if (typeof window !== 'undefined' && typeof window.Buffer !== 'undefined') {
378
401
  Buffer = window.Buffer;
379
402
  } else {
380
- Buffer = require$$0$1.Buffer;
403
+ Buffer = require$$0.Buffer;
381
404
  }
382
405
  } catch (e) {
383
406
  }
@@ -3051,16 +3074,16 @@
3051
3074
  return typeof value === 'bigint'
3052
3075
  ? value
3053
3076
  : !value
3054
- ? BigInt(0)
3077
+ ? cjs$1.BigInt(0)
3055
3078
  : isHex(value)
3056
3079
  ? hexToBigInt(value.toString())
3057
3080
  : isBn(value)
3058
- ? BigInt(value.toString())
3081
+ ? cjs$1.BigInt(value.toString())
3059
3082
  : isToBigInt(value)
3060
3083
  ? value.toBigInt()
3061
3084
  : isToBn(value)
3062
- ? BigInt(value.toBn().toString())
3063
- : BigInt(value);
3085
+ ? cjs$1.BigInt(value.toBn().toString())
3086
+ : cjs$1.BigInt(value);
3064
3087
  }
3065
3088
 
3066
3089
  function nSqrt(value) {
@@ -3069,7 +3092,7 @@
3069
3092
  throw new Error('square root of negative numbers is not supported');
3070
3093
  }
3071
3094
  if (n <= _2pow53n) {
3072
- return BigInt(~~Math.sqrt(Number(n)));
3095
+ return cjs$1.BigInt(~~Math.sqrt(Number(n)));
3073
3096
  }
3074
3097
  let x0 = _sqrt2pow53n;
3075
3098
  while (true) {
@@ -3081,16 +3104,16 @@
3081
3104
  }
3082
3105
  }
3083
3106
 
3084
- const hasBigInt = typeof BigInt === 'function' && typeof BigInt.asIntN === 'function';
3107
+ const hasBigInt = typeof cjs$1.BigInt === 'function' && typeof cjs$1.BigInt.asIntN === 'function';
3085
3108
  const hasCjs = typeof require === 'function' && typeof module !== 'undefined';
3086
3109
  const hasDirname = typeof __dirname !== 'undefined';
3087
3110
  const hasEsm = !hasCjs;
3088
3111
  const hasWasm = typeof WebAssembly !== 'undefined';
3089
- const hasBuffer = typeof xglobal.Buffer === 'function' && typeof xglobal.Buffer.isBuffer === 'function';
3090
- const hasProcess = typeof xglobal.process === 'object';
3112
+ const hasBuffer = typeof cjs.xglobal.Buffer === 'function' && typeof cjs.xglobal.Buffer.isBuffer === 'function';
3113
+ const hasProcess = typeof cjs.xglobal.process === 'object';
3091
3114
 
3092
3115
  function isBuffer(value) {
3093
- return hasBuffer && !!value && isFunction(value.readDoubleLE) && xglobal.Buffer.isBuffer(value);
3116
+ return hasBuffer && !!value && isFunction(value.readDoubleLE) && cjs.xglobal.Buffer.isBuffer(value);
3094
3117
  }
3095
3118
 
3096
3119
  function isU8a(value) {
@@ -3100,8 +3123,6 @@
3100
3123
 
3101
3124
  var browser$1 = {};
3102
3125
 
3103
- const require$$0 = /*@__PURE__*/getAugmentedNamespace(build);
3104
-
3105
3126
  var fallback$1 = {};
3106
3127
 
3107
3128
  Object.defineProperty(fallback$1, "__esModule", { value: true });
@@ -3122,12 +3143,12 @@
3122
3143
 
3123
3144
  Object.defineProperty(packageInfo$1, "__esModule", { value: true });
3124
3145
  packageInfo$1.packageInfo = void 0;
3125
- packageInfo$1.packageInfo = { name: '@pezkuwi/x-textencoder', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.10' };
3146
+ packageInfo$1.packageInfo = { name: '@pezkuwi/x-textencoder', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.13' };
3126
3147
 
3127
3148
  (function (exports$1) {
3128
3149
  Object.defineProperty(exports$1, "__esModule", { value: true });
3129
3150
  exports$1.TextEncoder = exports$1.packageInfo = void 0;
3130
- const x_global_1 = require$$0;
3151
+ const x_global_1 = cjs;
3131
3152
  const fallback_js_1 = fallback$1;
3132
3153
  var packageInfo_js_1 = packageInfo$1;
3133
3154
  Object.defineProperty(exports$1, "packageInfo", { enumerable: true, get: function () { return packageInfo_js_1.packageInfo; } });
@@ -3305,7 +3326,7 @@
3305
3326
 
3306
3327
  function u8aToBuffer(value) {
3307
3328
  return hasBuffer
3308
- ? xglobal.Buffer.from(value || [])
3329
+ ? cjs.xglobal.Buffer.from(value || [])
3309
3330
  : new Uint8Array(value || []);
3310
3331
  }
3311
3332
 
@@ -3430,12 +3451,12 @@
3430
3451
 
3431
3452
  Object.defineProperty(packageInfo, "__esModule", { value: true });
3432
3453
  packageInfo.packageInfo = void 0;
3433
- packageInfo.packageInfo = { name: '@pezkuwi/x-textdecoder', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.10' };
3454
+ packageInfo.packageInfo = { name: '@pezkuwi/x-textdecoder', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.13' };
3434
3455
 
3435
3456
  (function (exports$1) {
3436
3457
  Object.defineProperty(exports$1, "__esModule", { value: true });
3437
3458
  exports$1.TextDecoder = exports$1.packageInfo = void 0;
3438
- const x_global_1 = require$$0;
3459
+ const x_global_1 = cjs;
3439
3460
  const fallback_js_1 = fallback;
3440
3461
  var packageInfo_js_1 = packageInfo;
3441
3462
  Object.defineProperty(exports$1, "packageInfo", { enumerable: true, get: function () { return packageInfo_js_1.packageInfo; } });
@@ -3475,8 +3496,8 @@
3475
3496
  : u8aConcatStrict([U8A_WRAP_PREFIX, u8a, U8A_WRAP_POSTFIX]);
3476
3497
  }
3477
3498
 
3478
- const DIV = BigInt(256);
3479
- const NEG_MASK = BigInt(0xff);
3499
+ const DIV = cjs$1.BigInt(256);
3500
+ const NEG_MASK = cjs$1.BigInt(0xff);
3480
3501
  function toU8a(value, isLe, isNegative) {
3481
3502
  const arr = [];
3482
3503
  const withSigned = isNegative && (value < _0n);
@@ -3729,7 +3750,7 @@
3729
3750
  const DEDUPE = 'Either remove and explicitly install matching versions or dedupe using your package manager.\nThe following conflicting packages were found:';
3730
3751
  const POLKADOTJS_DISABLE_ESM_CJS_WARNING_FLAG = 'POLKADOTJS_DISABLE_ESM_CJS_WARNING';
3731
3752
  function getEntry(name) {
3732
- const _global = xglobal;
3753
+ const _global = cjs.xglobal;
3733
3754
  if (!_global.__polkadotjs) {
3734
3755
  _global.__polkadotjs = {};
3735
3756
  }
@@ -3793,7 +3814,7 @@
3793
3814
  const entry = getEntry(name);
3794
3815
  entry.push({ path: getPath(path, pathOrFn), type, version });
3795
3816
  const entriesSameVersion = entry.every((e) => e.version === version);
3796
- const esmCjsWarningDisabled = xglobal.process?.env?.[POLKADOTJS_DISABLE_ESM_CJS_WARNING_FLAG] === '1';
3817
+ const esmCjsWarningDisabled = cjs.xglobal.process?.env?.[POLKADOTJS_DISABLE_ESM_CJS_WARNING_FLAG] === '1';
3797
3818
  const multipleEntries = entry.length !== 1;
3798
3819
  const disableWarnings = esmCjsWarningDisabled && entriesSameVersion;
3799
3820
  if (multipleEntries && !disableWarnings) {
@@ -4449,9 +4470,9 @@
4449
4470
  return flag;
4450
4471
  }
4451
4472
  function parseEnv(type) {
4452
- const maxSize = parseInt(xglobal.process?.env?.['DEBUG_MAX'] || '-1', 10);
4473
+ const maxSize = parseInt(cjs.xglobal.process?.env?.['DEBUG_MAX'] || '-1', 10);
4453
4474
  return [
4454
- getDebugFlag((xglobal.process?.env?.['DEBUG'] || '').toLowerCase().split(','), type),
4475
+ getDebugFlag((cjs.xglobal.process?.env?.['DEBUG'] || '').toLowerCase().split(','), type),
4455
4476
  isNaN(maxSize)
4456
4477
  ? -1
4457
4478
  : maxSize
@@ -4798,7 +4819,7 @@
4798
4819
  exports.objectProperty = objectProperty;
4799
4820
  exports.objectSpread = objectSpread;
4800
4821
  exports.objectValues = objectValues;
4801
- exports.packageInfo = packageInfo$3;
4822
+ exports.packageInfo = packageInfo$4;
4802
4823
  exports.promisify = promisify;
4803
4824
  exports.stringCamelCase = stringCamelCase;
4804
4825
  exports.stringLowerFirst = stringLowerFirst;
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@pezkuwi/util', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.10' };
4
+ exports.packageInfo = { name: '@pezkuwi/util', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.13' };
@@ -1,10 +1,10 @@
1
1
  import type { U8aLike } from '../types.js';
2
2
  /** @internal */
3
- export declare const U8A_WRAP_ETHEREUM: Uint8Array;
3
+ export declare const U8A_WRAP_ETHEREUM: Uint8Array<ArrayBufferLike>;
4
4
  /** @internal */
5
- export declare const U8A_WRAP_PREFIX: Uint8Array;
5
+ export declare const U8A_WRAP_PREFIX: Uint8Array<ArrayBufferLike>;
6
6
  /** @internal */
7
- export declare const U8A_WRAP_POSTFIX: Uint8Array;
7
+ export declare const U8A_WRAP_POSTFIX: Uint8Array<ArrayBufferLike>;
8
8
  /** @internal */
9
9
  export declare function u8aIsWrapped(u8a: Uint8Array, withEthereum: boolean): boolean;
10
10
  /**
@@ -1,5 +1,5 @@
1
1
  {
2
- "author": "Pezkuwi Team <team@pezkuwichain.app>",
2
+ "author": "Dijital Kurdistan Tech Institute <dev@pezkuwichain.io>",
3
3
  "bugs": "https://github.com/pezkuwichain/pezkuwi-common/issues",
4
4
  "description": "A collection of useful utilities for @pezkuwi",
5
5
  "engines": {
@@ -18,10 +18,10 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "14.0.10",
21
+ "version": "14.0.13",
22
22
  "main": "./cjs/index.js",
23
- "module": "./index.js",
24
- "types": "./index.d.ts",
23
+ "module": "./cjs/index.js",
24
+ "types": "./cjs/index.d.ts",
25
25
  "exports": {
26
26
  "./cjs/package.json": "./cjs/package.json",
27
27
  "./cjs/*": "./cjs/*.js",
@@ -1987,10 +1987,10 @@
1987
1987
  }
1988
1988
  },
1989
1989
  "dependencies": {
1990
- "@pezkuwi/x-bigint": "workspace:*",
1991
- "@pezkuwi/x-global": "workspace:*",
1992
- "@pezkuwi/x-textdecoder": "workspace:*",
1993
- "@pezkuwi/x-textencoder": "workspace:*",
1990
+ "@pezkuwi/x-bigint": "14.0.12",
1991
+ "@pezkuwi/x-global": "14.0.12",
1992
+ "@pezkuwi/x-textdecoder": "14.0.12",
1993
+ "@pezkuwi/x-textencoder": "14.0.12",
1994
1994
  "@types/bn.js": "^5.1.6",
1995
1995
  "bn.js": "^5.2.1",
1996
1996
  "tslib": "^2.8.0"
@@ -1 +1 @@
1
- export const packageInfo = { name: '@pezkuwi/util', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.10' };
1
+ export const packageInfo = { name: '@pezkuwi/util', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.13' };
@@ -1,10 +1,10 @@
1
1
  import type { U8aLike } from '../types.js';
2
2
  /** @internal */
3
- export declare const U8A_WRAP_ETHEREUM: Uint8Array;
3
+ export declare const U8A_WRAP_ETHEREUM: Uint8Array<ArrayBufferLike>;
4
4
  /** @internal */
5
- export declare const U8A_WRAP_PREFIX: Uint8Array;
5
+ export declare const U8A_WRAP_PREFIX: Uint8Array<ArrayBufferLike>;
6
6
  /** @internal */
7
- export declare const U8A_WRAP_POSTFIX: Uint8Array;
7
+ export declare const U8A_WRAP_POSTFIX: Uint8Array<ArrayBufferLike>;
8
8
  /** @internal */
9
9
  export declare function u8aIsWrapped(u8a: Uint8Array, withEthereum: boolean): boolean;
10
10
  /**
@@ -1,3 +1,3 @@
1
1
 
2
2
 
3
- export const packageInfo = { name: '@pezkuwi/util', path: new URL(import.meta.url).pathname, type: 'deno', version: '14.0.10' };
3
+ export const packageInfo = { name: '@pezkuwi/util', path: new URL(import.meta.url).pathname, type: 'deno', version: '14.0.13' };
@@ -1,10 +1,10 @@
1
1
  import type { U8aLike } from '../types.js';
2
2
  /** @internal */
3
- export declare const U8A_WRAP_ETHEREUM: Uint8Array;
3
+ export declare const U8A_WRAP_ETHEREUM: Uint8Array<ArrayBufferLike>;
4
4
  /** @internal */
5
- export declare const U8A_WRAP_PREFIX: Uint8Array;
5
+ export declare const U8A_WRAP_PREFIX: Uint8Array<ArrayBufferLike>;
6
6
  /** @internal */
7
- export declare const U8A_WRAP_POSTFIX: Uint8Array;
7
+ export declare const U8A_WRAP_POSTFIX: Uint8Array<ArrayBufferLike>;
8
8
  /** @internal */
9
9
  export declare function u8aIsWrapped(u8a: Uint8Array, withEthereum: boolean): boolean;
10
10
  /**
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@pezkuwi/util', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.10' };
4
+ exports.packageInfo = { name: '@pezkuwi/util', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '14.0.13' };
@@ -1 +1 @@
1
- export const packageInfo = { name: '@pezkuwi/util', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.10' };
1
+ export const packageInfo = { name: '@pezkuwi/util', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '14.0.13' };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "author": "Pezkuwi Team <team@pezkuwichain.app>",
2
+ "author": "Dijital Kurdistan Tech Institute <dev@pezkuwichain.io>",
3
3
  "bugs": "https://github.com/pezkuwichain/pezkuwi-common/issues",
4
4
  "description": "A collection of useful utilities for @pezkuwi",
5
5
  "engines": {
@@ -18,13 +18,11 @@
18
18
  "./cjs/packageDetect.js"
19
19
  ],
20
20
  "type": "module",
21
- "version": "14.0.11",
21
+ "types": "./index.d.ts",
22
+ "version": "14.0.13",
22
23
  "main": "./cjs/index.js",
23
24
  "module": "./index.js",
24
- "types": "./index.d.ts",
25
25
  "exports": {
26
- "./cjs/package.json": "./cjs/package.json",
27
- "./cjs/*": "./cjs/*.js",
28
26
  ".": {
29
27
  "types": "./index.d.ts",
30
28
  "module": {
@@ -447,6 +445,8 @@
447
445
  "default": "./bundle.js"
448
446
  }
449
447
  },
448
+ "./cjs/*": "./cjs/*.js",
449
+ "./cjs/package.json": "./cjs/package.json",
450
450
  "./compact": {
451
451
  "module": {
452
452
  "types": "./compact/index.d.ts",
@@ -1575,7 +1575,7 @@
1575
1575
  "default": "./packageDetect.js"
1576
1576
  }
1577
1577
  },
1578
- "./packageInfo.js": {
1578
+ "./packageInfo": {
1579
1579
  "module": {
1580
1580
  "types": "./packageInfo.d.ts",
1581
1581
  "default": "./packageInfo.js"
@@ -1589,7 +1589,7 @@
1589
1589
  "default": "./packageInfo.js"
1590
1590
  }
1591
1591
  },
1592
- "./packageInfo": {
1592
+ "./packageInfo.js": {
1593
1593
  "module": {
1594
1594
  "types": "./packageInfo.d.ts",
1595
1595
  "default": "./packageInfo.js"
@@ -1987,12 +1987,15 @@
1987
1987
  }
1988
1988
  },
1989
1989
  "dependencies": {
1990
- "@pezkuwi/x-bigint": "14.0.11",
1991
- "@pezkuwi/x-global": "14.0.11",
1992
- "@pezkuwi/x-textdecoder": "14.0.11",
1993
- "@pezkuwi/x-textencoder": "14.0.11",
1990
+ "@pezkuwi/x-bigint": "14.0.12",
1991
+ "@pezkuwi/x-global": "14.0.12",
1992
+ "@pezkuwi/x-textdecoder": "14.0.12",
1993
+ "@pezkuwi/x-textencoder": "14.0.12",
1994
1994
  "@types/bn.js": "^5.1.6",
1995
1995
  "bn.js": "^5.2.1",
1996
1996
  "tslib": "^2.8.0"
1997
+ },
1998
+ "devDependencies": {
1999
+ "@pezkuwi/x-randomvalues": "14.0.12"
1997
2000
  }
1998
2001
  }
@@ -3,4 +3,4 @@
3
3
 
4
4
  // Do not edit, auto-generated by @pezkuwi/dev
5
5
 
6
- export const packageInfo = { name: '@pezkuwi/util', path: 'auto', type: 'auto', version: '14.0.10' };
6
+ export const packageInfo = { name: '@pezkuwi/util', path: 'auto', type: 'auto', version: '14.0.13' };