@smithy/core 3.20.6 → 3.20.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -193,6 +193,11 @@ class HttpBindingProtocol extends HttpProtocol {
|
|
|
193
193
|
const memberTraits = memberNs.getMergedTraits() ?? {};
|
|
194
194
|
const inputMemberValue = input[memberName];
|
|
195
195
|
if (inputMemberValue == null && !memberNs.isIdempotencyToken()) {
|
|
196
|
+
if (memberTraits.httpLabel) {
|
|
197
|
+
if (request.path.includes(`{${memberName}+}`) || request.path.includes(`{${memberName}}`)) {
|
|
198
|
+
throw new Error(`No value provided for input HTTP label: ${memberName}.`);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
196
201
|
continue;
|
|
197
202
|
}
|
|
198
203
|
if (memberTraits.httpPayload) {
|
|
@@ -49,6 +49,11 @@ export class HttpBindingProtocol extends HttpProtocol {
|
|
|
49
49
|
const memberTraits = memberNs.getMergedTraits() ?? {};
|
|
50
50
|
const inputMemberValue = input[memberName];
|
|
51
51
|
if (inputMemberValue == null && !memberNs.isIdempotencyToken()) {
|
|
52
|
+
if (memberTraits.httpLabel) {
|
|
53
|
+
if (request.path.includes(`{${memberName}+}`) || request.path.includes(`{${memberName}}`)) {
|
|
54
|
+
throw new Error(`No value provided for input HTTP label: ${memberName}.`);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
52
57
|
continue;
|
|
53
58
|
}
|
|
54
59
|
if (memberTraits.httpPayload) {
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/core",
|
|
3
|
-
"version": "3.20.
|
|
3
|
+
"version": "3.20.8",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
6
6
|
"build:cjs": "node ../../scripts/inline core",
|
|
7
7
|
"build:es": "yarn g:tsc -p tsconfig.es.json",
|
|
8
8
|
"build:types": "yarn g:tsc -p tsconfig.types.json",
|
|
9
|
-
"build:types:downlevel": "
|
|
10
|
-
"stage-release": "
|
|
11
|
-
"clean": "
|
|
9
|
+
"build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
|
|
10
|
+
"stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
|
|
11
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
12
12
|
"lint": "npx eslint -c ../../.eslintrc.js \"src/**/*.ts\" --fix && node ./scripts/lint",
|
|
13
13
|
"format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
14
14
|
"extract:docs": "api-extractor run --local",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"concurrently": "7.0.0",
|
|
126
126
|
"downlevel-dts": "0.10.1",
|
|
127
127
|
"json-bigint": "^1.0.0",
|
|
128
|
-
"
|
|
128
|
+
"premove": "4.0.0",
|
|
129
129
|
"typedoc": "0.23.23"
|
|
130
130
|
},
|
|
131
131
|
"typedoc": {
|