@ne1410s/crypto 0.2.324 → 0.2.326

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.
@@ -1852,7 +1852,9 @@
1852
1852
  return new ArrayBuffer(this.valueHexView.byteLength + 1);
1853
1853
  }
1854
1854
  if (!this.valueHexView.byteLength) {
1855
- return EMPTY_BUFFER;
1855
+ const empty = new Uint8Array(1);
1856
+ empty[0] = 0;
1857
+ return empty.buffer;
1856
1858
  }
1857
1859
  const retView = new Uint8Array(this.valueHexView.length + 1);
1858
1860
  retView[0] = this.unusedBits;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ne1410s/crypto",
3
- "version": "0.2.324",
3
+ "version": "0.2.326",
4
4
  "description": "Lightweight ES5 script to provide crypto utilities",
5
5
  "main": "dist/ne14_crypto.cjs.min.js",
6
6
  "module": "dist/ne14_crypto.esm.min.js",
@@ -40,7 +40,7 @@
40
40
  "devDependencies": {
41
41
  "@rollup/plugin-commonjs": "^25.0.8",
42
42
  "@rollup/plugin-node-resolve": "^15.3.1",
43
- "@types/node": "^20.19.25",
43
+ "@types/node": "^20.19.27",
44
44
  "@types/pkijs": "^3.0.1",
45
45
  "chai": "^4.5.0",
46
46
  "mocha": "^10.8.2",
@@ -51,8 +51,8 @@
51
51
  "typescript": "^5.9.3"
52
52
  },
53
53
  "dependencies": {
54
- "@ne1410s/text": "^0.3.279",
55
- "asn1js": "^3.0.6",
54
+ "@ne1410s/text": "^0.3.281",
55
+ "asn1js": "^3.0.7",
56
56
  "pkijs": "^3.3.3"
57
57
  }
58
58
  }