@aws-lite/client
Advanced tools
Comparing version 0.21.7 to 0.21.8
{ | ||
"name": "@aws-lite/client", | ||
"version": "0.21.7", | ||
"version": "0.21.8", | ||
"description": "A simple, fast, extensible AWS client", | ||
@@ -71,3 +71,5 @@ "homepage": "https://github.com/architect/aws-lite", | ||
"plugins/dynamodb", | ||
"plugins/iam", | ||
"plugins/lambda", | ||
"plugins/organizations", | ||
"plugins/rds-data", | ||
@@ -74,0 +76,0 @@ "plugins/route53", |
@@ -207,3 +207,5 @@ <a href="https://aws-lite.org"> | ||
- [DynamoDB](https://www.npmjs.com/package/@aws-lite/dynamodb) | ||
- [IAM](https://www.npmjs.com/package/@aws-lite/iam) | ||
- [Lambda](https://www.npmjs.com/package/@aws-lite/lambda) | ||
- [Organizations](https://www.npmjs.com/package/@aws-lite/organizations) | ||
- [RDS Data Service](https://www.npmjs.com/package/@aws-lite/rds-data) | ||
@@ -210,0 +212,0 @@ - [Route 53](https://www.npmjs.com/package/@aws-lite/route53) |
@@ -7,3 +7,2 @@ let request = require('./request') | ||
let errorHandler = require('./error') | ||
let aws | ||
let enumerable = false | ||
@@ -77,9 +76,5 @@ | ||
// Only require the vendor if it's actually needed | ||
if (!aws) { | ||
aws = require('./_vendor/aws') | ||
} | ||
let pluginUtils = { | ||
awsjsonMarshall: aws.marshall, | ||
awsjsonUnmarshall: aws.unmarshall, | ||
awsjsonMarshall: awsjson.marshall, | ||
awsjsonUnmarshall: awsjson.unmarshall, | ||
config: configuration, | ||
@@ -162,3 +157,3 @@ credentials, | ||
// If a payload property isn't included, it _is_ the payload | ||
let unmarshalled = awsjson.unmarshall(pluginRes.payload || pluginRes, unmarshalling, config) | ||
let unmarshalled = awsjson.unmarshall(pluginRes.payload || pluginRes, { awsjson: unmarshalling, config }) | ||
response = pluginRes.payload | ||
@@ -165,0 +160,0 @@ ? { ...pluginRes, payload: unmarshalled } |
let aws, ini, xml | ||
// AWS-flavored JSON stuff | ||
function marshaller (method, obj, awsjsonSetting, config) { | ||
function marshaller (method, obj, options) { | ||
if (!aws) { | ||
@@ -9,2 +9,6 @@ // Only require the vendor if + when it's actually needed | ||
} | ||
/* istanbul ignore next */ | ||
options = options || {} | ||
/* istanbul ignore next */ | ||
let { awsjson: awsjsonSetting, config = {} } = options | ||
@@ -11,0 +15,0 @@ // Allow arbitrary AWS JSON marshalling options |
@@ -14,3 +14,3 @@ /** | ||
/** | ||
* These global services still specify region and aren't currently accounted for in aws4, so for now will not be enumerated here: 'organizations', 'shield', 'shield-fips' | ||
* These global services still specify region and aren't currently accounted for in aws4, so for now will not be enumerated here: 'shield', 'shield-fips' | ||
* 'directconnect' + 'fms' are both listed as a global services here: https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/ – however, they appear to have normal regional endpoints, so perhaps that's errata? | ||
@@ -22,3 +22,3 @@ */ | ||
// Known global services: | ||
'acm', 'cloudfront', 'globalaccelerator', 'route53', 'iam', 'sts', 'waf', 'waf-fips', | ||
'acm', 'cloudfront', 'globalaccelerator', 'organizations', 'route53', 'iam', 'sts', 'waf', 'waf-fips', | ||
// Mentioned in aws4 as global but not found Service Endpoints and Quotas | ||
@@ -25,0 +25,0 @@ 'ls', 'importexport', |
@@ -81,3 +81,3 @@ let { awsjson, copy, buildXML, getEndpointParams, tidyQuery, validateProtocol, AwsJSONContentType, XMLContentType } = require('../lib') | ||
} | ||
body = awsjson.marshall(body, params.awsjson, config) | ||
body = awsjson.marshall(body, { awsjson: params.awsjson, config }) | ||
} | ||
@@ -84,0 +84,0 @@ // Final JSON encoding |
@@ -177,3 +177,3 @@ let aws4 = require('aws4') | ||
try { | ||
payload = awsjson.unmarshall(payload, null, config) | ||
payload = awsjson.unmarshall(payload, { config }) | ||
} | ||
@@ -180,0 +180,0 @@ catch { /* noop, it's already parsed */ } |
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
137615
220
2584