@cdk8s/awscdk-resolver 0.0.594 → 0.0.595
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.
- package/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +3 -3
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +47 -2297
- package/node_modules/@aws-sdk/core/dist-es/index.js +3 -3
- package/node_modules/@aws-sdk/core/dist-types/index.d.ts +5 -5
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +5 -5
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +4 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +4 -1
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/CHANGELOG.md +8 -0
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/README.md +9 -0
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/package.json +4 -1
- package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/strnum.js +9 -1
- package/node_modules/anynum/LICENSE +21 -0
- package/node_modules/anynum/README.md +142 -0
- package/node_modules/anynum/anynum.js +135 -0
- package/node_modules/anynum/digitTable.js +116 -0
- package/node_modules/anynum/package.json +42 -0
- package/package.json +3 -3
- /package/node_modules/{strnum → @aws-sdk/xml-builder/node_modules/strnum}/LICENSE +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { emitWarningIfUnsupportedVersion, getLongPollPlugin, setCredentialFeature, setFeature, setTokenFeature, state, } from "
|
|
2
|
-
export { AwsSdkSigV4ASigner, AwsSdkSigV4Signer, AwsSdkSigV4Signer as AWSSDKSigV4Signer, getBearerTokenEnvKey, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS, resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config, resolveAwsSdkSigV4Config as resolveAWSSDKSigV4Config, validateSigningProperties, } from "
|
|
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 "
|
|
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 "
|
|
14
|
-
export { AwsSdkSigV4ASigner, AwsSdkSigV4Signer, AwsSdkSigV4Signer as AWSSDKSigV4Signer, getBearerTokenEnvKey, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, NODE_SIGV4A_CONFIG_OPTIONS, resolveAwsSdkSigV4AConfig, resolveAwsSdkSigV4Config, resolveAwsSdkSigV4Config as resolveAWSSDKSigV4Config, validateSigningProperties, } from "
|
|
15
|
-
export type { AwsSdkSigV4AAuthInputConfig, AwsSdkSigV4AAuthResolvedConfig, AwsSdkSigV4AAuthResolvedConfig as AwsSdkSigV4APreviouslyResolved, AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthInputConfig as AWSSDKSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4AuthResolvedConfig as AWSSDKSigV4AuthResolvedConfig, AwsSdkSigV4Memoized, AwsSdkSigV4AuthResolvedConfig as AwsSdkSigV4PreviouslyResolved, AwsSdkSigV4AuthResolvedConfig as AWSSDKSigV4PreviouslyResolved, } from "
|
|
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 "
|
|
17
|
-
export type { JsonSettings, QuerySerializerSettings, XmlSettings } from "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
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 "
|
|
60
|
+
} from "@aws-sdk/core/protocols";
|
|
61
61
|
export {
|
|
62
62
|
JsonSettings,
|
|
63
63
|
QuerySerializerSettings,
|
|
64
64
|
XmlSettings,
|
|
65
|
-
} from "
|
|
65
|
+
} from "@aws-sdk/core/protocols";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/core",
|
|
3
|
-
"version": "3.974.
|
|
3
|
+
"version": "3.974.20",
|
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn prebuild && yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-env",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.46",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from known environment variables",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/core": "^3.974.
|
|
29
|
+
"@aws-sdk/core": "^3.974.20",
|
|
30
30
|
"@aws-sdk/types": "^3.973.12",
|
|
31
31
|
"@smithy/core": "^3.24.6",
|
|
32
32
|
"@smithy/types": "^4.14.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-http",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.48",
|
|
4
4
|
"description": "AWS credential provider for containers and HTTP sources",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@aws-sdk/core": "^3.974.
|
|
41
|
+
"@aws-sdk/core": "^3.974.20",
|
|
42
42
|
"@aws-sdk/types": "^3.973.12",
|
|
43
43
|
"@smithy/core": "^3.24.6",
|
|
44
44
|
"@smithy/fetch-http-handler": "^5.4.6",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.52",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/core": "^3.974.
|
|
32
|
-
"@aws-sdk/credential-provider-env": "^3.972.
|
|
33
|
-
"@aws-sdk/credential-provider-http": "^3.972.
|
|
34
|
-
"@aws-sdk/credential-provider-login": "^3.972.
|
|
35
|
-
"@aws-sdk/credential-provider-process": "^3.972.
|
|
36
|
-
"@aws-sdk/credential-provider-sso": "^3.972.
|
|
37
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
38
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
31
|
+
"@aws-sdk/core": "^3.974.20",
|
|
32
|
+
"@aws-sdk/credential-provider-env": "^3.972.46",
|
|
33
|
+
"@aws-sdk/credential-provider-http": "^3.972.48",
|
|
34
|
+
"@aws-sdk/credential-provider-login": "^3.972.51",
|
|
35
|
+
"@aws-sdk/credential-provider-process": "^3.972.46",
|
|
36
|
+
"@aws-sdk/credential-provider-sso": "^3.972.51",
|
|
37
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.51",
|
|
38
|
+
"@aws-sdk/nested-clients": "^3.997.19",
|
|
39
39
|
"@aws-sdk/types": "^3.973.12",
|
|
40
40
|
"@smithy/core": "^3.24.6",
|
|
41
41
|
"@smithy/credential-provider-imds": "^4.3.7",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-login",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.51",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from aws login cached tokens",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/core": "^3.974.
|
|
32
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
31
|
+
"@aws-sdk/core": "^3.974.20",
|
|
32
|
+
"@aws-sdk/nested-clients": "^3.997.19",
|
|
33
33
|
"@aws-sdk/types": "^3.973.12",
|
|
34
34
|
"@smithy/core": "^3.24.6",
|
|
35
35
|
"@smithy/types": "^4.14.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.54",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20.0.0"
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
},
|
|
32
32
|
"license": "Apache-2.0",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@aws-sdk/credential-provider-env": "^3.972.
|
|
35
|
-
"@aws-sdk/credential-provider-http": "^3.972.
|
|
36
|
-
"@aws-sdk/credential-provider-ini": "^3.972.
|
|
37
|
-
"@aws-sdk/credential-provider-process": "^3.972.
|
|
38
|
-
"@aws-sdk/credential-provider-sso": "^3.972.
|
|
39
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
34
|
+
"@aws-sdk/credential-provider-env": "^3.972.46",
|
|
35
|
+
"@aws-sdk/credential-provider-http": "^3.972.48",
|
|
36
|
+
"@aws-sdk/credential-provider-ini": "^3.972.52",
|
|
37
|
+
"@aws-sdk/credential-provider-process": "^3.972.46",
|
|
38
|
+
"@aws-sdk/credential-provider-sso": "^3.972.51",
|
|
39
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.51",
|
|
40
40
|
"@aws-sdk/types": "^3.973.12",
|
|
41
41
|
"@smithy/core": "^3.24.6",
|
|
42
42
|
"@smithy/credential-provider-imds": "^4.3.7",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-process",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.46",
|
|
4
4
|
"description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/core": "^3.974.
|
|
29
|
+
"@aws-sdk/core": "^3.974.20",
|
|
30
30
|
"@aws-sdk/types": "^3.973.12",
|
|
31
31
|
"@smithy/core": "^3.24.6",
|
|
32
32
|
"@smithy/types": "^4.14.3",
|
|
@@ -22,7 +22,10 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
|
|
|
22
22
|
filepath,
|
|
23
23
|
configFilepath,
|
|
24
24
|
ignoreCache,
|
|
25
|
-
|
|
25
|
+
clientConfig,
|
|
26
|
+
parentClientConfig,
|
|
27
|
+
logger,
|
|
28
|
+
})({ callerClientConfig });
|
|
26
29
|
token = {
|
|
27
30
|
accessToken: _token.token,
|
|
28
31
|
expiresAt: new Date(_token.expiration).toISOString(),
|
|
@@ -12,7 +12,10 @@ export const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccoun
|
|
|
12
12
|
filepath,
|
|
13
13
|
configFilepath,
|
|
14
14
|
ignoreCache,
|
|
15
|
-
|
|
15
|
+
clientConfig,
|
|
16
|
+
parentClientConfig,
|
|
17
|
+
logger,
|
|
18
|
+
})({ callerClientConfig });
|
|
16
19
|
token = {
|
|
17
20
|
accessToken: _token.token,
|
|
18
21
|
expiresAt: new Date(_token.expiration).toISOString(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.51",
|
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
14
14
|
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
15
15
|
"test": "yarn g:vitest run",
|
|
16
|
-
"test:watch": "yarn g:vitest watch"
|
|
16
|
+
"test:watch": "yarn g:vitest watch",
|
|
17
|
+
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
18
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
17
19
|
},
|
|
18
20
|
"keywords": [
|
|
19
21
|
"aws",
|
|
@@ -26,9 +28,9 @@
|
|
|
26
28
|
},
|
|
27
29
|
"license": "Apache-2.0",
|
|
28
30
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/core": "^3.974.
|
|
30
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
31
|
-
"@aws-sdk/token-providers": "3.
|
|
31
|
+
"@aws-sdk/core": "^3.974.20",
|
|
32
|
+
"@aws-sdk/nested-clients": "^3.997.19",
|
|
33
|
+
"@aws-sdk/token-providers": "3.1065.0",
|
|
32
34
|
"@aws-sdk/types": "^3.973.12",
|
|
33
35
|
"@smithy/core": "^3.24.6",
|
|
34
36
|
"@smithy/types": "^4.14.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.51",
|
|
4
4
|
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
},
|
|
35
35
|
"license": "Apache-2.0",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@aws-sdk/core": "^3.974.
|
|
38
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
37
|
+
"@aws-sdk/core": "^3.974.20",
|
|
38
|
+
"@aws-sdk/nested-clients": "^3.997.19",
|
|
39
39
|
"@aws-sdk/types": "^3.973.12",
|
|
40
40
|
"@smithy/core": "^3.24.6",
|
|
41
41
|
"@smithy/types": "^4.14.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/nested-clients",
|
|
3
|
-
"version": "3.997.
|
|
3
|
+
"version": "3.997.19",
|
|
4
4
|
"description": "Nested clients for AWS SDK packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
31
31
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
32
|
-
"@aws-sdk/core": "^3.974.
|
|
32
|
+
"@aws-sdk/core": "^3.974.20",
|
|
33
33
|
"@aws-sdk/signature-v4-multi-region": "^3.996.33",
|
|
34
34
|
"@aws-sdk/types": "^3.973.12",
|
|
35
35
|
"@smithy/core": "^3.24.6",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1065.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@aws-sdk/core": "^3.974.
|
|
33
|
-
"@aws-sdk/nested-clients": "^3.997.
|
|
32
|
+
"@aws-sdk/core": "^3.974.20",
|
|
33
|
+
"@aws-sdk/nested-clients": "^3.997.19",
|
|
34
34
|
"@aws-sdk/types": "^3.973.12",
|
|
35
35
|
"@smithy/core": "^3.24.6",
|
|
36
36
|
"@smithy/types": "^4.14.3",
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
|
|
2
|
+
**2.4.0 / 2026-06-09**
|
|
3
|
+
- support unicode numerals using 'anynum'
|
|
4
|
+
|
|
5
|
+
**2.3.0 / 2026-05-07**
|
|
6
|
+
- support octal and binary, test with @byspec/numbers
|
|
7
|
+
- test with @byspec/numbers
|
|
8
|
+
|
|
9
|
+
|
|
2
10
|
**2.2.3 / 2026-04-07**
|
|
3
11
|
- remove unnecessary files from npm package
|
|
4
12
|
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# strnum
|
|
2
2
|
Parse string into Number based on configuration
|
|
3
3
|
|
|
4
|
+
[](https://npm-compare.com/strnum)
|
|
5
|
+
[](https://www.npmjs.com/package/strnum)
|
|
6
|
+
[](https://github.com/NaturalIntelligence/strnum)
|
|
7
|
+
|
|
4
8
|
## Users
|
|
5
9
|
|
|
6
10
|
<a href="https://github.com/aws-amplify" target="_blank"><img src="https://avatars.githubusercontent.com/u/41077760?s=100&v=4"></a>
|
|
@@ -86,6 +90,10 @@ toNumber("1.0e-2"); //0.01)
|
|
|
86
90
|
|
|
87
91
|
toNumber("+1212121212"); // 1212121212
|
|
88
92
|
toNumber("+1212121212", { skipLike: /\+[0-9]{10}/} )); //"+1212121212"
|
|
93
|
+
|
|
94
|
+
toNumber("1e1000", { unicode: true, infinity: "original" }); //"1e1000"
|
|
95
|
+
toNumber("1000", { unicode: true }); //1000
|
|
96
|
+
toNumber("1000", { unicode: false }); //"1000"
|
|
89
97
|
```
|
|
90
98
|
|
|
91
99
|
Supported Options
|
|
@@ -95,6 +103,7 @@ leadingZeros: true, //when number with leading zeros like 08 should be parsed. 0
|
|
|
95
103
|
eNotation: true, //when number with eNotation or number parsed in eNotation should be considered
|
|
96
104
|
skipLike: /regex/ //when string should not be parsed when it matches the specified regular expression
|
|
97
105
|
infinity: "original", // "null", "infinity" (Infinity type), "string" ("Infinity" (the string literal))
|
|
106
|
+
unicode: false, //when number with unicode numerals should be parsed
|
|
98
107
|
```
|
|
99
108
|
|
|
100
109
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "strnum",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Parse String to Number based on configuration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "strnum.js",
|
|
@@ -28,5 +28,8 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@byspec/numbers": "^0.1.1",
|
|
30
30
|
"jasmine": "^5.6.0"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"anynum": "^1.0.0"
|
|
31
34
|
}
|
|
32
35
|
}
|
|
@@ -3,6 +3,8 @@ const binRegex = /^0b[01]+$/;
|
|
|
3
3
|
const octRegex = /^0o[0-7]+$/;
|
|
4
4
|
const numRegex = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/;
|
|
5
5
|
|
|
6
|
+
import anynum from "anynum";
|
|
7
|
+
|
|
6
8
|
const consider = {
|
|
7
9
|
hex: true,
|
|
8
10
|
binary: false,
|
|
@@ -12,6 +14,7 @@ const consider = {
|
|
|
12
14
|
eNotation: true,
|
|
13
15
|
//skipLike: /regex/,
|
|
14
16
|
infinity: "original", // "null", "infinity" (Infinity type), "string" ("Infinity" (the string literal))
|
|
17
|
+
unicode: false,
|
|
15
18
|
};
|
|
16
19
|
|
|
17
20
|
export default function toNumber(str, options = {}) {
|
|
@@ -23,7 +26,12 @@ export default function toNumber(str, options = {}) {
|
|
|
23
26
|
if (trimmedStr.length === 0) return str;
|
|
24
27
|
else if (options.skipLike !== undefined && options.skipLike.test(trimmedStr)) return str;
|
|
25
28
|
else if (trimmedStr === "0") return 0;
|
|
26
|
-
|
|
29
|
+
|
|
30
|
+
if (options.unicode) {
|
|
31
|
+
trimmedStr = anynum(trimmedStr);
|
|
32
|
+
if (trimmedStr === "0") return 0; // re-check after normalization
|
|
33
|
+
}
|
|
34
|
+
if (options.hex && hexRegex.test(trimmedStr)) {
|
|
27
35
|
return parse_int(trimmedStr, 16);
|
|
28
36
|
} else if (options.binary && binRegex.test(trimmedStr)) {
|
|
29
37
|
return parse_int(trimmedStr, 2);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Natural Intelligence
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# anynum
|
|
2
|
+
|
|
3
|
+
Normalize Unicode decimal digits and minus signs to ASCII.
|
|
4
|
+
|
|
5
|
+
Converts digits from any script — Devanagari, Arabic-Indic, Thai, Bengali, Fullwidth, and [50+ others](#supported-scripts) — to their ASCII equivalents (`0`–`9`). Also normalizes Unicode minus variants (`−`, `-`, `﹣`) to ASCII `-`.
|
|
6
|
+
|
|
7
|
+
Pairs naturally with [`strnum`](https://github.com/nicolo-ribaudo/strnum) — use `anynum` to normalize first, then `strnum` to detect the numeric type.
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
import anynum from 'anynum';
|
|
11
|
+
|
|
12
|
+
anynum('१२.३४') // → '12.34' (Devanagari)
|
|
13
|
+
anynum('٣٫١٤') // → '3.14' (Arabic-Indic)
|
|
14
|
+
anynum('−४२') // → '-42' (Unicode minus + Devanagari)
|
|
15
|
+
anynum('-99.5') // → '-99.5' (Fullwidth minus + Fullwidth digits)
|
|
16
|
+
anynum('hello') // → 'hello' (no digits — zero allocation)
|
|
17
|
+
anynum('100') // → '100' (already ASCII — zero allocation)
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Install
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
npm install anynum
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Usage
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
// ESM
|
|
34
|
+
import anynum from 'anynum';
|
|
35
|
+
import { anynum } from 'anynum';
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### API
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
anynum(str: string): string
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
- Accepts a `string`, returns a `string`.
|
|
46
|
+
- Non-string values are returned as-is (no throw).
|
|
47
|
+
- Non-digit characters pass through unchanged.
|
|
48
|
+
- If no conversion is needed, the **original string is returned** (zero allocation).
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## What gets converted
|
|
53
|
+
|
|
54
|
+
### Decimal digits
|
|
55
|
+
|
|
56
|
+
Any Unicode character in category `Nd` (decimal digit) is mapped to its ASCII equivalent. This covers all positional decimal digit scripts — every script whose digits represent `0`–`9` by position.
|
|
57
|
+
|
|
58
|
+
```js
|
|
59
|
+
anynum('๑๒๓') // Thai → '123'
|
|
60
|
+
anynum('੧੨੩') // Gurmukhi → '123'
|
|
61
|
+
anynum('᠑᠒᠓') // Mongolian → '123'
|
|
62
|
+
anynum('𝟏𝟐𝟑') // Math Bold → '123'
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Unicode minus variants
|
|
66
|
+
|
|
67
|
+
Three Unicode characters are normalized to ASCII `-` (`U+002D`):
|
|
68
|
+
|
|
69
|
+
| Code point | Character | Name |
|
|
70
|
+
|---|---|---|
|
|
71
|
+
| `U+2212` | `−` | MINUS SIGN (mathematical) |
|
|
72
|
+
| `U+FF0D` | `-` | FULLWIDTH HYPHEN-MINUS |
|
|
73
|
+
| `U+FE63` | `﹣` | SMALL HYPHEN-MINUS |
|
|
74
|
+
|
|
75
|
+
Dashes used for punctuation — EN DASH (`–`), EM DASH (`—`), HYPHEN (`‐`) — are intentionally **not** converted.
|
|
76
|
+
|
|
77
|
+
```js
|
|
78
|
+
anynum('−42') // U+2212 MINUS SIGN → '-42'
|
|
79
|
+
anynum('-42') // U+FF0D FULLWIDTH → '-42'
|
|
80
|
+
anynum('–42') // U+2013 EN DASH → '–42' (unchanged)
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Use with strnum
|
|
86
|
+
|
|
87
|
+
`anynum` and `strnum` compose cleanly:
|
|
88
|
+
|
|
89
|
+
```js
|
|
90
|
+
import anynum from 'anynum';
|
|
91
|
+
import strnum from 'strnum';
|
|
92
|
+
|
|
93
|
+
strnum(anynum('१२.३४')) // → 12.34 (number, float)
|
|
94
|
+
strnum(anynum('−४२')) // → '-42' (string; strnum handles sign detection)
|
|
95
|
+
strnum(anynum('hello')) // → 'hello'
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
## Supported scripts
|
|
102
|
+
|
|
103
|
+
50+ decimal digit scripts from Unicode `Nd` category, including:
|
|
104
|
+
|
|
105
|
+
| Script | Zero | Sample |
|
|
106
|
+
|---|---|---|
|
|
107
|
+
| Devanagari (Hindi/Marathi/Nepali) | `U+0966` | `०१२३४५६७८९` |
|
|
108
|
+
| Arabic-Indic | `U+0660` | `٠١٢٣٤٥٦٧٨٩` |
|
|
109
|
+
| Extended Arabic-Indic (Urdu/Persian) | `U+06F0` | `۰۱۲۳۴۵۶۷۸۹` |
|
|
110
|
+
| Bengali | `U+09E6` | `০১২৩৪৫৬৭৮৯` |
|
|
111
|
+
| Gurmukhi | `U+0A66` | `੦੧੨੩੪੫੬੭੮੯` |
|
|
112
|
+
| Gujarati | `U+0AE6` | `૦૧૨૩૪૫૬૭૮૯` |
|
|
113
|
+
| Odia | `U+0B66` | `୦୧୨୩୪୫୬୭୮୯` |
|
|
114
|
+
| Tamil | `U+0BE6` | `௦௧௨௩௪௫௬௭௮௯` |
|
|
115
|
+
| Telugu | `U+0C66` | `౦౧౨౩౪౫౬౭౮౯` |
|
|
116
|
+
| Kannada | `U+0CE6` | `೦೧೨೩೪೫೬೭೮೯` |
|
|
117
|
+
| Malayalam | `U+0D66` | `൦൧൨൩൪൫൬൭൮൯` |
|
|
118
|
+
| Thai | `U+0E50` | `๐๑๒๓๔๕๖๗๘๙` |
|
|
119
|
+
| Lao | `U+0ED0` | `໐໑໒໓໔໕໖໗໘໙` |
|
|
120
|
+
| Tibetan | `U+0F20` | `༠༡༢༣༤༥༦༧༨༩` |
|
|
121
|
+
| Myanmar | `U+1040` | `၀၁၂၃၄၅၆၇၈၉` |
|
|
122
|
+
| Khmer | `U+17E0` | `០១២៣៤៥៦៧៨៩` |
|
|
123
|
+
| Mongolian | `U+1810` | `᠐᠑᠒᠓᠔᠕᠖᠗᠘᠙` |
|
|
124
|
+
| Fullwidth (CJK context) | `U+FF10` | `0123456789` |
|
|
125
|
+
| Mathematical Bold | `U+1D7CE` | `𝟎𝟏𝟐𝟑𝟒𝟓𝟔𝟕𝟖𝟗` |
|
|
126
|
+
| Adlam | `U+1E950` | `𞥐𞥑𞥒𞥓𞥔𞥕𞥖𞥗𞥘𞥙` |
|
|
127
|
+
| … and 30+ more | | |
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## What it does NOT convert
|
|
132
|
+
|
|
133
|
+
- **Kanji/Chinese numeral words** (`三`, `百`, `万`) — these are ideographic numerals, not decimal digits. Each language has its own positional system requiring separate parsing logic.
|
|
134
|
+
- **Roman numerals** (`Ⅳ`, `Ⅻ`) — not decimal digits.
|
|
135
|
+
- **Punctuation dashes** (`–` EN, `—` EM, `‐` HYPHEN) — not numeric signs.
|
|
136
|
+
- **Decimal separators** — commas, periods, Arabic decimal comma (`٫`) are passed through as-is. Separator normalization is the caller's responsibility.
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## License
|
|
141
|
+
|
|
142
|
+
MIT
|