@hazae41/base64
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -28,6 +28,8 @@ import { Cursor, CursorWriteError } from '@hazae41/cursor'; | ||
interface Adapter { | ||
tryEncode(bytes: Uint8Array): Result<string, EncodeError>; | ||
tryDecode(text: string): Result<Copiable, DecodeError>; | ||
tryEncodePadded(bytes: Uint8Array): Result<string, EncodeError>; | ||
tryDecodePadded(text: string): Result<Copiable, DecodeError>; | ||
tryEncodeUnpadded(bytes: Uint8Array): Result<string, EncodeError>; | ||
tryDecodeUnpadded(text: string): Result<Copiable, DecodeError>; | ||
} | ||
export { type Adapter, type Copiable, Copied, get, set }; |
{ | ||
"type": "module", | ||
"name": "@hazae41/base64", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Base64 adapter for WebAssembly and JS implementations", | ||
@@ -25,11 +25,9 @@ "homepage": "https://github.com/hazae41/base64", | ||
"devDependencies": { | ||
"@hazae41/alocer": "^1.0.1", | ||
"@hazae41/cursor": "^1.1.26", | ||
"@hazae41/phobos": "^1.0.10", | ||
"@rollup/plugin-typescript": "^11.1.3", | ||
"@scure/base": "^1.1.3", | ||
"@types/node": "^20.6.0", | ||
"rimraf": "^5.0.1", | ||
"rollup": "^3.29.0", | ||
"rollup-plugin-dts": "^6.0.1", | ||
"rollup": "^3.29.1", | ||
"rollup-plugin-dts": "^6.0.2", | ||
"rollup-plugin-node-externals": "^6.1.1", | ||
@@ -56,4 +54,8 @@ "typescript": "^5.2.2" | ||
"@hazae41/option": "^1.0.21", | ||
"@hazae41/result": "^1.1.2" | ||
"@hazae41/result": "^1.1.4" | ||
}, | ||
"optionalDependencies": { | ||
"@scure/base": "^1.1.3", | ||
"@hazae41/alocer": "^1.0.2" | ||
} | ||
} |
@@ -56,4 +56,4 @@ # Base64 | ||
```tsx | ||
const encoded: string = Base64.get().tryEncode(new Uint8Array([1,2,3,4,5])).unwrap() | ||
const decoded: Uint8Array = Base64.get().tryDecode(encoded).unwrap().copyAndDispose() | ||
const encoded: string = Base64.get().tryEncodePadded(new Uint8Array([1,2,3,4,5])).unwrap() | ||
const decoded: Uint8Array = Base64.get().tryDecodePadded(encoded).unwrap().copyAndDispose() | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43842
9
461
4
+ Added@hazae41/alocer@1.0.9(transitive)
+ Added@scure/base@1.2.1(transitive)
Updated@hazae41/result@^1.1.4