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
7
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 3.32.0 to 3.34.0

tsconfig.types.json

11

CHANGELOG.md

@@ -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 @@

20

dist/cjs/EventStreamMarshaller.js

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

const splitMessage_1 = require("./splitMessage");
/**
* A marshaller that can convert binary-packed event stream messages into
* JavaScript objects and back again into their binary format.
*/
class EventStreamMarshaller {

@@ -16,6 +12,2 @@ constructor(toUtf8, fromUtf8) {

}
/**
* Convert a structured JavaScript object with tagged headers into a binary
* event stream message.
*/
marshall({ headers: rawHeaders, body }) {

@@ -27,3 +19,2 @@ const headers = this.headerMarshaller.format(rawHeaders);

const checksum = new crc32_1.Crc32();
// Format message
view.setUint32(0, length, false);

@@ -34,10 +25,5 @@ view.setUint32(4, headers.byteLength, false);

out.set(body, headers.byteLength + 12);
// Write trailing message checksum
view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false);
return out;
}
/**
* Convert a binary event stream message into a JavaScript object with an
* opaque, binary body and tagged, parsed headers.
*/
unmarshall(message) {

@@ -47,6 +33,2 @@ const { headers, body } = splitMessage_1.splitMessage(message);

}
/**
* Convert a structured JavaScript object with tagged headers into a binary
* event stream message header.
*/
formatHeaders(rawHeaders) {

@@ -57,2 +39,2 @@ return this.headerMarshaller.format(rawHeaders);

exports.EventStreamMarshaller = EventStreamMarshaller;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRXZlbnRTdHJlYW1NYXJzaGFsbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL0V2ZW50U3RyZWFtTWFyc2hhbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw2Q0FBMEM7QUFJMUMseURBQXNEO0FBQ3RELGlEQUE4QztBQUU5Qzs7O0dBR0c7QUFDSCxNQUFhLHFCQUFxQjtJQUdoQyxZQUFZLE1BQWUsRUFBRSxRQUFpQjtRQUM1QyxJQUFJLENBQUMsZ0JBQWdCLEdBQUcsSUFBSSxtQ0FBZ0IsQ0FBQyxNQUFNLEVBQUUsUUFBUSxDQUFDLENBQUM7SUFDakUsQ0FBQztJQUVEOzs7T0FHRztJQUNILFFBQVEsQ0FBQyxFQUFFLE9BQU8sRUFBRSxVQUFVLEVBQUUsSUFBSSxFQUFXO1FBQzdDLE1BQU0sT0FBTyxHQUFHLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxNQUFNLENBQUMsVUFBVSxDQUFDLENBQUM7UUFDekQsTUFBTSxNQUFNLEdBQUcsT0FBTyxDQUFDLFVBQVUsR0FBRyxJQUFJLENBQUMsVUFBVSxHQUFHLEVBQUUsQ0FBQztRQUV6RCxNQUFNLEdBQUcsR0FBRyxJQUFJLFVBQVUsQ0FBQyxNQUFNLENBQUMsQ0FBQztRQUNuQyxNQUFNLElBQUksR0FBRyxJQUFJLFFBQVEsQ0FBQyxHQUFHLENBQUMsTUFBTSxFQUFFLEdBQUcsQ0FBQyxVQUFVLEVBQUUsR0FBRyxDQUFDLFVBQVUsQ0FBQyxDQUFDO1FBQ3RFLE1BQU0sUUFBUSxHQUFHLElBQUksYUFBS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HBhcnNlZCBoZWFkZXJzLlxuICAgKi9cbiAgdW5tYXJzaGFsbChtZXNzYWdlOiBBcnJheUJ1ZmZlclZpZXcpOiBNZXNzYWdlIHtcbiAgICBjb25zdCB7IGhlYWRlcnMsIGJvZHkgfSA9IHNwbGl0TWVzc2FnZShtZXNzYWdlKTtcblxuICAgIHJldHVybiB7IGhlYWRlcnM6IHRoaXMuaGVhZGVyTWFyc2hhbGxlci5wYXJzZShoZWFkZXJzKSwgYm9keSB9O1xuICB9XG5cbiAgLyoqXG4gICAqIENvbnZlcnQgYSBzdHJ1Y3R1cmVkIEphdmFTY3JpcHQgb2JqZWN0IHdpdGggdGFnZ2VkIGhlYWRlcnMgaW50byBhIGJpbmFyeVxuICAgKiBldmVudCBzdHJlYW0gbWVzc2FnZSBoZWFkZXIuXG4gICAqL1xuICBmb3JtYXRIZWFkZXJzKHJhd0hlYWRlcnM6IE1lc3NhZ2VIZWFkZXJzKTogVWludDhBcnJheSB7XG4gICAgcmV0dXJuIHRoaXMuaGVhZGVyTWFyc2hhbGxlci5mb3JtYXQocmF3SGVhZGVycyk7XG4gIH1cbn1cbiJdfQ==

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

const Int64_1 = require("./Int64");
/**
* @internal
*/
class HeaderMarshaller {

@@ -32,8 +29,8 @@ constructor(toUtf8, fromUtf8) {

case "boolean":
return Uint8Array.from([header.value ? 0 /* boolTrue */ : 1 /* boolFalse */]);
return Uint8Array.from([header.value ? 0 : 1]);
case "byte":
return Uint8Array.from([2 /* byte */, header.value]);
return Uint8Array.from([2, header.value]);
case "short":
const shortView = new DataView(new ArrayBuffer(3));
shortView.setUint8(0, 3 /* short */);
shortView.setUint8(0, 3);
shortView.setInt16(1, header.value, false);

@@ -43,3 +40,3 @@ return new Uint8Array(shortView.buffer);

const intView = new DataView(new ArrayBuffer(5));
intView.setUint8(0, 4 /* integer */);
intView.setUint8(0, 4);
intView.setInt32(1, header.value, false);

@@ -49,3 +46,3 @@ return new Uint8Array(intView.buffer);

const longBytes = new Uint8Array(9);
longBytes[0] = 5 /* long */;
longBytes[0] = 5;
longBytes.set(header.value.bytes, 1);

@@ -55,3 +52,3 @@ return longBytes;

const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength));
binView.setUint8(0, 6 /* byteArray */);
binView.setUint8(0, 6);
binView.setUint16(1, header.value.byteLength, false);

@@ -64,3 +61,3 @@ const binBytes = new Uint8Array(binView.buffer);

const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength));
strView.setUint8(0, 7 /* string */);
strView.setUint8(0, 7);
strView.setUint16(1, utf8Bytes.byteLength, false);

@@ -72,3 +69,3 @@ const strBytes = new Uint8Array(strView.buffer);

const tsBytes = new Uint8Array(9);
tsBytes[0] = 8 /* timestamp */;
tsBytes[0] = 8;
tsBytes.set(Int64_1.Int64.fromNumber(header.value.valueOf()).bytes, 1);

@@ -81,3 +78,3 @@ return tsBytes;

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

@@ -95,3 +92,3 @@ return uuidBytes;

switch (headers.getUint8(position++)) {
case 0 /* boolTrue */:
case 0:
out[name] = {

@@ -102,3 +99,3 @@ type: BOOLEAN_TAG,

break;
case 1 /* boolFalse */:
case 1:
out[name] = {

@@ -109,3 +106,3 @@ type: BOOLEAN_TAG,

break;
case 2 /* byte */:
case 2:
out[name] = {

@@ -116,3 +113,3 @@ type: BYTE_TAG,

break;
case 3 /* short */:
case 3:
out[name] = {

@@ -124,3 +121,3 @@ type: SHORT_TAG,

break;
case 4 /* integer */:
case 4:
out[name] = {

@@ -132,3 +129,3 @@ type: INT_TAG,

break;
case 5 /* long */:
case 5:
out[name] = {

@@ -140,3 +137,3 @@ type: LONG_TAG,

break;
case 6 /* byteArray */:
case 6:
const binaryLength = headers.getUint16(position, false);

@@ -150,3 +147,3 @@ position += 2;

break;
case 7 /* string */:
case 7:
const stringLength = headers.getUint16(position, false);

@@ -160,3 +157,3 @@ position += 2;

break;
case 8 /* timestamp */:
case 8:
out[name] = {

@@ -168,3 +165,3 @@ type: TIMESTAMP_TAG,

break;
case 9 /* uuid */:
case 9:
const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16);

@@ -208,2 +205,2 @@ position += 16;

const 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSGVhZGVyTWFyc2hhbGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9IZWFkZXJNYXJzaGFsbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLGtFQUE0RDtBQUU1RCxtQ0FBZ0M7QUFFaEM7O0dBRUc7QUFDSCxNQUFhLGdCQUFnQjtJQUMzQixZQUE2QixNQUFlLEVBQW1CLFFBQWlCO1FBQW5ELFdBQU0sR0FBTixNQUFNLENBQVM7UUFBbUIsYUFBUSxHQUFSLFFBQVEsQ0FBUztJQUFHLENBQUM7SUFFcEYsTUFBTSxDQUFDLE9BQXVCO1FBQzVCLE1BQU0sTUFBTSxHQUFzQixFQUFFLENBQUM7UUFFckMsS0FBSyxNQUFNLFVBQVUsSUFBSSxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxFQUFFO1lBQzdDLE1BQU0sS0FBSyxHQUFHLElBQUksQ0FBQyxRQUFRLENBQUMsVUFBVSxDQUFDLENBQUM7WUFDeEMsTUFBTSxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLENBQUMsS0FBSyxDQUFDLFVBQVUsQ0FBQyxDQUFDLEVBQUUsS0FBSyxFQUFFLElBQUksQ0FBQyxpQkFBaUIsQ0FBQyxPQUFPLENBQUMsVUFBVSxDQUF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WZmZXIsIGhlYWRlcnMuYnl0ZU9mZnNldCArIHBvc2l0aW9uLCBuYW1lTGVuZ3RoKSk7XG4gICAgICBwb3NpdGlvbiArPSBuYW1lTGVuZ3RoO1xuXG4gICAgICBzd2l0Y2ggKGhlYWRlcnMuZ2V0VWludDgocG9zaXRpb24rKykpIHtcbiAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5ib29sVHJ1ZTpcbiAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICB0eXBlOiBCT09MRUFOX1RBRyxcbiAgICAgICAgICAgIHZhbHVlOiB0cnVlLFxuICAgICAgICAgIH07XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgSEVBREVSX1ZBTFVFX1RZUEUuYm9vbEZhbHNlOlxuICAgICAgICAgIG91dFtuYW1lXSA9IHtcbiAgICAgICAgICAgIHR5cGU6IEJPT0xFQU5fVEFHLFxuICAgICAgICAgICAgdmFsdWU6IGZhbHNlLFxuICAgICAgICAgIH07XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIGNhc2UgSEVBREVSX1ZBTFVFX1RZUEUuYnl0ZTpcbiAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICB0eXBlOiBCWVRFX1RBRyxcbiAgICAgICAgICAgIHZhbHVlOiBoZWFkZXJzLmdldEludDgocG9zaXRpb24rKyksXG4gICAgICAgICAgfTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBIRUFERVJfVkFMVUVfVFlQRS5zaG9ydDpcbiAgICAgICAgICBvdXRbbmFtZV0gPSB7XG4gICAgICAgICAgICB0eXBlOiBTSE9SVF9UQUcsXG4gICAgICAgICAgICB2YWx1ZTogaGVhZGVycy5nZXRJbnQxNihwb3NpdGlvbiwgZmFsc2UpLFxuICAgICAgICAgIH07XG4gICAgICAgICAgcG9zaXRpb24gKz0gMjtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSBIRUFER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WYwLTldezh9LVthLWYwLTldezR9LVthLWYwLTldezR9LVthLWYwLTldezR9LVthLWYwLTldezEyfSQvO1xuIl19

@@ -5,9 +5,2 @@ "use strict";

const util_hex_encoding_1 = require("@aws-sdk/util-hex-encoding");
/**
* A lossless representation of a signed, 64-bit integer. Instances of this
* class may be used in arithmetic expressions as if they were numeric
* primitives, but the binary representation will be preserved unchanged as the
* `bytes` property of the object. The bytes should be encoded as big-endian,
* two's complement integers.
*/
class Int64 {

@@ -33,5 +26,2 @@ constructor(bytes) {

}
/**
* Called implicitly by infix arithmetic operators.
*/
valueOf() {

@@ -60,2 +50,2 @@ const bytes = this.bytes.slice(0);

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSW50NjQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvSW50NjQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0Esa0VBQW1EO0FBSW5EOzs7Ozs7R0FNRztBQUNILE1BQWEsS0FBSztJQUNoQixZQUFxQixLQUFpQjtRQUFqQixVQUFLLEdBQUwsS0FBSyxDQUFZO1FBQ3BDLElBQUksS0FBSyxDQUFDLFVBQVUsS0FBSyxDQUFDLEVBQUU7WUFDMUIsTUFBTSxJQUFJLEtBQUssQ0FBQyx1Q0FBdUMsQ0FBQyxDQUFDO1NBQzFEO0lBQ0gsQ0FBQztJQUVELE1BQU0sQ0FBQyxVQUFVLENBQUMsTUFBYztRQUM5QixJQUFJLE1BQU0sR0FBRyxtQkFBbUIsSUFBSSxNQUFNLEdBQUcsQ0FBQyxtQkFBbUIsRUFBRTtZQUNqRSxNQUFNLElBQUksS0FBSyxDQUFDLEdBQUcsTUFBTSxxRUFBcUUsQ0FBQyxDQUFDO1NBQ2pHO1FBRUQsTUFBTSxLQUFLLEdBQUcsSUFBSSxVQUFVLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDaEMsS0FBSyxJQUF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tYmVyIDwgMCkge1xuICAgICAgbmVnYXRlKGJ5dGVzKTtcbiAgICB9XG5cbiAgICByZXR1cm4gbmV3IEludDY0KGJ5dGVzKTtcbiAgfVxuXG4gIC8qKlxuICAgKiBDYWxsZWQgaW1wbGljaXRseSBieSBpbmZpeCBhcml0aG1ldGljIG9wZXJhdG9ycy5cbiAgICovXG4gIHZhbHVlT2YoKTogbnVtYmVyIHtcbiAgICBjb25zdCBieXRlcyA9IHRoaXMuYnl0ZXMuc2xpY2UoMCk7XG4gICAgY29uc3QgbmVnYXRpdmUgPSBieXRlc1swXSAmIDBiMTAwMDAwMDA7XG4gICAgaWYgKG5lZ2F0aXZlKSB7XG4gICAgICBuZWdhdGUoYnl0ZXMpO1xuICAgIH1cblxuICAgIHJldHVybiBwYXJzZUludCh0b0hleChieXRlcyksIDE2KSAqIChuZWdhdGl2ZSA/IC0xIDogMSk7XG4gIH1cblxuICB0b1N0cmluZygpIHtcbiAgICByZXR1cm4gU3RyaW5nKHRoaXMudmFsdWVPZigpKTtcbiAgfVxufVxuXG5mdW5jdGlvbiBuZWdhdGUoYnl0ZXM6IFVpbnQ4QXJyYXkpOiB2b2lkIHtcbiAgZm9yIChsZXQgaSA9IDA7IGkgPCA4OyBpKyspIHtcbiAgICBieXRlc1tpXSBePSAweGZmO1xuICB9XG5cbiAgZm9yIChsZXQgaSA9IDc7IGkgPiAtMTsgaS0tKSB7XG4gICAgYnl0ZXNbaV0rKztcbiAgICBpZiAoYnl0ZXNbaV0gIT09IDApIGJyZWFrO1xuICB9XG59XG4iXX0=

@@ -5,13 +5,6 @@ "use strict";

const crc32_1 = require("@aws-crypto/crc32");
// All prelude components are unsigned, 32-bit integers
const PRELUDE_MEMBER_LENGTH = 4;
// The prelude consists of two components
const PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2;
// Checksums are always CRC32 hashes.
const CHECKSUM_LENGTH = 4;
// Messages must include a full prelude, a prelude checksum, and a message checksum
const MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2;
/**
* @internal
*/
function splitMessage({ byteLength, byteOffset, buffer }) {

@@ -43,2 +36,2 @@ if (byteLength < MINIMUM_MESSAGE_LENGTH) {

exports.splitMessage = splitMessage;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BsaXRNZXNzYWdlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL3NwbGl0TWVzc2FnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw2Q0FBMEM7QUFFMUMsdURBQXVEO0FBQ3ZELE1BQU0scUJBQXFCLEdBQUcsQ0FBQyxDQUFDO0FBQ2hDLHlDQUF5QztBQUN6QyxNQUFNLGNBQWMsR0FBRyxxQkFBcUIsR0FBRyxDQUFDLENBQUM7QUFDakQscUNBQXFDO0FBQ3JDLE1BQU0sZUFBZSxHQUFHLENBQUMsQ0FBQztBQUMxQixtRkFBbUY7QUFDbkYsTUFBTSxzQkFBc0IsR0FBRyxjQUFjLEdBQUcsZUFBZSxHQUFHLENBQUMsQ0FBQztBQVVwRTs7R0FFRztBQUNILFNBQWdCLFlBQVksQ0FBQyxFQUFFLFVBQVUsRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFtQjtJQUM5RSxJQUFJLFVBQVUsR0FBRyxzQkFBc0IsRUFBRTtRQUN2QyxNQUFNLElBQUksS0FBSyxDQUFDLHlFQUF5RSxDQUFDLENBQUM7S0FDNUY7SUFFRCxNQUFNLElBQUksR0FBRyxJQUFJLFFBQVEsQ0FBQyxNQUFNLEVBQUUsVUFBVSxFQUFFLFVBQVUsQ0FBQyxDQUFDO0lBRTFELE1BQU0sYUFBYSxHQUFHLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQyxFQUFFLEtBQUssQ0FBQyxDQUFDO0lBRS9DLElBQUksVUFBVSxLQUFLLGFBQWEsRUFBRTtRQUNoQyxNQ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BoZWFkZXJzOiBuZXcgRGF0YVZpZXcoYnVmZmVyLCBieXRlT2Zmc2V0ICsgUFJFTFVERV9MRU5HVEggKyBDSEVDS1NVTV9MRU5HVEgsIGhlYWRlckxlbmd0aCksXG4gICAgYm9keTogbmV3IFVpbnQ4QXJyYXkoXG4gICAgICBidWZmZXIsXG4gICAgICBieXRlT2Zmc2V0ICsgUFJFTFVERV9MRU5HVEggKyBDSEVDS1NVTV9MRU5HVEggKyBoZWFkZXJMZW5ndGgsXG4gICAgICBtZXNzYWdlTGVuZ3RoIC0gaGVhZGVyTGVuZ3RoIC0gKFBSRUxVREVfTEVOR1RIICsgQ0hFQ0tTVU1fTEVOR1RIICsgQ0hFQ0tTVU1fTEVOR1RIKVxuICAgICksXG4gIH07XG59XG4iXX0=
{
"name": "@aws-sdk/eventstream-marshaller",
"version": "3.32.0",
"version": "3.34.0",
"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",

@@ -21,9 +22,9 @@ "test": "jest --coverage"

"@aws-crypto/crc32": "^1.0.0",
"@aws-sdk/types": "3.32.0",
"@aws-sdk/util-hex-encoding": "3.32.0",
"@aws-sdk/types": "3.34.0",
"@aws-sdk/util-hex-encoding": "3.34.0",
"tslib": "^2.3.0"
},
"devDependencies": {
"@aws-sdk/util-utf8-browser": "3.32.0",
"@aws-sdk/util-utf8-node": "3.32.0",
"@aws-sdk/util-utf8-browser": "3.34.0",
"@aws-sdk/util-utf8-node": "3.34.0",
"@types/jest": "^26.0.4",

@@ -30,0 +31,0 @@ "@types/node": "^10.0.0",

{
"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.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"declarationDir": "./dist/types",
"rootDir": "./src",
"outDir": "./dist/es",
"baseUrl": "."
"outDir": "dist/es",
"rootDir": "src"
},

@@ -9,0 +8,0 @@ "extends": "../../tsconfig.es.json",

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