New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/client-iotsecuretunneling

Package Overview
Dependencies
Maintainers
5
Versions
435
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-iotsecuretunneling - npm Package Compare versions

Comparing version 3.525.0 to 3.529.0

62

dist-cjs/index.js

@@ -200,2 +200,3 @@ "use strict";

// src/protocols/Aws_json1_1.ts
var import_core2 = require("@aws-sdk/core");

@@ -331,3 +332,3 @@

}
const data = await parseBody(output.body, context);
const data = await (0, import_core2.parseJsonBody)(output.body, context);
let contents = {};

@@ -345,3 +346,3 @@ contents = (0, import_smithy_client._json)(data);

}
const data = await parseBody(output.body, context);
const data = await (0, import_core2.parseJsonBody)(output.body, context);
let contents = {};

@@ -359,3 +360,3 @@ contents = de_DescribeTunnelResponse(data, context);

}
const data = await parseBody(output.body, context);
const data = await (0, import_core2.parseJsonBody)(output.body, context);
let contents = {};

@@ -373,3 +374,3 @@ contents = (0, import_smithy_client._json)(data);

}
const data = await parseBody(output.body, context);
const data = await (0, import_core2.parseJsonBody)(output.body, context);
let contents = {};

@@ -387,3 +388,3 @@ contents = de_ListTunnelsResponse(data, context);

}
const data = await parseBody(output.body, context);
const data = await (0, import_core2.parseJsonBody)(output.body, context);
let contents = {};

@@ -401,3 +402,3 @@ contents = (0, import_smithy_client._json)(data);

}
const data = await parseBody(output.body, context);
const data = await (0, import_core2.parseJsonBody)(output.body, context);
let contents = {};

@@ -415,3 +416,3 @@ contents = (0, import_smithy_client._json)(data);

}
const data = await parseBody(output.body, context);
const data = await (0, import_core2.parseJsonBody)(output.body, context);
let contents = {};

@@ -429,3 +430,3 @@ contents = (0, import_smithy_client._json)(data);

}
const data = await parseBody(output.body, context);
const data = await (0, import_core2.parseJsonBody)(output.body, context);
let contents = {};

@@ -442,5 +443,5 @@ contents = (0, import_smithy_client._json)(data);

...output,
body: await parseErrorBody(output.body, context)
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
};
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
switch (errorCode) {

@@ -534,3 +535,2 @@ case "ResourceNotFoundException":

}), "deserializeMetadata");
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
var throwDefaultError = (0, import_smithy_client.withBaseException)(IoTSecureTunnelingServiceException);

@@ -562,42 +562,2 @@ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {

__name(sharedHeaders, "sharedHeaders");
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
if (encoded.length) {
return JSON.parse(encoded);
}
return {};
}), "parseBody");
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
}, "parseErrorBody");
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
let cleanValue = rawValue;
if (typeof cleanValue === "number") {
cleanValue = cleanValue.toString();
}
if (cleanValue.indexOf(",") >= 0) {
cleanValue = cleanValue.split(",")[0];
}
if (cleanValue.indexOf(":") >= 0) {
cleanValue = cleanValue.split(":")[0];
}
if (cleanValue.indexOf("#") >= 0) {
cleanValue = cleanValue.split("#")[1];
}
return cleanValue;
}, "sanitizeErrorCode");
const headerKey = findKey(output.headers, "x-amzn-errortype");
if (headerKey !== void 0) {
return sanitizeErrorCode(output.headers[headerKey]);
}
if (data.code !== void 0) {
return sanitizeErrorCode(data.code);
}
if (data["__type"] !== void 0) {
return sanitizeErrorCode(data["__type"]);
}
}, "loadRestJsonErrorCode");

@@ -604,0 +564,0 @@ // src/commands/CloseTunnelCommand.ts

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

import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";

@@ -279,41 +280,1 @@ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";

}
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
if (encoded.length) {
return JSON.parse(encoded);
}
return {};
});
const parseErrorBody = async (errorBody, context) => {
const value = await parseBody(errorBody, context);
value.message = value.message ?? value.Message;
return value;
};
const loadRestJsonErrorCode = (output, data) => {
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
const sanitizeErrorCode = (rawValue) => {
let cleanValue = rawValue;
if (typeof cleanValue === "number") {
cleanValue = cleanValue.toString();
}
if (cleanValue.indexOf(",") >= 0) {
cleanValue = cleanValue.split(",")[0];
}
if (cleanValue.indexOf(":") >= 0) {
cleanValue = cleanValue.split(":")[0];
}
if (cleanValue.indexOf("#") >= 0) {
cleanValue = cleanValue.split("#")[1];
}
return cleanValue;
};
const headerKey = findKey(output.headers, "x-amzn-errortype");
if (headerKey !== undefined) {
return sanitizeErrorCode(output.headers[headerKey]);
}
if (data.code !== undefined) {
return sanitizeErrorCode(data.code);
}
if (data["__type"] !== undefined) {
return sanitizeErrorCode(data["__type"]);
}
};

8

package.json
{
"name": "@aws-sdk/client-iotsecuretunneling",
"description": "AWS SDK for JavaScript Iotsecuretunneling Client for Node.js, Browser and React Native",
"version": "3.525.0",
"version": "3.529.0",
"scripts": {

@@ -23,5 +23,5 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "3.525.0",
"@aws-sdk/core": "3.525.0",
"@aws-sdk/credential-provider-node": "3.525.0",
"@aws-sdk/client-sts": "3.529.0",
"@aws-sdk/core": "3.529.0",
"@aws-sdk/credential-provider-node": "3.529.0",
"@aws-sdk/middleware-host-header": "3.523.0",

@@ -28,0 +28,0 @@ "@aws-sdk/middleware-logger": "3.523.0",

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