@amplitude/types
Advanced tools
Comparing version 1.5.3 to 1.5.4
@@ -9,5 +9,5 @@ export { BaseEvent, SpecialEventType } from './baseEvent'; | ||
export { Response, ResponseBody, SKIPPED_RESPONSE } from './response'; | ||
export { RetryClass } from './retry'; | ||
export { RetryClass, Retry } from './retry'; | ||
export { Status } from './status'; | ||
export { Transport, TransportOptions, Payload, PayloadOptions } from './transport'; | ||
//# sourceMappingURL=index.d.ts.map |
import { LogLevel } from './logger'; | ||
import { Transport } from './transport'; | ||
import { RetryClass } from './retry'; | ||
import { Retry } from './retry'; | ||
/** | ||
@@ -41,3 +41,3 @@ * Options that you can choose to configure against the client. | ||
*/ | ||
retryClass: RetryClass | null; | ||
retryClass: Retry | null; | ||
/** | ||
@@ -44,0 +44,0 @@ * The class being used to transport events. |
@@ -62,2 +62,5 @@ import { Status } from './status'; | ||
} | { | ||
status: Status.Timeout; | ||
statusCode: number; | ||
} | { | ||
status: Exclude<Status, StatusWithResponseBody>; | ||
@@ -64,0 +67,0 @@ statusCode: number; |
import { Event } from './event'; | ||
import { Response } from './response'; | ||
/** Layer used to send data to Amplitude while retrying throttled events in the right order. */ | ||
export interface RetryClass { | ||
export interface Retry { | ||
/** | ||
@@ -12,2 +12,6 @@ * Send the events payload to Amplitude, and retry the events that failed on a loop. | ||
} | ||
/** | ||
* @deprecated a poor naming of an interface that should be implemented, NOT a class to extend. | ||
*/ | ||
export declare type RetryClass = Retry; | ||
//# sourceMappingURL=retry.d.ts.map |
@@ -16,4 +16,6 @@ /** The status of an event. */ | ||
/** A server-side error ocurred during submission. */ | ||
Failed = "failed" | ||
Failed = "failed", | ||
/** a server or client side error occuring when a request takes too long and is cancelled */ | ||
Timeout = "Timeout" | ||
} | ||
//# sourceMappingURL=status.d.ts.map |
@@ -20,3 +20,5 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
Status["Failed"] = "failed"; | ||
/** a server or client side error occuring when a request takes too long and is cancelled */ | ||
Status["Timeout"] = "Timeout"; | ||
})(Status = exports.Status || (exports.Status = {})); | ||
//# sourceMappingURL=status.js.map |
@@ -9,5 +9,5 @@ export { BaseEvent, SpecialEventType } from './baseEvent'; | ||
export { Response, ResponseBody, SKIPPED_RESPONSE } from './response'; | ||
export { RetryClass } from './retry'; | ||
export { RetryClass, Retry } from './retry'; | ||
export { Status } from './status'; | ||
export { Transport, TransportOptions, Payload, PayloadOptions } from './transport'; | ||
//# sourceMappingURL=index.d.ts.map |
import { LogLevel } from './logger'; | ||
import { Transport } from './transport'; | ||
import { RetryClass } from './retry'; | ||
import { Retry } from './retry'; | ||
/** | ||
@@ -41,3 +41,3 @@ * Options that you can choose to configure against the client. | ||
*/ | ||
retryClass: RetryClass | null; | ||
retryClass: Retry | null; | ||
/** | ||
@@ -44,0 +44,0 @@ * The class being used to transport events. |
@@ -62,2 +62,5 @@ import { Status } from './status'; | ||
} | { | ||
status: Status.Timeout; | ||
statusCode: number; | ||
} | { | ||
status: Exclude<Status, StatusWithResponseBody>; | ||
@@ -64,0 +67,0 @@ statusCode: number; |
import { Event } from './event'; | ||
import { Response } from './response'; | ||
/** Layer used to send data to Amplitude while retrying throttled events in the right order. */ | ||
export interface RetryClass { | ||
export interface Retry { | ||
/** | ||
@@ -12,2 +12,6 @@ * Send the events payload to Amplitude, and retry the events that failed on a loop. | ||
} | ||
/** | ||
* @deprecated a poor naming of an interface that should be implemented, NOT a class to extend. | ||
*/ | ||
export declare type RetryClass = Retry; | ||
//# sourceMappingURL=retry.d.ts.map |
@@ -16,4 +16,6 @@ /** The status of an event. */ | ||
/** A server-side error ocurred during submission. */ | ||
Failed = "failed" | ||
Failed = "failed", | ||
/** a server or client side error occuring when a request takes too long and is cancelled */ | ||
Timeout = "Timeout" | ||
} | ||
//# sourceMappingURL=status.d.ts.map |
@@ -18,3 +18,5 @@ /** The status of an event. */ | ||
Status["Failed"] = "failed"; | ||
/** a server or client side error occuring when a request takes too long and is cancelled */ | ||
Status["Timeout"] = "Timeout"; | ||
})(Status || (Status = {})); | ||
//# sourceMappingURL=status.js.map |
{ | ||
"name": "@amplitude/types", | ||
"version": "1.5.3", | ||
"version": "1.5.4", | ||
"description": "Types for all Amplitude JavaScript SDKs", | ||
@@ -19,3 +19,3 @@ "repository": "git://github.com/amplitude/Amplitude-Node.git", | ||
"devDependencies": { | ||
"@amplitude/eslint-config-typescript": "^1.1.0", | ||
"@amplitude/eslint-config-typescript": "^1.5.4", | ||
"@types/jest": "^26.0.14", | ||
@@ -45,3 +45,3 @@ "eslint": "^7.0.0", | ||
"sideEffects": false, | ||
"gitHead": "baa59364b3567af99438b3985a19d15ebba09378" | ||
"gitHead": "46fced588f3a644993cc693501ee8755c8a6d89a" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
87711
910
0