Skip to content

Commit a866b7d

Browse files
committed
Update deprecated @AWS-SDK package dependencies
1 parent 6a9f999 commit a866b7d

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.github/workflows/pr-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [master]
66
pull_request:
7-
branches: [master]
7+
branches: [master, update-service-error-clarification-package]
88

99
jobs:
1010
build:

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
}
1010
},
1111
"devDependencies": {
12-
"@aws-sdk/config-resolver": "^3.4.1",
13-
"@aws-sdk/middleware-stack": "^3.3.0",
14-
"@aws-sdk/node-config-provider": "^3.4.1",
15-
"@aws-sdk/smithy-client": "^3.4.1",
12+
"@smithy/config-resolver": "^2.0.15",
13+
"@smithy/middleware-stack": "^2.0.6",
14+
"@smithy/node-config-provider": "^2.1.3",
15+
"@smithy/smithy-client": "^2.1.11",
1616
"@hapi/hapi": "^20.0.0",
1717
"@types/chai": "^4.2.12",
1818
"@types/koa": "^2.11.3",

packages/core/lib/patchers/aws3_p.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import {
55
BuildHandlerOptions,
66
} from '@aws-sdk/types';
77

8-
import { RegionResolvedConfig } from '@aws-sdk/config-resolver';
8+
import { RegionResolvedConfig } from '@smithy/config-resolver';
99

10-
import { isThrottlingError } from '@aws-sdk/service-error-classification';
10+
import { isThrottlingError } from '@smithy/service-error-classification';
1111

12-
import { SdkError } from '@aws-sdk/smithy-client';
12+
import { SdkError } from '@smithy/smithy-client';
1313

1414
import ServiceSegment from '../segments/attributes/aws';
1515

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"//": "@types/cls-hooked is exposed in API so must be in dependencies, not devDependencies",
2525
"dependencies": {
2626
"@aws-sdk/types": "^3.4.1",
27-
"@aws-sdk/service-error-classification": "^3.4.1",
27+
"@smithy/service-error-classification": "^2.0.4",
2828
"@types/cls-hooked": "^4.3.3",
2929
"atomic-batcher": "^1.0.2",
3030
"cls-hooked": "^4.2.2",

packages/core/test/unit/patchers/aws3_p.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var contextUtils = require('../../../lib/context_utils');
99
var Segment = require('../../../lib/segments/segment');
1010
var Utils = require('../../../lib/utils');
1111

12-
var { constructStack } = require('@aws-sdk/middleware-stack');
12+
var { constructStack } = require('@smithy/middleware-stack');
1313

1414
var logger = require('../../../lib/logger').getLogger();
1515

0 commit comments

Comments
 (0)