@hazae41/base64
Advanced tools
Comparing version 1.0.6 to 1.0.7
import * as index from './mods/index.js'; | ||
export { index as Base64 }; | ||
export { Adapter, Copiable, Copied, get, set } from './mods/base64/adapter.js'; | ||
export { Adapter, get, set } from './mods/base64/adapter.js'; | ||
export { fromAlocer, fromBufferOrAlocer } from './mods/base64/alocer.js'; | ||
@@ -5,0 +5,0 @@ export { fromBuffer } from './mods/base64/buffer.js'; |
@@ -1,2 +0,2 @@ | ||
import { Cursor, CursorWriteError } from '@hazae41/cursor'; | ||
import { Box, Copiable } from '@hazae41/box'; | ||
import { Result } from '@hazae41/result'; | ||
@@ -7,29 +7,9 @@ import { EncodeError, DecodeError } from './errors.js'; | ||
declare function set(value?: Adapter): void; | ||
interface Copiable extends Disposable { | ||
readonly bytes: Uint8Array; | ||
copyAndDispose(): Uint8Array; | ||
trySize(): Result<number, never>; | ||
tryWrite(cursor: Cursor): Result<void, CursorWriteError>; | ||
} | ||
declare class Copied implements Copiable { | ||
readonly bytes: Uint8Array; | ||
/** | ||
* A copiable that's already copied | ||
* @param bytes | ||
*/ | ||
constructor(bytes: Uint8Array); | ||
[Symbol.dispose](): void; | ||
static new(bytes: Uint8Array): Copied; | ||
static from(buffer: ArrayBuffer): Copied; | ||
copyAndDispose(): Uint8Array; | ||
trySize(): Result<number, never>; | ||
tryWrite(cursor: Cursor): Result<void, CursorWriteError>; | ||
} | ||
interface Adapter { | ||
tryEncodePadded(bytes: Uint8Array): Result<string, EncodeError>; | ||
tryEncodePadded(bytes: Box<Copiable>): Result<string, EncodeError>; | ||
tryDecodePadded(text: string): Result<Copiable, DecodeError>; | ||
tryEncodeUnpadded(bytes: Uint8Array): Result<string, EncodeError>; | ||
tryEncodeUnpadded(bytes: Box<Copiable>): Result<string, EncodeError>; | ||
tryDecodeUnpadded(text: string): Result<Copiable, DecodeError>; | ||
} | ||
export { type Adapter, type Copiable, Copied, get, set }; | ||
export { type Adapter, get, set }; |
@@ -1,2 +0,2 @@ | ||
export { Adapter, Copiable, Copied, get, set } from './base64/adapter.js'; | ||
export { Adapter, get, set } from './base64/adapter.js'; | ||
export { fromAlocer, fromBufferOrAlocer } from './base64/alocer.js'; | ||
@@ -3,0 +3,0 @@ export { fromBuffer } from './base64/buffer.js'; |
{ | ||
"type": "module", | ||
"name": "@hazae41/base64", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Base64 adapter for WebAssembly and JS implementations", | ||
@@ -25,10 +25,9 @@ "homepage": "https://github.com/hazae41/base64", | ||
"devDependencies": { | ||
"@hazae41/cursor": "^1.1.26", | ||
"@hazae41/phobos": "^1.0.10", | ||
"@rollup/plugin-typescript": "^11.1.3", | ||
"@types/node": "^20.6.0", | ||
"rimraf": "^5.0.1", | ||
"rollup": "^3.29.1", | ||
"rollup-plugin-dts": "^6.0.2", | ||
"rollup-plugin-node-externals": "^6.1.1", | ||
"@hazae41/rimraf": "^1.0.1", | ||
"@rollup/plugin-typescript": "^11.1.5", | ||
"@types/node": "^20.8.3", | ||
"rollup": "^4.0.2", | ||
"rollup-plugin-dts": "^6.1.0", | ||
"rollup-plugin-node-externals": "^6.1.2", | ||
"typescript": "^5.2.2" | ||
@@ -53,9 +52,10 @@ }, | ||
"dependencies": { | ||
"@hazae41/option": "^1.0.21", | ||
"@hazae41/result": "^1.1.4" | ||
"@hazae41/box": "^1.0.5", | ||
"@hazae41/option": "^1.0.25", | ||
"@hazae41/result": "^1.1.7" | ||
}, | ||
"optionalDependencies": { | ||
"@scure/base": "^1.1.3", | ||
"@hazae41/alocer": "^1.0.2" | ||
"@hazae41/alocer": "^1.0.7", | ||
"@scure/base": "^1.1.3" | ||
} | ||
} |
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
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
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
8
39975
5
384
+ Added@hazae41/box@^1.0.5
+ Added@hazae41/box@1.0.14(transitive)
Updated@hazae41/option@^1.0.25
Updated@hazae41/result@^1.1.7