New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.1 to 1.0.2

3

lib/utils/cloudwatch.js

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

const getLogGroupName = (functionName) => `/aws/lambda/${functionName}`;
const hoursToMilliseconds = (hours) => hours * 60 * 60 * 1000;
exports.filterLogEvents = async (region, functionName, pattern) => {

@@ -10,2 +11,3 @@ const cloudWatchLogs = new AWS.CloudWatchLogs({ region });

const filterPattern = `"${pattern}"`; // enclose with "" to support special characters
const startTime = Date.now() - hoursToMilliseconds(1);
const { events = [] } = await cloudWatchLogs

@@ -17,2 +19,3 @@ .filterLogEvents({

logGroupName,
startTime,
})

@@ -19,0 +22,0 @@ .promise();

2

package.json
{
"name": "aws-testing-library",
"version": "1.0.1",
"version": "1.0.2",
"description": "Chai and Jest matchers for aws services",

@@ -5,0 +5,0 @@ "scripts": {

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