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.4 to 0.1.0-preview.5

build/EventStreamMarshaller.js.map

4

build/EventStreamMarshaller.d.ts

@@ -1,3 +0,3 @@

import { Message } from './Message';
import { Decoder, Encoder } from '@aws-sdk/types';
import { Message } from "./Message";
import { Decoder, Encoder } from "@aws-sdk/types";
/**

@@ -4,0 +4,0 @@ * A marshaller that can convert binary-packed event stream messages into

@@ -24,3 +24,3 @@ "use strict";

var view = new DataView(out.buffer, out.byteOffset, out.byteLength);
var checksum = new crc32_1.Crc32;
var checksum = new crc32_1.Crc32();
// Format message

@@ -47,2 +47,2 @@ view.setUint32(0, length, false);

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

@@ -1,3 +0,3 @@

import { MessageHeaders } from './Message';
import { Decoder, Encoder } from '@aws-sdk/types';
import { MessageHeaders } from "./Message";
import { Decoder, Encoder } from "@aws-sdk/types";
/**

@@ -4,0 +4,0 @@ * @internal

@@ -51,14 +51,11 @@ "use strict";

switch (header.type) {
case 'boolean':
case "boolean":
return Uint8Array.from([
header.value
? 0 /* boolTrue */
: 1 /* boolFalse */,
: 1 /* boolFalse */
]);
case 'byte':
return Uint8Array.from([
2 /* byte */,
header.value,
]);
case 'short':
case "byte":
return Uint8Array.from([2 /* byte */, header.value]);
case "short":
var shortView = new DataView(new ArrayBuffer(3));

@@ -68,3 +65,3 @@ shortView.setUint8(0, 3 /* short */);

return new Uint8Array(shortView.buffer);
case 'integer':
case "integer":
var intView = new DataView(new ArrayBuffer(5));

@@ -74,3 +71,3 @@ intView.setUint8(0, 4 /* integer */);

return new Uint8Array(intView.buffer);
case 'long':
case "long":
var longBytes = new Uint8Array(9);

@@ -80,3 +77,3 @@ longBytes[0] = 5 /* long */;

return longBytes;
case 'binary':
case "binary":
var binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));

@@ -88,3 +85,3 @@ binView.setUint8(0, 6 /* byteArray */);

return binBytes;
case 'string':
case "string":
var utf8Bytes = this.fromUtf8(header.value);

@@ -97,3 +94,3 @@ var strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));

return strBytes;
case 'timestamp':
case "timestamp":
var tsBytes = new Uint8Array(9);

@@ -103,3 +100,3 @@ tsBytes[0] = 8 /* timestamp */;

return tsBytes;
case 'uuid':
case "uuid":
if (!UUID_PATTERN.test(header.value)) {

@@ -110,3 +107,3 @@ throw new Error("Invalid UUID received: " + header.value);

uuidBytes[0] = 9 /* uuid */;
uuidBytes.set(util_hex_encoding_1.fromHex(header.value.replace(/\-/g, '')), 1);
uuidBytes.set(util_hex_encoding_1.fromHex(header.value.replace(/\-/g, "")), 1);
return uuidBytes;

@@ -126,3 +123,3 @@ }

type: BOOLEAN_TAG,
value: true,
value: true
};

@@ -133,3 +130,3 @@ break;

type: BOOLEAN_TAG,
value: false,
value: false
};

@@ -140,3 +137,3 @@ break;

type: BYTE_TAG,
value: headers.getInt8(position++),
value: headers.getInt8(position++)
};

@@ -147,3 +144,3 @@ break;

type: SHORT_TAG,
value: headers.getInt16(position, false),
value: headers.getInt16(position, false)
};

@@ -155,3 +152,3 @@ position += 2;

type: INT_TAG,
value: headers.getInt32(position, false),
value: headers.getInt32(position, false)
};

@@ -172,3 +169,3 @@ position += 4;

type: BINARY_TAG,
value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength),
value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength)
};

@@ -182,3 +179,3 @@ position += binaryLength;

type: STRING_TAG,
value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength)),
value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength))
};

@@ -190,3 +187,3 @@ position += stringLength;

type: TIMESTAMP_TAG,
value: new Date(new Int64_1.Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()),
value: new Date(new Int64_1.Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf())
};

@@ -200,3 +197,3 @@ position += 8;

type: UUID_TAG,
value: util_hex_encoding_1.toHex(uuidBytes.subarray(0, 4)) + "-" + util_hex_encoding_1.toHex(uuidBytes.subarray(4, 6)) + "-" + util_hex_encoding_1.toHex(uuidBytes.subarray(6, 8)) + "-" + util_hex_encoding_1.toHex(uuidBytes.subarray(8, 10)) + "-" + util_hex_encoding_1.toHex(uuidBytes.subarray(10)),
value: util_hex_encoding_1.toHex(uuidBytes.subarray(0, 4)) + "-" + util_hex_encoding_1.toHex(uuidBytes.subarray(4, 6)) + "-" + util_hex_encoding_1.toHex(uuidBytes.subarray(6, 8)) + "-" + util_hex_encoding_1.toHex(uuidBytes.subarray(8, 10)) + "-" + util_hex_encoding_1.toHex(uuidBytes.subarray(10))
};

@@ -213,13 +210,12 @@ break;

exports.HeaderMarshaller = HeaderMarshaller;
;
var BOOLEAN_TAG = 'boolean';
var BYTE_TAG = 'byte';
var SHORT_TAG = 'short';
var INT_TAG = 'integer';
var LONG_TAG = 'long';
var BINARY_TAG = 'binary';
var STRING_TAG = 'string';
var TIMESTAMP_TAG = 'timestamp';
var UUID_TAG = 'uuid';
var BOOLEAN_TAG = "boolean";
var BYTE_TAG = "byte";
var SHORT_TAG = "short";
var INT_TAG = "integer";
var LONG_TAG = "long";
var BINARY_TAG = "binary";
var STRING_TAG = "string";
var TIMESTAMP_TAG = "timestamp";
var UUID_TAG = "uuid";
var UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSGVhZGVyTWFyc2hhbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9IZWFkZXJNYXJzaGFsbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVBLGdFQUE0RDtBQUM1RCxpQ0FBZ0M7QUFFaEM7O0dBRUc7QUFDSDtJQUNJLDBCQUNxQixNQUFlLEVBQ2YsUUFBaUI7UUFEakIsV0FBTSxHQUFOLE1BQU0sQ0FBUztRQUNmLGFBQVEsR0FBUixRQUFRLENBQVM7SUFDbkMsQ0FBQztJQUVKLGlDQUFNLEdBQU4sVUFBTyxPQUF1Qjs7UUFDMUIsSUFBTSxNQUFNLEdBQXNCLEVBQUUsQ0FBQzs7WUFFckMsS0FBeUIsSUFBQSxLQUFBLGlCQUFBLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLENBQUEsZ0JBQUEsNEJBQUU7Z0JB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KyBieXRlcy5ieXRlTGVuZ3RoLCAwKVxuICAgICAgICApO1xuICAgICAgICBsZXQgcG9zaXRpb24gPSAwO1xuICAgICAgICBmb3IgKGNvbnN0IGNodW5rIG9mIGNodW5rcykge1xuICAgICAgICAgICAgb3V0LnNldChjaHVuaywgcG9zaXRpb24pO1xuICAgICAgICAgICAgcG9zaXRpb24gKz0gY2h1bmsuYnl0ZUxlbmd0aDtcbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBvdXQ7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBmb3JtYXRIZWFkZXJWYWx1ZShoZWFkZXI6IE1lc3NhZ2VIZWFkZXJWYWx1ZSk6IFVpbnQ4QXJyYXkge1xuICAgICAgICBzd2l0Y2ggKGhlYWRlci50eXBlKSB7XG4gICAgICAgICAgICBjYXNlICdib29sZWFuJzpcbiAgICAgICAgICAgICAgICByZXR1cm4gVWludDhBcnJheS5mcm9tKFtcbiAgICAgICAgICAgICAgICAgICAgaGVhZGVyLnZhbHVlXG4gICAgICAgICAgICAgICAgICAgICAgICA/IEhFQURFUl9WQUxVRV9UWVBFLmJvb2xUcnVlXG4gICAgICAgICAgICAgICAgICAgICAgICA6IEhFQURFUl9WQUxVRV9UWVBFLmJvb2xGYWxzZSxcbiAgICAgICAgICAgICAgICBdKTtcbiAgICAgICAgICAgIGNhc2UgJ2J5dGUnOlxuICAgICAgICAgICAgICAgIHJldHVybiBVaW50OEFycmF5LmZyb20oW1xuICAgICAgICAgICAgICAgICAgICBIRUFERVJfVkFMVUVfVFlQRS5ieXRlLFxuICAgICAgICAgICAgICAgICAgICBoZWFkZXIudmFsdWUsXG4gICAgICAgICAgICAgICAgXSk7XG4gICAgICAgICAgICBjYXNlICdzaG9ydCc6XG4gICAgICAgICAgICAgICAgY29uc3Qgc2hvcnRWaWV3ID0gbmV3IERhdGFWaWV3KG5ldyBBcnJheUJ1ZmZlcigzKSk7XG4gICAgICAgICAgICAgICAgc2hvcnRWaWV3LnNldFVpbnQ4KDAsIEhFQURFUl9WQUxVRV9UWVBFLnNob3J0KTtcbiAgICAgICAgICAgICAgICBzaG9ydFZpZXcuc2V0SW50MTYoMSwgaGVhZGVyLnZhbHVlLCBmYWxzZSk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBVaW50OEFycmF5KHNob3J0Vmlldy5idWZmZXIpO1xuICAgICAgICAgICAgY2FzZSAnaW50ZWdlcic6XG4gICAgICAgICAgICAgICAgY29uc3QgaW50VmlldyA9IG5ldyBEYXRhVmlldyhuZXcgQXJyYXlCdWZmZXIoNSkpO1xuICAgICAgICAgICAgICAgIGludFZpZXcuc2V0VWludDgoMCwgSEVBREVSX1ZBTFVFX1RZUEUuaW50ZWdlcik7XG4gICAgICAgICAgICAgICAgaW50Vmlldy5zZXRJbnQzMigxLCBoZWFkZXIudmFsdWUsIGZhbHNlKTtcbiAgICAgICAgICAgICAgICByZXR1cm4gbmV3IFVpbnQ4QXJyYXkoaW50Vmlldy5idWZmZXIpO1xuICAgICAgICAgICAgY2FzZSAnbG9uZyc6XG4gICAgICAgICAgICAgICAgY29uc3QgbG9uZ0J5dGVzID0gbmV3IFVpbnQ4QXJyYXkoOSk7XG4gICAgICAgICAgICAgICAgbG9uZ0J5dGVzWzBdID0gSEVBREVSX1ZBTFVFX1RZUEUubG9uZztcbiAgICAgICAgICAgICAgICBsb25nQnl0ZXMuc2V0KGhlYWRlci52YWx1ZS5ieXRlcywgMSk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGxvbmdCeXRlcztcbiAgICAgICAgICAgIGNhc2UgJ2JpbmFyeSc6XG4gICAgICAgICAgICAgICAgY29uc3QgYmluVmlldyA9IG5ldyBEYXRhVmlldyhcbiAgICAgICAgICAgICAgICAgICAgbmV3IEFycmF5QnVmZmVyKDMgKyBoZWFkZXIudmFsdWUuYnl0ZUxlbmd0aClcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgIGJpblZpZXcuc2V0VWludDgoMCwgSEVBREVSX1ZBTFVFX1RZUEUuYnl0ZUFycmF5KTtcbiAgICAgICAgICAgICAgICBiaW5WaWV3LnNldFVpbnQxNigxLCBoZWFkZXIudmFsdWUuYnl0ZUxlbmd0aCwgZmFsc2UpO1xuICAgICAgICAgICAgICAgIGNvbnN0IGJpbkJ5dGVzID0gbmV3IFVpbnQ4QXJyYXkoYmluVmlldy5idWZmZXIpO1xuICAgICAgICAgICAgICAgIGJpbkJ5dGVzLnNldChoZWFkZXIudmFsdWUsIDMpO1xuICAgICAgICAgICAgICAgIHJldHVybiBiaW5CeXRlcztcbiAgICAgICAgICAgIGNhc2UgJ3N0cmluZyc6XG4gICAgICAgICAgICAgICAgY29uc3QgdXRmOEJ5dGVzID0gdGhpcy5mcm9tVXRmOChoZWFkZXIudmFsdWUpO1xuICAgICAgICAgICAgICAgIGNvbnN0IHN0clZpZXcgPSBuZXcgRGF0YVZpZXcoXG4gICAgICAgICAgICAgICAgICAgIG5ldyBBcnJheUJ1ZmZlcigzICsgdXRmOEJ5dGVzLmJ5dGVMZW5ndGgpXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICBzdHJWaWV3LnNldFVpbnQ4KDAsIEhFQURFUl9WQUxVRV9UWVBFLnN0cmluZyk7XG4gICAgICAgICAgICAgICAgc3RyVmlldy5zZXRVaW50MTYoMSwgdXRmOEJ5dGVzLmJ5dGVMZW5ndGgsIGZhbHNlKTtcbiAgICAgICAgICAgICAgICBjb25zdCBzdHJCeXRlcyA9IG5ldyBVaW50OEFycmF5KHN0clZpZXcuYnVmZmVyKTtcbiAgICAgICAgICAgICAgICBzdHJCeXRlcy5zZXQodXRmOEJ5dGVzLCAzKTtcbiAgICAgICAgICAgICAgICByZXR1cm4gc3RyQnl0ZXM7XG4gICAgICAgICAgICBjYXNlICd0aW1lc3RhbXAnOlxuICAgICAgICAgICAgICAgIGNvbnN0IHRzQnl0ZXMgPSBuZXcgVWludDhBcnJheSg5KTtcbiAgICAgICAgICAgICAgICB0c0J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GY4KG5ldyBVaW50OEFycmF5KFxuICAgICAgICAgICAgICAgIGhlYWRlcnMuYnVmZmVyLFxuICAgICAgICAgICAgICAgIGhlYWRlcnMuYnl0ZU9mZnNldCArIHBvc2l0aW9uLFxuICAgICAgICAgICAgICAgIG5hbWVMZW5ndGhcbiAgICAgICAgICAgICkpO1xuICAgICAgICAgICAgcG9zaXRpb24gKz0gbmFtZUxlbmd0aDtcblxuICAgICAgICAgICAgc3dpdGNoIChoZWFkZXJzLmdldFVpbnQ4KHBvc2l0aW9uKyspKSB7XG4gICAgICAgICAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5ib29sVHJ1ZTpcbiAgICAgICAgICAgICAgICAgICAgb3V0W25hbWVdID0ge1xuICAgICAgICAgICAgICAgICAgICAgICAgdHlwZTogQk9PTEVBTl9UQUcsXG4gICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5ib29sRmFsc2U6XG4gICAgICAgICAgICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6IEJPT0xFQU5fVEFHLFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IGZhbHNlLFxuICAgICAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICBjYXNlIEhFQURFUl9WQUxVRV9UWVBFLmJ5dGU6XG4gICAgICAgICAgICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6IEJZVEVfVEFHLFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IGhlYWRlcnMuZ2V0SW50OChwb3NpdGlvbisrKSxcbiAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5zaG9ydDpcbiAgICAgICAgICAgICAgICAgICAgb3V0W25hbWVdID0ge1xuICAgICAgICAgICAgICAgICAgICAgICAgdHlwZTogU0hPUlRfVEFHLFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IGhlYWRlcnMuZ2V0SW50MTYocG9zaXRpb24sIGZhbHNlKSxcbiAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgcG9zaXRpb24gKz0gMjtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5pbnRlZ2VyOlxuICAgICAgICAgICAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0eXBlOiBJTlRfVEFHLFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IGhlYWRlcnMuZ2V0SW50MzIocG9zaXRpb24sIGZhbHNlKSxcbiAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgcG9zaXRpb24gKz0gNDtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5sb25nOlxuICAgICAgICAgICAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0eXBlOiBMT05HX1RBRyxcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOiBuZXcgSW50NjQobmV3IFVpbnQ4QXJyYXkoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVycy5idWZmZXIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVycy5ieXRlT2Zmc2V0ICsgcG9zaXRpb24sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgOFxuICAgICAgICAgICAgICAgICAgICAgICAgKSlcbiAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICAgICAgcG9zaXRpb24gKz0gODtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5ieXRlQXJyYXk6XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGJpbmFyeUxlbmd0aCA9IGhlYWRlcnMuZ2V0VWludDE2KHBvc2l0aW9uLCBmYWxzZSk7XG4gICAgICAgICAgICAgICAgICAgIHBvc2l0aW9uICs9IDI7XG4gICAgICAgICAgICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6IEJJTkFSWV9UQUcsXG4gICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTogbmV3IFVpbnQ4QXJyYXkoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVycy5idWZmZXIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVycy5ieXRlT2Zmc2V0ICsgcG9zaXRpb24sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYmluYXJ5TGVuZ3RoXG4gICAgICAgICAgICAgICAgICAgICAgICApLFxuICAgICAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgICAgICBwb3NpdGlvbiArPSBiaW5hcnlMZW5ndGg7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIGNhc2UgSEVBREVSX1ZBTFVFX1RZUEUuc3RyaW5nOlxuICAgICAgICAgICAgICAgICAgICBjb25zdCBzdHJpbmdMZW5ndGggPSBoZWFkZXJzLmdldFVpbnQxNihwb3NpdGlvbiwgZmFsc2UpO1xuICAgICAgICAgICAgICAgICAgICBwb3NpdGlvbiArPSAyO1xuICAgICAgICAgICAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0eXBlOiBTVFJJTkdfVEFHLFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IHRoaXMudG9VdGY4KG5ldyBVaW50OEFycmF5KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlcnMuYnVmZmVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlcnMuYnl0ZU9mZnNldCArIHBvc2l0aW9uLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0cmluZ0xlbmd0aFxuICAgICAgICAgICAgICAgICAgICAgICAgKSksXG4gICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgIHBvc2l0aW9uICs9IHN0cmluZ0xlbmd0aDtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS50aW1lc3RhbXA6XG4gICAgICAgICAgICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6IFRJTUVTVEFNUF9UQUcsXG4gICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTogbmV3IERhdGUobmV3IEludDY0KG5ldyBVaW50OEFycmF5KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlcnMuYnVmZmVyLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlcnMuYnl0ZU9mZnNldCArIHBvc2l0aW9uLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDhcbiAgICAgICAgICAgICAgICAgICAgICAgICkpLnZhbHVlT2YoKSksXG4gICAgICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICAgICAgICAgIHBvc2l0aW9uICs9IDg7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIGNhc2UgSEVBREVSX1ZBTFVFX1RZUEUudXVpZDpcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgdXVpZEJ5dGVzID0gbmV3IFVpbnQ4QXJyYXkoXG4gICAgICAgICAgICAgICAgICAgICAgICBoZWFkZXJzLmJ1ZmZlcixcbiAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRlcnMuYnl0ZU9mZnNldCArIHBvc2l0aW9uLFxuICAgICAgICAgICAgICAgICAgICAgICAgMTZcbiAgICAgICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICAgICAgcG9zaXRpb24gKz0gMTY7XG4gICAgICAgICAgICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6IFVVSURfVEFHLFxuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IGAke1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRvSGV4KHV1aWRCeXRlcy5zdWJhcnJheSgwLCA0KSlcbiAgICAgICAgICAgICAgICAgICAgICAgIH0tJHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0b0hleCh1dWlkQnl0ZXMuc3ViYXJyYXkoNCwgNikpXG4gICAgICAgICAgICAgICAgICAgICAgICB9LSR7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9IZXgodXVpZEJ5dGVzLnN1YmFycmF5KDYsIDgpKVxuICAgICAgICAgICAgICAgICAgICAgICAgfS0ke1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRvSGV4KHV1aWRCeXRlcy5zdWJhcnJheSg4LCAxMCkpXG4gICAgICAgICAgICAgICAgICAgICAgICB9LSR7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdG9IZXgodXVpZEJ5dGVzLnN1YmFycmF5KDEwKSlcbiAgICAgICAgICAgICAgICAgICAgICAgIH1gLFxuICAgICAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICBkZWZhdWx0OlxuICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoYFVucmVjb2duaXplZCBoZWFkZXIgdHlwZSB0YWdgKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBvdXQ7XG4gICAgfVxufVxuXG5jb25zdCBlbnVtIEhFQURFUl9WQUxVRV9UWVBFIHtcbiAgICBib29sVHJ1ZSA9IDAsXG4gICAgYm9vbEZhbHNlLFxuICAgIGJ5dGUsXG4gICAgc2hvcnQsXG4gICAgaW50ZWdlcixcbiAgICBsb25nLFxuICAgIGJ5dGVBcnJheSxcbiAgICBzdHJpbmcsXG4gICAgdGltZXN0YW1wLFxuICAgIHV1aWQsXG59O1xuXG5jb25zdCBCT09MRUFOX1RBRyA9ICdib29sZWFuJztcbmNvbnN0IEJZVEVfVEFHID0gJ2J5dGUnO1xuY29uc3QgU0hPUlRfVEFHID0gJ3Nob3J0JztcbmNvbnN0IElOVF9UQUcgPSAnaW50ZWdlcic7XG5jb25zdCBMT05HX1RBRyA9ICdsb25nJztcbmNvbnN0IEJJTkFSWV9UQUcgPSAnYmluYXJ5JztcbmNvbnN0IFNUUklOR19UQUcgPSAnc3RyaW5nJztcbmNvbnN0IFRJTUVTVEFNUF9UQUcgPSAndGltZXN0YW1wJztcbmNvbnN0IFVVSURfVEFHID0gJ3V1aWQnO1xuXG5jb25zdCBVVUlEX1BBVFRFUk4gPSAvXlthLWYwLTldezh9LVthLWYwLTldezR9LVthLWYwLTldezR9LVthLWYwLTldezR9LVthLWYwLTldezEyfSQvO1xuIl19
//# sourceMappingURL=HeaderMarshaller.js.map

@@ -1,3 +0,3 @@

export * from './EventStreamMarshaller';
export * from './Int64';
export * from './Message';
export * from "./EventStreamMarshaller";
export * from "./Int64";
export * from "./Message";

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

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

@@ -15,3 +15,3 @@ "use strict";

if (bytes.byteLength !== 8) {
throw new Error('Int64 buffers must be exactly 8 bytes');
throw new Error("Int64 buffers must be exactly 8 bytes");
}

@@ -51,3 +51,3 @@ }

for (var i = 0; i < 8; i++) {
bytes[i] ^= 0xFF;
bytes[i] ^= 0xff;
}

@@ -60,2 +60,2 @@ for (var i = 7; i > -1; i--) {

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSW50NjQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvSW50NjQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxnRUFBbUQ7QUFFbkQ7Ozs7OztHQU1HO0FBQ0g7SUFDSSxlQUFxQixLQUFpQjtRQUFqQixVQUFLLEdBQUwsS0FBSyxDQUFZO1FBQ2xDLElBQUksS0FBSyxDQUFDLFVBQVUsS0FBSyxDQUFDLEVBQUU7WUFDeEIsTUFBTSxJQUFJLEtBQUssQ0FBQyx1Q0FBdUMsQ0FBQyxDQUFBO1NBQzNEO0lBQ0wsQ0FBQztJQUVNLGdCQUFVLEdBQWpCLFVBQWtCLE1BQWM7UUFDNUIsSUFBSSxNQUFNLEdBQUcsbUJBQW1CLElBQUksTUFBTSxHQUFHLENBQUMsbUJBQW1CLEVBQUU7WUFDL0QsTUFBTSxJQUFJLEtBQUssQ0FDUixNQUFNLHdFQUFxRSxDQUNqRixDQUFDO1N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xuICAgICAgICByZXR1cm4gbmV3IEludDY0KGJ5dGVzKTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBDYWxsZWQgaW1wbGljaXRseSBieSBpbmZpeCBhcml0aG1ldGljIG9wZXJhdG9ycy5cbiAgICAgKi9cbiAgICB2YWx1ZU9mKCk6IG51bWJlciB7XG4gICAgICAgIGNvbnN0IGJ5dGVzID0gdGhpcy5ieXRlcy5zbGljZSgwKVxuICAgICAgICBjb25zdCBuZWdhdGl2ZSA9IGJ5dGVzWzBdICYgMGIxMDAwMDAwMFxuICAgICAgICBpZiAobmVnYXRpdmUpIHtcbiAgICAgICAgICAgIG5lZ2F0ZShieXRlcyk7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gcGFyc2VJbnQodG9IZXgoYnl0ZXMpLCAxNikgKiAobmVnYXRpdmUgPyAtMSA6IDEpXG4gICAgfVxuXG4gICAgdG9TdHJpbmcoKSB7XG4gICAgICAgIHJldHVybiBTdHJpbmcodGhpcy52YWx1ZU9mKCkpXG4gICAgfVxufVxuXG5mdW5jdGlvbiBuZWdhdGUoYnl0ZXM6IFVpbnQ4QXJyYXkpOiB2b2lkIHtcbiAgICBmb3IgKGxldCBpID0gMDsgaSA8IDg7IGkrKykge1xuICAgICAgICBieXRlc1tpXSBePSAweEZGXG4gICAgfVxuXG4gICAgZm9yIChsZXQgaSA9IDc7IGkgPiAtMTsgaS0tKSB7XG4gICAgICAgIGJ5dGVzW2ldKytcbiAgICAgICAgaWYgKGJ5dGVzW2ldICE9PSAwKSBicmVha1xuICAgIH1cbn1cbiJdfQ==
//# sourceMappingURL=Int64.js.map

@@ -1,2 +0,2 @@

import { Int64 } from './Int64';
import { Int64 } from "./Int64";
/**

@@ -15,37 +15,37 @@ * An event stream message. The headers and body properties will always be

export interface BooleanHeaderValue {
type: 'boolean';
type: "boolean";
value: boolean;
}
export interface ByteHeaderValue {
type: 'byte';
type: "byte";
value: number;
}
export interface ShortHeaderValue {
type: 'short';
type: "short";
value: number;
}
export interface IntegerHeaderValue {
type: 'integer';
type: "integer";
value: number;
}
export interface LongHeaderValue {
type: 'long';
type: "long";
value: Int64;
}
export interface BinaryHeaderValue {
type: 'binary';
type: "binary";
value: Uint8Array;
}
export interface StringHeaderValue {
type: 'string';
type: "string";
value: string;
}
export interface TimestampHeaderValue {
type: 'timestamp';
type: "timestamp";
value: Date;
}
export interface UuidHeaderValue {
type: 'uuid';
type: "uuid";
value: string;
}
export declare type MessageHeaderValue = BooleanHeaderValue | ByteHeaderValue | ShortHeaderValue | IntegerHeaderValue | LongHeaderValue | BinaryHeaderValue | StringHeaderValue | TimestampHeaderValue | UuidHeaderValue;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWVzc2FnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9NZXNzYWdlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbnQ2NCB9IGZyb20gJy4vSW50NjQnO1xuXG4vKipcbiAqIEFuIGV2ZW50IHN0cmVhbSBtZXNzYWdlLiBUaGUgaGVhZGVycyBhbmQgYm9keSBwcm9wZXJ0aWVzIHdpbGwgYWx3YXlzIGJlXG4gKiBkZWZpbmVkLCB3aXRoIGVtcHR5IGhlYWRlcnMgcmVwcmVzZW50ZWQgYXMgYW4gb2JqZWN0IHdpdGggbm8ga2V5cyBhbmQgYW5cbiAqIGVtcHR5IGJvZHkgcmVwcmVzZW50ZWQgYXMgYSB6ZXJvLWxlbmd0aCBVaW50OEFycmF5LlxuICovXG5leHBvcnQgaW50ZXJmYWNlIE1lc3NhZ2Uge1xuICAgIGhlYWRlcnM6IE1lc3NhZ2VIZWFkZXJzO1xuICAgIGJvZHk6IFVpbnQ4QXJyYXk7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2U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xuXG5leHBvcnQgdHlwZSBNZXNzYWdlSGVhZGVyVmFsdWUgPVxuICAgIEJvb2xlYW5IZWFkZXJWYWx1ZSB8XG4gICAgQnl0ZUhlYWRlclZhbHVlIHxcbiAgICBTaG9ydEhlYWRlclZhbHVlIHxcbiAgICBJbnRlZ2VySGVhZGVyVmFsdWUgfFxuICAgIExvbmdIZWFkZXJWYWx1ZSB8XG4gICAgQmluYXJ5SGVhZGVyVmFsdWUgfFxuICAgIFN0cmluZ0hlYWRlclZhbHVlIHxcbiAgICBUaW1lc3RhbXBIZWFkZXJWYWx1ZSB8XG4gICAgVXVpZEhlYWRlclZhbHVlO1xuIl19
//# sourceMappingURL=Message.js.map

@@ -18,3 +18,3 @@ "use strict";

if (byteLength < MINIMUM_MESSAGE_LENGTH) {
throw new Error('Provided message too short to accommodate event stream message overhead');
throw new Error("Provided message too short to accommodate event stream message overhead");
}

@@ -24,3 +24,3 @@ var view = new DataView(buffer, byteOffset, byteLength);

if (byteLength !== messageLength) {
throw new Error('Reported message length does not match received message length');
throw new Error("Reported message length does not match received message length");
}

@@ -30,3 +30,3 @@ var headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false);

var expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false);
var checksummer = (new crc32_1.Crc32).update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
var checksummer = new crc32_1.Crc32().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH));
if (expectedPreludeChecksum !== checksummer.digest()) {

@@ -41,6 +41,8 @@ throw new Error("The prelude checksum specified in the message (" + expectedPreludeChecksum + ") does not match the calculated CRC32 checksum (" + checksummer.digest() + ")");

headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength),
body: new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength, messageLength - headerLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH))
body: new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength, messageLength -
headerLength -
(PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH))
};
}
exports.splitMessage = splitMessage;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BsaXRNZXNzYWdlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3NwbGl0TWVzc2FnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUEwQztBQUUxQyx1REFBdUQ7QUFDdkQsSUFBTSxxQkFBcUIsR0FBRyxDQUFDLENBQUM7QUFDaEMseUNBQXlDO0FBQ3pDLElBQU0sY0FBYyxHQUFHLHFCQUFxQixHQUFHLENBQUMsQ0FBQztBQUNqRCxxQ0FBcUM7QUFDckMsSUFBTSxlQUFlLEdBQUcsQ0FBQyxDQUFDO0FBQzFCLG1GQUFtRjtBQUNuRixJQUFNLHNCQUFzQixHQUFHLGNBQWMsR0FBRyxlQUFlLEdBQUcsQ0FBQyxDQUFDO0FBVXBFOztHQUVHO0FBQ0gsU0FBZ0IsWUFBWSxDQUN4QixFQUFtRDtRQUFqRCwwQkFBVSxFQUFFLDBCQUFVLEVBQUUsa0JBQU07SUFFaEMsSUFBSSxVQUFVLEdBQUcsc0JBQXNCLEVBQUU7UUFDckMsTUFBTSxJQUFJLEtBQUssQ0FDWCx5RUFBeUUsQ0FDNUUsQ0FBQztLQUNMO0lBRUQsSUFBTSxJQUFJLEdBQUcsSUFBSSxRQUFRLENBQUMsTUFBTSxFQUFFLFVBQVUsRUFBRSxVQUFVLENBQUMsQ0FBQztJQUUxRCxJQUFNLGFBQWEsR0FBRyxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUMsRUFBRSxLQUFLLENBQUMsQ0FBQztJQUUvQyxJQUFJLFVBQVUsS0FBSyxhQUFhLEVBQUU7UUFDOUIsTUFBTSxJQ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ICAgICAgICBjaGVja3N1bW1lci5kaWdlc3QoKVxuICAgICAgICAgICAgfSkgZGlkIG5vdCBtYXRjaCB0aGUgZXhwZWN0ZWQgdmFsdWUgb2YgJHtleHBlY3RlZE1lc3NhZ2VDaGVja3N1bX1gXG4gICAgICAgIClcbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgICBoZWFkZXJzOiBuZXcgRGF0YVZpZXcoXG4gICAgICAgICAgICBidWZmZXIsXG4gICAgICAgICAgICBieXRlT2Zmc2V0ICsgUFJFTFVERV9MRU5HVEggKyBDSEVDS1NVTV9MRU5HVEgsXG4gICAgICAgICAgICBoZWFkZXJMZW5ndGhcbiAgICAgICAgKSxcbiAgICAgICAgYm9keTogbmV3IFVpbnQ4QXJyYXkoXG4gICAgICAgICAgICBidWZmZXIsXG4gICAgICAgICAgICBieXRlT2Zmc2V0ICsgUFJFTFVERV9MRU5HVEggKyBDSEVDS1NVTV9MRU5HVEggKyBoZWFkZXJMZW5ndGgsXG4gICAgICAgICAgICBtZXNzYWdlTGVuZ3RoIC0gaGVhZGVyTGVuZ3RoIC0gKFxuICAgICAgICAgICAgICAgIFBSRUxVREVfTEVOR1RIICsgQ0hFQ0tTVU1fTEVOR1RIICsgQ0hFQ0tTVU1fTEVOR1RIXG4gICAgICAgICAgICApXG4gICAgICAgIClcbiAgICB9O1xufVxuIl19
//# sourceMappingURL=splitMessage.js.map

@@ -6,12 +6,24 @@ # Change Log

# [0.1.0-preview.4](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.4) (2019-04-19)
# [0.1.0-preview.5](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.5) (2019-07-12)
**Note:** Version bump only for package @aws-sdk/eventstream-marshaller
### 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.4](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.4) (2019-04-19)
**Note:** Version bump only for package @aws-sdk/eventstream-marshaller
# [0.1.0-preview.3](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/eventstream-marshaller@0.1.0-preview.2...@aws-sdk/eventstream-marshaller@0.1.0-preview.3) (2019-03-27)
**Note:** Version bump only for package @aws-sdk/eventstream-marshaller
{
"name": "@aws-sdk/eventstream-marshaller",
"version": "0.1.0-preview.4",
"scripts": {
"prepublishOnly": "tsc",
"pretest": "tsc -p tsconfig.test.json",
"test": "jest --coverage --mapCoverage"
},
"main": "./build/index.js",
"types": "./build/index.d.ts",
"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-crypto/crc32": "^0.1.0-preview.1",
"@aws-sdk/types": "^0.1.0-preview.3",
"@aws-sdk/util-hex-encoding": "^0.1.0-preview.1",
"tslib": "^1.8.0"
},
"devDependencies": {
"@aws-sdk/util-utf8-universal": "^0.1.0-preview.1",
"@types/jest": "^20.0.2",
"@types/node": "^8.10.29",
"jest": "^20.0.4",
"typescript": "^3.0.0"
}
"name": "@aws-sdk/eventstream-marshaller",
"version": "0.1.0-preview.5",
"scripts": {
"prepublishOnly": "tsc",
"pretest": "tsc -p tsconfig.test.json",
"test": "jest --coverage"
},
"main": "./build/index.js",
"types": "./build/index.d.ts",
"author": {
"name": "AWS SDK for JavaScript Team",
"email": "",
"url": "https://aws.amazon.com/javascript/"
},
"license": "Apache-2.0",
"dependencies": {
"@aws-crypto/crc32": "^0.1.0-preview.1",
"@aws-sdk/types": "^0.1.0-preview.4",
"@aws-sdk/util-hex-encoding": "^0.1.0-preview.2",
"tslib": "^1.8.0"
},
"devDependencies": {
"@aws-sdk/util-utf8-universal": "^0.1.0-preview.2",
"@types/jest": "^24.0.12",
"@types/node": "^10.0.0",
"jest": "^24.7.1",
"typescript": "~3.4.0"
}
}
# @aws-sdk/eventstream-marshaller
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/eventstream-marshaller/preview.svg)](https://www.npmjs.com/package/@aws-sdk/eventstream-marshaller)
[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/eventstream-marshaller.svg)](https://www.npmjs.com/package/@aws-sdk/eventstream-marshaller)
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": true,
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
"importHelpers": true,
"noEmitHelpers": true,
"lib": [
"es5",
"es2015.promise",
"es2015.collection",
"es2015.iterable",
"es2015.symbol.wellknown"
],
"rootDir": "./src",
"outDir": "./build"
}
}
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"declaration": true,
"strict": true,
"sourceMap": true,
"downlevelIteration": true,
"importHelpers": true,
"noEmitHelpers": true,
"lib": [
"es5",
"es2015.promise",
"es2015.collection",
"es2015.iterable",
"es2015.symbol.wellknown"
],
"rootDir": "./src",
"outDir": "./build"
}
}
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