sqs-producer
Advanced tools
Comparing version 1.3.3 to 1.3.4
'use strict'; | ||
var AWS = require('aws-sdk'); | ||
var selectn = require('selectn'); | ||
var _ = require('lodash'); | ||
var requiredOptions = [ | ||
@@ -152,3 +152,3 @@ 'queueUrl' | ||
var size = selectn('Attributes.ApproximateNumberOfMessages', result); | ||
var size = _.get(result, 'Attributes.ApproximateNumberOfMessages'); | ||
cb(null, parseInt(size, 10)); | ||
@@ -155,0 +155,0 @@ }); |
{ | ||
"name": "sqs-producer", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "Enqueues messages onto a given SQS queue", | ||
@@ -30,3 +30,3 @@ "main": "index.js", | ||
"aws-sdk": "^2.1.2", | ||
"selectn": "^1.0.4" | ||
"lodash": "^4.11.2" | ||
}, | ||
@@ -36,3 +36,3 @@ "devDependencies": { | ||
"codeclimate-test-reporter": "^0.3.0", | ||
"istanbul": "^0.3.5", | ||
"istanbul": "^0.4.3", | ||
"jscoverage": "^0.5.9", | ||
@@ -39,0 +39,0 @@ "jshint": "^2.5.10", |
sqs-producer | ||
==================== | ||
[![Build Status](https://travis-ci.org/bbc/sqs-producer.svg)](https://travis-ci.org/bbc/sqs-producer) [![Code Climate](https://codeclimate.com/github/BBC/sqs-producer/badges/gpa.svg)](https://codeclimate.com/github/BBC/sqs-producer) [![Test Coverage](https://codeclimate.com/github/BBC/sqs-producer/badges/coverage.svg)](https://codeclimate.com/github/BBC/sqs-producer) | ||
[![Build Status](https://travis-ci.org/bbc/sqs-producer.svg?branch=master)](https://travis-ci.org/bbc/sqs-producer?branch=master) [![Code Climate](https://codeclimate.com/github/BBC/sqs-producer/badges/gpa.svg)](https://codeclimate.com/github/BBC/sqs-producer) [![Test Coverage](https://codeclimate.com/github/BBC/sqs-producer/badges/coverage.svg)](https://codeclimate.com/github/BBC/sqs-producer) | ||
@@ -6,0 +6,0 @@ Enqueues messages onto a given SQS queue |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
8513
0
+ Addedlodash@^4.11.2
+ Addedlodash@4.17.21(transitive)
- Removedselectn@^1.0.4
- Removedbrackets2dots@1.1.0(transitive)
- Removedcurry2@1.0.3(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddotsplit.js@1.1.0(transitive)
- Removedfast-bind@1.0.0(transitive)
- Removedms@2.0.0(transitive)
- Removedselectn@1.1.2(transitive)