Skip to content

Commit 39be7fb

Browse files
committed
smithy exception import from types package
1 parent 4231a7e commit 39be7fb

File tree

7 files changed

+11
-29
lines changed

7 files changed

+11
-29
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/StructureGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private void renderNonErrorStructure() {
161161
* <pre>{@code
162162
* import {
163163
* SmithyException as __SmithyException
164-
* } from "@aws-sdk/smithy-client";
164+
* } from "@aws-sdk/types";
165165
*
166166
* export interface NoSuchResource extends __SmithyException, $MetadataBearer {
167167
* name: "NoSuchResource";

smithy-typescript-ssdk-libs/server-apigateway/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"license": "Apache-2.0",
2121
"dependencies": {
2222
"@aws-sdk/protocol-http": "^3.5.0",
23-
"@aws-sdk/types": "^3.4.1",
23+
"@aws-sdk/types": "^3.20.0",
2424
"@types/aws-lambda": "^8.10.72",
2525
"tslib": "^1.8.0"
2626
},

smithy-typescript-ssdk-libs/server-common/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
"license": "Apache-2.0",
2121
"dependencies": {
2222
"@aws-sdk/protocol-http": "^3.5.0",
23-
"@aws-sdk/smithy-client": "3.6.1",
24-
"@aws-sdk/types": "^3.4.1",
23+
"@aws-sdk/types": "^3.20.0",
2524
"tslib": "^1.8.0"
2625
},
2726
"devDependencies": {

smithy-typescript-ssdk-libs/server-common/src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* permissions and limitations under the License.
1414
*/
1515

16-
import { SmithyException } from "@aws-sdk/smithy-client";
16+
import { SmithyException } from "@aws-sdk/types";
1717

1818
export type SmithyFrameworkException = InternalFailureException | UnknownOperationException | SerializationException;
1919

smithy-typescript-ssdk-libs/server-common/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ export * from "./errors";
1818
export * from "./validation";
1919

2020
import { HttpRequest, HttpResponse } from "@aws-sdk/protocol-http";
21-
import { SmithyException } from "@aws-sdk/smithy-client";
22-
import { SerdeContext } from "@aws-sdk/types";
21+
import { SerdeContext, SmithyException } from "@aws-sdk/types";
2322

2423
export type Operation<I, O, Context = {}> = (input: I, context: Context) => Promise<O>;
2524

smithy-typescript-ssdk-libs/server-common/src/validation/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* permissions and limitations under the License.
1414
*/
1515

16-
import { SmithyException } from "@aws-sdk/smithy-client";
16+
import { SmithyException } from "@aws-sdk/types";
1717

1818
export * from "./validators";
1919

smithy-typescript-ssdk-libs/yarn.lock

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22
# yarn lockfile v1
33

44

5-
"@aws-sdk/[email protected]":
6-
version "3.6.1"
7-
resolved "https://registry.yarnpkg.com/@aws-sdk/middleware-stack/-/middleware-stack-3.6.1.tgz#d7483201706bb5935a62884e9b60f425f1c6434f"
8-
integrity sha512-EPsIxMi8LtCt7YwTFpWGlVGYJc0q4kwFbOssY02qfqdCnyqi2y5wo089dH7OdxUooQ0D7CPsXM1zTTuzvm+9Fw==
9-
dependencies:
10-
tslib "^1.8.0"
11-
125
"@aws-sdk/protocol-http@^3.5.0":
136
version "3.13.1"
147
resolved "https://registry.yarnpkg.com/@aws-sdk/protocol-http/-/protocol-http-3.13.1.tgz#0ae5f09302f7a0bc47ac80c48e1dfebb43d40c04"
@@ -17,24 +10,15 @@
1710
"@aws-sdk/types" "3.13.1"
1811
tslib "^2.0.0"
1912

20-
"@aws-sdk/[email protected]":
21-
version "3.6.1"
22-
resolved "https://registry.yarnpkg.com/@aws-sdk/smithy-client/-/smithy-client-3.6.1.tgz#683fef89802e318922f8529a5433592d71a7ce9d"
23-
integrity sha512-AVpRK4/iUxNeDdAm8UqP0ZgtgJMQeWcagTylijwelhWXyXzHUReY1sgILsWcdWnoy6gq845W7K2VBhBleni8+w==
24-
dependencies:
25-
"@aws-sdk/middleware-stack" "3.6.1"
26-
"@aws-sdk/types" "3.6.1"
27-
tslib "^1.8.0"
28-
29-
"@aws-sdk/[email protected]", "@aws-sdk/types@^3.4.1":
13+
"@aws-sdk/[email protected]":
3014
version "3.13.1"
3115
resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.13.1.tgz#f69efe2053b0fa5dfd4046cb80dc176ad645c016"
3216
integrity sha512-4eHboRz3I8f0C85Ta1dJ1v1Y9T1zH9xpC4/DufSIfQcD1Imc2U2LM22Qgbz8/PoP4kyhp2nJpQpW0APD91ILfw==
3317

34-
"@aws-sdk/types@3.6.1":
35-
version "3.6.1"
36-
resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.6.1.tgz#00686db69e998b521fcd4a5f81ef0960980f80c4"
37-
integrity sha512-4Dx3eRTrUHLxhFdLJL8zdNGzVsJfAxtxPYYGmIddUkO2Gj3WA1TGjdfG4XN/ClI6e1XonCHafQX3UYO/mgnH3g==
18+
"@aws-sdk/types@^3.20.0":
19+
version "3.20.0"
20+
resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.20.0.tgz#f14a13970ffc9096ec28fb60c5b40b5ddaaecea9"
21+
integrity sha512-ztrHBTJM0wU4rrt51Kff8DjGT5ReoEdY1IUu6T0lN7aH9113235WnBE44y+z/Y+nMC+t5+r74CkldkLf/vngNg==
3822

3923
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13":
4024
version "7.12.13"

0 commit comments

Comments
 (0)