@aws-sdk/core 3.667.0 → 3.678.0

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.
@@ -23,15 +23,18 @@ var client_exports = {};
23
23
  __export(client_exports, {
24
24
  emitWarningIfUnsupportedVersion: () => emitWarningIfUnsupportedVersion,
25
25
  setCredentialFeature: () => setCredentialFeature,
26
- setFeature: () => setFeature
26
+ setFeature: () => setFeature,
27
+ state: () => state
27
28
  });
28
29
  module.exports = __toCommonJS(client_exports);
29
30
 
30
31
  // src/submodules/client/emitWarningIfUnsupportedVersion.ts
31
- var warningEmitted = false;
32
+ var state = {
33
+ warningEmitted: false
34
+ };
32
35
  var emitWarningIfUnsupportedVersion = /* @__PURE__ */ __name((version) => {
33
- if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 18) {
34
- warningEmitted = true;
36
+ if (version && !state.warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 18) {
37
+ state.warningEmitted = true;
35
38
  process.emitWarning(
36
39
  `NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
37
40
  no longer support Node.js 16.x on January 6, 2025.
@@ -70,5 +73,6 @@ __name(setFeature, "setFeature");
70
73
  0 && (module.exports = {
71
74
  emitWarningIfUnsupportedVersion,
72
75
  setCredentialFeature,
73
- setFeature
76
+ setFeature,
77
+ state
74
78
  });
@@ -1,7 +1,9 @@
1
- let warningEmitted = false;
1
+ export const state = {
2
+ warningEmitted: false,
3
+ };
2
4
  export const emitWarningIfUnsupportedVersion = (version) => {
3
- if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 18) {
4
- warningEmitted = true;
5
+ if (version && !state.warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 18) {
6
+ state.warningEmitted = true;
5
7
  process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
6
8
  no longer support Node.js 16.x on January 6, 2025.
7
9
 
@@ -1,3 +1,6 @@
1
+ export declare const state: {
2
+ warningEmitted: boolean;
3
+ };
1
4
  /**
2
5
  * @internal
3
6
  *
@@ -1 +1,4 @@
1
+ export declare const state: {
2
+ warningEmitted: boolean;
3
+ };
1
4
  export declare const emitWarningIfUnsupportedVersion: (version: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.667.0",
3
+ "version": "3.678.0",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients.",
5
5
  "scripts": {
6
6
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
@@ -12,8 +12,10 @@
12
12
  "lint": "node ./scripts/lint.js",
13
13
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
14
14
  "extract:docs": "api-extractor run --local",
15
- "test": "jest",
16
- "test:integration": "jest -c jest.config.integ.js"
15
+ "test": "vitest run",
16
+ "test:integration": "vitest run -c vitest.config.integ.ts",
17
+ "test:watch": "vitest watch",
18
+ "test:integration:watch": "vitest watch -c vitest.config.integ.ts"
17
19
  },
18
20
  "main": "./dist-cjs/index.js",
19
21
  "module": "./dist-es/index.js",