@agentdock/crypto 0.0.63 → 0.0.65
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/encoding.js +1 -1
- package/package.json +2 -2
package/dist/encoding.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";export function encodeBase64(
|
|
1
|
+
"use strict";export function encodeBase64(r){if(r.length===0)return"";let e="";for(let n=0;n<r.length;n++)e+=String.fromCharCode(r[n]??0);return btoa(e)}export function decodeBase64(r){if(r==="")return new Uint8Array(0);let e;try{e=atob(r)}catch(t){throw new Error(`Invalid base64: ${t instanceof Error?t.message:String(t)}`,{cause:t})}const n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return n}export function encodeBase64Url(r){return encodeBase64(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}export function decodeBase64Url(r){if(r==="")return new Uint8Array(0);let e=r.replace(/-/g,"+").replace(/_/g,"/");const n=(4-e.length%4)%4;return e+="=".repeat(n),decodeBase64(e)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentdock/crypto",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.65",
|
|
4
4
|
"description": "E2E encryption for AgentDock — AES-256-GCM, key derivation, Web Crypto API",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "CCPark",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"fflate": "^0.8.3",
|
|
26
26
|
"tweetnacl": "^1.0.3",
|
|
27
|
-
"@agentdock/wire": "0.0.
|
|
27
|
+
"@agentdock/wire": "0.0.65"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@vitest/coverage-v8": "^3.0.0",
|