@convertcom/js-sdk-rules 2.0.0 → 2.1.2
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/README.md +2 -2
- package/lib/enums/index.d.ts +26 -0
- package/lib/enums/src/bucketing-error.d.ts +9 -0
- package/lib/enums/src/conversion-setting-key.d.ts +9 -0
- package/lib/enums/src/data-enitites.d.ts +16 -0
- package/lib/enums/src/dictionary.d.ts +68 -0
- package/lib/enums/src/do-not-track.d.ts +12 -0
- package/lib/enums/src/entity-type.d.ts +15 -0
- package/lib/enums/src/feature-status.d.ts +10 -0
- package/lib/enums/src/goal-data-key.d.ts +11 -0
- package/lib/enums/src/log-level.d.ts +14 -0
- package/lib/enums/src/log-method.d.ts +14 -0
- package/lib/enums/src/project-type.d.ts +10 -0
- package/lib/enums/src/rule-error.d.ts +10 -0
- package/lib/enums/src/segments/browser-type.d.ts +17 -0
- package/lib/enums/src/segments/device-type.d.ts +16 -0
- package/lib/enums/src/segments/segments-keys.d.ts +15 -0
- package/lib/enums/src/segments/source-type.d.ts +12 -0
- package/lib/enums/src/segments/visitor-type.d.ts +10 -0
- package/lib/enums/src/system-events.d.ts +22 -0
- package/lib/enums/src/variable-types.d.ts +7 -0
- package/lib/enums/src/variation-change-type.d.ts +14 -0
- package/lib/index.d.ts +5 -4
- package/lib/index.js +767 -30
- package/lib/index.js.map +1 -1
- package/lib/index.min.js +1 -1
- package/lib/index.min.js.map +1 -1
- package/lib/index.min.mjs +1 -1
- package/lib/index.min.mjs.map +1 -1
- package/lib/index.mjs +743 -6
- package/lib/index.mjs.map +1 -1
- package/lib/legacy/index.js +798 -140
- package/lib/legacy/index.js.map +1 -1
- package/lib/legacy/index.min.js +1 -1
- package/lib/legacy/index.min.js.map +1 -1
- package/lib/logger/index.d.ts +8 -0
- package/lib/logger/src/interfaces/log-client.d.ts +13 -0
- package/lib/logger/src/interfaces/log-manager.d.ts +18 -0
- package/lib/logger/src/interfaces/log-method-map.d.ts +15 -0
- package/lib/logger/src/log-manager.d.ts +64 -0
- package/lib/package.json +6 -6
- package/lib/rules/index.d.ts +8 -0
- package/lib/rules/src/interfaces/rule-manager.d.ts +15 -0
- package/lib/rules/src/rule-manager.d.ts +82 -0
- package/lib/types/index.d.ts +28 -0
- package/lib/types/src/BucketedFeature.d.ts +29 -0
- package/lib/types/src/BucketedVariation.d.ts +13 -0
- package/lib/types/src/BucketingAllocation.d.ts +10 -0
- package/lib/types/src/BucketingAttributes.d.ts +17 -0
- package/lib/types/src/BucketingHash.d.ts +11 -0
- package/lib/types/src/Config.d.ts +60 -0
- package/lib/types/src/ConversionAttributes.d.ts +13 -0
- package/lib/types/src/Entity.d.ts +8 -0
- package/lib/types/src/GoalData.d.ts +11 -0
- package/lib/types/src/IndentityField.d.ts +7 -0
- package/lib/types/src/Integration.d.ts +8 -0
- package/lib/types/src/LocationAttributes.d.ts +12 -0
- package/lib/types/src/Path.d.ts +10 -0
- package/lib/types/src/RequireAtLeastOne.d.ts +3 -0
- package/lib/types/src/Rule.d.ts +13 -0
- package/lib/types/src/SegmentsAttributes.d.ts +9 -0
- package/lib/types/src/StoreData.d.ts +13 -0
- package/lib/types/src/TrackingEvent.d.ts +14 -0
- package/lib/types/src/VariableType.d.ts +8 -0
- package/lib/types/src/Visitor.d.ts +12 -0
- package/lib/types/src/VisitorsQueue.d.ts +14 -0
- package/lib/types/src/config/index.d.ts +1 -0
- package/lib/types/src/config/types.gen.d.ts +2387 -0
- package/lib/utils/index.d.ts +14 -0
- package/lib/utils/src/array-utils.d.ts +11 -0
- package/lib/utils/src/comparisons.d.ts +22 -0
- package/lib/utils/src/data-store.d.ts +39 -0
- package/lib/utils/src/file-logger.d.ts +40 -0
- package/lib/utils/src/http-client.d.ts +115 -0
- package/lib/utils/src/object-utils.d.ts +35 -0
- package/lib/utils/src/string-utils.d.ts +32 -0
- package/lib/utils/src/types-utils.d.ts +12 -0
- package/package.json +35 -31
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Convert JS SDK test
|
|
3
|
+
* Version 1.0.0
|
|
4
|
+
* Copyright(c) 2020 Convert Insights, Inc
|
|
5
|
+
* License Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
export * from './src/array-utils';
|
|
8
|
+
export * from './src/comparisons';
|
|
9
|
+
export * from './src/data-store';
|
|
10
|
+
export * from './src/file-logger';
|
|
11
|
+
export * from './src/http-client';
|
|
12
|
+
export * from './src/object-utils';
|
|
13
|
+
export * from './src/string-utils';
|
|
14
|
+
export * from './src/types-utils';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Convert JS SDK
|
|
3
|
+
* Version 1.0.0
|
|
4
|
+
* Copyright(c) 2020 Convert Insights, Inc
|
|
5
|
+
* License Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Validates variable is array and not empty
|
|
9
|
+
* @param array
|
|
10
|
+
*/
|
|
11
|
+
export declare function arrayNotEmpty(array: Array<unknown>): boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Convert JS SDK
|
|
3
|
+
* Version 1.0.0
|
|
4
|
+
* Copyright(c) 2020 Convert Insights, Inc
|
|
5
|
+
* License Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Comparison Processor. Provides comparison methods for rules validation
|
|
9
|
+
*/
|
|
10
|
+
export declare class Comparisons {
|
|
11
|
+
static equals(value: string | number | boolean | Array<string | number | boolean> | Record<string, string | number | boolean>, testAgainst: string | number | boolean, negation?: boolean): boolean;
|
|
12
|
+
static equalsNumber: typeof Comparisons.equals;
|
|
13
|
+
static matches: typeof Comparisons.equals;
|
|
14
|
+
static less(value: string | number, testAgainst: string | number, negation?: boolean): boolean;
|
|
15
|
+
static lessEqual(value: string | number, testAgainst: string | number, negation?: boolean): boolean;
|
|
16
|
+
static contains(value: string | number, testAgainst: string | number, negation?: boolean): boolean;
|
|
17
|
+
static isIn(values: string | number, testAgainst: Array<string | number> | string, negation?: boolean, splitter?: string): boolean;
|
|
18
|
+
static startsWith(value: string | number, testAgainst: string | number, negation?: boolean): boolean;
|
|
19
|
+
static endsWith(value: string | number, testAgainst: string | number, negation?: boolean): boolean;
|
|
20
|
+
static regexMatches(value: string | number, testAgainst: string | number, negation?: boolean): boolean;
|
|
21
|
+
private static _returnNegationCheck;
|
|
22
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Convert JS SDK
|
|
3
|
+
* Version 1.0.0
|
|
4
|
+
* Copyright(c) 2020 Convert Insights, Inc
|
|
5
|
+
* License Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Example of Data Store implementation with simple database Based JSON file.
|
|
9
|
+
* It's not recommended to use it in production as it can be memory and CPU intensive.
|
|
10
|
+
* @param {string} file
|
|
11
|
+
* @param {module} fs
|
|
12
|
+
*/
|
|
13
|
+
declare class DataStore {
|
|
14
|
+
private _file;
|
|
15
|
+
private _fs;
|
|
16
|
+
/**
|
|
17
|
+
* @param {string} file
|
|
18
|
+
* @param {module} fs
|
|
19
|
+
*/
|
|
20
|
+
constructor(file: string, fs: any);
|
|
21
|
+
/**
|
|
22
|
+
* Get value by key
|
|
23
|
+
* @param {string} key
|
|
24
|
+
* @return {any}
|
|
25
|
+
*/
|
|
26
|
+
get(key: string): any;
|
|
27
|
+
/**
|
|
28
|
+
* Store value by key
|
|
29
|
+
* @param {string} key
|
|
30
|
+
* @param {any} value
|
|
31
|
+
*/
|
|
32
|
+
set(key: string, value: any): void;
|
|
33
|
+
/**
|
|
34
|
+
* Delete value by key
|
|
35
|
+
* @param {string} key
|
|
36
|
+
*/
|
|
37
|
+
delete(key: string): void;
|
|
38
|
+
}
|
|
39
|
+
export { DataStore };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {string} file
|
|
3
|
+
* @param {module} fs
|
|
4
|
+
* @param {string=} appendMethod Defaults to 'appendFileSync'
|
|
5
|
+
* @example new FileLogger('./convert.log', require('fs'), 'appendFileSync')
|
|
6
|
+
* @constructor
|
|
7
|
+
*/
|
|
8
|
+
declare class FileLogger {
|
|
9
|
+
private _file;
|
|
10
|
+
private _fs;
|
|
11
|
+
private _appendMethod;
|
|
12
|
+
/**
|
|
13
|
+
* @param {string} file
|
|
14
|
+
* @param {module} fs
|
|
15
|
+
* @param {string=} appendMethod
|
|
16
|
+
*/
|
|
17
|
+
constructor(file: string, fs: any, appendMethod?: string);
|
|
18
|
+
private _write;
|
|
19
|
+
/**
|
|
20
|
+
* @param {Array<any>} args
|
|
21
|
+
*/
|
|
22
|
+
log(...args: any): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* @param {Array<any>} args
|
|
25
|
+
*/
|
|
26
|
+
info(...args: any): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* @param {Array<any>} args
|
|
29
|
+
*/
|
|
30
|
+
debug(...args: any): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* @param {Array<any>} args
|
|
33
|
+
*/
|
|
34
|
+
warn(...args: any): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* @param {Array<any>} args
|
|
37
|
+
*/
|
|
38
|
+
error(...args: any): Promise<void>;
|
|
39
|
+
}
|
|
40
|
+
export { FileLogger };
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Convert JS SDK
|
|
3
|
+
* Version 1.0.0
|
|
4
|
+
* Copyright(c) 2020 Convert Insights, Inc
|
|
5
|
+
* License Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
/// <reference types="node" />
|
|
8
|
+
/// <reference types="node" />
|
|
9
|
+
/// <reference types="node" />
|
|
10
|
+
/// <reference types="node" />
|
|
11
|
+
export type HttpMethod = 'GET' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'POST' | 'PUT' | 'PATCH';
|
|
12
|
+
export type HttpResponseType = 'json' | 'arraybuffer' | 'text';
|
|
13
|
+
export type HttpRequest = {
|
|
14
|
+
baseURL: string;
|
|
15
|
+
path?: string;
|
|
16
|
+
method?: HttpMethod;
|
|
17
|
+
headers?: {
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
};
|
|
20
|
+
responseType?: HttpResponseType;
|
|
21
|
+
data?: Record<string, any>;
|
|
22
|
+
};
|
|
23
|
+
declare enum HttpStatusCode {
|
|
24
|
+
Continue = 100,
|
|
25
|
+
SwitchingProtocols = 101,
|
|
26
|
+
Processing = 102,
|
|
27
|
+
EarlyHints = 103,
|
|
28
|
+
Ok = 200,
|
|
29
|
+
Created = 201,
|
|
30
|
+
Accepted = 202,
|
|
31
|
+
NonAuthoritativeInformation = 203,
|
|
32
|
+
NoContent = 204,
|
|
33
|
+
ResetContent = 205,
|
|
34
|
+
PartialContent = 206,
|
|
35
|
+
MultiStatus = 207,
|
|
36
|
+
AlreadyReported = 208,
|
|
37
|
+
ImUsed = 226,
|
|
38
|
+
MultipleChoices = 300,
|
|
39
|
+
MovedPermanently = 301,
|
|
40
|
+
Found = 302,
|
|
41
|
+
SeeOther = 303,
|
|
42
|
+
NotModified = 304,
|
|
43
|
+
UseProxy = 305,
|
|
44
|
+
Unused = 306,
|
|
45
|
+
TemporaryRedirect = 307,
|
|
46
|
+
PermanentRedirect = 308,
|
|
47
|
+
BadRequest = 400,
|
|
48
|
+
Unauthorized = 401,
|
|
49
|
+
PaymentRequired = 402,
|
|
50
|
+
Forbidden = 403,
|
|
51
|
+
NotFound = 404,
|
|
52
|
+
MethodNotAllowed = 405,
|
|
53
|
+
NotAcceptable = 406,
|
|
54
|
+
ProxyAuthenticationRequired = 407,
|
|
55
|
+
RequestTimeout = 408,
|
|
56
|
+
Conflict = 409,
|
|
57
|
+
Gone = 410,
|
|
58
|
+
LengthRequired = 411,
|
|
59
|
+
PreconditionFailed = 412,
|
|
60
|
+
PayloadTooLarge = 413,
|
|
61
|
+
UriTooLong = 414,
|
|
62
|
+
UnsupportedMediaType = 415,
|
|
63
|
+
RangeNotSatisfiable = 416,
|
|
64
|
+
ExpectationFailed = 417,
|
|
65
|
+
ImATeapot = 418,
|
|
66
|
+
MisdirectedRequest = 421,
|
|
67
|
+
UnprocessableEntity = 422,
|
|
68
|
+
Locked = 423,
|
|
69
|
+
FailedDependency = 424,
|
|
70
|
+
TooEarly = 425,
|
|
71
|
+
UpgradeRequired = 426,
|
|
72
|
+
PreconditionRequired = 428,
|
|
73
|
+
TooManyRequests = 429,
|
|
74
|
+
RequestHeaderFieldsTooLarge = 431,
|
|
75
|
+
UnavailableForLegalReasons = 451,
|
|
76
|
+
InternalServerError = 500,
|
|
77
|
+
NotImplemented = 501,
|
|
78
|
+
BadGateway = 502,
|
|
79
|
+
ServiceUnavailable = 503,
|
|
80
|
+
GatewayTimeout = 504,
|
|
81
|
+
HttpVersionNotSupported = 505,
|
|
82
|
+
VariantAlsoNegotiates = 506,
|
|
83
|
+
InsufficientStorage = 507,
|
|
84
|
+
LoopDetected = 508,
|
|
85
|
+
NotExtended = 510,
|
|
86
|
+
NetworkAuthenticationRequired = 511
|
|
87
|
+
}
|
|
88
|
+
export type HttpResponse = {
|
|
89
|
+
data: any;
|
|
90
|
+
status: HttpStatusCode;
|
|
91
|
+
statusText: string;
|
|
92
|
+
headers?: {
|
|
93
|
+
[x: string]: any;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
interface HttpClientInterface {
|
|
97
|
+
request(config: HttpRequest): Promise<HttpResponse>;
|
|
98
|
+
}
|
|
99
|
+
type RuntimeResult = {
|
|
100
|
+
runtime: 'browser' | 'server-with-fetch' | 'unknown';
|
|
101
|
+
} | {
|
|
102
|
+
runtime: 'old-nodejs';
|
|
103
|
+
url: typeof import('url');
|
|
104
|
+
http: typeof import('http');
|
|
105
|
+
https: typeof import('https');
|
|
106
|
+
queryString: typeof import('querystring');
|
|
107
|
+
};
|
|
108
|
+
export declare const serialize: (params: Record<string, any>, method: string, runtimeResult: RuntimeResult) => string;
|
|
109
|
+
/**
|
|
110
|
+
* Provide http client for newtork requests
|
|
111
|
+
* @param {HttpRequest}
|
|
112
|
+
* @returns {HttpClient}
|
|
113
|
+
*/
|
|
114
|
+
export declare const HttpClient: HttpClientInterface;
|
|
115
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Convert JS SDK
|
|
3
|
+
* Version 1.0.0
|
|
4
|
+
* Copyright(c) 2020 Convert Insights, Inc
|
|
5
|
+
* License Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Returns the value at path of object
|
|
9
|
+
* TODO: get this utility to work with the optional mapper() helper from config
|
|
10
|
+
* @param {Record<string, any>} object
|
|
11
|
+
* @param {string} path
|
|
12
|
+
* @param {any=} defaultValue
|
|
13
|
+
* @param {boolean=} truthy Should Number 0 number and Boolean false be considered as normal value
|
|
14
|
+
* @return {any}
|
|
15
|
+
*/
|
|
16
|
+
export declare function objectDeepValue(object: Record<string, any>, path: string, defaultValue?: any, truthy?: boolean): any;
|
|
17
|
+
/**
|
|
18
|
+
* Deep merge objects and their keys and nested objects
|
|
19
|
+
* Accepts arrays
|
|
20
|
+
*
|
|
21
|
+
* @param {...Record<any, any>} objects Objects to merge
|
|
22
|
+
* @return {Record<any, any>}
|
|
23
|
+
*/
|
|
24
|
+
export declare function objectDeepMerge(...objects: any[]): any;
|
|
25
|
+
/**
|
|
26
|
+
* Validates variable is object and not empty
|
|
27
|
+
* @param object
|
|
28
|
+
*/
|
|
29
|
+
export declare function objectNotEmpty(object: any): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Compare two objects
|
|
32
|
+
* @param a
|
|
33
|
+
* @param b
|
|
34
|
+
*/
|
|
35
|
+
export declare const objectDeepEqual: (a: any, b: any) => boolean;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* String formatter tool. Use %s for string %d for digit and %j for JSON formatting
|
|
3
|
+
* @param {string} template
|
|
4
|
+
* @param {Array<string>} args
|
|
5
|
+
* @return {string}
|
|
6
|
+
*/
|
|
7
|
+
export declare function stringFormat(template: string, ...args: any[]): string;
|
|
8
|
+
/**
|
|
9
|
+
* String formatter tool. Transforms a space-separated string into camelCase
|
|
10
|
+
* @param {string} input
|
|
11
|
+
* @return {string}
|
|
12
|
+
*/
|
|
13
|
+
export declare function camelCase(input: string): string;
|
|
14
|
+
/**
|
|
15
|
+
* Generate numeric hash based on seed
|
|
16
|
+
* @param {string} value
|
|
17
|
+
* @param {number=} seed
|
|
18
|
+
* @return {number}
|
|
19
|
+
*/
|
|
20
|
+
export declare function generateHash(value: string, seed?: number): number;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a value is numeric
|
|
23
|
+
* @param {string | number} value
|
|
24
|
+
* @returns {boolean}
|
|
25
|
+
*/
|
|
26
|
+
export declare function isNumeric(value: string | number): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Convert a string to a number
|
|
29
|
+
* @param {string | number} value
|
|
30
|
+
* @returns {number}
|
|
31
|
+
*/
|
|
32
|
+
export declare function toNumber(value: string | number): number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Convert JS SDK
|
|
3
|
+
* Version 1.0.0
|
|
4
|
+
* Copyright(c) 2020 Convert Insights, Inc
|
|
5
|
+
* License Apache-2.0
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Transform value type. Does not do any JSON validation
|
|
9
|
+
* @param value
|
|
10
|
+
* @param type
|
|
11
|
+
*/
|
|
12
|
+
export declare function castType(value: any, type: string): any;
|
package/package.json
CHANGED
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"clean": "rm -rf lib",
|
|
23
23
|
"prebuild:version": "node -p \"'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
|
|
24
24
|
"prebuild": "yarn clean",
|
|
25
|
-
"build": "rollup -c
|
|
26
|
-
"lint": "eslint src
|
|
25
|
+
"build": "rollup -c ../../rollup.config.mjs",
|
|
26
|
+
"lint": "eslint src",
|
|
27
27
|
"lint:fix": "yarn lint -- --fix",
|
|
28
28
|
"coverage": "nyc report -r cobertura --reporter=text-summary",
|
|
29
29
|
"postcoverage": "istanbul-cobertura-badger -e 85 -g 70 -r coverage/cobertura-coverage.xml -d ./coverage -b coverage"
|
|
@@ -32,44 +32,48 @@
|
|
|
32
32
|
"node": ">=8.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@babel/
|
|
36
|
-
"@babel/
|
|
35
|
+
"@babel/cli": "^7.24.7",
|
|
36
|
+
"@babel/core": "^7.24.7",
|
|
37
|
+
"@babel/preset-env": "^7.24.7",
|
|
38
|
+
"@eslint/eslintrc": "^3.1.0",
|
|
37
39
|
"@rollup/plugin-babel": "^6.0.4",
|
|
38
|
-
"@rollup/plugin-commonjs": "^
|
|
40
|
+
"@rollup/plugin-commonjs": "^26.0.1",
|
|
39
41
|
"@rollup/plugin-terser": "^0.4.4",
|
|
40
|
-
"@types/chai": "^4.3.
|
|
41
|
-
"@types/chai-string": "^1.4.
|
|
42
|
-
"@types/mocha": "^10.0.
|
|
43
|
-
"@
|
|
44
|
-
"@typescript-eslint/parser": "^
|
|
42
|
+
"@types/chai": "^4.3.16",
|
|
43
|
+
"@types/chai-string": "^1.4.5",
|
|
44
|
+
"@types/mocha": "^10.0.6",
|
|
45
|
+
"@types/node": "20.14.4",
|
|
46
|
+
"@typescript-eslint/parser": "^7.13.1",
|
|
45
47
|
"assert": "^2.1.0",
|
|
46
|
-
"babel-cli": "^6.26.0",
|
|
47
|
-
"babel-preset-es2015": "^6.24.1",
|
|
48
48
|
"chai": "^4.3.10",
|
|
49
49
|
"chai-string": "^1.5.0",
|
|
50
|
-
"dotenv": "^16.
|
|
51
|
-
"eslint": "^
|
|
52
|
-
"eslint-config-prettier": "^9.
|
|
53
|
-
"eslint-plugin-jasmine": "^4.
|
|
54
|
-
"eslint-plugin-local-rules": "^2.0.
|
|
55
|
-
"eslint-plugin-mocha": "^10.
|
|
56
|
-
"eslint-plugin-prettier": "^5.
|
|
50
|
+
"dotenv": "^16.4.5",
|
|
51
|
+
"eslint": "^9.5.0",
|
|
52
|
+
"eslint-config-prettier": "^9.1.0",
|
|
53
|
+
"eslint-plugin-jasmine": "^4.2.0",
|
|
54
|
+
"eslint-plugin-local-rules": "^2.0.1",
|
|
55
|
+
"eslint-plugin-mocha": "^10.4.3",
|
|
56
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
57
57
|
"istanbul-cobertura-badger": "^1.3.1",
|
|
58
|
-
"mocha": "^10.
|
|
59
|
-
"nyc": "^
|
|
60
|
-
"prettier": "^3.
|
|
61
|
-
"
|
|
62
|
-
"rollup": "^3.20.2",
|
|
63
|
-
"rollup-plugin-dts": "^6.1.0",
|
|
58
|
+
"mocha": "^10.4.0",
|
|
59
|
+
"nyc": "^17.0.0",
|
|
60
|
+
"prettier": "^3.3.2",
|
|
61
|
+
"rollup": "^4.18.0",
|
|
64
62
|
"rollup-plugin-generate-package-json": "^3.2.0",
|
|
65
63
|
"rollup-plugin-modify": "^3.0.0",
|
|
66
64
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
67
|
-
"ts-node": "^10.9.
|
|
65
|
+
"ts-node": "^10.9.2",
|
|
68
66
|
"tslint": "^6.1.3",
|
|
69
67
|
"tslint-config-prettier": "^1.18.0",
|
|
70
|
-
"typescript": "^5.
|
|
71
|
-
"
|
|
72
|
-
"webpack": "^5.
|
|
68
|
+
"typescript": "^5.4.5",
|
|
69
|
+
"typescript-eslint": "^7.13.1",
|
|
70
|
+
"webpack": "^5.92.0"
|
|
73
71
|
},
|
|
74
|
-
"version": "2.
|
|
75
|
-
|
|
72
|
+
"version": "2.1.2",
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"@convertcom/js-sdk-enums": ">=2.2.1",
|
|
75
|
+
"@convertcom/js-sdk-logger": ">=2.1.1",
|
|
76
|
+
"@convertcom/js-sdk-types": ">=3.8.1",
|
|
77
|
+
"@convertcom/js-sdk-utils": ">=2.2.2"
|
|
78
|
+
}
|
|
79
|
+
}
|