@endo/base64
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "@endo/base64", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Transcodes base64", | ||
@@ -35,4 +35,4 @@ "keywords": [ | ||
"build": "exit 0", | ||
"build:types": "tsc --build tsconfig.build.json", | ||
"clean:types": "git clean -f '*.d.ts*'", | ||
"prepack": "tsc --build tsconfig.build.json", | ||
"postpack": "git clean -f '*.d.ts*'", | ||
"cover": "c8 ava", | ||
@@ -46,4 +46,4 @@ "lint": "yarn lint:types && yarn lint:eslint", | ||
"devDependencies": { | ||
"ava": "^6.1.2", | ||
"babel-eslint": "^10.0.3", | ||
"ava": "^6.1.3", | ||
"babel-eslint": "^10.1.0", | ||
"c8": "^7.14.0", | ||
@@ -53,6 +53,6 @@ "eslint": "^8.57.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-eslint-comments": "^3.1.2", | ||
"eslint-plugin-import": "^2.29.0", | ||
"eslint-plugin-eslint-comments": "^3.2.0", | ||
"eslint-plugin-import": "^2.29.1", | ||
"prettier": "^3.2.5", | ||
"typescript": "~5.5.0-dev.20240327" | ||
"typescript": "5.5.2" | ||
}, | ||
@@ -76,3 +76,4 @@ "files": [ | ||
"files": [ | ||
"test/**/test-*.js" | ||
"test/**/test-*.*", | ||
"test/**/*.test.*" | ||
], | ||
@@ -84,3 +85,3 @@ "timeout": "2m" | ||
}, | ||
"gitHead": "08e59bc0d262565165636c2e3875bbe3dcb91cf8" | ||
"gitHead": "681b813ccb1fa177905dabf2ed3f5f248cb33ce7" | ||
} |
export function jsEncodeBase64(data: Uint8Array): string; | ||
/** @type {typeof jsEncodeBase64} */ | ||
/** | ||
* Encodes bytes into a Base64 string, as specified in | ||
* https://tools.ietf.org/html/rfc4648#section-4 | ||
* | ||
* @type {typeof jsEncodeBase64} | ||
*/ | ||
export const encodeBase64: typeof jsEncodeBase64; | ||
//# sourceMappingURL=encode.d.ts.map |
@@ -8,5 +8,2 @@ // @ts-check | ||
/** | ||
* Encodes bytes into a Base64 string, as specified in | ||
* https://tools.ietf.org/html/rfc4648#section-4 | ||
* | ||
* XSnap is a JavaScript engine based on Moddable/XS. | ||
@@ -69,4 +66,9 @@ * The algorithm below is orders of magnitude too slow on this VM, but it | ||
/** @type {typeof jsEncodeBase64} */ | ||
/** | ||
* Encodes bytes into a Base64 string, as specified in | ||
* https://tools.ietf.org/html/rfc4648#section-4 | ||
* | ||
* @type {typeof jsEncodeBase64} | ||
*/ | ||
export const encodeBase64 = | ||
globalThis.Base64 !== undefined ? globalThis.Base64.encode : jsEncodeBase64; |
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
25714
230