@nsshunt/stsutils 1.14.4 → 1.14.7
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/.eslintrc.json +0 -3
- package/dist/index.js +13 -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 +12 -0
- package/src/stsoptionsbase.ts +2 -2
- package/types/index.d.ts +2 -1
- package/types/index.d.ts.map +1 -1
- package/types/z1.d.ts +8 -0
- package/types/z1.d.ts.map +1 -0
- package/types/z2.d.ts +2 -0
- package/types/z2.d.ts.map +1 -0
- package/types/z3.d.ts +2 -0
- package/types/z3.d.ts.map +1 -0
package/.eslintrc.json
CHANGED
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,11 +21,15 @@ 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
|
-
|
|
18
|
-
//interface JSONObject2 extends Record<string, string | number | string[] | Array<JSONObject2> | JSONObject2> {};
|
|
24
|
+
exports.$stsgd = void 0;
|
|
19
25
|
__exportStar(require("./errorhandling"), exports);
|
|
20
26
|
__exportStar(require("./stsoptionsbase"), exports);
|
|
21
27
|
__exportStar(require("./sleep"), exports);
|
|
22
28
|
__exportStar(require("./validate"), exports);
|
|
23
29
|
__exportStar(require("./oauth2terms"), exports);
|
|
30
|
+
const _stsgd = {};
|
|
31
|
+
function $stsgd() {
|
|
32
|
+
return _stsgd;
|
|
33
|
+
}
|
|
34
|
+
exports.$stsgd = $stsgd;
|
|
24
35
|
//# sourceMappingURL=index.js.map
|
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;AAE7B,MAAM,MAAM,GAAwB,EAAG,CAAC;AAExC,SAAgB,MAAM;IACrB,OAAO,MAA2B,CAAC;AACpC,CAAC;AAFD,wBAEC"}
|
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,11 +1,23 @@
|
|
|
1
|
+
/*
|
|
1
2
|
export interface JSONObject {
|
|
2
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'
|
|
9
15
|
export * from './sleep'
|
|
10
16
|
export * from './validate'
|
|
11
17
|
export * from './oauth2terms'
|
|
18
|
+
|
|
19
|
+
const _stsgd: Record<string, any> = { };
|
|
20
|
+
|
|
21
|
+
export function $stsgd<T>(): Record<string, T> {
|
|
22
|
+
return _stsgd as Record<string, T>;
|
|
23
|
+
}
|
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
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export interface JSONObject {
|
|
2
|
-
[x: string]:
|
|
2
|
+
[x: string]: any | JSONObject | undefined;
|
|
3
3
|
}
|
|
4
4
|
export * from './errorhandling';
|
|
5
5
|
export * from './stsoptionsbase';
|
|
6
6
|
export * from './sleep';
|
|
7
7
|
export * from './validate';
|
|
8
8
|
export * from './oauth2terms';
|
|
9
|
+
export declare function $stsgd<T>(): Record<string, T>;
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
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;AAI7B,wBAAgB,MAAM,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAE7C"}
|
package/types/z1.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"z1.d.ts","sourceRoot":"","sources":["../src/z1.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG;IAChB,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,MAAM,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAE7C;AAED,wBAAgB,MAAM,IAAI,GAAG,CAE5B;AAED,wBAAgB,SAAS,IAAI,IAAI,CAKhC"}
|
package/types/z2.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"z2.d.ts","sourceRoot":"","sources":["../src/z2.ts"],"names":[],"mappings":"AAEA,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,QAGrC"}
|
package/types/z3.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"z3.d.ts","sourceRoot":"","sources":["../src/z3.ts"],"names":[],"mappings":""}
|