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.8 to 1.0.9

2

lib/chai/cloudwatch.js

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

const props = this._obj;
common_1.verifyProps(Object.assign({}, props, { pattern }), cloudwatch_1.expectedProps);
common_1.verifyProps(Object.assign(Object.assign({}, props), { pattern }), cloudwatch_1.expectedProps);
const { region, function: functionName, startTime = common_1.epochDateMinusHours(1), } = props;

@@ -12,0 +12,0 @@ const { events } = await cloudwatch_2.filterLogEvents(region, functionName, startTime, pattern);

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

const props = this._obj;
common_1.verifyProps(Object.assign({}, props, { key }), dynamoDb_1.expectedProps);
common_1.verifyProps(Object.assign(Object.assign({}, props), { key }), dynamoDb_1.expectedProps);
const { region, table } = props;

@@ -12,0 +12,0 @@ let received = await dynamoDb_2.getItem(region, table, key);

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

const props = this._obj;
common_1.verifyProps(Object.assign({}, props, { matcher }), kinesis_1.expectedProps);
common_1.verifyProps(Object.assign(Object.assign({}, props), { matcher }), kinesis_1.expectedProps);
const { region, stream, timeout = 10 * 1000, pollEvery = 500 } = props;

@@ -12,0 +12,0 @@ const found = await kinesis_2.existsInStream(region, stream, matcher, timeout, pollEvery);

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

const props = this._obj;
common_1.verifyProps(Object.assign({}, props, { key }), s3_1.expectedProps);
common_1.verifyProps(Object.assign(Object.assign({}, props), { key }), s3_1.expectedProps);
const { region, bucket } = props;

@@ -12,0 +12,0 @@ const { body: received, found } = await s3_2.getObject(region, bucket, key);

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

const props = this._obj;
common_1.verifyProps(Object.assign({}, props, { matcher }), sqs_1.expectedProps);
common_1.verifyProps(Object.assign(Object.assign({}, props), { matcher }), sqs_1.expectedProps);
const { region, queueUrl } = props;

@@ -12,0 +12,0 @@ const found = await sqs_2.existsInQueue(region, queueUrl, matcher);

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

const props = this._obj;
common_1.verifyProps(Object.assign({}, props, { state }), stepFunctions_1.expectedProps);
common_1.verifyProps(Object.assign(Object.assign({}, props), { state }), stepFunctions_1.expectedProps);
const { region, stateMachineArn } = props;

@@ -22,3 +22,3 @@ const received = await stepFunctions_2.getCurrentState(region, stateMachineArn);

const props = this._obj;
common_1.verifyProps(Object.assign({}, props, { state }), stepFunctions_1.expectedProps);
common_1.verifyProps(Object.assign(Object.assign({}, props), { state }), stepFunctions_1.expectedProps);
const { region, stateMachineArn } = props;

@@ -25,0 +25,0 @@ const states = await stepFunctions_2.getStates(region, stateMachineArn);

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

exports.toHaveLog = async function (props, pattern) {
index_1.verifyProps(Object.assign({}, props, { pattern }), cloudwatch_1.expectedProps);
index_1.verifyProps(Object.assign(Object.assign({}, props), { pattern }), cloudwatch_1.expectedProps);
const { region, function: functionName, startTime = index_1.epochDateMinusHours(1), } = props;

@@ -11,0 +11,0 @@ try {

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

exports.toHaveItem = async function (props, key, expected, strict = true) {
common_1.verifyProps(Object.assign({}, props, { key }), dynamoDb_1.expectedProps);
common_1.verifyProps(Object.assign(Object.assign({}, props), { key }), dynamoDb_1.expectedProps);
const { region, table } = props;

@@ -12,0 +12,0 @@ try {

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

exports.toHaveRecord = async function (props, matcher) {
common_1.verifyProps(Object.assign({}, props, { matcher }), kinesis_1.expectedProps);
common_1.verifyProps(Object.assign(Object.assign({}, props), { matcher }), kinesis_1.expectedProps);
const { region, stream, timeout = 10 * 1000, pollEvery = 500 } = props;

@@ -11,0 +11,0 @@ try {

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

exports.toHaveObject = async function (props, key, expected) {
common_1.verifyProps(Object.assign({}, props, { key }), s3_1.expectedProps);
common_1.verifyProps(Object.assign(Object.assign({}, props), { key }), s3_1.expectedProps);
const { region, bucket } = props;

@@ -12,0 +12,0 @@ try {

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

exports.toHaveMessage = async function (props, matcher) {
common_1.verifyProps(Object.assign({}, props, { matcher }), sqs_1.expectedProps);
common_1.verifyProps(Object.assign(Object.assign({}, props), { matcher }), sqs_1.expectedProps);
const { region, queueUrl } = props;

@@ -11,0 +11,0 @@ try {

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

exports.toBeAtState = async function (props, expected) {
common_1.verifyProps(Object.assign({}, props, { state: expected }), stepFunctions_1.expectedProps);
common_1.verifyProps(Object.assign(Object.assign({}, props), { state: expected }), stepFunctions_1.expectedProps);
const { region, stateMachineArn } = props;

@@ -43,3 +43,3 @@ try {

exports.toHaveState = async function (props, expected) {
common_1.verifyProps(Object.assign({}, props, { state: expected }), stepFunctions_1.expectedProps);
common_1.verifyProps(Object.assign(Object.assign({}, props), { state: expected }), stepFunctions_1.expectedProps);
const { region, stateMachineArn } = props;

@@ -46,0 +46,0 @@ try {

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

keySchema.map(key => {
itemKey = Object.assign({}, itemKey, { [key.AttributeName]: item[key.AttributeName] });
itemKey = Object.assign(Object.assign({}, itemKey), { [key.AttributeName]: item[key.AttributeName] });
});

@@ -10,0 +10,0 @@ return itemKey;

{
"name": "aws-testing-library",
"version": "1.0.8",
"version": "1.0.9",
"description": "Chai and Jest matchers for aws services",

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

"test:watch": "jest --watch",
"test:ci": "JEST_JUNIT_OUTPUT=./reports/junit/${npm_package_name}-test-results.xml jest --runInBand --ci",
"test:ci": "JEST_JUNIT_OUTPUT_DIR=./reports/junit JEST_JUNIT_OUTPUT_NAME=${npm_package_name}-test-results.xml jest --runInBand --ci",
"coverage": "jest --coverage",

@@ -42,2 +42,7 @@ "prettier": "prettier --write src/**/*.ts",

},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"homepage": "https://github.com/erezrokah/aws-testing-library/#readme",

@@ -47,2 +52,4 @@ "author": "Erez Rokah",

"devDependencies": {
"@commitlint/cli": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0",
"@types/chai": "^4.1.7",

@@ -56,4 +63,5 @@ "@types/jest": "^24.0.13",

"chai": "^4.2.0",
"jest": "^24.8.0",
"jest-junit": "^6.4.0",
"husky": "^3.0.4",
"jest": "^24.9.0",
"jest-junit": "^8.0.0",
"mockdate": "^2.0.2",

@@ -60,0 +68,0 @@ "prettier": "^1.17.1",

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

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

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

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

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