@aws-sdk/core
Advanced tools
Comparing version 3.667.0 to 3.677.0
@@ -26,3 +26,4 @@ "use strict"; | ||
setCredentialFeature: () => setCredentialFeature, | ||
setFeature: () => setFeature | ||
setFeature: () => setFeature, | ||
state: () => state | ||
}); | ||
@@ -32,6 +33,8 @@ module.exports = __toCommonJS(client_exports); | ||
// src/submodules/client/emitWarningIfUnsupportedVersion.ts | ||
var warningEmitted = false; | ||
var state = { | ||
warningEmitted: false | ||
}; | ||
var emitWarningIfUnsupportedVersion = /* @__PURE__ */ __name((version) => { | ||
if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 18) { | ||
warningEmitted = true; | ||
if (version && !state.warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 18) { | ||
state.warningEmitted = true; | ||
process.emitWarning( | ||
@@ -75,3 +78,4 @@ `NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will | ||
setCredentialFeature, | ||
setFeature | ||
setFeature, | ||
state | ||
}); |
@@ -1,5 +0,7 @@ | ||
let warningEmitted = false; | ||
export const state = { | ||
warningEmitted: false, | ||
}; | ||
export const emitWarningIfUnsupportedVersion = (version) => { | ||
if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 18) { | ||
warningEmitted = true; | ||
if (version && !state.warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 18) { | ||
state.warningEmitted = true; | ||
process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will | ||
@@ -6,0 +8,0 @@ no longer support Node.js 16.x on January 6, 2025. |
@@ -0,1 +1,4 @@ | ||
export declare const state: { | ||
warningEmitted: boolean; | ||
}; | ||
/** | ||
@@ -2,0 +5,0 @@ * @internal |
@@ -0,1 +1,4 @@ | ||
export declare const state: { | ||
warningEmitted: boolean; | ||
}; | ||
export declare const emitWarningIfUnsupportedVersion: (version: string) => void; |
{ | ||
"name": "@aws-sdk/core", | ||
"version": "3.667.0", | ||
"version": "3.677.0", | ||
"description": "Core functions & classes shared by multiple AWS SDK clients.", | ||
@@ -15,4 +15,4 @@ "scripts": { | ||
"extract:docs": "api-extractor run --local", | ||
"test": "jest", | ||
"test:integration": "jest -c jest.config.integ.js" | ||
"test": "vitest run", | ||
"test:integration": "vitest run -c vitest.config.integ.ts" | ||
}, | ||
@@ -19,0 +19,0 @@ "main": "./dist-cjs/index.js", |
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
78207
1837