From 68dc1ddaee283523a27dfa41ca3ef62a28d0ffa5 Mon Sep 17 00:00:00 2001 From: Jeongho Nam Date: Fri, 22 Sep 2023 12:59:37 +0900 Subject: [PATCH] Export `swagger.json` file on npm package. When publishing SDK package, it would better to export `swagger.json` file, because some user requested me that he's using like that: ```typescript import swagger from "toss-payments-server-api/swagger.json" ``` --- packages/fake-iamport-server/package.json | 4 ++-- packages/fake-toss-payments-server/package.json | 8 ++++---- packages/iamport-server-api/package.json | 7 ++++--- packages/iamport-server-api/swagger.json | 16 ++++++++-------- packages/payment-api/package.json | 11 ++++++----- packages/payment-api/swagger.json | 2 +- packages/payment-backend/package.json | 16 ++++++++-------- packages/toss-payments-server-api/package.json | 7 ++++--- packages/toss-payments-server-api/swagger.json | 16 ++++++++-------- 9 files changed, 45 insertions(+), 42 deletions(-) diff --git a/packages/fake-iamport-server/package.json b/packages/fake-iamport-server/package.json index 785e5cc..b4cded5 100644 --- a/packages/fake-iamport-server/package.json +++ b/packages/fake-iamport-server/package.json @@ -1,6 +1,6 @@ { "name": "fake-iamport-server", - "version": "4.0.0", + "version": "4.0.1", "description": "Fake iamport server for testing", "main": "lib/index.js", "typings": "lib/index.d.ts", @@ -66,7 +66,7 @@ "source-map-support": "^0.5.19", "tstl": "^2.5.13", "typescript-transform-paths": "^3.4.6", - "typia": "^5.0.4", + "typia": "^5.0.5", "uuid": "^9.0.0" }, "keywords": [ diff --git a/packages/fake-toss-payments-server/package.json b/packages/fake-toss-payments-server/package.json index 44996d6..4b7dc4d 100644 --- a/packages/fake-toss-payments-server/package.json +++ b/packages/fake-toss-payments-server/package.json @@ -1,6 +1,6 @@ { "name": "fake-toss-payments-server", - "version": "4.0.0", + "version": "4.0.1", "description": "Fake toss-payments server for testing", "main": "lib/index.js", "typings": "lib/index.d.ts", @@ -40,7 +40,7 @@ "homepage": "https://github.com/samchon/fake-toss-payments-server", "devDependencies": { "@nestia/e2e": "^0.3.6", - "@nestia/sdk": "^2.0.4", + "@nestia/sdk": "^2.0.5", "@trivago/prettier-plugin-sort-imports": "^4.0.0", "@types/atob": "^2.1.2", "@types/btoa": "^1.2.3", @@ -62,13 +62,13 @@ "typescript-transform-paths": "^3.4.6" }, "dependencies": { - "@nestia/core": "^2.0.4", + "@nestia/core": "^2.0.5", "atob": "^2.1.2", "btoa": "^1.2.1", "serialize-error": "^4.1.0", "source-map-support": "^0.5.19", "tstl": "^2.5.13", - "typia": "^5.0.4", + "typia": "^5.0.5", "uuid": "^9.0.0" }, "keywords": [ diff --git a/packages/iamport-server-api/package.json b/packages/iamport-server-api/package.json index ab435af..91327d5 100644 --- a/packages/iamport-server-api/package.json +++ b/packages/iamport-server-api/package.json @@ -1,6 +1,6 @@ { "name": "iamport-server-api", - "version": "4.0.0", + "version": "4.0.1", "description": "API for Iamport Server", "main": "lib/index.js", "typings": "lib/index.d.ts", @@ -24,6 +24,7 @@ "files": [ "lib", "package.json", + "swagger.json", "README.md" ], "devDependencies": { @@ -33,7 +34,7 @@ "typescript": "^5.2.2" }, "dependencies": { - "@nestia/fetcher": "^2.0.4", - "typia": "^5.0.4" + "@nestia/fetcher": "^2.0.5", + "typia": "^5.0.5" } } \ No newline at end of file diff --git a/packages/iamport-server-api/swagger.json b/packages/iamport-server-api/swagger.json index 0c70fbb..6eab17f 100644 --- a/packages/iamport-server-api/swagger.json +++ b/packages/iamport-server-api/swagger.json @@ -13,7 +13,7 @@ "info": { "title": "Iamport API", "description": "Built by [fake-iamport-server](https://github.com/samchon/payments/tree/master/packages/fake-iamport-server) with [nestia](https://github.com/samchon/nestia)", - "version": "4.0.0", + "version": "4.0.1", "license": { "name": "MIT" } @@ -80,7 +80,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportCertification.ts", "textSpan": { - "start": 437, + "start": 455, "length": 16 } } @@ -181,7 +181,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportCertification.ts", "textSpan": { - "start": 437, + "start": 455, "length": 16 } } @@ -382,7 +382,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportCertification.ts", "textSpan": { - "start": 437, + "start": 455, "length": 16 } } @@ -647,7 +647,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts", "textSpan": { - "start": 2219, + "start": 2306, "length": 16 } } @@ -853,7 +853,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts", "textSpan": { - "start": 2219, + "start": 2306, "length": 16 } } @@ -966,7 +966,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts", "textSpan": { - "start": 2219, + "start": 2306, "length": 16 } } @@ -1084,7 +1084,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts", "textSpan": { - "start": 2219, + "start": 2306, "length": 16 } } diff --git a/packages/payment-api/package.json b/packages/payment-api/package.json index 6770b5f..d5c1133 100644 --- a/packages/payment-api/package.json +++ b/packages/payment-api/package.json @@ -1,6 +1,6 @@ { "name": "@samchon/payment-api", - "version": "4.0.0", + "version": "4.0.1", "description": "API for Payment Backend", "main": "lib/index.js", "typings": "lib/index.d.ts", @@ -24,6 +24,7 @@ "files": [ "lib", "package.json", + "swagger.json", "README.md" ], "devDependencies": { @@ -33,9 +34,9 @@ "typescript": "^5.2.2" }, "dependencies": { - "@nestia/fetcher": "^2.0.4", - "iamport-server-api": "^4.0.0", - "toss-payments-server-api": "^4.0.0", - "typia": "^5.0.4" + "@nestia/fetcher": "^2.0.5", + "iamport-server-api": "^4.0.1", + "toss-payments-server-api": "^4.0.1", + "typia": "^5.0.5" } } \ No newline at end of file diff --git a/packages/payment-api/swagger.json b/packages/payment-api/swagger.json index 94d7aa0..e9638a4 100644 --- a/packages/payment-api/swagger.json +++ b/packages/payment-api/swagger.json @@ -7,7 +7,7 @@ } ], "info": { - "version": "4.0.0", + "version": "4.0.1", "title": "@samchon/payment-backend", "description": "Payment Backend Server", "license": { diff --git a/packages/payment-backend/package.json b/packages/payment-backend/package.json index 75bc8f2..3b0680f 100644 --- a/packages/payment-backend/package.json +++ b/packages/payment-backend/package.json @@ -1,6 +1,6 @@ { "name": "@samchon/payment-backend", - "version": "4.0.0", + "version": "4.0.1", "description": "Payment Backend Server", "main": "lib/index.js", "typings": "lib/index.d.ts", @@ -52,7 +52,7 @@ }, "homepage": "https://github.com/samchon/payments", "devDependencies": { - "@nestia/sdk": "^2.0.4", + "@nestia/sdk": "^2.0.5", "@trivago/prettier-plugin-sort-imports": "^4.0.0", "@types/atob": "^2.1.2", "@types/bcryptjs": "^2.4.4", @@ -67,34 +67,34 @@ "@typescript-eslint/parser": "^5.26.0", "cli": "^1.0.1", "copyfiles": "^2.4.1", - "iamport-server-api": "^4.0.0", + "iamport-server-api": "^4.0.1", "nestia": "^4.5.0", "pm2": "^4.5.6", "prettier": "^2.6.2", "prisma-markdown": "^1.0.0", "rimraf": "^3.0.2", "sloc": "^0.2.1", - "toss-payments-server-api": "^4.0.0", + "toss-payments-server-api": "^4.0.1", "ts-node": "^10.9.1", "ts-patch": "^3.0.2", "typescript": "^5.2.2", "typescript-transform-paths": "^3.4.6" }, "dependencies": { - "@nestia/core": "^2.0.4", + "@nestia/core": "^2.0.5", "@prisma/client": "^5.3.1", "bcryptjs": "^2.4.3", "dotenv": "^16.3.1", "dotenv-expand": "^10.0.0", - "fake-iamport-server": "^4.0.0", - "fake-toss-payments-server": "^4.0.0", + "fake-iamport-server": "^4.0.1", + "fake-toss-payments-server": "^4.0.1", "git-last-commit": "^1.0.0", "inquirer": "^8.2.5", "mutex-server": "^0.3.1", "prisma": "^5.3.1", "source-map-support": "^0.5.19", "tstl": "^2.5.13", - "typia": "^5.0.4" + "typia": "^5.0.5" }, "files": [ "lib", diff --git a/packages/toss-payments-server-api/package.json b/packages/toss-payments-server-api/package.json index 385ac5d..0687dc3 100644 --- a/packages/toss-payments-server-api/package.json +++ b/packages/toss-payments-server-api/package.json @@ -1,6 +1,6 @@ { "name": "toss-payments-server-api", - "version": "4.0.0", + "version": "4.0.1", "description": "API for Toss Payments Server", "main": "lib/index.js", "typings": "lib/index.d.ts", @@ -24,6 +24,7 @@ "files": [ "lib", "package.json", + "swagger.json", "README.md" ], "devDependencies": { @@ -33,7 +34,7 @@ "typescript": "^5.2.2" }, "dependencies": { - "@nestia/fetcher": "^2.0.4", - "typia": "^5.0.4" + "@nestia/fetcher": "^2.0.5", + "typia": "^5.0.5" } } \ No newline at end of file diff --git a/packages/toss-payments-server-api/swagger.json b/packages/toss-payments-server-api/swagger.json index bc2ebed..e3d7e1e 100644 --- a/packages/toss-payments-server-api/swagger.json +++ b/packages/toss-payments-server-api/swagger.json @@ -13,7 +13,7 @@ "info": { "title": "Toss Payments API", "description": "Built by [fake-toss-payments-server](https://github.com/samchon/payments/tree/master/packages/toss-payments-server-api) with [nestia](https://github.com/samchon/nestia)", - "version": "4.0.0", + "version": "4.0.1", "license": { "name": "MIT" } @@ -178,7 +178,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossBilling.ts", "textSpan": { - "start": 435, + "start": 457, "length": 19 } } @@ -310,7 +310,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossBilling.ts", "textSpan": { - "start": 435, + "start": 457, "length": 19 } } @@ -528,7 +528,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossCashReceipt.ts", "textSpan": { - "start": 153, + "start": 164, "length": 19 } } @@ -704,7 +704,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossPayment.ts", "textSpan": { - "start": 2305, + "start": 2399, "length": 19 } } @@ -802,7 +802,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossPayment.ts", "textSpan": { - "start": 2305, + "start": 2399, "length": 19 } } @@ -906,7 +906,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossPayment.ts", "textSpan": { - "start": 2305, + "start": 2399, "length": 19 } } @@ -1124,7 +1124,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossPayment.ts", "textSpan": { - "start": 2305, + "start": 2399, "length": 19 } }