@jsenv/server 16.3.2 → 16.3.3

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.
@@ -297,41 +297,41 @@ var hasRequiredUtils;
297
297
  function requireUtils () {
298
298
  if (hasRequiredUtils) return utils;
299
299
  hasRequiredUtils = 1;
300
- (function (exports) {
300
+ (function (exports$1) {
301
301
  /**
302
302
  * Utilities for hex, bytes, CSPRNG.
303
303
  * @module
304
304
  */
305
305
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
306
- Object.defineProperty(exports, "__esModule", { value: true });
307
- exports.wrapXOFConstructorWithOpts = exports.wrapConstructorWithOpts = exports.wrapConstructor = exports.Hash = exports.nextTick = exports.swap32IfBE = exports.byteSwapIfBE = exports.swap8IfBE = exports.isLE = void 0;
308
- exports.isBytes = isBytes;
309
- exports.anumber = anumber;
310
- exports.abytes = abytes;
311
- exports.ahash = ahash;
312
- exports.aexists = aexists;
313
- exports.aoutput = aoutput;
314
- exports.u8 = u8;
315
- exports.u32 = u32;
316
- exports.clean = clean;
317
- exports.createView = createView;
318
- exports.rotr = rotr;
319
- exports.rotl = rotl;
320
- exports.byteSwap = byteSwap;
321
- exports.byteSwap32 = byteSwap32;
322
- exports.bytesToHex = bytesToHex;
323
- exports.hexToBytes = hexToBytes;
324
- exports.asyncLoop = asyncLoop;
325
- exports.utf8ToBytes = utf8ToBytes;
326
- exports.bytesToUtf8 = bytesToUtf8;
327
- exports.toBytes = toBytes;
328
- exports.kdfInputToBytes = kdfInputToBytes;
329
- exports.concatBytes = concatBytes;
330
- exports.checkOpts = checkOpts;
331
- exports.createHasher = createHasher;
332
- exports.createOptHasher = createOptHasher;
333
- exports.createXOFer = createXOFer;
334
- exports.randomBytes = randomBytes;
306
+ Object.defineProperty(exports$1, "__esModule", { value: true });
307
+ exports$1.wrapXOFConstructorWithOpts = exports$1.wrapConstructorWithOpts = exports$1.wrapConstructor = exports$1.Hash = exports$1.nextTick = exports$1.swap32IfBE = exports$1.byteSwapIfBE = exports$1.swap8IfBE = exports$1.isLE = void 0;
308
+ exports$1.isBytes = isBytes;
309
+ exports$1.anumber = anumber;
310
+ exports$1.abytes = abytes;
311
+ exports$1.ahash = ahash;
312
+ exports$1.aexists = aexists;
313
+ exports$1.aoutput = aoutput;
314
+ exports$1.u8 = u8;
315
+ exports$1.u32 = u32;
316
+ exports$1.clean = clean;
317
+ exports$1.createView = createView;
318
+ exports$1.rotr = rotr;
319
+ exports$1.rotl = rotl;
320
+ exports$1.byteSwap = byteSwap;
321
+ exports$1.byteSwap32 = byteSwap32;
322
+ exports$1.bytesToHex = bytesToHex;
323
+ exports$1.hexToBytes = hexToBytes;
324
+ exports$1.asyncLoop = asyncLoop;
325
+ exports$1.utf8ToBytes = utf8ToBytes;
326
+ exports$1.bytesToUtf8 = bytesToUtf8;
327
+ exports$1.toBytes = toBytes;
328
+ exports$1.kdfInputToBytes = kdfInputToBytes;
329
+ exports$1.concatBytes = concatBytes;
330
+ exports$1.checkOpts = checkOpts;
331
+ exports$1.createHasher = createHasher;
332
+ exports$1.createOptHasher = createOptHasher;
333
+ exports$1.createXOFer = createXOFer;
334
+ exports$1.randomBytes = randomBytes;
335
335
  // We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+.
336
336
  // node.js versions earlier than v19 don't declare it in global scope.
337
337
  // For node.js, package.json#exports field mapping rewrites import
@@ -404,7 +404,7 @@ function requireUtils () {
404
404
  return (word << shift) | ((word >>> (32 - shift)) >>> 0);
405
405
  }
406
406
  /** Is current platform little-endian? Most are. Big-Endian platform: IBM */
407
- exports.isLE = (() => new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44)();
407
+ exports$1.isLE = (() => new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44)();
408
408
  /** The byte swap operation for uint32 */
409
409
  function byteSwap(word) {
410
410
  return (((word << 24) & 0xff000000) |
@@ -413,11 +413,11 @@ function requireUtils () {
413
413
  ((word >>> 24) & 0xff));
414
414
  }
415
415
  /** Conditionally byte swap if on a big-endian platform */
416
- exports.swap8IfBE = exports.isLE
416
+ exports$1.swap8IfBE = exports$1.isLE
417
417
  ? (n) => n
418
418
  : (n) => byteSwap(n);
419
419
  /** @deprecated */
420
- exports.byteSwapIfBE = exports.swap8IfBE;
420
+ exports$1.byteSwapIfBE = exports$1.swap8IfBE;
421
421
  /** In place byte swap for Uint32Array */
422
422
  function byteSwap32(arr) {
423
423
  for (let i = 0; i < arr.length; i++) {
@@ -425,7 +425,7 @@ function requireUtils () {
425
425
  }
426
426
  return arr;
427
427
  }
428
- exports.swap32IfBE = exports.isLE
428
+ exports$1.swap32IfBE = exports$1.isLE
429
429
  ? (u) => u
430
430
  : byteSwap32;
431
431
  // Built-in hex conversion https://caniuse.com/mdn-javascript_builtins_uint8array_fromhex
@@ -493,7 +493,7 @@ function requireUtils () {
493
493
  * next scheduler queue processing step and this is exactly what we need.
494
494
  */
495
495
  const nextTick = async () => { };
496
- exports.nextTick = nextTick;
496
+ exports$1.nextTick = nextTick;
497
497
  /** Returns control to thread each 'tick' ms to avoid blocking. */
498
498
  async function asyncLoop(iters, tick, cb) {
499
499
  let ts = Date.now();
@@ -503,7 +503,7 @@ function requireUtils () {
503
503
  const diff = Date.now() - ts;
504
504
  if (diff >= 0 && diff < tick)
505
505
  continue;
506
- await (0, exports.nextTick)();
506
+ await (0, exports$1.nextTick)();
507
507
  ts += diff;
508
508
  }
509
509
  }
@@ -569,7 +569,7 @@ function requireUtils () {
569
569
  /** For runtime check if class implements interface */
570
570
  class Hash {
571
571
  }
572
- exports.Hash = Hash;
572
+ exports$1.Hash = Hash;
573
573
  /** Wraps hash function, creating an interface on top of it */
574
574
  function createHasher(hashCons) {
575
575
  const hashC = (msg) => hashCons().update(toBytes(msg)).digest();
@@ -595,9 +595,9 @@ function requireUtils () {
595
595
  hashC.create = (opts) => hashCons(opts);
596
596
  return hashC;
597
597
  }
598
- exports.wrapConstructor = createHasher;
599
- exports.wrapConstructorWithOpts = createOptHasher;
600
- exports.wrapXOFConstructorWithOpts = createXOFer;
598
+ exports$1.wrapConstructor = createHasher;
599
+ exports$1.wrapConstructorWithOpts = createOptHasher;
600
+ exports$1.wrapXOFConstructorWithOpts = createXOFer;
601
601
  /** Cryptographically secure PRNG. Uses internal OS-level `crypto.getRandomValues`. */
602
602
  function randomBytes(bytesLength = 32) {
603
603
  if (crypto_1.crypto && typeof crypto_1.crypto.getRandomValues === 'function') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/server",
3
- "version": "16.3.2",
3
+ "version": "16.3.3",
4
4
  "description": "A modern Node.js HTTP server with declarative routing, content negotiation, and WebSocket support",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,7 +35,7 @@
35
35
  "prepublishOnly": "npm run build"
36
36
  },
37
37
  "dependencies": {
38
- "launch-editor": "2.11.1"
38
+ "launch-editor": "2.12.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@jsenv/abort": "../../tooling/abort",