@smithy/core
Advanced tools
@@ -8,2 +8,3 @@ const { NoOpLogger, normalizeProvider } = require("@smithy/core/client"); | ||
| const CLOCK_SKEW_ERROR_CODES = [ | ||
| "AccessDeniedException", | ||
| "AuthFailure", | ||
@@ -10,0 +11,0 @@ "InvalidSignatureException", |
@@ -10,2 +10,3 @@ const { Readable } = require("node:stream"); | ||
| const CLOCK_SKEW_ERROR_CODES = [ | ||
| "AccessDeniedException", | ||
| "AuthFailure", | ||
@@ -12,0 +13,0 @@ "InvalidSignatureException", |
@@ -778,3 +778,3 @@ const { HttpResponse } = require("@smithy/core/transport"); | ||
| const format = /^-?\d*(\.\d+)?$/; | ||
| const format = /^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/; | ||
| class NumericValue { | ||
@@ -787,3 +787,3 @@ string; | ||
| if (!format.test(string)) { | ||
| throw new Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`); | ||
| throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${string}"`); | ||
| } | ||
@@ -790,0 +790,0 @@ } |
@@ -746,3 +746,3 @@ const { createHmac, createHash, getRandomValues } = require("node:crypto"); | ||
| const format = /^-?\d*(\.\d+)?$/; | ||
| const format = /^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/; | ||
| class NumericValue { | ||
@@ -755,3 +755,3 @@ string; | ||
| if (!format.test(string)) { | ||
| throw new Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`); | ||
| throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${string}"`); | ||
| } | ||
@@ -758,0 +758,0 @@ } |
@@ -778,3 +778,3 @@ const { HttpResponse } = require("@smithy/core/transport"); | ||
| const format = /^-?\d*(\.\d+)?$/; | ||
| const format = /^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/; | ||
| class NumericValue { | ||
@@ -787,3 +787,3 @@ string; | ||
| if (!format.test(string)) { | ||
| throw new Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`); | ||
| throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${string}"`); | ||
| } | ||
@@ -790,0 +790,0 @@ } |
| export const CLOCK_SKEW_ERROR_CODES = [ | ||
| "AccessDeniedException", | ||
| "AuthFailure", | ||
@@ -3,0 +4,0 @@ "InvalidSignatureException", |
@@ -1,2 +0,2 @@ | ||
| const format = /^-?\d*(\.\d+)?$/; | ||
| const format = /^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/; | ||
| export class NumericValue { | ||
@@ -9,3 +9,3 @@ string; | ||
| if (!format.test(string)) { | ||
| throw new Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`); | ||
| throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${string}"`); | ||
| } | ||
@@ -12,0 +12,0 @@ } |
@@ -7,2 +7,3 @@ /** | ||
| * correction. | ||
| * | ||
| */ | ||
@@ -9,0 +10,0 @@ export declare const CLOCK_SKEW_ERROR_CODES: string[]; |
@@ -7,2 +7,3 @@ /** | ||
| * correction. | ||
| * | ||
| */ | ||
@@ -9,0 +10,0 @@ export declare const CLOCK_SKEW_ERROR_CODES: string[]; |
+1
-1
| { | ||
| "name": "@smithy/core", | ||
| "version": "3.29.8", | ||
| "version": "3.30.0", | ||
| "homepage": "https://github.com/smithy-lang/smithy-typescript/tree/main/packages/core", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
1658273
0.01%41116
0.01%