@aws-sdk/eventstream-marshaller
Advanced tools
Comparing version 1.0.0-gamma.3 to 1.0.0-gamma.4
@@ -6,2 +6,10 @@ # Change Log | ||
# [1.0.0-gamma.4](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/eventstream-marshaller@1.0.0-gamma.3...@aws-sdk/eventstream-marshaller@1.0.0-gamma.4) (2020-07-21) | ||
**Note:** Version bump only for package @aws-sdk/eventstream-marshaller | ||
# [1.0.0-gamma.3](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/eventstream-marshaller@1.0.0-gamma.2...@aws-sdk/eventstream-marshaller@1.0.0-gamma.3) (2020-07-13) | ||
@@ -8,0 +16,0 @@ |
const base = require("../../jest.config.base.js"); | ||
module.exports = { | ||
...base | ||
...base, | ||
}; |
{ | ||
"name": "@aws-sdk/eventstream-marshaller", | ||
"version": "1.0.0-gamma.3", | ||
"version": "1.0.0-gamma.4", | ||
"scripts": { | ||
@@ -22,8 +22,8 @@ "prepublishOnly": "yarn build:cjs && yarn build:es", | ||
"@aws-sdk/types": "1.0.0-gamma.3", | ||
"@aws-sdk/util-hex-encoding": "1.0.0-gamma.3", | ||
"@aws-sdk/util-hex-encoding": "1.0.0-gamma.4", | ||
"tslib": "^1.8.0" | ||
}, | ||
"devDependencies": { | ||
"@aws-sdk/util-utf8-browser": "1.0.0-gamma.3", | ||
"@aws-sdk/util-utf8-node": "1.0.0-gamma.3", | ||
"@aws-sdk/util-utf8-browser": "1.0.0-gamma.4", | ||
"@aws-sdk/util-utf8-node": "1.0.0-gamma.4", | ||
"@types/jest": "^26.0.4", | ||
@@ -30,0 +30,0 @@ "@types/node": "^10.0.0", |
@@ -15,3 +15,3 @@ const { Buffer } = require("buffer"); | ||
"timestamp", | ||
"uuid" | ||
"uuid", | ||
]; | ||
@@ -29,6 +29,4 @@ | ||
expectation: '${dirName === "positive" ? "success" : "failure"}', | ||
encoded: Uint8Array.from([${readFileSync( | ||
join(encodedVectorsDir, vectorName) | ||
) | ||
.map(byte => byte.toString(10)) | ||
encoded: Uint8Array.from([${readFileSync(join(encodedVectorsDir, vectorName)) | ||
.map((byte) => byte.toString(10)) | ||
.join(", ")}]), | ||
@@ -38,8 +36,6 @@ `; | ||
if (dirName === "positive") { | ||
const decoded = JSON.parse( | ||
readFileSync(join(decodedVectorsDir, vectorName)) | ||
); | ||
const decoded = JSON.parse(readFileSync(join(decodedVectorsDir, vectorName))); | ||
const headers = decoded.headers | ||
.map( | ||
declaration => | ||
(declaration) => | ||
` '${declaration.name}': { | ||
@@ -90,6 +86,3 @@ type: '${HEADER_TYPES[declaration.type]}', | ||
const hex = Buffer.from(vectorRepresentation, "base64").toString("hex"); | ||
return `'${hex.substr(0, 8)}-${hex.substr(8, 4)}-${hex.substr( | ||
12, | ||
4 | ||
)}-${hex.substr(16, 4)}-${hex.substr(20)}'`; | ||
return `'${hex.substr(0, 8)}-${hex.substr(8, 4)}-${hex.substr(12, 4)}-${hex.substr(16, 4)}-${hex.substr(20)}'`; | ||
default: | ||
@@ -101,5 +94,3 @@ return vectorRepresentation; | ||
function writeBuffer(buffer) { | ||
return `Uint8Array.from([${buffer | ||
.map(byte => byte.toString(10)) | ||
.join(", ")}])`; | ||
return `Uint8Array.from([${buffer.map((byte) => byte.toString(10)).join(", ")}])`; | ||
} |
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
98776
615
+ Added@aws-sdk/util-hex-encoding@1.0.0-gamma.4(transitive)
- Removed@aws-sdk/util-hex-encoding@1.0.0-gamma.3(transitive)