New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

app-store-server-api

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

app-store-server-api - npm Package Compare versions

Comparing version

to
0.4.1

2

package.json
{
"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