Skip to content

Commit 2909c7b

Browse files
authored
fix(node-config-provider): move booleanSelector util to platform agnostic package (#2992)
1 parent e45d8ee commit 2909c7b

22 files changed

+309
-15
lines changed

packages/config-resolver/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
},
1919
"license": "Apache-2.0",
2020
"dependencies": {
21-
"@aws-sdk/node-config-provider": "3.39.0",
2221
"@aws-sdk/signature-v4": "3.39.0",
2322
"@aws-sdk/types": "3.38.0",
23+
"@aws-sdk/util-config-provider": "3.39.0",
2424
"tslib": "^2.3.0"
2525
},
2626
"devDependencies": {
27+
"@aws-sdk/node-config-provider": "3.39.0",
2728
"@types/jest": "^26.0.4",
2829
"jest": "^26.1.0",
2930
"typescript": "~4.3.5"

packages/config-resolver/src/endpointsConfig/NodeUseDualstackEndpointConfigOptions.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { booleanSelector, SelectorType } from "@aws-sdk/node-config-provider";
1+
import { booleanSelector, SelectorType } from "@aws-sdk/util-config-provider";
22

33
import {
44
CONFIG_USE_DUALSTACK_ENDPOINT,
@@ -7,7 +7,7 @@ import {
77
NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,
88
} from "./NodeUseDualstackEndpointConfigOptions";
99

10-
jest.mock("@aws-sdk/node-config-provider");
10+
jest.mock("@aws-sdk/util-config-provider");
1111

1212
describe("NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS", () => {
1313
afterEach(() => {

packages/config-resolver/src/endpointsConfig/NodeUseDualstackEndpointConfigOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { LoadedConfigSelectors } from "@aws-sdk/node-config-provider";
2-
import { booleanSelector, SelectorType } from "@aws-sdk/node-config-provider";
2+
import { booleanSelector, SelectorType } from "@aws-sdk/util-config-provider";
33

44
export const ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
55
export const CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";

packages/config-resolver/src/endpointsConfig/NodeUseFipsEndpointConfigOptions.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { booleanSelector, SelectorType } from "@aws-sdk/node-config-provider";
1+
import { booleanSelector, SelectorType } from "@aws-sdk/util-config-provider";
22

33
import {
44
CONFIG_USE_FIPS_ENDPOINT,
@@ -7,7 +7,7 @@ import {
77
NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,
88
} from "./NodeUseFipsEndpointConfigOptions";
99

10-
jest.mock("@aws-sdk/node-config-provider");
10+
jest.mock("@aws-sdk/util-config-provider");
1111

1212
describe("NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS", () => {
1313
afterEach(() => {

packages/config-resolver/src/endpointsConfig/NodeUseFipsEndpointConfigOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { LoadedConfigSelectors } from "@aws-sdk/node-config-provider";
2-
import { booleanSelector, SelectorType } from "@aws-sdk/node-config-provider";
2+
import { booleanSelector, SelectorType } from "@aws-sdk/util-config-provider";
33

44
export const ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
55
export const CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";

packages/middleware-bucket-endpoint/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919
"license": "Apache-2.0",
2020
"dependencies": {
2121
"@aws-sdk/protocol-http": "3.38.0",
22-
"@aws-sdk/node-config-provider": "3.39.0",
2322
"@aws-sdk/types": "3.38.0",
2423
"@aws-sdk/util-arn-parser": "3.37.0",
24+
"@aws-sdk/util-config-provider": "3.39.0",
2525
"tslib": "^2.3.0"
2626
},
2727
"devDependencies": {
2828
"@aws-sdk/middleware-stack": "3.38.0",
29+
"@aws-sdk/node-config-provider": "3.39.0",
2930
"@types/jest": "^26.0.4",
3031
"jest": "^26.1.0",
3132
"typescript": "~4.3.5"

packages/middleware-bucket-endpoint/src/NodeDisableMultiregionAccessPointConfigOptions.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { booleanSelector, SelectorType } from "@aws-sdk/node-config-provider";
1+
import { booleanSelector, SelectorType } from "@aws-sdk/util-config-provider";
22

33
import {
44
NODE_DISABLE_MULTIREGION_ACCESS_POINT_CONFIG_OPTIONS,
55
NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME,
66
NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME,
77
} from "./NodeDisableMultiregionAccessPointConfigOptions";
88

9-
jest.mock("@aws-sdk/node-config-provider");
9+
jest.mock("@aws-sdk/util-config-provider");
1010

1111
describe("NODE_USE_ARN_REGION_CONFIG_OPTIONS", () => {
1212
afterEach(() => {

packages/middleware-bucket-endpoint/src/NodeDisableMultiregionAccessPointConfigOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { LoadedConfigSelectors } from "@aws-sdk/node-config-provider";
2-
import { booleanSelector, SelectorType } from "@aws-sdk/node-config-provider";
2+
import { booleanSelector, SelectorType } from "@aws-sdk/util-config-provider";
33

44
export const NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME = "AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";
55
export const NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME = "s3_disable_multiregion_access_points";

packages/middleware-bucket-endpoint/src/NodeUseArnRegionConfigOptions.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { booleanSelector, SelectorType } from "@aws-sdk/node-config-provider";
1+
import { booleanSelector, SelectorType } from "@aws-sdk/util-config-provider";
22

33
import {
44
NODE_USE_ARN_REGION_CONFIG_OPTIONS,
55
NODE_USE_ARN_REGION_ENV_NAME,
66
NODE_USE_ARN_REGION_INI_NAME,
77
} from "./NodeUseArnRegionConfigOptions";
88

9-
jest.mock("@aws-sdk/node-config-provider");
9+
jest.mock("@aws-sdk/util-config-provider");
1010

1111
describe("NODE_USE_ARN_REGION_CONFIG_OPTIONS", () => {
1212
afterEach(() => {

packages/middleware-bucket-endpoint/src/NodeUseArnRegionConfigOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { LoadedConfigSelectors } from "@aws-sdk/node-config-provider";
2-
import { booleanSelector, SelectorType } from "@aws-sdk/node-config-provider";
2+
import { booleanSelector, SelectorType } from "@aws-sdk/util-config-provider";
33

44
export const NODE_USE_ARN_REGION_ENV_NAME = "AWS_S3_USE_ARN_REGION";
55
export const NODE_USE_ARN_REGION_INI_NAME = "s3_use_arn_region";

0 commit comments

Comments
 (0)