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

aws-testing-library

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-testing-library - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

3

lib/common/api.d.ts

@@ -0,4 +1,5 @@

import { Method } from 'axios';
import { IPlainObject } from '../utils/api';
export interface IApiProps {
method: string;
method: Method;
url: string;

@@ -5,0 +6,0 @@ params?: IPlainObject;

@@ -7,4 +7,6 @@ "use strict";

if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
t[p[i]] = s[p[i]];
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;

@@ -11,0 +13,0 @@ };

@@ -6,3 +6,3 @@ export interface ICommonProps {

}
export declare const sleep: (ms: number) => Promise<{}>;
export declare const sleep: (ms: number) => Promise<unknown>;
export declare const verifyProps: (props: any, expectedProps: string[]) => void;

@@ -0,6 +1,7 @@

import { Method } from 'axios';
export interface IPlainObject extends Record<string, string> {
}
export declare const getResponse: (url: string, method: string, params?: IPlainObject | undefined, data?: IPlainObject | undefined, headers?: IPlainObject | undefined) => Promise<{
export declare const getResponse: (url: string, method: Method, params?: IPlainObject | undefined, data?: IPlainObject | undefined, headers?: IPlainObject | undefined) => Promise<{
statusCode: number;
data: any;
}>;

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

exports.getResponse = async (url, method, params, data, headers) => {
const result = await axios_1.default({
const config = {
data,

@@ -14,5 +14,6 @@ headers,

validateStatus: () => true,
});
};
const result = await axios_1.default(config);
return { statusCode: result.status, data: result.data };
};
//# sourceMappingURL=api.js.map

@@ -1,1 +0,1 @@

export declare const deploy: (stage?: string) => Promise<{}>;
export declare const deploy: (stage?: string) => Promise<unknown>;
{
"name": "aws-testing-library",
"version": "1.0.2",
"version": "1.0.3",
"description": "Chai and Jest matchers for aws services",

@@ -15,3 +15,3 @@ "scripts": {

"tag": "git tag \"v$npm_package_version\" && git push --tags",
"prepublishOnly": "yarn run tag && yarn lint && yarn run build"
"prepublishOnly": "yarn run build"
},

@@ -47,23 +47,23 @@ "files": [

"@types/chai": "^4.1.7",
"@types/jest": "^23.3.2",
"@types/jest-diff": "^20.0.0",
"@types/jest-matcher-utils": "^21.0.1",
"@types/jest": "^24.0.13",
"@types/jest-diff": "^20.0.1",
"@types/jest-matcher-utils": "^21.0.2",
"@types/mockdate": "^2.0.0",
"@types/node": "^10.11.1",
"@types/node": "^12.0.4",
"@types/uuid": "^3.4.4",
"chai": "^4.2.0",
"jest": "^23.6.0",
"jest-junit": "^5.1.0",
"jest": "^24.8.0",
"jest-junit": "^6.4.0",
"mockdate": "^2.0.2",
"prettier": "^1.14.3",
"ts-jest": "^23.10.1",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.15.0",
"typescript": "^3.0.3"
"prettier": "^1.17.1",
"ts-jest": "^24.0.2",
"ts-node": "^8.2.0",
"tslint": "^5.17.0",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.5.1"
},
"dependencies": {
"aws-sdk": "^2.323.0",
"axios": "^0.18.1",
"jest-diff": "^23.6.0",
"aws-sdk": "^2.469.0",
"axios": "^0.19.0",
"jest-diff": "^24.8.0",
"uuid": "^3.3.2"

@@ -70,0 +70,0 @@ },

Sorry, the diff of this file is not supported yet

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