Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependencies and change host sequence #228

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions deploy/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ const deploy = (tag) => (version) => (pack) => {
JSON.stringify(info, null, 2),
"utf8",
);
execute(location)("npm cache clean --force");
execute(location)(`npm install`);
execute(location)(`npm run build`);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@samchon/payments",
"version": "8.1.0",
"version": "8.1.1",
"description": "Collection of Payment system of Samchon",
"scripts": {
"package:latest": "node deploy latest",
Expand Down
8 changes: 4 additions & 4 deletions packages/fake-iamport-server/nestia.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ const NESTIA_CONFIG: INestiaConfig = {
"Built by [fake-iamport-server](https://github.com/samchon/payments/tree/master/packages/fake-iamport-server) with [nestia](https://github.com/samchon/nestia)",
},
servers: [
{
url: "http://localhost:10851",
description: "fake",
},
{
url: "https://api.iamport.kr",
description: "real",
},
{
url: "http://localhost:10851",
description: "fake",
},
],
security: {
bearer: {
Expand Down
10 changes: 5 additions & 5 deletions packages/fake-iamport-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fake-iamport-server",
"version": "8.1.0",
"version": "8.1.1",
"description": "Fake iamport server for testing",
"main": "lib/index.js",
"module": "lib/index.mjs",
Expand Down Expand Up @@ -38,7 +38,7 @@
},
"homepage": "https://github.com/samchon/fake-iamport-server",
"devDependencies": {
"@nestia/sdk": "^3.7.0",
"@nestia/sdk": "^3.17.0",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@types/atob": "^2.1.2",
Expand All @@ -61,9 +61,9 @@
"typescript": "5.5.4"
},
"dependencies": {
"@nestia/core": "^3.7.0",
"@nestia/core": "^3.17.0",
"@nestia/e2e": "^0.7.0",
"@nestia/fetcher": "^3.7.0",
"@nestia/fetcher": "^3.17.0",
"@nestjs/common": "^10.3.10",
"@nestjs/core": "^10.3.10",
"@nestjs/platform-fastify": "^10.3.10",
Expand All @@ -73,7 +73,7 @@
"source-map-support": "^0.5.19",
"tstl": "^3.0.0",
"typescript-transform-paths": "^3.4.6",
"typia": "^6.5.0",
"typia": "^6.11.3",
"uuid": "^10.0.0"
},
"keywords": [
Expand Down
6 changes: 3 additions & 3 deletions packages/fake-iamport-server/packages/api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iamport-server-api",
"version": "8.1.0",
"version": "8.1.1",
"description": "API for Iamport Server",
"main": "lib/index.js",
"module": "lib/index.mjs",
Expand All @@ -22,8 +22,8 @@
"README.md"
],
"dependencies": {
"@nestia/fetcher": "^3.7.0",
"@nestia/fetcher": "^3.17.0",
"tstl": "^3.0.0",
"typia": "^6.5.0"
"typia": "^6.11.3"
}
}
870 changes: 469 additions & 401 deletions packages/fake-iamport-server/packages/api/swagger.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions packages/fake-iamport-server/src/api/Resolved.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type { Resolved } from "@nestia/fetcher";
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export * as otp from "./otp";
* 여부는 오직, {@link IIamportCertification.certified} 값을 직접 검사해봐야만 알
* 수 있기 때문이다.
*
* @param imp_uid 대상 본인인증 정보의 {@link IIamportCertification.imp_uid}
* @param imp_uid 대상 본인인증 정보의 {@link IIamportCertification.imp_uid }
* @returns 본인인증 정보
* @security bearer
* @author Samchon
Expand Down Expand Up @@ -52,17 +52,17 @@ export namespace at {
type: "application/json",
encrypted: false,
},
status: null,
status: 200,
} as const;

export const path = (imp_uid: string) =>
`/certifications/${encodeURIComponent(imp_uid ?? "null")}`;
`/certifications/${encodeURIComponent(imp_uid?.toString() ?? "null")}`;
}

/**
* 본인인증 정보 삭제하기.
*
* @param imp_uid 대상 본인인증 정보의 {@link IIamportCertification.imp_uid}
* @param imp_uid 대상 본인인증 정보의 {@link IIamportCertification.imp_uid }
* @returns 삭제된 본인인증 정보
* @security bearer
* @author Samchon
Expand Down Expand Up @@ -92,9 +92,9 @@ export namespace erase {
type: "application/json",
encrypted: false,
},
status: null,
status: 200,
} as const;

export const path = (imp_uid: string) =>
`/certifications/${encodeURIComponent(imp_uid ?? "null")}`;
`/certifications/${encodeURIComponent(imp_uid?.toString() ?? "null")}`;
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export namespace request {
type: "application/json",
encrypted: false,
},
status: null,
status: 201,
} as const;

export const path = () => "/certifications/otp/request";
Expand All @@ -85,7 +85,7 @@ export namespace request {
* {@link IIamportCertification.certified} 값이 비로소 `true` 로 변경되어,
* 비로소 완결된다.
*
* @param imp_uid 대상 본인인증 정보의 {@link IIamportCertification.imp_uid}
* @param imp_uid 대상 본인인증 정보의 {@link IIamportCertification.imp_uid }
* @param input OTP 코드
* @returns 인증 완료된 본인인증 정보
* @security bearer
Expand Down Expand Up @@ -131,9 +131,9 @@ export namespace confirm {
type: "application/json",
encrypted: false,
},
status: null,
status: 201,
} as const;

export const path = (imp_uid: string) =>
`/certifications/otp/confirm/${encodeURIComponent(imp_uid ?? "null")}`;
`/certifications/otp/confirm/${encodeURIComponent(imp_uid?.toString() ?? "null")}`;
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export namespace webhook {
type: "application/json",
encrypted: false,
},
status: null,
status: 201,
} as const;

export const path = () => "/internal/webhook";
Expand Down Expand Up @@ -106,9 +106,9 @@ export namespace deposit {
type: "application/json",
encrypted: false,
},
status: null,
status: 200,
} as const;

export const path = (imp_uid: string) =>
`/internal/deposit/${encodeURIComponent(imp_uid ?? "null")}`;
`/internal/deposit/${encodeURIComponent(imp_uid?.toString() ?? "null")}`;
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import type { IIamportResponse } from "../../structures/IIamportResponse";
*
* 아임포트를 통하여 발생한 결제 기록을 열람한다.
*
* @param imp_uid 대상 결제 기록의 {@link IIamportPayment.imp_uid}
* @param imp_uid 대상 결제 기록의 {@link IIamportPayment.imp_uid }
* @param query 결제 수단이 페이팔인 경우에 사용
* @returns 결제 정보
* @security bearer
Expand Down Expand Up @@ -49,7 +49,7 @@ export namespace at {
type: "application/json",
encrypted: false,
},
status: null,
status: 200,
} as const;

export const path = (imp_uid: string, query: at.Query) => {
Expand All @@ -59,7 +59,7 @@ export namespace at {
else if (Array.isArray(value))
value.forEach((elem: any) => variables.append(key, String(elem)));
else variables.set(key, String(value));
const location: string = `/payments/${encodeURIComponent(imp_uid ?? "null")}`;
const location: string = `/payments/${encodeURIComponent(imp_uid?.toString() ?? "null")}`;
return 0 === variables.size
? location
: `${location}?${variables.toString()}`;
Expand Down Expand Up @@ -115,7 +115,7 @@ export namespace cancel {
type: "application/json",
encrypted: false,
},
status: null,
status: 201,
} as const;

export const path = () => "/payments/cancel";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type { IIamportResponse } from "../../structures/IIamportResponse";
/**
* 현금 영수증 조회하기.
*
* @param imp_uid 귀속 결제의 {@link IIamportPayment.imp_uid}
* @param imp_uid 귀속 결제의 {@link IIamportPayment.imp_uid }
* @returns 현금 영수증 정보
* @security bearer
* @author Samchon
Expand Down Expand Up @@ -43,17 +43,17 @@ export namespace at {
type: "application/json",
encrypted: false,
},
status: null,
status: 200,
} as const;

export const path = (imp_uid: string) =>
`/receipts/${encodeURIComponent(imp_uid ?? "null")}`;
`/receipts/${encodeURIComponent(imp_uid?.toString() ?? "null")}`;
}

/**
* 현금 영수증 발행하기.
*
* @param imp_uid 귀속 결제의 {@link IIamportPayment.imp_uid}
* @param imp_uid 귀속 결제의 {@link IIamportPayment.imp_uid }
* @param input 현금 영수증 입력 정보
* @returns 현금 영수증 정보
* @security bearer
Expand Down Expand Up @@ -99,17 +99,17 @@ export namespace create {
type: "application/json",
encrypted: false,
},
status: null,
status: 201,
} as const;

export const path = (imp_uid: string) =>
`/receipts/${encodeURIComponent(imp_uid ?? "null")}`;
`/receipts/${encodeURIComponent(imp_uid?.toString() ?? "null")}`;
}

/**
* 현금 영수증 취소하기.
*
* @param imp_uid 귀속 결제의 {@link IIamportPayment.imp_uid}
* @param imp_uid 귀속 결제의 {@link IIamportPayment.imp_uid }
* @returns 취소된 현금 영수증 정보
* @security bearer
* @author Samchon
Expand Down Expand Up @@ -139,9 +139,9 @@ export namespace erase {
type: "application/json",
encrypted: false,
},
status: null,
status: 200,
} as const;

export const path = (imp_uid: string) =>
`/receipts/${encodeURIComponent(imp_uid ?? "null")}`;
`/receipts/${encodeURIComponent(imp_uid?.toString() ?? "null")}`;
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ export namespace at {
type: "application/json",
encrypted: false,
},
status: null,
status: 200,
} as const;

export const path = (customer_uid: string) =>
`/subscribe/customers/${encodeURIComponent(customer_uid ?? "null")}`;
`/subscribe/customers/${encodeURIComponent(customer_uid?.toString() ?? "null")}`;
}

/**
Expand Down Expand Up @@ -112,11 +112,11 @@ export namespace create {
type: "application/json",
encrypted: false,
},
status: null,
status: 201,
} as const;

export const path = (customer_uid: string) =>
`/subscribe/customers/${encodeURIComponent(customer_uid ?? "null")}`;
`/subscribe/customers/${encodeURIComponent(customer_uid?.toString() ?? "null")}`;
}

/**
Expand Down Expand Up @@ -154,9 +154,9 @@ export namespace erase {
type: "application/json",
encrypted: false,
},
status: null,
status: 200,
} as const;

export const path = (customer_uid: string) =>
`/subscribe/customers/${encodeURIComponent(customer_uid ?? "null")}`;
`/subscribe/customers/${encodeURIComponent(customer_uid?.toString() ?? "null")}`;
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export namespace onetime {
type: "application/json",
encrypted: false,
},
status: null,
status: 201,
} as const;

export const path = () => "/subscribe/payments/onetime";
Expand Down Expand Up @@ -137,7 +137,7 @@ export namespace again {
type: "application/json",
encrypted: false,
},
status: null,
status: 201,
} as const;

export const path = () => "/subscribe/payments/again";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export namespace getToken {
type: "application/json",
encrypted: false,
},
status: null,
status: 201,
} as const;

export const path = () => "/users/getToken";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export namespace create {
type: "application/json",
encrypted: false,
},
status: null,
status: 201,
} as const;

export const path = () => "/vbanks";
Expand Down Expand Up @@ -110,7 +110,7 @@ export namespace update {
type: "application/json",
encrypted: false,
},
status: null,
status: 200,
} as const;

export const path = () => "/vbanks";
Expand Down
8 changes: 4 additions & 4 deletions packages/fake-toss-payments-server/nestia.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ const NESTIA_CONFIG: INestiaConfig = {
"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)",
},
servers: [
{
url: "http://localhost:30771",
description: "fake",
},
{
url: "https://api.tosspayments.com",
description: "real",
},
{
url: "http://localhost:30771",
description: "fake",
},
],
security: {
basic: {
Expand Down
Loading
Loading