@aws-sdk/util-base64-node
Advanced tools
Comparing version 0.1.0-preview.1 to 0.1.0-preview.2
@@ -11,3 +11,3 @@ "use strict"; | ||
function fromBase64(input) { | ||
var buffer = util_buffer_from_1.fromString(input, 'base64'); | ||
var buffer = util_buffer_from_1.fromString(input, "base64"); | ||
return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); | ||
@@ -23,6 +23,5 @@ } | ||
function toBase64(input) { | ||
return util_buffer_from_1.fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength) | ||
.toString('base64'); | ||
return util_buffer_from_1.fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("base64"); | ||
} | ||
exports.toBase64 = toBase64; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@aws-sdk/util-base64-node", | ||
"version": "0.1.0-preview.1", | ||
"description": "A Node.JS Base64 <-> UInt8Array converter", | ||
"main": "./build/index.js", | ||
"scripts": { | ||
"prepublishOnly": "tsc", | ||
"pretest": "tsc -p tsconfig.test.json", | ||
"test": "jest" | ||
}, | ||
"author": { | ||
"name": "AWS SDK for JavaScript Team", | ||
"email": "aws-sdk-js@amazon.com", | ||
"url": "https://aws.amazon.com/javascript/" | ||
}, | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@aws-sdk/util-buffer-from": "^0.1.0-preview.1", | ||
"tslib": "^1.8.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^20.0.2", | ||
"@types/node": "^8.10.29", | ||
"jest": "^20.0.4", | ||
"typescript": "^3.0.0" | ||
}, | ||
"types": "./build/index.d.ts", | ||
"gitHead": "960970c0c25938a8d51d1a243d3f21f05acea92e" | ||
"name": "@aws-sdk/util-base64-node", | ||
"version": "0.1.0-preview.2", | ||
"description": "A Node.JS Base64 <-> UInt8Array converter", | ||
"main": "./build/index.js", | ||
"scripts": { | ||
"prepublishOnly": "tsc", | ||
"pretest": "tsc -p tsconfig.test.json", | ||
"test": "jest" | ||
}, | ||
"author": { | ||
"name": "AWS SDK for JavaScript Team", | ||
"email": "", | ||
"url": "https://aws.amazon.com/javascript/" | ||
}, | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@aws-sdk/util-buffer-from": "^0.1.0-preview.2", | ||
"tslib": "^1.8.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^24.0.12", | ||
"@types/node": "^10.0.0", | ||
"jest": "^24.7.1", | ||
"typescript": "~3.4.0" | ||
}, | ||
"types": "./build/index.d.ts" | ||
} |
{ | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "commonjs", | ||
"declaration": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"lib": [ | ||
"es5", | ||
"es2015.collection" | ||
], | ||
"rootDir": "./src", | ||
"outDir": "./build", | ||
"importHelpers": true, | ||
"noEmitHelpers": true | ||
} | ||
} | ||
"compilerOptions": { | ||
"target": "es5", | ||
"module": "commonjs", | ||
"declaration": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"lib": ["es5", "es2015.collection"], | ||
"rootDir": "./src", | ||
"outDir": "./build", | ||
"importHelpers": true, | ||
"noEmitHelpers": true | ||
} | ||
} |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
15199
9
56
0
5