Socket
Socket
Sign inDemoInstall

@aws-sdk/signature-v4

Package Overview
Dependencies
Maintainers
4
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/signature-v4 - npm Package Compare versions

Comparing version 1.0.0-alpha.8 to 1.0.0-alpha.9

dist/cjs/utilDate.d.ts

95

CHANGELOG.md

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

# [1.0.0-alpha.9](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/signature-v4@0.1.0-preview.3...@aws-sdk/signature-v4@1.0.0-alpha.9) (2020-02-06)
### Features
* remove protocol-timestamp package ([#816](https://github.com/aws/aws-sdk-js-v3/issues/816)) ([9913924](https://github.com/aws/aws-sdk-js-v3/commit/9913924))
# 1.0.0-alpha.13 (2020-01-24)
# 1.0.0-alpha.12 (2020-01-22)
# 1.0.0-alpha.9 (2020-01-17)
# 1.0.0-alpha.8 (2020-01-16)
# 1.0.0-alpha.4 (2020-01-14)
### Bug Fixes
* **signature-v4:** use correct main entry point ([#712](https://github.com/aws/aws-sdk-js-v3/issues/712)) ([16e233a](https://github.com/aws/aws-sdk-js-v3/commit/16e233a))
# 1.0.0-alpha.1 (2020-01-10)
# 0.9.0 (2020-01-09)
### Bug Fixes
* update updated types ([#474](https://github.com/aws/aws-sdk-js-v3/issues/474)) ([9efac3e](https://github.com/aws/aws-sdk-js-v3/commit/9efac3e))
* use httpRequestOptions in signature-v4 ([#623](https://github.com/aws/aws-sdk-js-v3/issues/623)) ([4548971](https://github.com/aws/aws-sdk-js-v3/commit/4548971))
### Features
* start endpoint resolver generation ([#472](https://github.com/aws/aws-sdk-js-v3/issues/472)) ([d0f9250](https://github.com/aws/aws-sdk-js-v3/commit/d0f9250))
# 0.7.0 (2019-11-19)
# 0.6.0 (2019-10-30)
### Features
* **signature-v4:** add support to override the set of unsignableHeaders ([#420](https://github.com/aws/aws-sdk-js-v3/issues/420)) ([8d6b27a](https://github.com/aws/aws-sdk-js-v3/commit/8d6b27a))
# 0.4.0 (2019-09-19)
# 0.3.0 (2019-09-09)
### Features
* commit all clients ([#324](https://github.com/aws/aws-sdk-js-v3/issues/324)) ([cb268ed](https://github.com/aws/aws-sdk-js-v3/commit/cb268ed))
# 0.2.0 (2019-07-12)
### Features
* add npm badges for individual packages ([#251](https://github.com/aws/aws-sdk-js-v3/issues/251)) ([8adc10c](https://github.com/aws/aws-sdk-js-v3/commit/8adc10c))
* update jest v20 to v24 ([#243](https://github.com/aws/aws-sdk-js-v3/issues/243)) ([1e156ab](https://github.com/aws/aws-sdk-js-v3/commit/1e156ab))
# 0.1.0 (2019-04-19)
# [1.0.0-alpha.8](https://github.com/aws/aws-sdk-js-v3/compare/@aws-sdk/signature-v4@0.1.0-preview.3...@aws-sdk/signature-v4@1.0.0-alpha.8) (2020-01-24)

@@ -8,0 +103,0 @@

6

dist/cjs/SignatureV4.js

@@ -11,5 +11,5 @@ "use strict";

const constants_1 = require("./constants");
const protocol_timestamp_1 = require("@aws-sdk/protocol-timestamp");
const util_hex_encoding_1 = require("@aws-sdk/util-hex-encoding");
const hasHeader_1 = require("./hasHeader");
const utilDate_1 = require("./utilDate");
class SignatureV4 {

@@ -166,3 +166,3 @@ constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true }) {

function formatDate(now) {
const longDate = protocol_timestamp_1.iso8601(now).replace(/[\-:]/g, "");
const longDate = utilDate_1.iso8601(now).replace(/[\-:]/g, "");
return {

@@ -179,4 +179,4 @@ longDate,

function getTtl(start, expiration) {
return Math.floor((protocol_timestamp_1.toDate(expiration).valueOf() - protocol_timestamp_1.toDate(start).valueOf()) / 1000);
return Math.floor((utilDate_1.toDate(expiration).valueOf() - utilDate_1.toDate(start).valueOf()) / 1000);
}
//# sourceMappingURL=SignatureV4.js.map

@@ -9,5 +9,5 @@ import * as tslib_1 from "tslib";

import { ALGORITHM_IDENTIFIER, ALGORITHM_QUERY_PARAM, AMZ_DATE_HEADER, AMZ_DATE_QUERY_PARAM, AUTH_HEADER, CREDENTIAL_QUERY_PARAM, EXPIRES_QUERY_PARAM, MAX_PRESIGNED_TTL, SHA256_HEADER, SIGNATURE_QUERY_PARAM, SIGNED_HEADERS_QUERY_PARAM, TOKEN_HEADER, TOKEN_QUERY_PARAM, EVENT_ALGORITHM_IDENTIFIER } from "./constants";
import { iso8601, toDate } from "@aws-sdk/protocol-timestamp";
import { toHex } from "@aws-sdk/util-hex-encoding";
import { hasHeader } from "./hasHeader";
import { toDate, iso8601 } from "./utilDate";
var SignatureV4 = /** @class */ (function () {

@@ -14,0 +14,0 @@ function SignatureV4(_a) {

{
"name": "@aws-sdk/signature-v4",
"version": "1.0.0-alpha.8",
"version": "1.0.0-alpha.9",
"description": "A standalone implementation of the AWS Signature V4 request signing algorithm",

@@ -22,3 +22,2 @@ "main": "./dist/cjs/index.js",

"@aws-sdk/is-array-buffer": "^1.0.0-alpha.2",
"@aws-sdk/protocol-timestamp": "^1.0.0-alpha.4",
"@aws-sdk/types": "^1.0.0-alpha.4",

@@ -25,0 +24,0 @@ "@aws-sdk/util-hex-encoding": "^1.0.0-alpha.2",

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