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

@aws-sdk/middleware-sdk-ec2

Package Overview
Dependencies
Maintainers
5
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/middleware-sdk-ec2 - npm Package Compare versions

Comparing version 1.0.0-gamma.8 to 1.0.0-rc.1

11

CHANGELOG.md

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

# [1.0.0-rc.1](https://github.com/aws/aws-sdk-js-v3/compare/v1.0.0-gamma.11...v1.0.0-rc.1) (2020-10-19)
### Features
* ready for release candidate ([#1578](https://github.com/aws/aws-sdk-js-v3/issues/1578)) ([519f66c](https://github.com/aws/aws-sdk-js-v3/commit/519f66c6388b91d0bd750a511e6d1af56196835e))
# [1.0.0-gamma.8](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/middleware-sdk-ec2@1.0.0-gamma.7...@aws-sdk/middleware-sdk-ec2@1.0.0-gamma.8) (2020-10-07)

@@ -8,0 +19,0 @@

42

dist/cjs/fixture.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.credentials = exports.endpoint = exports.region = exports.MockSha256 = void 0;
var MockSha256 = /** @class */ (function () {
class MockSha256 {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
function MockSha256(secret) {
}
constructor(secret) { }
// eslint-disable-next-line @typescript-eslint/no-unused-vars
MockSha256.prototype.update = function (data) { };
MockSha256.prototype.digest = function () {
update(data) { }
digest() {
return Promise.resolve(new Uint8Array(5));
};
return MockSha256;
}());
}
}
exports.MockSha256 = MockSha256;
exports.region = function () { return Promise.resolve("mock-region"); };
exports.endpoint = function () {
return Promise.resolve({
protocol: "https:",
path: "/",
hostname: "ec2.mock-region.amazonaws.com",
});
};
exports.credentials = function () {
return Promise.resolve({
accessKeyId: "akid",
secretAccessKey: "secret",
sessionToken: "session",
});
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJ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2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLXVudXNlZC12YXJzXG4gIGNvbnN0cnVjdG9yKHNlY3JldD86IHN0cmluZyB8IEFycmF5QnVmZmVyIHwgQXJyYXlCdWZmZXJWaWV3KSB7fVxuICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLXVudXNlZC12YXJzXG4gIHVwZGF0ZShkYXRhPzogU291cmNlRGF0YSkge31cbiAgZGlnZXN0KCkge1xuICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUobmV3IFVpbnQ4QXJyYXkoNSkpO1xuICB9XG59XG5cbmV4cG9ydCBjb25zdCByZWdpb24gPSAoKSA9PiBQcm9taXNlLnJlc29sdmUoXCJtb2NrLXJlZ2lvblwiKTtcblxuZXhwb3J0IGNvbnN0IGVuZHBvaW50ID0gKCkgPT5cbiAgUHJvbWlzZS5yZXNvbHZlKHtcbiAgICBwcm90b2NvbDogXCJodHRwczpcIixcbiAgICBwYXRoOiBcIi9cIixcbiAgICBob3N0bmFtZTogXCJlYzIubW9jay1yZWdpb24uYW1hem9uYXdzLmNvbVwiLFxuICB9KTtcblxuZXhwb3J0IGNvbnN0IGNyZWRlbnRpYWxzID0gKCkgPT5cbiAgUHJvbWlzZS5yZXNvbHZlKHtcbiAgICBhY2Nlc3NLZXlJZDogXCJha2lkXCIsXG4gICAgc2VjcmV0QWNjZXNzS2V5OiBcInNlY3JldFwiLFxuICAgIHNlc3Npb25Ub2tlbjogXCJzZXNzaW9uXCIsXG4gIH0pO1xuIl19
exports.region = () => Promise.resolve("mock-region");
exports.endpoint = () => Promise.resolve({
protocol: "https:",
path: "/",
hostname: "ec2.mock-region.amazonaws.com",
});
exports.credentials = () => Promise.resolve({
accessKeyId: "akid",
secretAccessKey: "secret",
sessionToken: "session",
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjo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udXNlZC12YXJzXG4gIGNvbnN0cnVjdG9yKHNlY3JldD86IHN0cmluZyB8IEFycmF5QnVmZmVyIHwgQXJyYXlCdWZmZXJWaWV3KSB7fVxuICAvLyBlc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgQHR5cGVzY3JpcHQtZXNsaW50L25vLXVudXNlZC12YXJzXG4gIHVwZGF0ZShkYXRhPzogU291cmNlRGF0YSkge31cbiAgZGlnZXN0KCkge1xuICAgIHJldHVybiBQcm9taXNlLnJlc29sdmUobmV3IFVpbnQ4QXJyYXkoNSkpO1xuICB9XG59XG5cbmV4cG9ydCBjb25zdCByZWdpb24gPSAoKSA9PiBQcm9taXNlLnJlc29sdmUoXCJtb2NrLXJlZ2lvblwiKTtcblxuZXhwb3J0IGNvbnN0IGVuZHBvaW50ID0gKCkgPT5cbiAgUHJvbWlzZS5yZXNvbHZlKHtcbiAgICBwcm90b2NvbDogXCJodHRwczpcIixcbiAgICBwYXRoOiBcIi9cIixcbiAgICBob3N0bmFtZTogXCJlYzIubW9jay1yZWdpb24uYW1hem9uYXdzLmNvbVwiLFxuICB9KTtcblxuZXhwb3J0IGNvbnN0IGNyZWRlbnRpYWxzID0gKCkgPT5cbiAgUHJvbWlzZS5yZXNvbHZlKHtcbiAgICBhY2Nlc3NLZXlJZDogXCJha2lkXCIsXG4gICAgc2VjcmV0QWNjZXNzS2V5OiBcInNlY3JldFwiLFxuICAgIHNlc3Npb25Ub2tlbjogXCJzZXNzaW9uXCIsXG4gIH0pO1xuIl19
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCopySnapshotPresignedUrlPlugin = exports.copySnapshotPresignedUrlMiddlewareOptions = exports.copySnapshotPresignedUrlMiddleware = void 0;
var tslib_1 = require("tslib");
var protocol_http_1 = require("@aws-sdk/protocol-http");
var signature_v4_1 = require("@aws-sdk/signature-v4");
var util_format_url_1 = require("@aws-sdk/util-format-url");
var util_uri_escape_1 = require("@aws-sdk/util-uri-escape");
var version = "2016-11-15";
const protocol_http_1 = require("@aws-sdk/protocol-http");
const signature_v4_1 = require("@aws-sdk/signature-v4");
const util_format_url_1 = require("@aws-sdk/util-format-url");
const util_uri_escape_1 = require("@aws-sdk/util-uri-escape");
const version = "2016-11-15";
//an initialize middleware to add PresignUrl to input
function copySnapshotPresignedUrlMiddleware(options) {
var _this = this;
return function (next) { return function (args) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
var input, region, resolvedEndpoint, request, signer, presignedRequest;
return tslib_1.__generator(this, function (_a) {
switch (_a.label) {
case 0:
input = args.input;
if (!!input.PresignedUrl) return [3 /*break*/, 4];
return [4 /*yield*/, options.region()];
case 1:
region = _a.sent();
return [4 /*yield*/, options.endpoint()];
case 2:
resolvedEndpoint = _a.sent();
resolvedEndpoint.hostname = "ec2." + input.SourceRegion + ".amazonaws.com";
request = new protocol_http_1.HttpRequest(tslib_1.__assign(tslib_1.__assign({}, resolvedEndpoint), { protocol: "https", headers: {
host: resolvedEndpoint.hostname,
}, query: {
Action: "CopySnapshot",
Version: version,
SourceRegion: input.SourceRegion,
SourceSnapshotId: input.SourceSnapshotId,
DestinationRegion: region,
} }));
signer = new signature_v4_1.SignatureV4({
credentials: options.credentials,
region: input.SourceRegion,
service: "ec2",
sha256: options.sha256,
uriEscapePath: options.signingEscapePath,
});
return [4 /*yield*/, signer.presign(request, {
expiresIn: 3600,
})];
case 3:
presignedRequest = _a.sent();
args = tslib_1.__assign(tslib_1.__assign({}, args), { input: tslib_1.__assign(tslib_1.__assign({}, args.input), { DestinationRegion: region, PresignedUrl: util_uri_escape_1.escapeUri(util_format_url_1.formatUrl(presignedRequest)) }) });
_a.label = 4;
case 4: return [2 /*return*/, next(args)];
}
});
}); }; };
return (next) => async (args) => {
const { input } = args;
if (!input.PresignedUrl) {
const region = await options.region();
const resolvedEndpoint = await options.endpoint();
resolvedEndpoint.hostname = `ec2.${input.SourceRegion}.amazonaws.com`;
const request = new protocol_http_1.HttpRequest({
...resolvedEndpoint,
protocol: "https",
headers: {
host: resolvedEndpoint.hostname,
},
query: {
Action: "CopySnapshot",
Version: version,
SourceRegion: input.SourceRegion,
SourceSnapshotId: input.SourceSnapshotId,
DestinationRegion: region,
},
});
const signer = new signature_v4_1.SignatureV4({
credentials: options.credentials,
region: input.SourceRegion,
service: "ec2",
sha256: options.sha256,
uriEscapePath: options.signingEscapePath,
});
const presignedRequest = await signer.presign(request, {
expiresIn: 3600,
});
args = {
...args,
input: {
...args.input,
DestinationRegion: region,
PresignedUrl: util_uri_escape_1.escapeUri(util_format_url_1.formatUrl(presignedRequest)),
},
};
}
return next(args);
};
}

@@ -61,7 +59,7 @@ exports.copySnapshotPresignedUrlMiddleware = copySnapshotPresignedUrlMiddleware;

};
exports.getCopySnapshotPresignedUrlPlugin = function (config) { return ({
applyToStack: function (clientStack) {
exports.getCopySnapshotPresignedUrlPlugin = (config) => ({
applyToStack: (clientStack) => {
clientStack.add(copySnapshotPresignedUrlMiddleware(config), exports.copySnapshotPresignedUrlMiddlewareOptions);
},
}); };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLHdEQUFxRDtBQUNyRCxzREFBb0Q7QUFjcEQsNERBQXFEO0FBQ3JELDREQUFxRDtBQVVyRCxJQUFNLE9BQU8sR0FBRyxZQUFZLENBQUM7QUFFN0IscURBQXFEO0FBQ3JELFNBQWdCLGtDQUFrQyxDQUFDLE9BQTJCO0lBQTlFLGlCQWdEQztJQS9DQyxPQUFPLFVBQ0wsSUFBb0MsSUFDRCxPQUFBLFVBQ25DLElBQXFDOzs7OztvQkFFN0IsS0FBSyxHQUFLLElBQUksTUFBVCxDQUFVO3lCQUNuQixDQUFDLEtBQUssQ0FBQyxZQUFZLEVBQW5CLHdCQUFtQjtvQkFDTixxQkFBTS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xcbiAgICAgIH0pO1xuXG4gICAgICBhcmdzID0ge1xuICAgICAgICAuLi5hcmdzLFxuICAgICAgICBpbnB1dDoge1xuICAgICAgICAgIC4uLmFyZ3MuaW5wdXQsXG4gICAgICAgICAgRGVzdGluYXRpb25SZWdpb246IHJlZ2lvbixcbiAgICAgICAgICBQcmVzaWduZWRVcmw6IGVzY2FwZVVyaShmb3JtYXRVcmwocHJlc2lnbmVkUmVxdWVzdCkpLFxuICAgICAgICB9LFxuICAgICAgfTtcbiAgICB9XG5cbiAgICByZXR1cm4gbmV4dChhcmdzKTtcbiAgfTtcbn1cblxuZXhwb3J0IGNvbnN0IGNvcHlTbmFwc2hvdFByZXNpZ25lZFVybE1pZGRsZXdhcmVPcHRpb25zOiBJbml0aWFsaXplSGFuZGxlck9wdGlvbnMgPSB7XG4gIHN0ZXA6IFwiaW5pdGlhbGl6ZVwiLFxuICB0YWdzOiBbXCJDUk9TU19SRUdJT05fUFJFU0lHTkVEX1VSTFwiXSxcbiAgbmFtZTogXCJjcm9zc1JlZ2lvblByZXNpZ25lZFVybE1pZGRsZXdhcmVcIixcbn07XG5cbmV4cG9ydCBjb25zdCBnZXRDb3B5U25hcHNob3RQcmVzaWduZWRVcmxQbHVnaW4gPSAoY29uZmlnOiBQcmV2aW91c2x5UmVzb2x2ZWQpOiBQbHVnZ2FibGU8YW55LCBhbnk+ID0+ICh7XG4gIGFwcGx5VG9TdGFjazogKGNsaWVudFN0YWNrKSA9PiB7XG4gICAgY2xpZW50U3RhY2suYWRkKGNvcHlTbmFwc2hvdFByZXNpZ25lZFVybE1pZGRsZXdhcmUoY29uZmlnKSwgY29weVNuYXBzaG90UHJlc2lnbmVkVXJsTWlkZGxld2FyZU9wdGlvbnMpO1xuICB9LFxufSk7XG4iXX0=
{
"name": "@aws-sdk/middleware-sdk-ec2",
"version": "1.0.0-gamma.8",
"version": "1.0.0-rc.1",
"scripts": {

@@ -21,6 +21,6 @@ "prepublishOnly": "yarn build:cjs && yarn build:es",

"dependencies": {
"@aws-sdk/signature-v4": "1.0.0-gamma.8",
"@aws-sdk/types": "1.0.0-gamma.7",
"@aws-sdk/util-format-url": "1.0.0-gamma.8",
"@aws-sdk/util-uri-escape": "1.0.0-gamma.7",
"@aws-sdk/signature-v4": "1.0.0-rc.1",
"@aws-sdk/types": "1.0.0-rc.1",
"@aws-sdk/util-format-url": "1.0.0-rc.1",
"@aws-sdk/util-uri-escape": "1.0.0-rc.1",
"tslib": "^1.8.0"

@@ -32,3 +32,6 @@ },

"typescript": "~4.0.2"
},
"engines": {
"node": ">= 10.0.0"
}
}
{
"compilerOptions": {
"declaration": true,
"strict": true,
"sourceMap": false,
"downlevelIteration": true,
"importHelpers": true,
"noEmitHelpers": true,
"lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"rootDir": "./src",
"outDir": "./dist/cjs",
"inlineSourceMap": true,
"inlineSources": true,
"baseUrl": "."

@@ -15,0 +6,0 @@ },

{
"compilerOptions": {
"declaration": true,
"strict": true,
"sourceMap": false,
"downlevelIteration": true,
"importHelpers": true,
"noEmitHelpers": true,
"lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
"rootDir": "./src",
"outDir": "./dist/es",
"inlineSourceMap": true,
"inlineSources": true,
"baseUrl": "."

@@ -15,0 +7,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