@aws-sdk/util-utf8-browser
Advanced tools
Comparing version 3.32.0 to 3.34.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [3.34.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.33.0...v3.34.0) (2021-09-24) | ||
### Features | ||
* **non-clients:** remove comments from transpiled JS files ([#2813](https://github.com/aws/aws-sdk-js-v3/issues/2813)) ([e6fc7f3](https://github.com/aws/aws-sdk-js-v3/commit/e6fc7f3e0fa74785590ac19e7ed143c916bb9b6e)) | ||
# [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17) | ||
@@ -8,0 +19,0 @@ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toUtf8 = exports.fromUtf8 = void 0; | ||
/** | ||
* Converts a JS string from its native UCS-2/UTF-16 representation into a | ||
* Uint8Array of the bytes used to represent the equivalent characters in UTF-8. | ||
* | ||
* Cribbed from the `goog.crypt.stringToUtf8ByteArray` function in the Google | ||
* Closure library, though updated to use typed arrays. | ||
*/ | ||
const fromUtf8 = (input) => { | ||
@@ -32,10 +25,2 @@ const bytes = []; | ||
exports.fromUtf8 = fromUtf8; | ||
/** | ||
* Converts a typed array of bytes containing UTF-8 data into a native JS | ||
* string. | ||
* | ||
* Partly cribbed from the `goog.crypt.utf8ByteArrayToString` function in the | ||
* Google Closure library, though updated to use typed arrays and to better | ||
* handle astral plane code points. | ||
*/ | ||
const toUtf8 = (input) => { | ||
@@ -64,2 +49,2 @@ let decoded = ""; | ||
exports.toUtf8 = toUtf8; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVyZUpzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3B1cmVKcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTs7Ozs7O0dBTUc7QUFDSSxNQUFNLFFBQVEsR0FBRyxDQUFDLEtBQWE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BTdHJpbmcuZnJvbUNoYXJDb2RlKCgoYnl0ZSAmIDBiMTExMTEpIDw8IDYpIHwgKG5leHRCeXRlICYgMGIxMTExMTEpKTtcbiAgICB9IGVsc2UgaWYgKDBiMTExMTAwMDAgPD0gYnl0ZSAmJiBieXRlIDwgMGIxMDExMDExMDEpIHtcbiAgICAgIGNvbnN0IHN1cnJvZ2F0ZVBhaXIgPSBbYnl0ZSwgaW5wdXRbKytpXSwgaW5wdXRbKytpXSwgaW5wdXRbKytpXV07XG4gICAgICBjb25zdCBlbmNvZGVkID0gXCIlXCIgKyBzdXJyb2dhdGVQYWlyLm1hcCgoYnl0ZVZhbHVlKSA9PiBieXRlVmFsdWUudG9TdHJpbmcoMTYpKS5qb2luKFwiJVwiKTtcbiAgICAgIGRlY29kZWQgKz0gZGVjb2RlVVJJQ29tcG9uZW50KGVuY29kZWQpO1xuICAgIH0gZWxzZSB7XG4gICAgICBkZWNvZGVkICs9IFN0cmluZy5mcm9tQ2hhckNvZGUoXG4gICAgICAgICgoYnl0ZSAmIDBiMTExMSkgPDwgMTIpIHwgKChpbnB1dFsrK2ldICYgMGIxMTExMTEpIDw8IDYpIHwgKGlucHV0WysraV0gJiAwYjExMTExMSlcbiAgICAgICk7XG4gICAgfVxuICB9XG5cbiAgcmV0dXJuIGRlY29kZWQ7XG59O1xuIl19 |
{ | ||
"name": "@aws-sdk/util-utf8-browser", | ||
"version": "3.32.0", | ||
"version": "3.34.0", | ||
"description": "A browser UTF-8 string <-> UInt8Array converter", | ||
@@ -8,5 +8,6 @@ "main": "./dist/cjs/index.js", | ||
"scripts": { | ||
"build": "yarn build:cjs && yarn build:es && yarn build:types", | ||
"build:cjs": "tsc -p tsconfig.cjs.json", | ||
"build:es": "tsc -p tsconfig.es.json", | ||
"build": "yarn build:es && yarn build:cjs", | ||
"build:types": "tsc -p tsconfig.types.json", | ||
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4", | ||
@@ -13,0 +14,0 @@ "test": "jest" |
{ | ||
"compilerOptions": { | ||
"declarationDir": "./dist/types", | ||
"rootDir": "./src", | ||
"outDir": "./dist/cjs", | ||
"baseUrl": "." | ||
"baseUrl": ".", | ||
"outDir": "dist/cjs", | ||
"rootDir": "src" | ||
}, | ||
@@ -8,0 +7,0 @@ "extends": "../../tsconfig.cjs.json", |
{ | ||
"compilerOptions": { | ||
"baseUrl": ".", | ||
"lib": ["es5", "es2015.collection"], | ||
"declarationDir": "./dist/types", | ||
"rootDir": "./src", | ||
"outDir": "./dist/es", | ||
"baseUrl": "." | ||
"outDir": "dist/es", | ||
"rootDir": "src" | ||
}, | ||
@@ -9,0 +8,0 @@ "extends": "../../tsconfig.es.json", |
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
22
61244
313