Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hazae41/base64

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hazae41/base64 - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

6

dist/types/mods/base64/adapter.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc