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

@aws-lite/client

Package Overview
Dependencies
Maintainers
3
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-lite/client - npm Package Compare versions

Comparing version 0.17.1 to 0.17.2

2

package.json
{
"name": "@aws-lite/client",
"version": "0.17.1",
"version": "0.17.2",
"description": "A simple, fast, extensible AWS client",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/architect/aws-lite",

module.exports = function errorHandler (input) {
/* istanbul ignore next */ // jic!
/* istanbul ignore next: jic! */
if (input instanceof Error) {

@@ -4,0 +4,0 @@ throw input

@@ -20,2 +20,3 @@ // Service API plugin getter

let plugin = await item
/* istanbul ignore next: our plugins export default, but others may not */
plugin = plugin.default ? plugin.default : plugin

@@ -26,2 +27,3 @@ resolved.push(plugin)

else if (is.object(item)) {
/* istanbul ignore next: our plugins export default, but others may not */
let plugin = item.default ? item.default : item

@@ -36,2 +38,3 @@ resolved.push(plugin)

/* istanbul ignore else */
if (autoloadPlugins) {

@@ -44,3 +47,3 @@ let { exists } = require('./lib')

let processDir = process.cwd()
let packageJson = join(processDir, 'package.json')
let packageJsonFile = join(processDir, 'package.json')

@@ -62,3 +65,3 @@ let processNodeModulesDir = join(process.cwd(), 'node_modules')

// Then let's see what's right nearby; this can be unreliable, as package managers may not always properly flatten the dependency tree
else if (relativeNodeModulesDir && await exists(relativeNodeModulesDir)) {
else /* istanbul ignore next */ if (relativeNodeModulesDir && await exists(relativeNodeModulesDir)) {
let found = await scanNodeModulesDir(relativeNodeModulesDir)

@@ -69,6 +72,6 @@ if (found.length) pluginsToLoad.push(...dedupe(plugins.concat(found)))

// Perhaps the least reliable due to the likelihood of second-order deps: read the package.json (if possible)
else if (await exists(packageJson)) {
else if (await exists(packageJsonFile)) {
let { readFile } = require('fs/promises')
let package = JSON.parse(await readFile(packageJson))
let { dependencies: deps } = package
let packageJson = JSON.parse(await readFile(packageJsonFile))
let { dependencies: deps } = packageJson
if (deps) {

@@ -126,2 +129,3 @@ let found = Object.keys(deps)

// Find first-party plugins
/* istanbul ignore next: TODO code path not run in 14.x tests, remove once deprecated */
if (mods.includes(awsLite)) {

@@ -128,0 +132,0 @@ let knownPlugins = await readdir(join(dir, awsLite))

@@ -211,3 +211,3 @@ let aws, ini, xml

let payloadToReturn = parsed[key]
/* istanbul ignore next */ // TODO remove + test
/* istanbul ignore next: TODO remove + test */
if (payloadToReturn[textNodeName]) {

@@ -214,0 +214,0 @@ payloadToReturn[key] = payloadToReturn[textNodeName]

@@ -33,3 +33,3 @@ let aws4 = require('aws4')

module.exports = async function _request (params, creds, region, config, metadata) {
/* istanbul ignore next */ // TODO remove + test
/* istanbul ignore next: TODO remove + test */
if ((params.paginator?.default === 'enabled' && params.paginate !== false) ||

@@ -151,3 +151,3 @@ (params.paginator && params.paginate)) {

// Normalize host (again)
/* istanbul ignore next */ // This won't get seen by nyc
/* istanbul ignore next: this won't get seen by nyc */
options.host = options.host || options.hostname

@@ -210,3 +210,3 @@ /* istanbul ignore next */

let data = []
/* istanbul ignore next */ // We can always expect headers, but jic
/* istanbul ignore next: we can always expect headers, but jic */
let { headers = {}, statusCode } = res

@@ -213,0 +213,0 @@ let ok = statusCode >= 200 && statusCode < 303

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