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

aws4-axios

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws4-axios - npm Package Compare versions

Comparing version 1.10.1 to 1.11.0

14

dist/__tests__/apiGateway.it.js
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -40,3 +41,2 @@ });

};
var _this = this;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -50,3 +50,3 @@ var axios_1 = __importDefault(require("axios"));

describe("API Gateway integration", function () {
it.each(methods)("HTTP %s", function (method) { return __awaiter(_this, void 0, void 0, function () {
it.each(methods)("HTTP %s", function (method) { return __awaiter(void 0, void 0, void 0, function () {
var client, message, result, err_1;

@@ -76,3 +76,3 @@ return __generator(this, function (_a) {

}); });
it.each(dataMethods)("HTTP %s", function (method) { return __awaiter(_this, void 0, void 0, function () {
it.each(dataMethods)("HTTP %s", function (method) { return __awaiter(void 0, void 0, void 0, function () {
var client, data, message, result, err_2;

@@ -109,3 +109,3 @@ return __generator(this, function (_a) {

}); });
it("handles custom headers", function () { return __awaiter(_this, void 0, void 0, function () {
it("handles custom headers", function () { return __awaiter(void 0, void 0, void 0, function () {
var client, data, message, result, err_3;

@@ -143,3 +143,3 @@ return __generator(this, function (_a) {

}); });
it("handles custom Content-Type header", function () { return __awaiter(_this, void 0, void 0, function () {
it("handles custom Content-Type header", function () { return __awaiter(void 0, void 0, void 0, function () {
var client, data, message, result, err_4;

@@ -177,3 +177,3 @@ return __generator(this, function (_a) {

}); });
it("sets content type as application/json when the body is an object", function () { return __awaiter(_this, void 0, void 0, function () {
it("sets content type as application/json when the body is an object", function () { return __awaiter(void 0, void 0, void 0, function () {
var client, data, message, result, err_5;

@@ -180,0 +180,0 @@ return __generator(this, function (_a) {

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -40,3 +41,2 @@ });

};
var _this = this;
Object.defineProperty(exports, "__esModule", { value: true });

@@ -53,3 +53,3 @@ var moxios_1 = __importDefault(require("moxios"));

});
it("should preserve headers", function () { return __awaiter(_this, void 0, void 0, function () {
it("should preserve headers", function () { return __awaiter(void 0, void 0, void 0, function () {
var client, data, url, request;

@@ -79,3 +79,3 @@ return __generator(this, function (_a) {

}); });
it("should preserve default headers - without interceptor", function () { return __awaiter(_this, void 0, void 0, function () {
it("should preserve default headers - without interceptor", function () { return __awaiter(void 0, void 0, void 0, function () {
var client, data, url, request;

@@ -100,3 +100,3 @@ return __generator(this, function (_a) {

}); });
it("should preserve default headers - with interceptor", function () { return __awaiter(_this, void 0, void 0, function () {
it("should preserve default headers - with interceptor", function () { return __awaiter(void 0, void 0, void 0, function () {
var client, data, url, request;

@@ -103,0 +103,0 @@ return __generator(this, function (_a) {

@@ -64,4 +64,4 @@ "use strict";

get = headers.get, head = headers.head, post = headers.post, put = headers.put, patch = headers.patch, headersToSign = __rest(headers, ["common", "delete", "get", "head", "post", "put", "patch"]);
var signingOptions = __assign({ method: method && method.toUpperCase(), host: host, path: pathname + search, region: region,
service: service }, (signQuery !== undefined ? { signQuery: signQuery } : {}), { body: transformedData, headers: headersToSign });
var signingOptions = __assign(__assign({ method: method && method.toUpperCase(), host: host, path: pathname + search, region: region,
service: service }, (signQuery !== undefined ? { signQuery: signQuery } : {})), { body: transformedData, headers: headersToSign });
aws4_1.sign(signingOptions);

@@ -68,0 +68,0 @@ config.headers = signingOptions.headers;

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

data: data,
headers: __assign({}, getDefaultHeaders(), { "Content-Type": "application/xml" }),
headers: __assign(__assign({}, getDefaultHeaders()), { "Content-Type": "application/xml" }),
transformRequest: getDefaultTransformRequest()

@@ -173,3 +173,3 @@ };

data: data,
headers: __assign({}, getDefaultHeaders(), { "Content-Type": "application/xml" }),
headers: __assign(__assign({}, getDefaultHeaders()), { "Content-Type": "application/xml" }),
transformRequest: getDefaultTransformRequest()

@@ -176,0 +176,0 @@ };

{
"name": "aws4-axios",
"version": "1.10.1",
"version": "1.11.0",
"description": "Axios request interceptor for signing requests with AWSv4",

@@ -36,17 +36,17 @@ "author": "James Bourne",

"devDependencies": {
"@types/jest": "^24.0.15",
"@types/moxios": "^0.4.8",
"@types/node": "^12.6.8",
"eslint": "^6.1.0",
"jest": "^24.8.0",
"jest-junit": "^6.4.0",
"@types/jest": "^25.1.4",
"@types/moxios": "^0.4.9",
"@types/node": "^13.9.2",
"eslint": "^6.8.0",
"jest": "^25.1.0",
"jest-junit": "^10.0.0",
"moxios": "^0.4.0",
"ts-jest": "^24.0.2",
"typescript": "^3.5.3"
"ts-jest": "^25.2.1",
"typescript": "^3.8.3"
},
"dependencies": {
"@types/aws4": "^1.5.1",
"aws4": "^1.8.0",
"axios": "^0.19.0"
"aws4": "^1.9.1",
"axios": "^0.19.2"
}
}
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