Skip to content

Commit

Permalink
feat: add safe deal (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: mike <jfkz@noreply.users.github.com>
Co-authored-by: jfkz <jfkz@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 7, 2024
1 parent 409877a commit c24eb73
Show file tree
Hide file tree
Showing 67 changed files with 3,845 additions and 6,202 deletions.
30 changes: 5 additions & 25 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"eslint-plugin-import"
],
"plugins": ["@typescript-eslint", "eslint-plugin-import"],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
Expand All @@ -19,35 +17,17 @@
"node": true
},
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"import/order": [
"error",
{
"groups": [
"builtin",
"external"
],
"groups": ["builtin", "external"],
"newlines-between": "always",
"alphabetize": {
"order": "asc"
}
}
],
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/no-non-null-assertion": 0
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
- run: npm run build --if-present
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Tag CI

on:
push:
branches: [ master ]
branches: [master]

jobs:
publish:
Expand Down
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
5 changes: 5 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 120
}
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

# Changelog

A changelog for: `@sfomin/tinkoff-payment-sdk` npm package.


## 0.1.1 `patch`

- Updated webhook payload schema to make `CardId` parameter optional
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# @jfkz/tinkoff-payment-sdk

<!-- NPM Badge -->
Expand Down Expand Up @@ -33,8 +32,8 @@ A Node.js SDK for Tinkoff Bank's Payment API.

## Version difference

* 0.x - old interface for Merchant provider, only CryptoPro is supported
* 1.x - updated interface for Merchant provider, support both CryptoPro and RSA signatures for request signatures
- 0.x - old interface for Merchant provider, only CryptoPro is supported
- 1.x - updated interface for Merchant provider, support both CryptoPro and RSA signatures for request signatures

## Installation

Expand Down Expand Up @@ -101,7 +100,6 @@ ApiManagerInstance.initPayment({

@todo


## License (MIT)

Copyright (c) 2020 jfkz, Slava Fomin II
Expand All @@ -124,5 +122,4 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


[Got]: https://github.com/sindresorhus/got
[Got]: https://github.com/sindresorhus/got
2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
};
};
6 changes: 3 additions & 3 deletions dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

version: 2
updates:
- package-ecosystem: "" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: '' # See documentation for possible values
directory: '/' # Location of package manifests
schedule:
interval: "daily"
interval: 'daily'
Loading

0 comments on commit c24eb73

Please sign in to comment.