Skip to content

Commit 60e5cfe

Browse files
Merge pull request #40 from alexanderjordanbaker/SignedDataVerifierNameFix
Correct SignedDataVerifier naming to remove JWT reference
2 parents 4efa412 + 58001b9 commit 60e5cfe

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ try {
5858
### Verification Usage
5959

6060
```typescript
61-
import { SignedDataVerifier } from "@apple/app-store-server-library/dist/jwt_verification"
61+
import { SignedDataVerifier } from "@apple/app-store-server-library"
6262

6363
const bundleId = "com.example"
6464
const appleRootCAs: Buffer[] = loadRootCAs() // Specific implementation may vary

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { TransactionHistoryRequest } from './models/TransactionHistoryRequest';
1818
import { TransactionInfoResponse, TransactionInfoResponseValidator } from './models/TransactionInfoResponse';
1919
import { Validator } from './models/Validator';
2020
import { Status } from './models/Status';
21-
export { SignedDataVerifier as SignedJWTVerifier } from './jwt_verification'
21+
export { SignedDataVerifier } from './jws_verification'
2222
export { ReceiptUtility } from './receipt_utility'
2323
export { AccountTenure } from "./models/AccountTenure"
2424
export { AutoRenewStatus } from './models/AutoRenewStatus'
File renamed without changes.

tests/unit-tests/jwt_verification.test.ts renamed to tests/unit-tests/jws_verification.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import assert = require("assert");
44
import { KeyObject, X509Certificate } from "crypto";
5-
import { SignedDataVerifier, VerificationException, VerificationStatus } from "../../jwt_verification";
5+
import { SignedDataVerifier, VerificationException, VerificationStatus } from "../../jws_verification";
66
import { Environment } from "../../models/Environment";
77
import { readFile, getSignedPayloadVerifierWithDefaultAppAppleId, getDefaultSignedPayloadVerifier } from "../util";
88

tests/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import * as fs from 'fs';
44
import { Environment } from '../models/Environment';
5-
import { SignedDataVerifier } from '../jwt_verification';
5+
import { SignedDataVerifier } from '../jws_verification';
66
import { ECKeyPairOptions, generateKeyPairSync } from 'crypto';
77
import jsonwebtoken = require('jsonwebtoken');
88

0 commit comments

Comments
 (0)