@aws-sdk/core 3.974.19 → 3.974.21

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.
@@ -1,6 +1,4 @@
1
- 'use strict';
2
-
3
- var protocols = require('@smithy/core/protocols');
1
+ const { buildQueryString } = require("@smithy/core/protocols");
4
2
 
5
3
  const validate = (str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6;
6
4
  const parse = (arn) => {
@@ -36,7 +34,7 @@ function formatUrl(request) {
36
34
  if (path && path.charAt(0) !== "/") {
37
35
  path = `/${path}`;
38
36
  }
39
- let queryString = query ? protocols.buildQueryString(query) : "";
37
+ let queryString = query ? buildQueryString(query) : "";
40
38
  if (queryString && queryString[0] !== "?") {
41
39
  queryString = `?${queryString}`;
42
40
  }
package/dist-es/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { emitWarningIfUnsupportedVersion, getLongPollPlugin, setCredentialFeature, setFeature, setTokenFeature, state, } from "./submodules/client/index";
2
- export { AwsSdkSigV4ASigner, AwsSdkSigV4Signer, AwsSdkSigV4Signer as AWSSDKSigV4Signer, getBearerTokenEnvKey, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS, resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config, resolveAwsSdkSigV4Config as resolveAWSSDKSigV4Config, validateSigningProperties, } from "./submodules/httpAuthSchemes/index";
3
- export { _toBool, _toNum, _toStr, awsExpectUnion, AwsEc2QueryProtocol, AwsJson1_0Protocol, AwsJson1_1Protocol, AwsJsonRpcProtocol, AwsQueryProtocol, AwsRestJsonProtocol, AwsRestXmlProtocol, AwsSmithyRpcV2CborProtocol, JsonCodec, JsonShapeDeserializer, JsonShapeSerializer, loadJsonRpcErrorCode, loadRestJsonErrorCode, loadRestXmlErrorCode, parseJsonBody, parseJsonErrorBody, parseXmlBody, parseXmlErrorBody, QueryShapeSerializer, XmlCodec, XmlShapeDeserializer, XmlShapeSerializer, } from "./submodules/protocols/index";
1
+ export { emitWarningIfUnsupportedVersion, getLongPollPlugin, setCredentialFeature, setFeature, setTokenFeature, state, } from "@aws-sdk/core/client";
2
+ export { AwsSdkSigV4ASigner, AwsSdkSigV4Signer, AwsSdkSigV4Signer as AWSSDKSigV4Signer, getBearerTokenEnvKey, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS, resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config, resolveAwsSdkSigV4Config as resolveAWSSDKSigV4Config, validateSigningProperties, } from "@aws-sdk/core/httpAuthSchemes";
3
+ export { _toBool, _toNum, _toStr, awsExpectUnion, AwsEc2QueryProtocol, AwsJson1_0Protocol, AwsJson1_1Protocol, AwsJsonRpcProtocol, AwsQueryProtocol, AwsRestJsonProtocol, AwsRestXmlProtocol, AwsSmithyRpcV2CborProtocol, JsonCodec, JsonShapeDeserializer, JsonShapeSerializer, loadJsonRpcErrorCode, loadRestJsonErrorCode, loadRestXmlErrorCode, parseJsonBody, parseJsonErrorBody, parseXmlBody, parseXmlErrorBody, QueryShapeSerializer, XmlCodec, XmlShapeDeserializer, XmlShapeSerializer, } from "@aws-sdk/core/protocols";
@@ -10,11 +10,11 @@
10
10
  *
11
11
  * No additional exports are allowed.
12
12
  */
13
- export { emitWarningIfUnsupportedVersion, getLongPollPlugin, setCredentialFeature, setFeature, setTokenFeature, state, } from "./submodules/client/index";
14
- export { AwsSdkSigV4ASigner, AwsSdkSigV4Signer, AwsSdkSigV4Signer as AWSSDKSigV4Signer, getBearerTokenEnvKey, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS, resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config, resolveAwsSdkSigV4Config as resolveAWSSDKSigV4Config, validateSigningProperties, } from "./submodules/httpAuthSchemes/index";
15
- export type { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4AAuthResolvedConfig as AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthInputConfig as AWSSDKSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4AuthResolvedConfig as AWSSDKSigV4AuthResolvedConfig, AwsSdkSigV4Memoized, AwsSdkSigV4AuthResolvedConfig as AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig as AWSSDKSigV4PreviouslyResolved, } from "./submodules/httpAuthSchemes/index";
16
- export { _toBool, _toNum, _toStr, awsExpectUnion, AwsEc2QueryProtocol, AwsJson1_0Protocol, AwsJson1_1Protocol, AwsJsonRpcProtocol, AwsQueryProtocol, AwsRestJsonProtocol, AwsRestXmlProtocol, AwsSmithyRpcV2CborProtocol, JsonCodec, JsonShapeDeserializer, JsonShapeSerializer, loadJsonRpcErrorCode, loadRestJsonErrorCode, loadRestXmlErrorCode, parseJsonBody, parseJsonErrorBody, parseXmlBody, parseXmlErrorBody, QueryShapeSerializer, XmlCodec, XmlShapeDeserializer, XmlShapeSerializer, } from "./submodules/protocols/index";
17
- export type { JsonSettings, QuerySerializerSettings, XmlSettings } from "./submodules/protocols/index";
13
+ export { emitWarningIfUnsupportedVersion, getLongPollPlugin, setCredentialFeature, setFeature, setTokenFeature, state, } from "@aws-sdk/core/client";
14
+ export { AwsSdkSigV4ASigner, AwsSdkSigV4Signer, AwsSdkSigV4Signer as AWSSDKSigV4Signer, getBearerTokenEnvKey, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS, resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config, resolveAwsSdkSigV4Config as resolveAWSSDKSigV4Config, validateSigningProperties, } from "@aws-sdk/core/httpAuthSchemes";
15
+ export type { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4AAuthResolvedConfig as AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthInputConfig as AWSSDKSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4AuthResolvedConfig as AWSSDKSigV4AuthResolvedConfig, AwsSdkSigV4Memoized, AwsSdkSigV4AuthResolvedConfig as AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig as AWSSDKSigV4PreviouslyResolved, } from "@aws-sdk/core/httpAuthSchemes";
16
+ export { _toBool, _toNum, _toStr, awsExpectUnion, AwsEc2QueryProtocol, AwsJson1_0Protocol, AwsJson1_1Protocol, AwsJsonRpcProtocol, AwsQueryProtocol, AwsRestJsonProtocol, AwsRestXmlProtocol, AwsSmithyRpcV2CborProtocol, JsonCodec, JsonShapeDeserializer, JsonShapeSerializer, loadJsonRpcErrorCode, loadRestJsonErrorCode, loadRestXmlErrorCode, parseJsonBody, parseJsonErrorBody, parseXmlBody, parseXmlErrorBody, QueryShapeSerializer, XmlCodec, XmlShapeDeserializer, XmlShapeSerializer, } from "@aws-sdk/core/protocols";
17
+ export type { JsonSettings, QuerySerializerSettings, XmlSettings } from "@aws-sdk/core/protocols";
18
18
  /**
19
19
  * WARNING: do not export any additional submodules from the root of this package. See readme.md for
20
20
  * guide on developing submodules.
@@ -5,7 +5,7 @@ export {
5
5
  setFeature,
6
6
  setTokenFeature,
7
7
  state,
8
- } from "./submodules/client/index";
8
+ } from "@aws-sdk/core/client";
9
9
  export {
10
10
  AwsSdkSigV4ASigner,
11
11
  AwsSdkSigV4Signer,
@@ -17,7 +17,7 @@ export {
17
17
  resolveAwsSdkSigV4Config,
18
18
  resolveAwsSdkSigV4Config as resolveAWSSDKSigV4Config,
19
19
  validateSigningProperties,
20
- } from "./submodules/httpAuthSchemes/index";
20
+ } from "@aws-sdk/core/httpAuthSchemes";
21
21
  export {
22
22
  AwsSdkSigV4AAuthInputConfig,
23
23
  AwsSdkSigV4AAuthResolvedConfig,
@@ -29,7 +29,7 @@ export {
29
29
  AwsSdkSigV4Memoized,
30
30
  AwsSdkSigV4AuthResolvedConfig as AwsSdkSigV4PreviouslyResolved,
31
31
  AwsSdkSigV4AuthResolvedConfig as AWSSDKSigV4PreviouslyResolved,
32
- } from "./submodules/httpAuthSchemes/index";
32
+ } from "@aws-sdk/core/httpAuthSchemes";
33
33
  export {
34
34
  _toBool,
35
35
  _toNum,
@@ -57,9 +57,9 @@ export {
57
57
  XmlCodec,
58
58
  XmlShapeDeserializer,
59
59
  XmlShapeSerializer,
60
- } from "./submodules/protocols/index";
60
+ } from "@aws-sdk/core/protocols";
61
61
  export {
62
62
  JsonSettings,
63
63
  QuerySerializerSettings,
64
64
  XmlSettings,
65
- } from "./submodules/protocols/index";
65
+ } from "@aws-sdk/core/protocols";
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.974.19",
3
+ "version": "3.974.21",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients.",
5
5
  "scripts": {
6
- "build": "yarn prebuild && yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
6
+ "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline && premove ./dist-cjs/api-extractor-type-index.js",
8
- "build:es": "tsc -p tsconfig.es.json && premove ./dist-es/api-extractor-type-index.js",
8
+ "build:es": "premove dist-es && tsc -p tsconfig.es.json && premove ./dist-es/api-extractor-type-index.js",
9
9
  "build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
10
- "build:types": "premove dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json",
10
+ "build:types": "premove dist-types && premove dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
12
+ "clean": "premove dist-cjs dist-es dist-types",
13
13
  "extract:docs": "api-extractor run --local",
14
14
  "lint": "node ../../scripts/validation/submodules-linter.js",
15
- "prebuild": "node scripts/copy-partitions.js",
15
+ "prebuild": "node scripts/copy-partitions.js && yarn lint",
16
16
  "test": "yarn g:vitest run",
17
17
  "test:watch": "yarn g:vitest watch",
18
18
  "test:integration": "yarn g:vitest run -c vitest.config.integ.mts && yarn test:temp:retry",
@@ -110,8 +110,8 @@
110
110
  },
111
111
  "license": "Apache-2.0",
112
112
  "dependencies": {
113
- "@aws-sdk/types": "^3.973.12",
114
- "@aws-sdk/xml-builder": "^3.972.29",
113
+ "@aws-sdk/types": "^3.973.13",
114
+ "@aws-sdk/xml-builder": "^3.972.30",
115
115
  "@aws/lambda-invoke-store": "^0.2.2",
116
116
  "@smithy/core": "^3.24.6",
117
117
  "@smithy/signature-v4": "^5.4.6",