iap-apple 2.0.2 โ†’ 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [2.0.3](https://github.com/ssbarbee/iap-apple/compare/v2.0.2...v2.0.3) (2023-01-14)
2
+
3
+ ## [2.0.2](https://github.com/ssbarbee/iap-apple/compare/v2.0.1...v2.0.2) (2022-12-23)
4
+
1
5
  ## [2.0.1](https://github.com/ssbarbee/iap-apple/compare/v2.0.0...v2.0.1) (2022-12-23)
2
6
 
3
7
  # [2.0.0](https://github.com/ssbarbee/iap-apple/compare/v1.3.12...v2.0.0) (2022-12-23)
package/README.md CHANGED
@@ -3,16 +3,21 @@
3
3
  | ![Statements](https://img.shields.io/badge/statements-76.97%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-47.96%25-red.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-75%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-75%25-red.svg?style=flat) |
4
4
 
5
5
  # iap-apple
6
+
7
+ ![https://img.shields.io/npm/v/iap-apple](https://img.shields.io/npm/v/iap-apple)
8
+ ![https://img.shields.io/github/issues-raw/ssbarbee/iap-apple](https://img.shields.io/github/issues-raw/ssbarbee/iap-apple)
9
+ ![https://img.shields.io/npm/dw/iap-apple](https://img.shields.io/npm/dw/iap-apple)
10
+
6
11
  ๐Ÿ“ฆ๐Ÿš€ Integration of Apples ๏ฃฟ **validation service** for App Store Receipts, written in Typescript, available for NodeJS environments.
7
12
 
8
13
  A NodeJS module for in-app purchase (in-app billing) and subscription for Apple.
9
14
 
10
- ## Overview
15
+ ## Overview ๐Ÿง
11
16
 
12
17
  Create a Typescript package for validation of [App Store Receipts](https://developer.apple.com/documentation/appstorereceipts).
13
18
  This package is meant to be used server side to validate receipts from the App Store by talking to Apples servers.
14
19
 
15
- ## Installation
20
+ ## Installation ๐Ÿ“ฆ
16
21
 
17
22
  ### npm
18
23
 
@@ -22,9 +27,9 @@ This package is meant to be used server side to validate receipts from the App S
22
27
 
23
28
  ```yarn add iap-apple```
24
29
 
25
- ## API documentation
30
+ ## API documentation ๐Ÿ“š
26
31
 
27
- ### verify
32
+ ### verify ๐Ÿงช
28
33
 
29
34
  API used to verify receipt data received during an App Store purchase.
30
35
  Requires **appSharedSecret** to be passed as part of the configuration.
@@ -70,7 +75,7 @@ async function verifyAppleReceipt(receipt: string) {
70
75
  }
71
76
  ```
72
77
 
73
- ### isVerifiedReceipt
78
+ ### isVerifiedReceipt ๐Ÿงช
74
79
 
75
80
  API used to verify if response returned by `verify` is verified.
76
81
  Requires the output of `verify` to be passed.
@@ -94,7 +99,7 @@ async function isVerifiedAppleReceipt(receipt: string, config: IIAPAppleConfig)
94
99
  }
95
100
  ```
96
101
 
97
- ### getPurchasedItems
102
+ ### getPurchasedItems ๐Ÿงช
98
103
 
99
104
  API used to get an array of PurchasedItem objects from the Apple App Store response,
100
105
  sort by their purchase date descending.
@@ -121,7 +126,7 @@ async function isVerifiedAppleReceipt(receipt: string, config: IIAPAppleConfig)
121
126
  }
122
127
  ```
123
128
 
124
- ### isPurchasedItemCanceled
129
+ ### isPurchasedItemCanceled ๐Ÿงช
125
130
 
126
131
  API used to check if a purchased item is canceled.
127
132
  Requires the output of `getPurchasedItems` to be passed.
@@ -148,7 +153,7 @@ async function isVerifiedAppleReceipt(receipt: string, config: IIAPAppleConfig)
148
153
  ```
149
154
 
150
155
 
151
- ### isPurchasedItemExpired
156
+ ### isPurchasedItemExpired ๐Ÿงช
152
157
 
153
158
  API used to check if a purchased item is expired.
154
159
  Requires the output of `getPurchasedItems` to be passed.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iap-apple",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "Integration with Apples InAppPurchases in Typescript, available for NodeJS environments.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",