@nsshunt/stsutils 1.15.7 → 1.15.9
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 +1 -1
- package/dist/index.js +1 -24
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/src/index.ts +2 -27
- package/types/index.d.ts.map +1 -1
package/.eslintrc.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"ignorePatterns": ["temp.js", "**/k6scripts/*.js", "**/public/*", "**/dist/*", "**/types/*"],
|
|
21
21
|
"rules": {
|
|
22
|
-
"indent": ["error"],
|
|
22
|
+
"indent": ["error", 4],
|
|
23
23
|
"no-mixed-spaces-and-tabs": [2],
|
|
24
24
|
//"no-mixed-spaces-and-tabs": 0, // disable rule
|
|
25
25
|
"@typescript-eslint/no-var-requires": "warn"
|
package/dist/index.js
CHANGED
|
@@ -27,33 +27,10 @@ __exportStar(require("./stsoptionsbase"), exports);
|
|
|
27
27
|
__exportStar(require("./sleep"), exports);
|
|
28
28
|
__exportStar(require("./validate"), exports);
|
|
29
29
|
__exportStar(require("./oauth2terms"), exports);
|
|
30
|
-
//
|
|
30
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
31
31
|
exports.$stsgd = {};
|
|
32
32
|
function $stsgdf() {
|
|
33
33
|
return exports.$stsgd;
|
|
34
34
|
}
|
|
35
35
|
exports.$stsgdf = $stsgdf;
|
|
36
|
-
/*
|
|
37
|
-
declare global {
|
|
38
|
-
var $stsgd: Record<string, any>;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function InitGlobalData(): void {
|
|
42
|
-
//global.$stsgd = _stsgd;
|
|
43
|
-
global.$stsgd = { };
|
|
44
|
-
}
|
|
45
|
-
*/
|
|
46
|
-
/*
|
|
47
|
-
declare global {
|
|
48
|
-
var $stsgd: Record<string, any>;
|
|
49
|
-
var $stsgfex: myfunc;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function InitGlobalData(): void {
|
|
53
|
-
global.$stsgd = _stsgd;
|
|
54
|
-
global.$stsgfex = (): Record<string, any> => {
|
|
55
|
-
return _stsgd;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
*/
|
|
59
36
|
//# 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":";AAAA;;;;;;EAME;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;EAME;;;;;;;;;;;;;;;;;AAOF,kDAA+B;AAC/B,mDAAgC;AAChC,0CAAuB;AACvB,6CAA0B;AAC1B,gDAA6B;AAE7B,+DAA+D;AAClD,QAAA,MAAM,GAAwB,EAAG,CAAC;AAE/C,SAAgB,OAAO;IACnB,OAAO,cAA2B,CAAC;AACvC,CAAC;AAFD,0BAEC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nsshunt/stsutils",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"lint": "eslint . --ext js,jsx,ts,tsx
|
|
8
|
+
"lint": "eslint . --ext js,jsx,ts,tsx",
|
|
9
|
+
"lintex": "eslint . --ext js,jsx,ts,tsx --fix",
|
|
9
10
|
"test": "jest --detectOpenHandles --no-cache",
|
|
10
11
|
"testwatch": "jest --watchAll --detectOpenHandles --no-cache",
|
|
11
12
|
"build": "tsc"
|
package/src/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface JSONObject {
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export interface JSONObject {
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10
11
|
[x: string]: any | JSONObject | undefined
|
|
11
12
|
}
|
|
12
13
|
|
|
@@ -16,35 +17,9 @@ export * from './sleep'
|
|
|
16
17
|
export * from './validate'
|
|
17
18
|
export * from './oauth2terms'
|
|
18
19
|
|
|
19
|
-
//
|
|
20
|
-
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
21
|
export const $stsgd: Record<string, any> = { };
|
|
22
22
|
|
|
23
23
|
export function $stsgdf<T>(): Record<string, T> {
|
|
24
24
|
return $stsgd as Record<string, T>;
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
/*
|
|
28
|
-
declare global {
|
|
29
|
-
var $stsgd: Record<string, any>;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export function InitGlobalData(): void {
|
|
33
|
-
//global.$stsgd = _stsgd;
|
|
34
|
-
global.$stsgd = { };
|
|
35
|
-
}
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/*
|
|
39
|
-
declare global {
|
|
40
|
-
var $stsgd: Record<string, any>;
|
|
41
|
-
var $stsgfex: myfunc;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function InitGlobalData(): void {
|
|
45
|
-
global.$stsgd = _stsgd;
|
|
46
|
-
global.$stsgfex = (): Record<string, any> => {
|
|
47
|
-
return _stsgd;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
*/
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,UAAU;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,UAAU;IAEvB,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;AAG7B,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAO,CAAC;AAE/C,wBAAgB,OAAO,CAAC,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAE9C"}
|