Skip to content

Commit

Permalink
feat: type fix, 배포 script 등 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunSeob committed Oct 8, 2020
1 parent 088f54f commit 09c510d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 17 deletions.
9 changes: 0 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,8 @@ jobs:
name: 'Test'
script:
- yarn test
if: type = push AND branch != master
- stage: 'Deploy'
name: 'Deploy'
script:
- yarn build
- yarn deploy
- 'yarn lerna version --conventional-commits --yes --git-remote pub'
- 'yarn lerna publish from-git --dist-tag latest --yes'
if: type = push AND branch = master
- stage: 'Deploy Prerelease'
name: 'Deploy (Prerelease)'
script:
- git switch ${TRAVIS_BRANCH}
- yarn build
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
"types"
],
"dependencies": {
"@tosspayments/sdk-types": "^1.1.0"
"@tosspayments/sdk-types": "^1.1.1"
}
}
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ export async function loadTossPayments(clientKey: string): Promise<TossPaymentsI
if (typeof window === 'undefined') {
return {
requestPayment() {
throw new Error('[TossPayments.js] 서버사이드에서는 실행할 수 없습니다.');
throw new Error('[TossPayments.js] 서버에서는 실행할 수 없습니다.');
},
requestBillingAuth() {
throw new Error('[TossPayments.js] 서버사이드에서는 실행할 수 없습니다.');
throw new Error('[TossPayments.js] 서버에서는 실행할 수 없습니다.');
},
};
}
Expand All @@ -37,7 +37,7 @@ export async function loadTossPayments(clientKey: string): Promise<TossPaymentsI
if (window.TossPayments !== undefined) {
resolve(window.TossPayments(clientKey));
} else {
reject(new Error('[TossPayments] Instance 초기화에 실패했습니다.'));
reject(new Error('[TossPayments] 인스턴스 초기화에 실패했습니다.'));
}
});
});
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1579,10 +1579,10 @@
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82"
integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==

"@tosspayments/sdk-types@^1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@tosspayments/sdk-types/-/sdk-types-1.1.0.tgz#d9bdea1431dc21efc0e258ee820ab267a9d63904"
integrity sha512-qqunNi0/sJbDZO/HdVezCa1SVTNjNp3Ajrtf7VxdutYGElDJaEeDeY8WtiNZvlxqIaWSllU1FsgFpvF5bqI2nw==
"@tosspayments/sdk-types@^1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@tosspayments/sdk-types/-/sdk-types-1.1.1.tgz#114ab10b41d977a036dbd9f6d33df027510b1bd9"
integrity sha512-S8v/LgFqvb2nbuYvQscLP3b3JRhB67J666A02QE9d14ywkIEKF8q7n9qVHE7MMtxY9gPhwazwyja0zA4uP8oWw==

"@types/babel__core@^7.1.7":
version "7.1.7"
Expand Down

0 comments on commit 09c510d

Please sign in to comment.