app-store-server-api
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -24,4 +24,14 @@ "use strict"; | ||
_this.errorCode = errorCode; | ||
_this.isRetryable = AppStoreError.RETRYABLE_ERRORS.includes(errorCode); | ||
return _this; | ||
} | ||
// The following errors indicate that the request can be tried again. | ||
// See https://developer.apple.com/documentation/appstoreserverapi/error_codes | ||
// for a list of all errors. | ||
AppStoreError.RETRYABLE_ERRORS = [ | ||
4040002, | ||
4040004, | ||
5000001, | ||
4040006 // OriginalTransactionIdNotFoundRetryableError | ||
]; | ||
return AppStoreError; | ||
@@ -28,0 +38,0 @@ }(Error)); |
@@ -21,4 +21,14 @@ var __extends = (this && this.__extends) || (function () { | ||
_this.errorCode = errorCode; | ||
_this.isRetryable = AppStoreError.RETRYABLE_ERRORS.includes(errorCode); | ||
return _this; | ||
} | ||
// The following errors indicate that the request can be tried again. | ||
// See https://developer.apple.com/documentation/appstoreserverapi/error_codes | ||
// for a list of all errors. | ||
AppStoreError.RETRYABLE_ERRORS = [ | ||
4040002, | ||
4040004, | ||
5000001, | ||
4040006 // OriginalTransactionIdNotFoundRetryableError | ||
]; | ||
return AppStoreError; | ||
@@ -25,0 +35,0 @@ }(Error)); |
export declare class AppStoreError extends Error { | ||
static readonly RETRYABLE_ERRORS: number[]; | ||
errorCode: number; | ||
isRetryable: boolean; | ||
constructor(errorCode: number, errorMessage: string); | ||
@@ -4,0 +6,0 @@ } |
{ | ||
"name": "app-store-server-api", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "A client for the App Store Server API", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
84229
1540