app-store-server-api
Advanced tools
Comparing version
{ | ||
"name": "app-store-server-api", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "A client for the App Store Server API", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
@@ -33,5 +33,5 @@ # app-store-server-api | ||
```javascript | ||
const { AppStoreServerAPI, Environment } = require("app-store-server-api") | ||
const { AppStoreServerAPI, Environment, decodeRenewalInfo, decodeTransaction, decodeTransactions } = require("app-store-server-api") | ||
// or | ||
import { AppStoreServerAPI, Environment } from "app-store-server-api" | ||
import { AppStoreServerAPI, Environment, decodeRenewalInfo, decodeTransaction, decodeTransactions } from "app-store-server-api" | ||
@@ -59,3 +59,3 @@ const KEY = | ||
// Decoding not only reveals the contents of the transactions but also verifies that they were signed by Apple. | ||
const transactions = await api.decodeTransactions(response.signedTransactions) | ||
const transactions = await decodeTransactions(response.signedTransactions) | ||
@@ -81,4 +81,4 @@ for (let transaction of transactions) { | ||
const transactionInfo = await api.decodeTransaction(item.signedTransactionInfo) | ||
const renewalInfo = await api.decodeRenewalInfo(item.signedRenewalInfo) | ||
const transactionInfo = await decodeTransaction(item.signedTransactionInfo) | ||
const renewalInfo = await decodeRenewalInfo(item.signedRenewalInfo) | ||
``` | ||
@@ -94,3 +94,3 @@ | ||
if (response.orderLookupStatus === OrderLookupStatus.Valid) { | ||
const transactions = await api.decodeTransactions(response.signedTransactions) | ||
const transactions = await decodeTransactions(response.signedTransactions) | ||
/// ... | ||
@@ -122,2 +122,2 @@ } | ||
## License | ||
MIT | ||
MIT |
69296
0.15%119
0.85%