@aws-sdk/s3-presigned-post
Advanced tools
Comparing version 3.33.0 to 3.34.0
@@ -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.33.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.32.0...v3.33.0) (2021-09-21) | ||
@@ -8,0 +19,0 @@ |
@@ -8,13 +8,8 @@ "use strict"; | ||
const constants_1 = require("./constants"); | ||
/** | ||
* Builds the url and the form fields used for a presigned s3 post. | ||
*/ | ||
const createPresignedPost = async (client, { Bucket, Key, Conditions = [], Fields = {}, Expires = 3600 }) => { | ||
const { systemClockOffset, base64Encoder, utf8Decoder, sha256 } = client.config; | ||
const now = new Date(Date.now() + systemClockOffset); | ||
// signingDate in format like '20201028T070711Z'. | ||
const signingDate = iso8601(now).replace(/[\-:]/g, ""); | ||
const shortDate = signingDate.substr(0, 8); | ||
const clientRegion = await client.config.region(); | ||
// Prepare credentials. | ||
const credentialScope = signature_v4_1.createScope(shortDate, clientRegion, "s3"); | ||
@@ -31,3 +26,2 @@ const clientCredentials = await client.config.credentials(); | ||
}; | ||
// Prepare policies. | ||
const expiration = new Date(now.valueOf() + Expires * 1000); | ||
@@ -45,3 +39,2 @@ const conditions = [ | ||
}))); | ||
// Sign the request. | ||
const signingKey = await signature_v4_1.getSigningKey(sha256, clientCredentials, shortDate, clientRegion, "s3"); | ||
@@ -70,2 +63,2 @@ const signature = await hmac(sha256, signingKey, encodedPolicy); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlUHJlc2lnbmVkUG9zdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3V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JldHVybiBoYXNoLmRpZ2VzdCgpO1xufTtcbiJdfQ== |
{ | ||
"name": "@aws-sdk/s3-presigned-post", | ||
"version": "3.33.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", | ||
@@ -20,12 +21,12 @@ "test": "jest" | ||
"dependencies": { | ||
"@aws-sdk/signature-v4": "3.33.0", | ||
"@aws-sdk/types": "3.32.0", | ||
"@aws-sdk/util-format-url": "3.32.0", | ||
"@aws-sdk/util-hex-encoding": "3.32.0", | ||
"@aws-sdk/signature-v4": "3.34.0", | ||
"@aws-sdk/types": "3.34.0", | ||
"@aws-sdk/util-format-url": "3.34.0", | ||
"@aws-sdk/util-hex-encoding": "3.34.0", | ||
"tslib": "^2.3.0" | ||
}, | ||
"devDependencies": { | ||
"@aws-sdk/client-s3": "3.33.0", | ||
"@aws-sdk/hash-node": "3.32.0", | ||
"@aws-sdk/protocol-http": "3.32.0", | ||
"@aws-sdk/client-s3": "3.34.0", | ||
"@aws-sdk/hash-node": "3.34.0", | ||
"@aws-sdk/protocol-http": "3.34.0", | ||
"@types/jest": "^26.0.4", | ||
@@ -32,0 +33,0 @@ "@types/node": "^12.0.2", |
{ | ||
"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", "dom"], | ||
"declarationDir": "./dist/types", | ||
"rootDir": "./src", | ||
"outDir": "./dist/es", | ||
"baseUrl": "." | ||
"outDir": "dist/es", | ||
"rootDir": "src" | ||
}, | ||
@@ -9,0 +8,0 @@ "extends": "../../tsconfig.es.json", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
212541
32
+ Added@aws-sdk/is-array-buffer@3.34.0(transitive)
+ Added@aws-sdk/querystring-builder@3.34.0(transitive)
+ Added@aws-sdk/signature-v4@3.34.0(transitive)
+ Added@aws-sdk/types@3.34.0(transitive)
+ Added@aws-sdk/util-format-url@3.34.0(transitive)
+ Added@aws-sdk/util-hex-encoding@3.34.0(transitive)
+ Added@aws-sdk/util-uri-escape@3.34.0(transitive)
- Removed@aws-sdk/is-array-buffer@3.32.0(transitive)
- Removed@aws-sdk/querystring-builder@3.32.0(transitive)
- Removed@aws-sdk/signature-v4@3.33.0(transitive)
- Removed@aws-sdk/types@3.32.0(transitive)
- Removed@aws-sdk/util-format-url@3.32.0(transitive)
- Removed@aws-sdk/util-hex-encoding@3.32.0(transitive)
- Removed@aws-sdk/util-uri-escape@3.32.0(transitive)
Updated@aws-sdk/signature-v4@3.34.0
Updated@aws-sdk/types@3.34.0