@ne1410s/crypto 0.2.146 → 0.2.148
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/functions.d.ts +0 -1
- package/dist/interfaces.d.ts +0 -1
- package/dist/ne14_crypto.umd.min.js +1 -1
- package/package.json +10 -10
package/dist/functions.d.ts
CHANGED
package/dist/interfaces.d.ts
CHANGED
|
@@ -3297,7 +3297,7 @@
|
|
|
3297
3297
|
* @returns An array buffer.
|
|
3298
3298
|
*/
|
|
3299
3299
|
function textToBuffer(text) {
|
|
3300
|
-
return Uint8Array.from(
|
|
3300
|
+
return Uint8Array.from(Array.from(text).map(function (letter) { return letter.charCodeAt(0); })).buffer;
|
|
3301
3301
|
}
|
|
3302
3302
|
/**
|
|
3303
3303
|
* Converts an array buffer to the corresponding text.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ne1410s/crypto",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.148",
|
|
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,19 +40,19 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@rollup/plugin-commonjs": "^25.0.8",
|
|
42
42
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
43
|
-
"@types/node": "^20.14.
|
|
43
|
+
"@types/node": "^20.14.13",
|
|
44
44
|
"@types/pkijs": "^3.0.1",
|
|
45
|
-
"chai": "^4.
|
|
46
|
-
"mocha": "^10.
|
|
47
|
-
"prettier": "^3.3.
|
|
48
|
-
"rimraf": "^5.0.
|
|
49
|
-
"rollup": "^4.
|
|
45
|
+
"chai": "^4.5.0",
|
|
46
|
+
"mocha": "^10.7.0",
|
|
47
|
+
"prettier": "^3.3.3",
|
|
48
|
+
"rimraf": "^5.0.9",
|
|
49
|
+
"rollup": "^4.19.1",
|
|
50
50
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
51
|
-
"typescript": "^5.4
|
|
51
|
+
"typescript": "^5.5.4"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@ne1410s/text": "^0.3.
|
|
54
|
+
"@ne1410s/text": "^0.3.110",
|
|
55
55
|
"asn1js": "^3.0.5",
|
|
56
|
-
"pkijs": "^3.
|
|
56
|
+
"pkijs": "^3.2.4"
|
|
57
57
|
}
|
|
58
58
|
}
|