@eslinted/core 12.0.0-rc.3 → 12.0.0-rc.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/dist/interface/index.d.ts +1 -1
- package/dist/interface/index.d.ts.map +1 -1
- package/dist/interface/output/global.d.ts +6 -0
- package/dist/interface/output/global.d.ts.map +1 -0
- package/dist/interface/output/global.js +2 -0
- package/dist/interface/output/global.js.map +1 -0
- package/dist/interface/output/index.d.ts +2 -2
- package/dist/interface/output/index.d.ts.map +1 -1
- package/dist/objects/config/{globals → global}/ignores.d.ts +2 -1
- package/dist/objects/config/global/ignores.d.ts.map +1 -0
- package/dist/objects/config/global/ignores.js.map +1 -0
- package/dist/objects/config/{globals → global}/system.d.ts +1 -1
- package/dist/objects/config/global/system.d.ts.map +1 -0
- package/dist/objects/config/global/system.js.map +1 -0
- package/dist/objects/config/index.d.ts +2 -2
- package/dist/objects/config/index.d.ts.map +1 -1
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +14 -13
- package/src/interface/index.ts +2 -2
- package/src/interface/output/index.ts +2 -2
- package/src/objects/config/{globals → global}/ignores.ts +3 -1
- package/src/objects/config/{globals → global}/system.ts +1 -1
- package/src/objects/config/index.ts +2 -2
- package/src/objects/index.ts +2 -2
- package/dist/interface/output/globals.d.ts +0 -6
- package/dist/interface/output/globals.d.ts.map +0 -1
- package/dist/interface/output/globals.js +0 -2
- package/dist/interface/output/globals.js.map +0 -1
- package/dist/objects/config/globals/ignores.d.ts.map +0 -1
- package/dist/objects/config/globals/ignores.js.map +0 -1
- package/dist/objects/config/globals/system.d.ts.map +0 -1
- package/dist/objects/config/globals/system.js.map +0 -1
- package/dist/objects/config/{globals → global}/ignores.js +0 -0
- package/dist/objects/config/{globals → global}/system.js +0 -0
- package/src/interface/output/{globals.ts → global.ts} +2 -2
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export type { Scope } from "./scopes/index.js";
|
2
|
-
export type { Plugins, RuleEntry, RuleRecord, RuleState,
|
2
|
+
export type { Plugins, RuleEntry, RuleRecord, RuleState, GlobalConfigSystem, GlobalConfigIgnores, ScopedConfig, } from "./objects/index.js";
|
3
3
|
import type { Input, Output } from "./interface/index.js";
|
4
4
|
export type { Input, Output, };
|
5
5
|
export default function (input: Input): Output;
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,YAAY,EACV,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,EACT,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACtC,YAAY,EACV,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,GACb,MAAM,WAAW,CAAC;AAEnB,OAAO,KAAK,EACV,KAAK,EACL,MAAM,EACP,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,KAAK,EACL,MAAM,GACP,CAAC;AAQF,MAAM,CAAC,OAAO,WAAW,KAAK,EAAE,KAAK,GAAG,MAAM,CAuF7C"}
|
package/dist/index.js
CHANGED
@@ -22,17 +22,7 @@ export default function (input) {
|
|
22
22
|
};
|
23
23
|
return [
|
24
24
|
{
|
25
|
-
|
26
|
-
? globals.ignores.ignores
|
27
|
-
: [
|
28
|
-
...globals.extend.inherit === false
|
29
|
-
? []
|
30
|
-
: globals.ignores.ignores,
|
31
|
-
...globals.extend.ignores,
|
32
|
-
],
|
33
|
-
},
|
34
|
-
{
|
35
|
-
name: "linted",
|
25
|
+
name: "linted/global/settings",
|
36
26
|
plugins,
|
37
27
|
linterOptions: {
|
38
28
|
noInlineConfig: settings.noInlineConfig,
|
@@ -43,6 +33,17 @@ export default function (input) {
|
|
43
33
|
ecmaVersion: settings.ecmaVersion,
|
44
34
|
},
|
45
35
|
},
|
36
|
+
{
|
37
|
+
name: "linted/global/ignores",
|
38
|
+
ignores: typeof globals.extend.ignores === "undefined" || globals.extend.ignores.length < 1
|
39
|
+
? globals.ignores.ignores
|
40
|
+
: [
|
41
|
+
...globals.extend.inherit === false
|
42
|
+
? []
|
43
|
+
: globals.ignores.ignores,
|
44
|
+
...globals.extend.ignores,
|
45
|
+
],
|
46
|
+
},
|
46
47
|
...scopes.flatMap(scope => options[scope]),
|
47
48
|
];
|
48
49
|
}
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EACL,OAAO,EACP,OAAO,GACR,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,OAAO,WAAW,KAAY;IACnC,IAAI,CAAC;QACH,MAAM,EACJ,OAAO,EACP,OAAO,EACP,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,EACP,KAAK,GACN,GAAG,KAAK,EACT,OAAO,GAAG,IAAI,OAAO,CACnB,KAAK,EACL,OAAO,EACP,KAAK,CACN,EACD,OAAO,GAAiF;YACtF,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,EAAE,EACF,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CACzB,CAAC,OAAO;YACX,EAAE,EAAE,IAAI,OAAO;iBACZ,EAAE,CACD,CAAC,OAAO,CAAC,EAAE,CAAC,EACZ,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CACzB,CAAC,OAAO;YACX,MAAM,EAAE,IAAI,OAAO;iBAChB,MAAM,CACL,CAAC,OAAO,CA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K,EAAE,CAAC,EAAE,CAAC,CAAC;IAAC,CAAC;AAC7D,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export type { Scope, Plugins, RuleEntry, RuleRecord,
|
1
|
+
export type { Scope, Plugins, RuleEntry, RuleRecord, GlobalConfigSystem, GlobalConfigIgnores, ScopedConfig, } from "../index.js";
|
2
2
|
export type { Input } from "./input/index.js";
|
3
3
|
export type { Output } from "./output/index.js";
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,OAAO,EACP,SAAS,EACT,UAAU,EACV,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,OAAO,EACP,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,GACb,MAAM,IAAI,CAAC;AACZ,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,YAAY,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../../src/interface/output/global.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,GAAG,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,SAAS;IACnC,kBAAkB;IAClB,mBAAmB;CACpB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"global.js","sourceRoot":"","sources":["../../../src/interface/output/global.ts"],"names":[],"mappings":""}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export type {
|
2
|
-
import type { GlobalConfigs } from "./
|
1
|
+
export type { GlobalConfigSystem, GlobalConfigIgnores, } from "../index.js";
|
2
|
+
import type { GlobalConfigs } from "./global.js";
|
3
3
|
import type { ScopedConfig } from "../index.js";
|
4
4
|
export type Output = [
|
5
5
|
...GlobalConfigs,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/output/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interface/output/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,IAAI,CAAC;AAEZ,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAEvC,MAAM,MAAM,MAAM,GAAG;IACnB,GAAG,aAAa;IAChB,GAAG,YAAY,EAAE;CAClB,CAAC"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import type { ConfigProperty } from "../index.js";
|
2
|
-
export type GlobalConfigIgnores = Partial<Record<Exclude<ConfigProperty, "ignores">, never>> & {
|
2
|
+
export type GlobalConfigIgnores = Partial<Record<Exclude<ConfigProperty, "name" | "ignores">, never>> & {
|
3
|
+
name: "linted/global/ignores";
|
3
4
|
ignores: string[];
|
4
5
|
};
|
5
6
|
//# sourceMappingURL=ignores.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ignores.d.ts","sourceRoot":"","sources":["../../../../src/objects/config/global/ignores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAC9C,OAAO,CACL,cAAc,EACZ,MAAM,GACN,SAAS,CACZ,EACD,KAAK,CACN,CAAC,GAAG;IACH,IAAI,EAAE,uBAAuB,CAAC;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ignores.js","sourceRoot":"","sources":["../../../../src/objects/config/global/ignores.ts"],"names":[],"mappings":""}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { Plugins, ConfigProperty } from "../index.js";
|
2
2
|
export type GlobalConfigSystem = Partial<Record<Exclude<ConfigProperty, "name" | "plugins" | "linterOptions" | "languageOptions">, never>> & {
|
3
|
-
name:
|
3
|
+
name: "linted/global/settings";
|
4
4
|
plugins: Plugins;
|
5
5
|
linterOptions: {
|
6
6
|
noInlineConfig: boolean;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../src/objects/config/global/system.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,IAAI,CAAC;AAEZ,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAC7C,OAAO,CACL,cAAc,EACZ,MAAM,GACN,SAAS,GACT,eAAe,GACf,iBAAiB,CACpB,EACD,KAAK,CACN,CAAC,GAAG;IACH,IAAI,EAAE,wBAAwB,CAAC;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE;QACb,cAAc,EAAE,OAAO,CAAC;QACxB,6BAA6B,EACzB,OAAO,GACP,MAAM,GACN,KAAK,CACR;KACF,CAAC;IACF,eAAe,EAAE;QACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CACX;QACD,WAAW,CAAC,EACR,QAAQ,GACR,CAAC,GACD,CAAC,GACD,QAAQ,CAAC,KAAK,CACZ,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,CACL,EAAE,CAAC,CAAC;KACR,CAAC;CACH,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../../../src/objects/config/global/system.ts"],"names":[],"mappings":""}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export type { Plugins, RuleRecord, } from "../index.js";
|
2
2
|
export type { ConfigProperty } from "./property.js";
|
3
|
+
export type { GlobalConfigSystem } from "./global/system.js";
|
4
|
+
export type { GlobalConfigIgnores } from "./global/ignores.js";
|
3
5
|
export type { ScopedConfig } from "./scoped.js";
|
4
|
-
export type { GlobalConfigIgnores } from "./globals/ignores.js";
|
5
|
-
export type { GlobalConfigSystem } from "./globals/system.js";
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/objects/config/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,UAAU,GACX,MAAM,IAAI,CAAC;AACZ,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/objects/config/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,OAAO,EACP,UAAU,GACX,MAAM,IAAI,CAAC;AACZ,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC"}
|
package/dist/objects/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
export type { Plugins } from "./plugins/index.js";
|
2
2
|
export type { RuleEntry, RuleRecord, RuleState, } from "./rule/index.js";
|
3
|
-
export type {
|
3
|
+
export type { GlobalConfigSystem, GlobalConfigIgnores, ScopedConfig, } from "./config/index.js";
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/objects/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,YAAY,EACV,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,QAAQ,CAAC;AAChB,YAAY,EACV,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/objects/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,YAAY,EACV,SAAS,EACT,UAAU,EACV,SAAS,GACV,MAAM,QAAQ,CAAC;AAChB,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,GACb,MAAM,UAAU,CAAC"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
@@ -4,9 +4,9 @@ export type {
|
|
4
4
|
RuleEntry,
|
5
5
|
RuleRecord,
|
6
6
|
RuleState,
|
7
|
-
ScopedConfig,
|
8
|
-
GlobalConfigIgnores,
|
9
7
|
GlobalConfigSystem,
|
8
|
+
GlobalConfigIgnores,
|
9
|
+
ScopedConfig,
|
10
10
|
} from "./objects";
|
11
11
|
|
12
12
|
import type {
|
@@ -86,17 +86,7 @@ export default function (input: Input): Output {
|
|
86
86
|
|
87
87
|
return [
|
88
88
|
{
|
89
|
-
|
90
|
-
? globals.ignores.ignores
|
91
|
-
: [
|
92
|
-
...globals.extend.inherit === false
|
93
|
-
? []
|
94
|
-
: globals.ignores.ignores,
|
95
|
-
...globals.extend.ignores,
|
96
|
-
],
|
97
|
-
},
|
98
|
-
{
|
99
|
-
name: "linted",
|
89
|
+
name: "linted/global/settings",
|
100
90
|
plugins,
|
101
91
|
linterOptions: {
|
102
92
|
noInlineConfig: settings.noInlineConfig,
|
@@ -107,6 +97,17 @@ export default function (input: Input): Output {
|
|
107
97
|
ecmaVersion: settings.ecmaVersion,
|
108
98
|
},
|
109
99
|
},
|
100
|
+
{
|
101
|
+
name: "linted/global/ignores",
|
102
|
+
ignores: typeof globals.extend.ignores === "undefined" || globals.extend.ignores.length < 1
|
103
|
+
? globals.ignores.ignores
|
104
|
+
: [
|
105
|
+
...globals.extend.inherit === false
|
106
|
+
? []
|
107
|
+
: globals.ignores.ignores,
|
108
|
+
...globals.extend.ignores,
|
109
|
+
],
|
110
|
+
},
|
110
111
|
...scopes.flatMap(scope => options[scope]),
|
111
112
|
];
|
112
113
|
}
|
package/src/interface/index.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
export type {
|
2
|
-
GlobalConfigIgnores,
|
3
2
|
GlobalConfigSystem,
|
3
|
+
GlobalConfigIgnores,
|
4
4
|
} from "..";
|
5
5
|
|
6
|
-
import type { GlobalConfigs } from "./
|
6
|
+
import type { GlobalConfigs } from "./global";
|
7
7
|
import type { ScopedConfig } from "..";
|
8
8
|
|
9
9
|
export type Output = [
|
@@ -3,6 +3,6 @@ export type {
|
|
3
3
|
RuleRecord,
|
4
4
|
} from "..";
|
5
5
|
export type { ConfigProperty } from "./property";
|
6
|
+
export type { GlobalConfigSystem } from "./global/system";
|
7
|
+
export type { GlobalConfigIgnores } from "./global/ignores";
|
6
8
|
export type { ScopedConfig } from "./scoped";
|
7
|
-
export type { GlobalConfigIgnores } from "./globals/ignores";
|
8
|
-
export type { GlobalConfigSystem } from "./globals/system";
|
package/src/objects/index.ts
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../src/interface/output/globals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,kBAAkB,EACnB,MAAM,GAAG,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,SAAS;IACnC,mBAAmB;IACnB,kBAAkB;CACnB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"globals.js","sourceRoot":"","sources":["../../../src/interface/output/globals.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ignores.d.ts","sourceRoot":"","sources":["../../../../src/objects/config/globals/ignores.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEzC,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAC9C,OAAO,CACL,cAAc,EACd,SAAS,CACV,EACD,KAAK,CACN,CAAC,GAAG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"ignores.js","sourceRoot":"","sources":["../../../../src/objects/config/globals/ignores.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../src/objects/config/globals/system.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,IAAI,CAAC;AAEZ,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAC7C,OAAO,CACL,cAAc,EACZ,MAAM,GACN,SAAS,GACT,eAAe,GACf,iBAAiB,CACpB,EACD,KAAK,CACN,CAAC,GAAG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE;QACb,cAAc,EAAE,OAAO,CAAC;QACxB,6BAA6B,EACzB,OAAO,GACP,MAAM,GACN,KAAK,CACR;KACF,CAAC;IACF,eAAe,EAAE;QACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CACX;QACD,WAAW,CAAC,EACR,QAAQ,GACR,CAAC,GACD,CAAC,GACD,QAAQ,CAAC,KAAK,CACZ,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,GACF,EAAE,CACL,EAAE,CAAC,CAAC;KACR,CAAC;CACH,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../../../src/objects/config/globals/system.ts"],"names":[],"mappings":""}
|
File without changes
|
File without changes
|