nestjs-stripe
Advanced tools
Comparing version 0.4.0 to 0.4.1
{ | ||
"name": "nestjs-stripe", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Provides an injectable Stripe client to nestjs modules", | ||
@@ -28,8 +28,8 @@ "repository": "https://github.com/dhaspden/nestjs-stripe", | ||
"devDependencies": { | ||
"@nestjs/common": "^7.0.7", | ||
"@nestjs/core": "^7.0.7", | ||
"@nestjs/testing": "^7.0.7", | ||
"@nestjs/common": "^7.4.4", | ||
"@nestjs/core": "^7.4.4", | ||
"@nestjs/testing": "^7.4.4", | ||
"@types/jest": "25.2.1", | ||
"@types/node": "13.11.0", | ||
"codecov": "3.6.5", | ||
"codecov": "3.7.1", | ||
"jest": "25.2.7", | ||
@@ -45,4 +45,4 @@ "prettier": "2.0.2", | ||
"peerDependencies": { | ||
"@nestjs/common": "^6.0.0", | ||
"@nestjs/core": "^6.0.0", | ||
"@nestjs/common": "^6.0.0 || ^7.0.0", | ||
"@nestjs/core": "^6.0.0 || ^7.0.0", | ||
"reflect-metadata": "^0.1.12", | ||
@@ -49,0 +49,0 @@ "rxjs": "^6.0.0", |
@@ -20,5 +20,7 @@ <p align="center"> | ||
- [Table Of Contents](#table-of-contents) | ||
- [About](#about) | ||
- [Installation](#installation) | ||
- [Getting Started](#getting-started) | ||
- [Example](#example) | ||
- [Contributing](#contributing) | ||
@@ -53,2 +55,3 @@ - [License](#license) | ||
apiKey: 'my_secret_key', | ||
apiVersion: '2020-03-02', | ||
}), | ||
@@ -86,2 +89,3 @@ ], | ||
apiKey: configService.get('stripe_key'), | ||
apiVersion: '2020-03-02', | ||
}), | ||
@@ -94,2 +98,10 @@ }), | ||
Read up on the `stripe-node` caveats | ||
[here](https://github.com/stripe/stripe-node#usage-with-typescript). Due to the | ||
way `stripe-node` works you can only use the latest version of the Stripe API | ||
that was published at the time the module version was published. If you wish to | ||
use an older version of the Stripe API, follow the steps in the above link. | ||
Because of this, the `apiVersion` field is now required along with the `apiKey` | ||
field. | ||
## Example | ||
@@ -96,0 +108,0 @@ |
21457
136