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.21.9 to 0.21.10

17

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

@@ -22,4 +22,4 @@ "homepage": "https://github.com/architect/aws-lite",

"lint": "eslint --fix .",
"test:16.x": "npm run gen && npm run test:plugins && npm run test:unit",
"test:live": "cross-env tape 'test/live/**/*-test.js' | tap-arc",
"test:nolint": "npm run gen && npm run test:plugins && npm run coverage",
"test:plugins": "cross-env tape 'plugins/**/test/**/*-test.mjs' | tap-arc",

@@ -41,4 +41,3 @@ "test:precommit": "cross-env PRECOMMIT=true npm run gen && npm run lint",

"dependencies": {
"aws4": "^1.13.0",
"ini": "^4.1.2"
"aws4": "^1.13.0"
},

@@ -48,10 +47,10 @@ "devDependencies": {

"@architect/eslint-config": "^3.0.0",
"@aws-sdk/util-dynamodb": "^3.577.0",
"@smithy/smithy-client": "^3.0.1",
"adm-zip": "^0.5.12",
"@aws-sdk/util-dynamodb": "^3.596.0",
"@smithy/smithy-client": "^3.1.2",
"adm-zip": "^0.5.14",
"cross-env": "^7.0.3",
"eslint": "^9.3.0",
"eslint": "^9.4.0",
"fast-xml-parser": "^4.4.0",
"mock-tmp": "^0.0.4",
"nyc": "^15.1.0",
"nyc": "^17.0.0",
"semver": "^7.6.2",

@@ -58,0 +57,0 @@ "simple-git-hooks": "^2.11.1",

@@ -1,2 +0,2 @@

let aws, ini, xml
let aws, xml

@@ -118,10 +118,32 @@ // AWS-flavored JSON stuff

let { readFile } = require('node:fs/promises')
if (!ini) ini = require('ini')
let data = await readFile(file)
let result = ini.parse(data.toString())
cache[file] = result
return result
cache[file] = parseAwsIni(data.toString())
return cache[file]
}
// mhart's fairly strict INI parser – only deals with alpha keys, data must be within sections
// Adapted from: https://github.com/mhart/awscred
// Added inline and whole line comment support
function parseAwsIni (ini) {
let section
let out = Object.create(null)
let re = /^\[([^\]]+)\]\s*(?:#.*)?$|^([a-z_]+)\s*=\s*(.+?)\s*(?:#.*)?$/
let lines = ini.split(/\r?\n/)
/* istanbul ignore next */
lines.forEach(line => {
let match = line.match(re)
if (!match) return
if (match[1]) {
section = match[1]
if (out[section] == null) out[section] = Object.create(null)
}
else if (section) {
out[section][match[2]] = match[3]
}
})
return out
}
function tidyQuery (obj) {

@@ -128,0 +150,0 @@ let qs = require('node:querystring')

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