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

@aws-sdk/s3-presigned-post

Package Overview
Dependencies
Maintainers
7
Versions
416
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/s3-presigned-post - npm Package Compare versions

Comparing version 3.31.0 to 3.32.0

8

CHANGELOG.md

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

# [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
**Note:** Version bump only for package @aws-sdk/s3-presigned-post
# [3.31.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.30.0...v3.31.0) (2021-09-11)

@@ -8,0 +16,0 @@

10

dist/cjs/createPresignedPost.js

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

// Prepare credentials.
const credentialScope = (0, signature_v4_1.createScope)(shortDate, clientRegion, "s3");
const credentialScope = signature_v4_1.createScope(shortDate, clientRegion, "s3");
const clientCredentials = await client.config.credentials();

@@ -45,3 +45,3 @@ const credential = `${clientCredentials.accessKeyId}/${credentialScope}`;

// Sign the request.
const signingKey = await (0, signature_v4_1.getSigningKey)(sha256, clientCredentials, shortDate, clientRegion, "s3");
const signingKey = await signature_v4_1.getSigningKey(sha256, clientCredentials, shortDate, clientRegion, "s3");
const signature = await hmac(sha256, signingKey, encodedPolicy);

@@ -53,3 +53,3 @@ const endpoint = await client.config.endpoint();

return {
url: (0, util_format_url_1.formatUrl)(endpoint),
url: util_format_url_1.formatUrl(endpoint),
fields: {

@@ -59,3 +59,3 @@ ...fields,

Policy: encodedPolicy,
[constants_1.SIGNATURE_QUERY_PARAM]: (0, util_hex_encoding_1.toHex)(signature),
[constants_1.SIGNATURE_QUERY_PARAM]: util_hex_encoding_1.toHex(signature),
},

@@ -71,2 +71,2 @@ };

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlUHJlc2lnbmVkUG9zdC5qc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FNvdXJjZURhdGEpOiBQcm9taXNlPFVpbnQ4QXJyYXk+ID0+IHtcbiAgY29uc3QgaGFzaCA9IG5ldyBjdG9yKHNlY3JldCk7XG4gIGhhc2gudXBkYXRlKGRhdGEpO1xuICByZXR1cm4gaGFzaC5kaWdlc3QoKTtcbn07XG4iXX0=
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./createPresignedPost"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEscUVBQXNDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY3JlYXRlUHJlc2lnbmVkUG9zdFwiO1xuIl19
tslib_1.__exportStar(require("./createPresignedPost"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsZ0VBQXNDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY3JlYXRlUHJlc2lnbmVkUG9zdFwiO1xuIl19

@@ -31,11 +31,11 @@ import { __assign, __awaiter, __generator, __read, __spreadArray } from "tslib";

expiration = new Date(now.valueOf() + Expires * 1000);
conditions = __spreadArray(__spreadArray(__spreadArray([], __read(Conditions), false), __read(Object.entries(fields).map(function (_a) {
conditions = __spreadArray(__spreadArray(__spreadArray([], __read(Conditions)), __read(Object.entries(fields).map(function (_a) {
var _b;
var _c = __read(_a, 2), k = _c[0], v = _c[1];
return (_b = {}, _b[k] = v, _b);
})), false), [
}))), [
Key.endsWith("${filename}")
? ["starts-with", "$key", Key.substring(0, Key.lastIndexOf("${filename}"))]
: { key: Key },
], false);
]);
encodedPolicy = base64Encoder(utf8Decoder(JSON.stringify({

@@ -71,2 +71,2 @@ expiration: iso8601(expiration),

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlUHJlc2lnbmVkUG9zdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jcmVhdGVQcmVzaWduZWRQb3N0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxPQUFPLEVBQUUsV0FBVyxFQUFFLGFBQWEsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBRW5FLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQztBQUNyRCxPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFFbkQsT0FBTyxFQUNMLG9CQUFvQixFQUNwQixxQkFBcUIsRUFDckIsb0JBQW9CLEVBQ3BCLHNCQUFzQixFQUN0QixxQkFBcUIsRUFDckIsaUJBQWlCLEdBQ2xCLE1BQU0sYUFBYSxDQUFDO0FBa0JyQjs7R0FFRztBQUNILE1BQU0sQ0FBQyxJQUFNLG1CQUFtQixHQUFHLFVBQ2pDLE1BQWdCLEVBQ2hCLEVBQW1GO1FBQWpGLE1BQU0sWUFBQSxFQUFFLEdBQUcsU0FBQSxFQUFFLGtCQUFlLEVBQWYsVUFBVSxtQkFBRyxFQUFFLEtBQUEsRUFBRSxjQUFXLEVBQVgsTUFBTSxtQkFBRyxFQUFFLEtBQUEsRUFBRSxlQUFjLEVBQWQsT0FBTyxtQkFBRyxJQUFJLEtBQUE7Ozs7Ozs7b0JBRXJELEtBQTRELE1BQU0sQ0FBQyxNQUFNLEVBQXZFLGlCQUFpQix1QkFBQSxFQUFFLGFBQWEsbUJBQUEsRUF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WVudENyZWRlbnRpYWxzLCBzaG9ydERhdGUsIGNsaWVudFJlZ2lvbiwgXCJzM1wiKTtcbiAgY29uc3Qgc2lnbmF0dXJlID0gYXdhaXQgaG1hYyhzaGEyNTYsIHNpZ25pbmdLZXksIGVuY29kZWRQb2xpY3kpO1xuXG4gIGNvbnN0IGVuZHBvaW50ID0gYXdhaXQgY2xpZW50LmNvbmZpZy5lbmRwb2ludCgpO1xuICBpZiAoIWNsaWVudC5jb25maWcuYnVja2V0RW5kcG9pbnQpIHtcbiAgICBlbmRwb2ludC5wYXRoID0gYC8ke0J1Y2tldH1gO1xuICB9XG5cbiAgcmV0dXJuIHtcbiAgICB1cmw6IGZvcm1hdFVybChlbmRwb2ludCksXG4gICAgZmllbGRzOiB7XG4gICAgICAuLi5maWVsZHMsXG4gICAgICBrZXk6IEtleSxcbiAgICAgIFBvbGljeTogZW5jb2RlZFBvbGljeSxcbiAgICAgIFtTSUdOQVRVUkVfUVVFUllfUEFSQU1dOiB0b0hleChzaWduYXR1cmUpLFxuICAgIH0sXG4gIH07XG59O1xuXG5jb25zdCBpc284NjAxID0gKGRhdGU6IERhdGUpID0+IGRhdGUudG9JU09TdHJpbmcoKS5yZXBsYWNlKC9cXC5cXGR7M31aJC8sIFwiWlwiKTtcblxuY29uc3QgaG1hYyA9IChjdG9yOiBIYXNoQ29uc3RydWN0b3IsIHNlY3JldDogU291cmNlRGF0YSwgZGF0YTogU291cmNlRGF0YSk6IFByb21pc2U8VWludDhBcnJheT4gPT4ge1xuICBjb25zdCBoYXNoID0gbmV3IGN0b3Ioc2VjcmV0KTtcbiAgaGFzaC51cGRhdGUoZGF0YSk7XG4gIHJldHVybiBoYXNoLmRpZ2VzdCgpO1xufTtcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlUHJlc2lnbmVkUG9zdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyY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W50LmNvbmZpZy5idWNrZXRFbmRwb2ludCkge1xuICAgIGVuZHBvaW50LnBhdGggPSBgLyR7QnVja2V0fWA7XG4gIH1cblxuICByZXR1cm4ge1xuICAgIHVybDogZm9ybWF0VXJsKGVuZHBvaW50KSxcbiAgICBmaWVsZHM6IHtcbiAgICAgIC4uLmZpZWxkcyxcbiAgICAgIGtleTogS2V5LFxuICAgICAgUG9saWN5OiBlbmNvZGVkUG9saWN5LFxuICAgICAgW1NJR05BVFVSRV9RVUVSWV9QQVJBTV06IHRvSGV4KHNpZ25hdHVyZSksXG4gICAgfSxcbiAgfTtcbn07XG5cbmNvbnN0IGlzbzg2MDEgPSAoZGF0ZTogRGF0ZSkgPT4gZGF0ZS50b0lTT1N0cmluZygpLnJlcGxhY2UoL1xcLlxcZHszfVokLywgXCJaXCIpO1xuXG5jb25zdCBobWFjID0gKGN0b3I6IEhhc2hDb25zdHJ1Y3Rvciwgc2VjcmV0OiBTb3VyY2VEYXRhLCBkYXRhOiBTb3VyY2VEYXRhKTogUHJvbWlzZTxVaW50OEFycmF5PiA9PiB7XG4gIGNvbnN0IGhhc2ggPSBuZXcgY3RvcihzZWNyZXQpO1xuICBoYXNoLnVwZGF0ZShkYXRhKTtcbiAgcmV0dXJuIGhhc2guZGlnZXN0KCk7XG59O1xuIl19
{
"name": "@aws-sdk/s3-presigned-post",
"version": "3.31.0",
"version": "3.32.0",
"scripts": {

@@ -20,16 +20,16 @@ "build:cjs": "tsc -p tsconfig.cjs.json",

"dependencies": {
"@aws-sdk/signature-v4": "3.30.0",
"@aws-sdk/types": "3.29.0",
"@aws-sdk/util-format-url": "3.29.0",
"@aws-sdk/util-hex-encoding": "3.29.0",
"@aws-sdk/signature-v4": "3.32.0",
"@aws-sdk/types": "3.32.0",
"@aws-sdk/util-format-url": "3.32.0",
"@aws-sdk/util-hex-encoding": "3.32.0",
"tslib": "^2.3.0"
},
"devDependencies": {
"@aws-sdk/client-s3": "3.31.0",
"@aws-sdk/hash-node": "3.29.0",
"@aws-sdk/protocol-http": "3.29.0",
"@aws-sdk/client-s3": "3.32.0",
"@aws-sdk/hash-node": "3.32.0",
"@aws-sdk/protocol-http": "3.32.0",
"@types/jest": "^26.0.4",
"@types/node": "^12.0.2",
"jest": "^26.1.0",
"typescript": "~4.4.2"
"typescript": "~4.3.5"
},

@@ -36,0 +36,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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