@nsshunt/stsutils 1.14.3 → 1.14.6
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/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/stsoptionsbase.js +2 -2
- package/dist/stsoptionsbase.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +7 -1
- package/src/stsoptionsbase.ts +2 -2
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
export interface JSONObject {
|
|
4
|
+
[x: string]: string | number | boolean | string[] | number[] | boolean[] | Array<JSONObject> | JSONObject | ((p: any) => any) | undefined
|
|
5
|
+
}
|
|
6
|
+
// This also works :-
|
|
7
|
+
//interface JSONObject2 extends Record<string, string | number | string[] | Array<JSONObject2> | JSONObject2> {};
|
|
8
|
+
*/
|
|
2
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
10
|
if (k2 === undefined) k2 = k;
|
|
4
11
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -14,8 +21,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
21
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
22
|
};
|
|
16
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
// This also works :-
|
|
18
|
-
//interface JSONObject2 extends Record<string, string | number | string[] | Array<JSONObject2> | JSONObject2> {};
|
|
19
24
|
__exportStar(require("./errorhandling"), exports);
|
|
20
25
|
__exportStar(require("./stsoptionsbase"), exports);
|
|
21
26
|
__exportStar(require("./sleep"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;EAME;;;;;;;;;;;;;;;;AAMF,kDAA+B;AAC/B,mDAAgC;AAChC,0CAAuB;AACvB,6CAA0B;AAC1B,gDAA6B"}
|
package/dist/stsoptionsbase.js
CHANGED
|
@@ -8,8 +8,8 @@ class STSOptionsBase {
|
|
|
8
8
|
this._options = options;
|
|
9
9
|
if (options !== null) {
|
|
10
10
|
if (typeof options.validator === 'undefined') {
|
|
11
|
-
console.log(JSON.stringify(options));
|
|
12
|
-
console.trace("Options Here ------------------------------------------------------------------------------------------")
|
|
11
|
+
//console.log(JSON.stringify(options));
|
|
12
|
+
//console.trace("Options Here ------------------------------------------------------------------------------------------")
|
|
13
13
|
}
|
|
14
14
|
else {
|
|
15
15
|
(0, validate_js_1.Validate)(options.validator, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stsoptionsbase.js","sourceRoot":"","sources":["../src/stsoptionsbase.ts"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,MAAa,cAAc;IAElB,QAAQ,CAAoB;IAEpC,YAAY,UAA6B,IAAI;QAEzC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QAE3B,IAAI,OAAO,KAAK,IAAI,EAAE;YACrB,IAAI,OAAO,OAAO,CAAC,SAAS,KAAK,WAAW,EAAE;gBAC7C,
|
|
1
|
+
{"version":3,"file":"stsoptionsbase.js","sourceRoot":"","sources":["../src/stsoptionsbase.ts"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,MAAa,cAAc;IAElB,QAAQ,CAAoB;IAEpC,YAAY,UAA6B,IAAI;QAEzC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QAE3B,IAAI,OAAO,KAAK,IAAI,EAAE;YACrB,IAAI,OAAO,OAAO,CAAC,SAAS,KAAK,WAAW,EAAE;gBAC7C,uCAAuC;gBACvC,0HAA0H;aAC1H;iBAAM;gBACN,IAAA,sBAAQ,EAAC,OAAO,CAAC,SAAmB,EAAE,OAAO,CAAC,CAAC;aAC/C;SACD;IACF,CAAC;IAED,IAAI,OAAO;QAEV,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;CACD;AAtBD,wCAsBC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
+
/*
|
|
1
2
|
export interface JSONObject {
|
|
2
|
-
[x: string]: string | number | boolean | string[] | Array<JSONObject> | JSONObject | ((p: any) => any) | undefined
|
|
3
|
+
[x: string]: string | number | boolean | string[] | number[] | boolean[] | Array<JSONObject> | JSONObject | ((p: any) => any) | undefined
|
|
3
4
|
}
|
|
4
5
|
// This also works :-
|
|
5
6
|
//interface JSONObject2 extends Record<string, string | number | string[] | Array<JSONObject2> | JSONObject2> {};
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export interface JSONObject {
|
|
10
|
+
[x: string]: any | JSONObject | undefined
|
|
11
|
+
}
|
|
6
12
|
|
|
7
13
|
export * from './errorhandling'
|
|
8
14
|
export * from './stsoptionsbase'
|
package/src/stsoptionsbase.ts
CHANGED
|
@@ -12,8 +12,8 @@ export class STSOptionsBase
|
|
|
12
12
|
|
|
13
13
|
if (options !== null) {
|
|
14
14
|
if (typeof options.validator === 'undefined') {
|
|
15
|
-
console.log(JSON.stringify(options));
|
|
16
|
-
console.trace("Options Here ------------------------------------------------------------------------------------------")
|
|
15
|
+
//console.log(JSON.stringify(options));
|
|
16
|
+
//console.trace("Options Here ------------------------------------------------------------------------------------------")
|
|
17
17
|
} else {
|
|
18
18
|
Validate(options.validator as string, options);
|
|
19
19
|
}
|
package/types/index.d.ts
CHANGED
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,UAAU;IACvB,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,GAAG,UAAU,GAAG,SAAS,CAAA;CAC5C;AAED,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA"}
|