Skip to content

Commit 4dd07b1

Browse files
Formatted code and added husky script
1 parent 3ad9c83 commit 4dd07b1

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## Unreleased
99

1010
## 1.0.0 - 2023-05-12
11+
1112
### Added
13+
1214
- Added `isTest` mode parameter.
1315
- Added `receipt` parameter to conform the fiscal policy.
1416
- Added unit tests.
1517

1618
### Changed
19+
1720
- Rewrote the forked code to use TypeScript.
1821

1922
### Fixed
23+
2024
- Semantic Version calculation errors in the old forked repositories.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ $ npm install @dev-aces/robokassa
1717
Generate a payment URL and redirect a user to it.
1818

1919
TypeScript:
20+
2021
```typescript
2122
import { Robokassa } = from '@dev-aces/robokassa';
2223

@@ -52,6 +53,7 @@ const url = robokassa.generatePaymentUrl({
5253
```
5354

5455
JavaScript:
56+
5557
```javascript
5658
const { Robokassa } = require('@dev-aces/robokassa');
5759

@@ -63,6 +65,7 @@ const { Robokassa } = require('@dev-aces/robokassa');
6365
If the `POST` method is selected for the result response in the Robokassa settings (recommended), then the results can be processed with the next Express code.
6466

6567
TypeScript:
68+
6669
```typescript
6770
import { Robokassa, IRobokassaResponse } = from '@dev-aces/robokassa';
6871
import express, { Request, Response } from 'express';
@@ -112,6 +115,7 @@ $ npm run build && npm run test
112115
## History
113116

114117
Ideas are taken from the old projects:
118+
115119
- [betsol/node-robokassa](https://github.com/betsol/node-robokassa)
116120
- [SeNaP/-node-robokassa](https://github.com/SeNaP/node-robokassa)
117121

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"husky": {
2828
"hooks": {
29-
"pre-push": "npm run build"
29+
"pre-push": "npm run format && npm run build && npm test"
3030
}
3131
},
3232
"devDependencies": {

0 commit comments

Comments
 (0)