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 tstl@3.0.0 #190

Merged
merged 1 commit into from
Mar 27, 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
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": "6.0.6",
"version": "7.0.0",
"description": "Collection of Payment system of Samchon",
"scripts": {
"package:latest": "node deploy latest",
Expand Down
12 changes: 6 additions & 6 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": "6.0.6",
"version": "7.0.0",
"description": "Fake iamport server for testing",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -38,7 +38,7 @@
},
"homepage": "https://github.com/samchon/fake-iamport-server",
"devDependencies": {
"@nestia/sdk": "^2.5.8",
"@nestia/sdk": "^2.6.2",
"@types/atob": "^2.1.2",
"@types/btoa": "^1.2.3",
"@types/cli": "^0.11.19",
Expand All @@ -57,9 +57,9 @@
"typescript": "^5.3.2"
},
"dependencies": {
"@nestia/core": "^2.5.8",
"@nestia/core": "^2.6.2",
"@nestia/e2e": "^0.4.1",
"@nestia/fetcher": "^2.5.8",
"@nestia/fetcher": "^2.6.2",
"@nestjs/common": "^10.2.8",
"@nestjs/core": "^10.2.8",
"@nestjs/platform-fastify": "^10.2.8",
Expand All @@ -68,9 +68,9 @@
"fastify": "^4.24.3",
"serialize-error": "^4.1.0",
"source-map-support": "^0.5.19",
"tstl": "^2.5.13",
"tstl": "^3.0.0",
"typescript-transform-paths": "^3.4.6",
"typia": "^5.4.9",
"typia": "^5.5.7",
"uuid": "^9.0.0"
},
"keywords": [
Expand Down
4 changes: 1 addition & 3 deletions packages/fake-iamport-server/src/FakeIamportConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import {
NotFoundException,
UnprocessableEntityException,
} from "@nestjs/common";
import { DomainError } from "tstl/exception/DomainError";
import { InvalidArgument } from "tstl/exception/InvalidArgument";
import { OutOfRange } from "tstl/exception/OutOfRange";
import { DomainError, InvalidArgument, OutOfRange } from "tstl";

/* eslint-disable */
const EXTENSION = __filename.substring(__filename.length - 2);
Expand Down
4 changes: 1 addition & 3 deletions packages/fake-iamport-server/src/api/IamportConnector.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { SharedLock } from "tstl/thread/SharedLock";
import { SharedMutex } from "tstl/thread/SharedMutex";
import { UniqueLock } from "tstl/thread/UniqueLock";
import { SharedLock, SharedMutex, UniqueLock } from "tstl";

import { IConnection } from "./IConnection";
import { users } from "./functional";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export * as otp from "./otp";
* @security bearer
* @author Samchon
*
* @controller FakeIamportCertificationsController.at
* @controller FakeIamportCertificationsController.
* @path GET /certifications/:imp_uid
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down Expand Up @@ -66,7 +66,7 @@ export namespace at {
* @security bearer
* @author Samchon
*
* @controller FakeIamportCertificationsController.erase
* @controller FakeIamportCertificationsController.
* @path DELETE /certifications/:imp_uid
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import type { IIamportResponse } from "../../../structures/IIamportResponse";
* @security bearer
* @author Samchon
*
* @controller FakeIamportCertificationsController.request
* @controller FakeIamportCertificationsController.
* @path POST /certifications/otp/request
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down Expand Up @@ -90,7 +90,7 @@ export namespace request {
* @security bearer
* @author Samchon
*
* @controller FakeIamportCertificationsController.confirm
* @controller FakeIamportCertificationsController.
* @path POST /certifications/otp/confirm/:imp_uid
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import type { IIamportPayment } from "../../structures/IIamportPayment";
* @param input 웹훅 이벤트 정보
* @author Samchon
*
* @controller FakeIamportInternalController.webhook
* @controller FakeIamportInternalController.
* @path POST /internal/webhook
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down Expand Up @@ -82,7 +82,7 @@ export namespace webhook {
* @security bearer
* @author Samchon
*
* @controller FakeIamportInternalController.deposit
* @controller FakeIamportInternalController.
* @path PUT /internal/deposit/:imp_uid
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import type { IIamportResponse } from "../../structures/IIamportResponse";
* @security bearer
* @author Samchon
*
* @controller FakeIamportPaymentsController.at
* @controller FakeIamportPaymentsController.
* @path GET /payments/:imp_uid
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down Expand Up @@ -75,7 +75,7 @@ export namespace at {
* @security bearer
* @author Samchon
*
* @controller FakeIamportPaymentsController.cancel
* @controller FakeIamportPaymentsController.
* @path POST /payments/cancel
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import type { IIamportResponse } from "../../structures/IIamportResponse";
* @security bearer
* @author Samchon
*
* @controller FakeIamportReceiptsController.at
* @controller FakeIamportReceiptsController.
* @path GET /receipts/:imp_uid
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down Expand Up @@ -58,7 +58,7 @@ export namespace at {
* @security bearer
* @author Samchon
*
* @controller FakeIamportReceiptsController.create
* @controller FakeIamportReceiptsController.
* @path POST /receipts/:imp_uid
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down Expand Up @@ -112,7 +112,7 @@ export namespace create {
* @security bearer
* @author Samchon
*
* @controller FakeIamportReceiptsController.erase
* @controller FakeIamportReceiptsController.
* @path DELETE /receipts/:imp_uid
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import type { IIamportSubscription } from "../../../structures/IIamportSubscript
* @security bearer
* @author Samchon
*
* @controller FakeIamportSubscribeCustomersController.at
* @controller FakeIamportSubscribeCustomersController.
* @path GET /subscribe/customers/:customer_uid
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down Expand Up @@ -71,7 +71,7 @@ export namespace at {
* @security bearer
* @author Samchon
*
* @controller FakeIamportSubscribeCustomersController.create
* @controller FakeIamportSubscribeCustomersController.
* @path POST /subscribe/customers/:customer_uid
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down Expand Up @@ -127,7 +127,7 @@ export namespace create {
* @security bearer
* @author Samchon
*
* @controller FakeIamportSubscribeCustomersController.erase
* @controller FakeIamportSubscribeCustomersController.
* @path DELETE /subscribe/customers/:customer_uid
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import type { IIamportSubscription } from "../../../structures/IIamportSubscript
* @security bearer
* @author Samchon
*
* @controller FakeIampotSubscribePaymentsController.onetime
* @controller FakeIampotSubscribePaymentsController.
* @path POST /subscribe/payments/onetime
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down Expand Up @@ -97,7 +97,7 @@ export namespace onetime {
* @security bearer
* @author Samchon
*
* @controller FakeIampotSubscribePaymentsController.again
* @controller FakeIampotSubscribePaymentsController.
* @path POST /subscribe/payments/again
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import type { IIamportUser } from "../../structures/IIamportUser";
* @returns 유저 인증 토큰 정보
* @author Samchon
*
* @controller FakeIamportUsersController.getToken
* @controller FakeIamportUsersController.
* @path POST /users/getToken
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import type { IIamportVBankPayment } from "../../structures/IIamportVBankPayment
* @security bearer
* @author Samchon
*
* @controller FakeIamportVbanksController.create
* @controller FakeIamportVbanksController.
* @path POST /vbanks
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down Expand Up @@ -70,7 +70,7 @@ export namespace create {
* @security bearer
* @author Samchon
*
* @controller FakeIamportVbanksController.update
* @controller FakeIamportVbanksController.
* @path PUT /vbanks
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { IIamportPayment } from "iamport-server-api/lib/structures/IIamportPayme
import { IIamportResponse } from "iamport-server-api/lib/structures/IIamportResponse";
import { IIamportUser } from "iamport-server-api/lib/structures/IIamportUser";
import { IIamportVBankPayment } from "iamport-server-api/lib/structures/IIamportVBankPayment";
import { randint } from "tstl/algorithm/random";
import { randint } from "tstl";
import { v4 } from "uuid";

import { FakeIamportUserAuth } from "../decorators/FakeIamportUserAuth";
Expand Down
3 changes: 1 addition & 2 deletions packages/fake-iamport-server/src/executable/server.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import fs from "fs";
import { randint } from "tstl/algorithm/random";
import { Singleton } from "tstl/thread/Singleton";
import { Singleton, randint } from "tstl";

import { FakeIamportBackend } from "../FakeIamportBackend";
import { ErrorUtil } from "../utils/ErrorUtil";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IIamportPayment } from "iamport-server-api/lib/structures/IIamportPayment";
import { IIamportPaymentCancel } from "iamport-server-api/lib/structures/IIamportPaymentCancel";
import { IIamportVBankPayment } from "iamport-server-api/lib/structures/IIamportVBankPayment";
import { DomainError } from "tstl/exception/DomainError";
import { DomainError } from "tstl";

import { FakeIamportConfiguration } from "../FakeIamportConfiguration";
import { FakeIamportStorage } from "./FakeIamportStorage";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { RandomGenerator } from "@nestia/e2e";
import { randint } from "tstl/algorithm/random";
import { randint } from "tstl";

export const AdvancedRandomGenerator = {
...RandomGenerator,
Expand Down
2 changes: 1 addition & 1 deletion packages/fake-iamport-server/src/utils/Terminal.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import cp from "child_process";
import { Pair } from "tstl/utility/Pair";
import { Pair } from "tstl";

export namespace Terminal {
export function execute(
Expand Down
6 changes: 1 addition & 5 deletions packages/fake-iamport-server/src/utils/VolatileMap.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { HashMap } from "tstl/container/HashMap";
import { TreeMap } from "tstl/container/TreeMap";
import { OutOfRange } from "tstl/exception/OutOfRange";
import { equal_to } from "tstl/functional/comparators";
import { hash } from "tstl/functional/hash";
import { HashMap, OutOfRange, TreeMap, equal_to, hash } from "tstl";

export class VolatileMap<Key, T> {
private readonly dict_: HashMap<Key, T>;
Expand Down
12 changes: 6 additions & 6 deletions packages/fake-toss-payments-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fake-toss-payments-server",
"version": "6.0.6",
"version": "7.0.0",
"description": "Fake toss-payments server for testing",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -39,7 +39,7 @@
"homepage": "https://github.com/samchon/fake-toss-payments-server",
"devDependencies": {
"@nestia/e2e": "^0.4.1",
"@nestia/sdk": "^2.5.8",
"@nestia/sdk": "^2.6.2",
"@types/atob": "^2.1.2",
"@types/btoa": "^1.2.3",
"@types/cli": "^0.11.19",
Expand All @@ -59,8 +59,8 @@
"typescript-transform-paths": "^3.4.6"
},
"dependencies": {
"@nestia/core": "^2.5.8",
"@nestia/fetcher": "^2.5.8",
"@nestia/core": "^2.6.2",
"@nestia/fetcher": "^2.6.2",
"@nestjs/common": "^10.2.8",
"@nestjs/core": "^10.2.8",
"@nestjs/platform-fastify": "^10.2.8",
Expand All @@ -69,8 +69,8 @@
"fastify": "^4.24.3",
"serialize-error": "^4.1.0",
"source-map-support": "^0.5.19",
"tstl": "^2.5.13",
"typia": "^5.4.9",
"tstl": "^3.0.0",
"typia": "^5.5.7",
"uuid": "^9.0.0"
},
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import {
NotFoundException,
UnprocessableEntityException,
} from "@nestjs/common";
import { DomainError } from "tstl/exception/DomainError";
import { InvalidArgument } from "tstl/exception/InvalidArgument";
import { OutOfRange } from "tstl/exception/OutOfRange";
import { DomainError, InvalidArgument, OutOfRange } from "tstl";

/* eslint-disable */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import type { ITossPaymentWebhook } from "../../structures/ITossPaymentWebhook";
* @param input 웹훅 이벤트 정보
* @author Samchon
*
* @controller FakeTossInternalController.webhook
* @controller FakeTossInternalController.
* @path POST /internal/webhook
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down Expand Up @@ -84,7 +84,7 @@ export namespace webhook {
* @security basic
* @author Samchon
*
* @controller FakeTossInternalController.deposit
* @controller FakeTossInternalController.
* @path PUT /internal/:paymentKey/deposit
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import type { ITossBilling } from "../../../../../structures/ITossBilling";
* @security basic
* @author Samchon
*
* @controller FakeTossBillingController.create
* @controller FakeTossBillingController.
* @path POST /v1/billing/authorizations/card
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export * as card from "./card";
* @security basic
* @author Samchon
*
* @controller FakeTossBillingController.at
* @controller FakeTossBillingController.
* @path POST /v1/billing/authorizations/:billingKey
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export * as authorizations from "./authorizations";
* @security basic
* @author Samchon
*
* @controller FakeTossBillingController.pay
* @controller FakeTossBillingController.
* @path POST /v1/billing/:billingKey
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
Expand Down
Loading
Loading