varsnap 1.8.4 → 1.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/built/varsnap/core.d.ts +5 -5
- package/dist/built/varsnap/core.js +1 -1
- package/dist/varsnap.js +342 -330
- package/dist/varsnap.min.js +2 -2
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const version = "1.8.
|
|
1
|
+
export declare const version = "1.8.5";
|
|
2
2
|
export declare const clientName: string;
|
|
3
3
|
export interface Config {
|
|
4
4
|
varsnap: boolean;
|
|
@@ -8,8 +8,8 @@ export interface Config {
|
|
|
8
8
|
consumerToken?: string;
|
|
9
9
|
logger?: Logger;
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
type ConfigKeys = keyof Config;
|
|
12
|
+
type rawJSONObject = ConsumeSnapResponse | ProduceTrialResponse | TrialGroupRequest | TrialGroupResponse | Record<string, string>;
|
|
13
13
|
export interface Logger {
|
|
14
14
|
debug(s: string): void;
|
|
15
15
|
log(s: string): void;
|
|
@@ -66,8 +66,8 @@ export declare class Consumer {
|
|
|
66
66
|
reportLog(snapID: string, inputs: TargetFunctionInput[], prodOutputs: TargetFunctionOutput, localOutputs: TargetFunctionOutput, matches: boolean, trialURL: string | boolean): void;
|
|
67
67
|
reportTrialGroup(trialGroup: TrialGroupResponse): void;
|
|
68
68
|
}
|
|
69
|
-
export
|
|
70
|
-
export
|
|
69
|
+
export type TargetFunctionInput = any;
|
|
70
|
+
export type TargetFunctionOutput = any;
|
|
71
71
|
export interface TargetFunction {
|
|
72
72
|
(...args: TargetFunctionInput[]): TargetFunctionOutput;
|
|
73
73
|
}
|
|
@@ -7,7 +7,7 @@ const produceURL = 'https://www.varsnap.com/api/snap/produce/';
|
|
|
7
7
|
const consumeURL = 'https://www.varsnap.com/api/snap/consume/';
|
|
8
8
|
const produceTrialURL = 'https://www.varsnap.com/api/trial/produce/';
|
|
9
9
|
const trialGroupURL = 'https://www.varsnap.com/api/trial_group/';
|
|
10
|
-
exports.version = '1.8.
|
|
10
|
+
exports.version = '1.8.5';
|
|
11
11
|
exports.clientName = 'javascript.' + exports.version;
|
|
12
12
|
const defaultConfig = {
|
|
13
13
|
varsnap: true,
|