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

aws-sdk-wrap

Package Overview
Dependencies
Maintainers
1
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-sdk-wrap - npm Package Compare versions

Comparing version 3.2.1 to 3.2.2

15

lib/index.js

@@ -7,2 +7,4 @@ const assert = require('assert');

const Joi = require('joi-strict');
const sqs = require('./util/sqs');

@@ -25,7 +27,10 @@

module.exports = ({
config = {},
logger = null
} = {}) => {
module.exports = (opts = {}) => {
Joi.assert(opts, Joi.object().keys({
config: Joi.object().optional(),
logger: Joi.any().optional()
}));
const services = {};
const config = get(opts, 'config', {});
const logger = get(opts, 'logger', null);

@@ -89,2 +94,2 @@ const getService = service => {

};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJhc3NlcnQiLCJyZXF1aXJlIiwiZ2V0IiwiQVdTIiwic3FzIiwiZXJyb3JzIiwibG9va3VwQ2FjaGUiLCJNYXAiLCJnZXRBdHRyIiwib2JqIiwia2V5IiwiaGFzIiwic2V0IiwiT2JqZWN0IiwiZW50cmllcyIsInJlZHVjZSIsInByZXYiLCJrIiwidiIsImFzc2lnbiIsInRvTG93ZXJDYXNlIiwibW9kdWxlIiwiZXhwb3J0cyIsImNvbmZpZyIsImxvZ2dlciIsInNlcnZpY2VzIiwiZ2V0U2VydmljZSIsInNlcnZpY2UiLCJzZXJ2aWNlTG93ZXIiLCJ1bmRlZmluZWQiLCJTZXJ2aWNlIiwic3BsaXQiLCJlIiwiVHlwZUVycm9yIiwiY2FsbCIsImFjdGlvbiIsInBhcmFtcyIsImV4cGVjdGVkRXJyb3JDb2RlcyIsIkFycmF5IiwiaXNBcnJheSIsImV2ZXJ5Iiwic3BsaXRJbmRleCIsImluZGV4T2YiLCJzbGljZSIsImZ1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IGVycm9yc1xuICB9O1xufTtcbiJdfQ==
{
"name": "aws-sdk-wrap",
"version": "3.2.1",
"version": "3.2.2",
"description": "Wrapper around aws-sdk",

@@ -103,2 +103,3 @@ "main": "lib/index.js",

"dependencies": {
"joi-strict": "1.0.9",
"lodash.chunk": "4.2.0",

@@ -105,0 +106,0 @@ "lodash.get": "4.4.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