From 5adfcab5b3831987a14ccd937bf0432398ee4106 Mon Sep 17 00:00:00 2001 From: Jeongho Nam <samchon@wrtn.io> Date: Mon, 20 Nov 2023 17:32:33 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AA=A8=EB=93=A0=20=EC=A2=85=EB=A5=98?= =?UTF-8?q?=EC=9D=98=20hostname=20=EC=97=90=20=EB=8C=80=ED=95=9C=20?= =?UTF-8?q?=EC=A0=91=EC=86=8D=20=ED=97=88=EC=9A=A9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 비록 가짜 페이먼츠 서버이나, 그래도 외부 접속에 대해 열어주자. --- packages/fake-iamport-server/package.json | 2 +- .../src/FakeIamportBackend.ts | 5 ++++- packages/fake-toss-payments-server/package.json | 2 +- .../src/FakeTossBackend.ts | 2 +- packages/iamport-server-api/package.json | 2 +- packages/iamport-server-api/swagger.json | 16 ++++++++-------- packages/payment-api/package.json | 6 +++--- packages/payment-api/swagger.json | 2 +- packages/payment-backend/package.json | 12 ++++++------ packages/payment-backend/src/PaymentBackend.ts | 2 +- packages/toss-payments-server-api/package.json | 2 +- packages/toss-payments-server-api/swagger.json | 16 ++++++++-------- 12 files changed, 36 insertions(+), 33 deletions(-) diff --git a/packages/fake-iamport-server/package.json b/packages/fake-iamport-server/package.json index fe7d9fb..7cc1d3c 100644 --- a/packages/fake-iamport-server/package.json +++ b/packages/fake-iamport-server/package.json @@ -1,6 +1,6 @@ { "name": "fake-iamport-server", - "version": "5.1.2", + "version": "5.1.4", "description": "Fake iamport server for testing", "main": "lib/index.js", "typings": "lib/index.d.ts", diff --git a/packages/fake-iamport-server/src/FakeIamportBackend.ts b/packages/fake-iamport-server/src/FakeIamportBackend.ts index e540e3c..a4792bd 100644 --- a/packages/fake-iamport-server/src/FakeIamportBackend.ts +++ b/packages/fake-iamport-server/src/FakeIamportBackend.ts @@ -31,7 +31,10 @@ export class FakeIamportBackend { // DO OPEN this.application_.enableCors(); - await this.application_.listen(FakeIamportConfiguration.API_PORT); + await this.application_.listen( + FakeIamportConfiguration.API_PORT, + "0.0.0.0", + ); //---- // POST-PROCESSES diff --git a/packages/fake-toss-payments-server/package.json b/packages/fake-toss-payments-server/package.json index cc485b2..59dd293 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": "5.1.2", + "version": "5.1.4", "description": "Fake toss-payments server for testing", "main": "lib/index.js", "typings": "lib/index.d.ts", diff --git a/packages/fake-toss-payments-server/src/FakeTossBackend.ts b/packages/fake-toss-payments-server/src/FakeTossBackend.ts index f338d77..913c8f0 100644 --- a/packages/fake-toss-payments-server/src/FakeTossBackend.ts +++ b/packages/fake-toss-payments-server/src/FakeTossBackend.ts @@ -31,7 +31,7 @@ export class FakeTossBackend { // DO OPEN this.application_.enableCors(); - await this.application_.listen(FakeTossConfiguration.API_PORT); + await this.application_.listen(FakeTossConfiguration.API_PORT, "0.0.0.0"); //---- // POST-PROCESSES diff --git a/packages/iamport-server-api/package.json b/packages/iamport-server-api/package.json index ab20705..f3509e8 100644 --- a/packages/iamport-server-api/package.json +++ b/packages/iamport-server-api/package.json @@ -1,6 +1,6 @@ { "name": "iamport-server-api", - "version": "5.1.2", + "version": "5.1.4", "description": "API for Iamport Server", "main": "lib/index.js", "typings": "lib/index.d.ts", diff --git a/packages/iamport-server-api/swagger.json b/packages/iamport-server-api/swagger.json index 7c37103..c978515 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": "5.1.2", + "version": "5.1.4", "license": { "name": "MIT" } @@ -529,7 +529,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportCertification.ts", "textSpan": { - "start": 447, + "start": 429, "length": 16 } } @@ -630,7 +630,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportCertification.ts", "textSpan": { - "start": 447, + "start": 429, "length": 16 } } @@ -831,7 +831,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportCertification.ts", "textSpan": { - "start": 447, + "start": 429, "length": 16 } } @@ -1096,7 +1096,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts", "textSpan": { - "start": 2101, + "start": 2017, "length": 16 } } @@ -1302,7 +1302,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts", "textSpan": { - "start": 2101, + "start": 2017, "length": 16 } } @@ -1415,7 +1415,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts", "textSpan": { - "start": 2101, + "start": 2017, "length": 16 } } @@ -1533,7 +1533,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-iamport-server/src/api/structures/IIamportPayment.ts", "textSpan": { - "start": 2101, + "start": 2017, "length": 16 } } diff --git a/packages/payment-api/package.json b/packages/payment-api/package.json index 6fd7994..db7804d 100644 --- a/packages/payment-api/package.json +++ b/packages/payment-api/package.json @@ -1,6 +1,6 @@ { "name": "@samchon/payment-api", - "version": "5.1.2", + "version": "5.1.4", "description": "API for Payment Backend", "main": "lib/index.js", "typings": "lib/index.d.ts", @@ -35,8 +35,8 @@ }, "dependencies": { "@nestia/fetcher": "^2.3.9", - "iamport-server-api": "^5.1.2", - "toss-payments-server-api": "^5.1.2", + "iamport-server-api": "^5.1.4", + "toss-payments-server-api": "^5.1.4", "typia": "^5.2.6" } } \ No newline at end of file diff --git a/packages/payment-api/swagger.json b/packages/payment-api/swagger.json index 106db65..5016fb0 100644 --- a/packages/payment-api/swagger.json +++ b/packages/payment-api/swagger.json @@ -7,7 +7,7 @@ } ], "info": { - "version": "5.1.2", + "version": "5.1.4", "title": "@samchon/payment-backend", "description": "Payment Backend Server", "license": { diff --git a/packages/payment-backend/package.json b/packages/payment-backend/package.json index fdf8ec1..b762348 100644 --- a/packages/payment-backend/package.json +++ b/packages/payment-backend/package.json @@ -1,6 +1,6 @@ { "name": "@samchon/payment-backend", - "version": "5.1.2", + "version": "5.1.4", "description": "Payment Backend Server", "main": "lib/index.js", "typings": "lib/index.d.ts", @@ -68,12 +68,12 @@ "cli": "^1.0.1", "copy-webpack-plugin": "^11.0.0", "copyfiles": "^2.4.1", - "iamport-server-api": "^5.1.2", + "iamport-server-api": "^5.1.4", "nestia": "^5.0.3", "pm2": "^4.5.6", "rimraf": "^3.0.2", "sloc": "^0.2.1", - "toss-payments-server-api": "^5.1.2", + "toss-payments-server-api": "^5.1.4", "ts-loader": "^9.5.0", "ts-node": "^10.9.1", "ts-patch": "^3.0.2", @@ -92,8 +92,8 @@ "bcryptjs": "^2.4.3", "dotenv": "^16.3.1", "dotenv-expand": "^10.0.0", - "fake-iamport-server": "^5.1.2", - "fake-toss-payments-server": "^5.1.2", + "fake-iamport-server": "^5.1.4", + "fake-toss-payments-server": "^5.1.4", "fastify": "^4.24.3", "git-last-commit": "^1.0.0", "inquirer": "^8.2.5", @@ -111,4 +111,4 @@ "LICENSE", "README.md" ] -} +} \ No newline at end of file diff --git a/packages/payment-backend/src/PaymentBackend.ts b/packages/payment-backend/src/PaymentBackend.ts index 4c4d78c..6e72155 100644 --- a/packages/payment-backend/src/PaymentBackend.ts +++ b/packages/payment-backend/src/PaymentBackend.ts @@ -48,7 +48,7 @@ export class PaymentBackend { this.application_.use(this.middleware.bind(this)); // DO OPEN - await this.application_.listen(PaymentConfiguration.API_PORT()); + await this.application_.listen(PaymentConfiguration.API_PORT(), "0.0.0.0"); // CONFIGURE FAKE SERVERS IF TESTING if (PaymentGlobal.testing === true) { diff --git a/packages/toss-payments-server-api/package.json b/packages/toss-payments-server-api/package.json index cb906d7..a810115 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": "5.1.2", + "version": "5.1.4", "description": "API for Toss Payments Server", "main": "lib/index.js", "typings": "lib/index.d.ts", diff --git a/packages/toss-payments-server-api/swagger.json b/packages/toss-payments-server-api/swagger.json index f34534f..5e897a3 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": "5.1.2", + "version": "5.1.4", "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": 437, + "start": 415, "length": 19 } } @@ -310,7 +310,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossBilling.ts", "textSpan": { - "start": 437, + "start": 415, "length": 19 } } @@ -528,7 +528,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossCashReceipt.ts", "textSpan": { - "start": 156, + "start": 145, "length": 19 } } @@ -704,7 +704,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossPayment.ts", "textSpan": { - "start": 2165, + "start": 2071, "length": 19 } } @@ -802,7 +802,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossPayment.ts", "textSpan": { - "start": 2165, + "start": 2071, "length": 19 } } @@ -906,7 +906,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossPayment.ts", "textSpan": { - "start": 2165, + "start": 2071, "length": 19 } } @@ -1124,7 +1124,7 @@ "target": { "fileName": "D:/github/samchon/payments/packages/fake-toss-payments-server/src/api/structures/ITossPayment.ts", "textSpan": { - "start": 2165, + "start": 2071, "length": 19 } }