Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/eventstream-marshaller

Package Overview
Dependencies
Maintainers
4
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/eventstream-marshaller - npm Package Compare versions

Comparing version 0.1.0-preview.9 to 0.1.0-preview.10

2

build/EventStreamMarshaller.js

@@ -46,2 +46,2 @@ "use strict";

exports.EventStreamMarshaller = EventStreamMarshaller;
//# sourceMappingURL=EventStreamMarshaller.js.map
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRTdHJlYW1NYXJzaGFsbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL0V2ZW50U3RyZWFtTWFyc2hhbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHVEQUFzRDtBQUV0RCwrQ0FBOEM7QUFDOUMsMkNBQTBDO0FBSTFDOzs7R0FHRztBQUNIO0lBR0UsK0JBQVksTUFBZSxFQUFFLFFBQWlCO1FBQzVDLElBQUksQ0FBQyxnQkFBZ0IsR0FBRyxJQUFJLG1DQUFnQixDQUFDLE1BQU0sRUFBRSxRQUFRLENBQUMsQ0FBQztJQUNqRSxDQUFDO0lBRUQ7OztPQUdHO0lBQ0gsd0NBQVEsR0FBUixVQUFTLEVBQXNDO1lBQXBDLHVCQUFtQixFQUFFLGNBQUk7UUFDbEMsSUFBTSxPQUFPLEdBQUcsSUFBSSxDQUFDLGdCQUFnQixDQUFDLE1BQU0sQ0FBQyxVQUFVLENBQUMsQ0FBQztRQUN6RCxJQUFNLE1BQU0sR0FBRyxPQUFPLENBQUMsVUFBVSxHQUFHLElBQUksQ0FBQyxVQUFVLEdBQUcsRUFBRSxDQUFDO1FBRXpELElBQU0sR0FBRyxHQUFHLElBQUksVUFBVSxDQUFDLE1BQU0sQ0FBQy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gpLCBmYWxzZSk7XG4gICAgb3V0LnNldChoZWFkZXJzLCAxMik7XG4gICAgb3V0LnNldChib2R5LCBoZWFkZXJzLmJ5dGVMZW5ndGggKyAxMik7XG5cbiAgICAvLyBXcml0ZSB0cmFpbGluZyBtZXNzYWdlIGNoZWNrc3VtXG4gICAgdmlldy5zZXRVaW50MzIoXG4gICAgICBsZW5ndGggLSA0LFxuICAgICAgY2hlY2tzdW0udXBkYXRlKG91dC5zdWJhcnJheSg4LCBsZW5ndGggLSA0KSkuZGlnZXN0KCksXG4gICAgICBmYWxzZVxuICAgICk7XG5cbiAgICByZXR1cm4gb3V0O1xuICB9XG5cbiAgLyoqXG4gICAqIENvbnZlcnQgYSBiaW5hcnkgZXZlbnQgc3RyZWFtIG1lc3NhZ2UgaW50byBhIEphdmFTY3JpcHQgb2JqZWN0IHdpdGggYW5cbiAgICogb3BhcXVlLCBiaW5hcnkgYm9keSBhbmQgdGFnZ2VkLCBwYXJzZWQgaGVhZGVycy5cbiAgICovXG4gIHVubWFyc2hhbGwobWVzc2FnZTogQXJyYXlCdWZmZXJWaWV3KTogTWVzc2FnZSB7XG4gICAgY29uc3QgeyBoZWFkZXJzLCBib2R5IH0gPSBzcGxpdE1lc3NhZ2UobWVzc2FnZSk7XG5cbiAgICByZXR1cm4geyBoZWFkZXJzOiB0aGlzLmhlYWRlck1hcnNoYWxsZXIucGFyc2UoaGVhZGVycyksIGJvZHkgfTtcbiAgfVxufVxuIl19

@@ -203,2 +203,2 @@ "use strict";

var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
//# sourceMappingURL=HeaderMarshaller.js.map
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSGVhZGVyTWFyc2hhbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9IZWFkZXJNYXJzaGFsbGVyLnRz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nZXRVaW50OChwb3NpdGlvbisrKSkge1xuICAgICAgICBjYXNlIEhFQURFUl9WQUxVRV9UWVBFLmJvb2xUcnVlOlxuICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgIHR5cGU6IEJPT0xFQU5fVEFHLFxuICAgICAgICAgICAgdmFsdWU6IHRydWVcbiAgICAgICAgICB9O1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlIEhFQURFUl9WQUxVRV9UWVBFLmJvb2xGYWxzZTpcbiAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICB0eXBlOiBCT09MRUFOX1RBRyxcbiAgICAgICAgICAgIHZhbHVlOiBmYWxzZVxuICAgICAgICAgIH07XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgSEVBREVSX1ZBTFVFX1RZUEUuYnl0ZTpcbiAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICB0eXBlOiBCWVRFX1RBRyxcbiAgICAgICAgICAgIHZhbHVlOiBoZWFkZXJzLmdldEludDgocG9zaXRpb24rKylcbiAgICAgICAgICB9O1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlIEhFQURFUl9WQUxVRV9UWVBFLnNob3J0OlxuICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgIHR5cGU6IFNIT1JUX1RBRyxcbiAgICAgICAgICAgIHZhbHVlOiBoZWFkZXJzLmdldEludDE2KHBvc2l0aW9uLCBmYWxzZSlcbiAgICAgICAgICB9O1xuICAgICAgICAgIHBvc2l0aW9uICs9IDI7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgSEVBREVSX1ZBTFVFX1RZUEUuaW50ZWdlcjpcbiAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICB0eXBlOiBJTlRfVEFHLFxuICAgICAgICAgICAgdmFsdWU6IGhlYWRlcnMuZ2V0SW50MzIocG9zaXRpb24sIGZhbHNlKVxuICAgICAgICAgIH07XG4gICAgICAgICAgcG9zaXRpb24gKz0gNDtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5sb25nOlxuICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgIHR5cGU6IExPTkdfVEFHLFxuICAgICAgICAgICAgdmFsdWU6IG5ldyBJbnQ2NChcbiAgICAgICAgICAgICAgbmV3IFVpbnQ4QXJyYXkoaGVhZGVycy5idWZmZXIsIGhlYWRlcnMuYnl0ZU9mZnNldCArIHBvc2l0aW9uLCA4KVxuICAgICAgICAgICAgKVxuICAgICAgICAgIH07XG4gICAgICAgICAgcG9zaXRpb24gKz0gODtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5ieXRlQXJyYXk6XG4gICAgICAgICAgY29uc3QgYmluYXJ5TGVuZ3RoID0gaGVhZGVycy5nZXRVaW50MTYocG9zaXRpb24sIGZhbHNlKTtcbiAgICAgICAgICBwb3NpdGlvbiArPSAyO1xuICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgIHR5cGU6IEJJTkFSWV9UQUcsXG4gICAgICAgICAgICB2YWx1ZTogbmV3IFVpbnQ4QXJyYXkoXG4gICAgICAgICAgICAgIGhlYWRlcnMuYnVmZmVyLFxuICAgICAgICAgICAgICBoZWFkZXJzLmJ5dGVPZmZzZXQgKyBwb3NpdGlvbixcbiAgICAgICAgICAgICAgYmluYXJ5TGVuZ3RoXG4gICAgICAgICAgICApXG4gICAgICAgICAgfTtcbiAgICAgICAgICBwb3NpdGlvbiArPSBiaW5hcnlMZW5ndGg7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgSEVBREVSX1ZBTFVFX1RZUEUuc3RyaW5nOlxuICAgICAgICAgIGNvbnN0IHN0cmluZ0xlbmd0aCA9IGhlYWRlcnMuZ2V0VWludDE2KHBvc2l0aW9uLCBmYWxzZSk7XG4gICAgICAgICAgcG9zaXRpb24gKz0gMjtcbiAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICB0eXBlOiBTVFJJTkdfVEFHLFxuICAgICAgICAgICAgdmFsdWU6IHRoaXMudG9VdGY4KFxuICAgICAgICAgICAgICBuZXcgVWludDhBcnJheShcbiAgICAgICAgICAgICAgICBoZWFkZXJzLmJ1ZmZlcixcbiAgICAgICAgICAgICAgICBoZWFkZXJzLmJ5dGVPZmZzZXQgKyBwb3NpdGlvbixcbiAgICAgICAgICAgICAgICBzdHJpbmdMZW5ndGhcbiAgICAgICAgICAgICAgKVxuICAgICAgICAgICAgKVxuICAgICAgICAgIH07XG4gICAgICAgICAgcG9zaXRpb24gKz0gc3RyaW5nTGVuZ3RoO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlIEhFQURFUl9WQUxVRV9UWVBFLnRpbWVzdGFtcDpcbiAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICB0eXBlOiBUSU1FU1RBTVBfVEFHLFxuICAgICAgICAgICAgdmFsdWU6IG5ldyBEYXRlKFxuICAgICAgICAgICAgICBuZXcgSW50NjQoXG4gICAgICAgICAgICAgICAgbmV3IFVpbnQ4QXJyYXkoaGVhZGVycy5idWZmZXIsIGhlYWRlcnMuYnl0ZU9mZnNldCArIHBvc2l0aW9uLCA4KVxuICAgICAgICAgICAgICApLnZhbHVlT2YoKVxuICAgICAgICAgICAgKVxuICAgICAgICAgIH07XG4gICAgICAgICAgcG9zaXRpb24gKz0gODtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS51dWlkOlxuICAgICAgICAgIGNvbnN0IHV1aWRCeXRlcyA9IG5ldyBVaW50OEFycmF5KFxuICAgICAgICAgICAgaGVhZGVycy5idWZmZXIsXG4gICAgICAgICAgICBoZWFkZXJzLmJ5dGVPZmZzZXQgKyB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ibG9uZ1wiO1xuY29uc3QgQklOQVJZX1RBRyA9IFwiYmluYXJ5XCI7XG5jb25zdCBTVFJJTkdfVEFHID0gXCJzdHJpbmdcIjtcbmNvbnN0IFRJTUVTVEFNUF9UQUcgPSBcInRpbWVzdGFtcFwiO1xuY29uc3QgVVVJRF9UQUcgPSBcInV1aWRcIjtcblxuY29uc3QgVVVJRF9QQVRURVJOID0gL15bYS1mMC05XXs4fS1bYS1mMC05XXs0fS1bYS1mMC05XXs0fS1bYS1mMC05XXs0fS1bYS1mMC05XXsxMn0kLztcbiJdfQ==

@@ -6,2 +6,2 @@ "use strict";

tslib_1.__exportStar(require("./Int64"), exports);
//# sourceMappingURL=index.js.map
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsa0VBQXdDO0FBQ3hDLGtEQUF3QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL0V2ZW50U3RyZWFtTWFyc2hhbGxlclwiO1xuZXhwb3J0ICogZnJvbSBcIi4vSW50NjRcIjtcbmV4cG9ydCAqIGZyb20gXCIuL01lc3NhZ2VcIjtcbiJdfQ==

@@ -58,2 +58,2 @@ "use strict";

}
//# sourceMappingURL=Int64.js.map
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSW50NjQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvSW50NjQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxnRUFBbUQ7QUFFbkQ7Ozs7OztHQU1HO0FBQ0g7SUFDRSxlQUFxQixLQUFpQjtRQUFqQixVQUFLLEdBQUwsS0FBSyxDQUFZO1FBQ3BDLElBQUksS0FBSyxDQUFDLF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YgcmVtYWluaW5nID4gMDtcbiAgICAgIGktLSwgcmVtYWluaW5nIC89IDI1NlxuICAgICkge1xuICAgICAgYnl0ZXNbaV0gPSByZW1haW5pbmc7XG4gICAgfVxuXG4gICAgaWYgKG51bWJlciA8IDApIHtcbiAgICAgIG5lZ2F0ZShieXRlcyk7XG4gICAgfVxuXG4gICAgcmV0dXJuIG5ldyBJbnQ2NChieXRlcyk7XG4gIH1cblxuICAvKipcbiAgICogQ2FsbGVkIGltcGxpY2l0bHkgYnkgaW5maXggYXJpdGhtZXRpYyBvcGVyYXRvcnMuXG4gICAqL1xuICB2YWx1ZU9mKCk6IG51bWJlciB7XG4gICAgY29uc3QgYnl0ZXMgPSB0aGlzLmJ5dGVzLnNsaWNlKDApO1xuICAgIGNvbnN0IG5lZ2F0aXZlID0gYnl0ZXNbMF0gJiAwYjEwMDAwMDAwO1xuICAgIGlmIChuZWdhdGl2ZSkge1xuICAgICAgbmVnYXRlKGJ5dGVzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gcGFyc2VJbnQodG9IZXgoYnl0ZXMpLCAxNikgKiAobmVnYXRpdmUgPyAtMSA6IDEpO1xuICB9XG5cbiAgdG9TdHJpbmcoKSB7XG4gICAgcmV0dXJuIFN0cmluZyh0aGlzLnZhbHVlT2YoKSk7XG4gIH1cbn1cblxuZnVuY3Rpb24gbmVnYXRlKGJ5dGVzOiBVaW50OEFycmF5KTogdm9pZCB7XG4gIGZvciAobGV0IGkgPSAwOyBpIDwgODsgaSsrKSB7XG4gICAgYnl0ZXNbaV0gXj0gMHhmZjtcbiAgfVxuXG4gIGZvciAobGV0IGkgPSA3OyBpID4gLTE7IGktLSkge1xuICAgIGJ5dGVzW2ldKys7XG4gICAgaWYgKGJ5dGVzW2ldICE9PSAwKSBicmVhaztcbiAgfVxufVxuIl19
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=Message.js.map
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJm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VyVmFsdWUge1xuICB0eXBlOiBcImludGVnZXJcIjtcbiAgdmFsdWU6IG51bWJlcjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBMb25nSGVhZGVyVmFsdWUge1xuICB0eXBlOiBcImxvbmdcIjtcbiAgdmFsdWU6IEludDY0O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEJpbmFyeUhlYWRlclZhbHVlIHtcbiAgdHlwZTogXCJiaW5hcnlcIjtcbiAgdmFsdWU6IFVpbnQ4QXJyYXk7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgU3RyaW5nSGVhZGVyVmFsdWUge1xuICB0eXBlOiBcInN0cmluZ1wiO1xuICB2YWx1ZTogc3RyaW5nO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIFRpbWVzdGFtcEhlYWRlclZhbHVlIHtcbiAgdHlwZTogXCJ0aW1lc3RhbXBcIjtcbiAgdmFsdWU6IERhdGU7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgVXVpZEhlYWRlclZhbHVlIHtcbiAgdHlwZTogXCJ1dWlkXCI7XG4gIHZhbHVlOiBzdHJpbmc7XG59XG5cbmV4cG9ydCB0eXBlIE1lc3NhZ2VIZWFkZXJWYWx1ZSA9XG4gIHwgQm9vbGVhbkhlYWRlclZhbHVlXG4gIHwgQnl0ZUhlYWRlclZhbHVlXG4gIHwgU2hvcnRIZWFkZXJWYWx1ZVxuICB8IEludGVnZXJIZWFkZXJWYWx1ZVxuICB8IExvbmdIZWFkZXJWYWx1ZVxuICB8IEJpbmFyeUhlYWRlclZhbHVlXG4gIHwgU3RyaW5nSGVhZGVyVmFsdWVcbiAgfCBUaW1lc3RhbXBIZWFkZXJWYWx1ZVxuICB8IFV1aWRIZWFkZXJWYWx1ZTtcbiJdfQ==

@@ -44,2 +44,2 @@ "use strict";

exports.splitMessage = splitMessage;
//# sourceMappingURL=splitMessage.js.map
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3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ZmZlcixcbiAgICAgIGJ5dGVPZmZzZXQgKyBQUkVMVURFX0xFTkdUSCArIENIRUNLU1VNX0xFTkdUSCArIGhlYWRlckxlbmd0aCxcbiAgICAgIG1lc3NhZ2VMZW5ndGggLVxuICAgICAgICBoZWFkZXJMZW5ndGggLVxuICAgICAgICAoUFJFTFVERV9MRU5HVEggKyBDSEVDS1NVTV9MRU5HVEggKyBDSEVDS1NVTV9MRU5HVEgpXG4gICAgKVxuICB9O1xufVxuIl19

@@ -6,2 +6,39 @@ # Change Log

# [0.1.0-preview.10](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/eventstream-marshaller@0.1.0-preview.3...@aws-sdk/eventstream-marshaller@0.1.0-preview.10) (2019-11-19)
# 0.6.0 (2019-10-30)
# 0.4.0 (2019-09-19)
# 0.3.0 (2019-09-09)
### Features
* commit all clients ([#324](https://github.com/aws/aws-sdk-js-v3/issues/324)) ([cb268ed](https://github.com/aws/aws-sdk-js-v3/commit/cb268ed))
# 0.2.0 (2019-07-12)
### Features
* add npm badges for individual packages ([#251](https://github.com/aws/aws-sdk-js-v3/issues/251)) ([8adc10c](https://github.com/aws/aws-sdk-js-v3/commit/8adc10c))
* update jest v20 to v24 ([#243](https://github.com/aws/aws-sdk-js-v3/issues/243)) ([1e156ab](https://github.com/aws/aws-sdk-js-v3/commit/1e156ab))
# 0.1.0 (2019-04-19)
# [0.1.0-preview.9](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/eventstream-marshaller@0.1.0-preview.3...@aws-sdk/eventstream-marshaller@0.1.0-preview.9) (2019-10-30)

@@ -8,0 +45,0 @@

{
"name": "@aws-sdk/eventstream-marshaller",
"version": "0.1.0-preview.9",
"version": "0.1.0-preview.10",
"scripts": {

@@ -5,0 +5,0 @@ "prepublishOnly": "tsc",

@@ -1,73 +0,65 @@

const { Buffer } = require('buffer');
const {
readdirSync,
readFileSync,
writeFileSync,
} = require('fs');
const {
dirname,
join,
} = require('path');
const { Buffer } = require("buffer");
const { readdirSync, readFileSync, writeFileSync } = require("fs");
const { dirname, join } = require("path");
const HEADER_TYPES = [
'boolean',
'boolean',
'byte',
'short',
'integer',
'long',
'binary',
'string',
'timestamp',
'uuid',
"boolean",
"boolean",
"byte",
"short",
"integer",
"long",
"binary",
"string",
"timestamp",
"uuid"
];
const vectorsDir = join(dirname(__dirname), 'test_vectors');
let vectors = '\n';
const vectorsDir = join(dirname(__dirname), "test_vectors");
let vectors = "\n";
for (const dirName of ['positive', 'negative']) {
const encodedVectorsDir = join(vectorsDir, 'encoded', dirName);
const decodedVectorsDir = join(vectorsDir, 'decoded', dirName);
for (const dirName of ["positive", "negative"]) {
const encodedVectorsDir = join(vectorsDir, "encoded", dirName);
const decodedVectorsDir = join(vectorsDir, "decoded", dirName);
for (const vectorName of readdirSync(encodedVectorsDir)) {
vectors +=
` ${vectorName}: {
expectation: '${dirName === 'positive' ? 'success' : 'failure'}',
encoded: Uint8Array.from([${
readFileSync(join(encodedVectorsDir, vectorName))
.map(byte => byte.toString(10))
.join(', ')
}]),
for (const vectorName of readdirSync(encodedVectorsDir)) {
vectors += ` ${vectorName}: {
expectation: '${dirName === "positive" ? "success" : "failure"}',
encoded: Uint8Array.from([${readFileSync(
join(encodedVectorsDir, vectorName)
)
.map(byte => byte.toString(10))
.join(", ")}]),
`;
if (dirName === 'positive') {
const decoded = JSON.parse(
readFileSync(join(decodedVectorsDir, vectorName))
);
const headers = decoded.headers
.map(declaration =>
` '${declaration.name}': {
if (dirName === "positive") {
const decoded = JSON.parse(
readFileSync(join(decodedVectorsDir, vectorName))
);
const headers = decoded.headers
.map(
declaration =>
` '${declaration.name}': {
type: '${HEADER_TYPES[declaration.type]}',
value: ${headerValue(declaration.type, declaration.value)},
},`
)
.join('\n')
)
.join("\n");
vectors +=
` decoded: {
vectors += ` decoded: {
headers: {
${headers}
},
body: ${writeBuffer(Buffer.from(decoded.payload, 'base64'))},
body: ${writeBuffer(Buffer.from(decoded.payload, "base64"))},
},
`
}
`;
}
vectors += " },\n"
}
vectors += " },\n";
}
}
writeFileSync(
join(dirname(__dirname), 'src', 'TestVectors.fixture.ts'),
`import { TestVectors } from './vectorTypes.fixture';
join(dirname(__dirname), "src", "TestVectors.fixture.ts"),
`import { TestVectors } from './vectorTypes.fixture';
import { Int64 } from './Int64';

@@ -80,25 +72,30 @@

function headerValue(type, vectorRepresentation) {
switch (type) {
case 0:
return 'true';
case 1:
return 'false';
case 5:
return `Int64.fromNumber(${vectorRepresentation})`;
case 6:
return writeBuffer(Buffer.from(vectorRepresentation, 'base64'));
case 7:
return `'${Buffer.from(vectorRepresentation, 'base64').toString()}'`;
case 8:
return `new Date(${vectorRepresentation})`;
case 9:
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)}'`
default:
return vectorRepresentation;
}
switch (type) {
case 0:
return "true";
case 1:
return "false";
case 5:
return `Int64.fromNumber(${vectorRepresentation})`;
case 6:
return writeBuffer(Buffer.from(vectorRepresentation, "base64"));
case 7:
return `'${Buffer.from(vectorRepresentation, "base64").toString()}'`;
case 8:
return `new Date(${vectorRepresentation})`;
case 9:
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)}'`;
default:
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(", ")}])`;
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc