@thirdweb-dev/crypto
Advanced tools
Comparing version 0.2.7-nightly-fab5cd43bed972b0a3f70f0f39a790349672ba72-20240620192731 to 0.2.7-nightly-fe775166d40fdd50faaa8d6da3fcd624f9a450ed-20240622000610
export type TypedArray = | ||
| Int8Array | ||
| Uint8Array | ||
| Uint8ClampedArray | ||
| Int16Array | ||
| Uint16Array | ||
| Int32Array | ||
| Uint32Array | ||
| Float32Array | ||
| Float64Array | ||
| BigInt64Array | ||
| BigUint64Array; | ||
| Int8Array | ||
| Uint8Array | ||
| Uint8ClampedArray | ||
| Int16Array | ||
| Uint16Array | ||
| Int32Array | ||
| Uint32Array | ||
| Float32Array | ||
| Float64Array | ||
| BigInt64Array | ||
| BigUint64Array; | ||
@@ -58,3 +58,5 @@ /** | ||
*/ | ||
export function toUint8Array(value: TypedArray | ArrayBuffer | DataView): Uint8Array; | ||
export function toUint8Array( | ||
value: TypedArray | ArrayBuffer | DataView, | ||
): Uint8Array; | ||
@@ -81,3 +83,6 @@ /** | ||
*/ | ||
export function concatUint8Arrays(arrays: Uint8Array[], totalLength?: number): Uint8Array; | ||
export function concatUint8Arrays( | ||
arrays: Uint8Array[], | ||
totalLength?: number, | ||
): Uint8Array; | ||
@@ -174,3 +179,6 @@ /** | ||
*/ | ||
export function uint8ArrayToBase64(array: Uint8Array, options?: {urlSafe: boolean}): string; | ||
export function uint8ArrayToBase64( | ||
array: Uint8Array, | ||
options?: { urlSafe: boolean }, | ||
): string; | ||
@@ -207,3 +215,6 @@ /** | ||
*/ | ||
export function stringToBase64(string: string, options?: {urlSafe: boolean}): string; | ||
export function stringToBase64( | ||
string: string, | ||
options?: { urlSafe: boolean }, | ||
): string; | ||
@@ -255,2 +266,2 @@ /** | ||
*/ | ||
export function hexToUint8Array(hexString: string): Uint8Array; | ||
export function hexToUint8Array(hexString: string): Uint8Array; |
{ | ||
"name": "@thirdweb-dev/crypto", | ||
"version": "0.2.7-nightly-fab5cd43bed972b0a3f70f0f39a790349672ba72-20240620192731", | ||
"version": "0.2.7-nightly-fe775166d40fdd50faaa8d6da3fcd624f9a450ed-20240622000610", | ||
"main": "dist/thirdweb-dev-crypto.cjs.js", | ||
@@ -39,8 +39,8 @@ "module": "dist/thirdweb-dev-crypto.esm.js", | ||
"eslint": "8.57.0", | ||
"eslint-config-thirdweb": "^0.1.10-nightly-fab5cd43bed972b0a3f70f0f39a790349672ba72-20240620192731", | ||
"eslint-config-thirdweb": "^0.1.10-nightly-fe775166d40fdd50faaa8d6da3fcd624f9a450ed-20240622000610", | ||
"ethers": "^5.7.2", | ||
"js-awe": "^1.0.65", | ||
"tinybench": "^2.6.0", | ||
"typescript": "5.4.4", | ||
"viem": "2.15.1" | ||
"typescript": "5.5.2", | ||
"viem": "2.16.0" | ||
}, | ||
@@ -51,3 +51,3 @@ "engines": { | ||
"scripts": { | ||
"format": "prettier --write 'src/**/*'", | ||
"format": "biome format ./src --write", | ||
"lint": "eslint src/", | ||
@@ -54,0 +54,0 @@ "fix": "eslint src/ --fix", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
108624
2385
0