@eslinted/core 0.9.0-rc.5 → 0.9.0-rc.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/factory/ruleset/Ruleset.d.ts +1 -1
- package/dist/factory/ruleset/Ruleset.d.ts.map +1 -1
- package/dist/factory/ruleset/Ruleset.js +2 -2
- package/dist/factory/ruleset/Ruleset.js.map +1 -1
- package/dist/index.d.ts +2 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/factory/ruleset/Ruleset.ts +2 -2
- package/src/index.ts +36 -3
- package/dist/boundary/boundary.d.ts +0 -11
- package/dist/boundary/boundary.d.ts.map +0 -1
- package/dist/boundary/boundary.js +0 -2
- package/dist/boundary/boundary.js.map +0 -1
- package/dist/boundary/input/input.d.ts +0 -8
- package/dist/boundary/input/input.d.ts.map +0 -1
- package/dist/boundary/input/input.js +0 -2
- package/dist/boundary/input/input.js.map +0 -1
- package/dist/boundary/input/parsers/parsers.d.ts +0 -7
- package/dist/boundary/input/parsers/parsers.d.ts.map +0 -1
- package/dist/boundary/input/parsers/parsers.js +0 -2
- package/dist/boundary/input/parsers/parsers.js.map +0 -1
- package/dist/boundary/input/plugins/plugins.d.ts +0 -7
- package/dist/boundary/input/plugins/plugins.d.ts.map +0 -1
- package/dist/boundary/input/plugins/plugins.js +0 -2
- package/dist/boundary/input/plugins/plugins.js.map +0 -1
- package/dist/boundary/output/config/IConfig.d.ts +0 -19
- package/dist/boundary/output/config/IConfig.d.ts.map +0 -1
- package/dist/boundary/output/config/IConfig.js +0 -2
- package/dist/boundary/output/config/IConfig.js.map +0 -1
- package/dist/boundary/output/output.d.ts +0 -3
- package/dist/boundary/output/output.d.ts.map +0 -1
- package/dist/boundary/output/output.js +0 -2
- package/dist/boundary/output/output.js.map +0 -1
- /package/dist/factory/options/{Options.d.ts → options.d.ts} +0 -0
- /package/dist/factory/options/{Options.d.ts.map → options.d.ts.map} +0 -0
- /package/dist/factory/options/{Options.js → options.js} +0 -0
- /package/dist/factory/options/{Options.js.map → options.js.map} +0 -0
@@ -5,7 +5,7 @@ export default class Ruleset<S extends Scope> {
|
|
5
5
|
private readonly scope;
|
6
6
|
readonly ruleset: readonly Rule[];
|
7
7
|
overrides: Null<Rule>;
|
8
|
-
constructor(scope: literalful<S>, ...
|
8
|
+
constructor(scope: literalful<S>, ...rules: readonly Rule[]);
|
9
9
|
get id(): literalful<S>;
|
10
10
|
get records(): (readonly [string, IRule])[];
|
11
11
|
override(overrides: undefined | IRule): this;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Ruleset.d.ts","sourceRoot":"","sources":["../../../src/factory/ruleset/Ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO,CAAC,CAAC,SAAS,KAAK;IAKxC,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,SAAgB,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IAClC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAQ;gBAGjB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EACrC,GAAG,
|
1
|
+
{"version":3,"file":"Ruleset.d.ts","sourceRoot":"","sources":["../../../src/factory/ruleset/Ruleset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO,CAAC,CAAC,SAAS,KAAK;IAKxC,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,SAAgB,OAAO,EAAE,SAAS,IAAI,EAAE,CAAC;IAClC,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,CAAQ;gBAGjB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EACrC,GAAG,KAAK,EAAE,SAAS,IAAI,EAAE;IAa3B,IAAW,EAAE,kBAYZ;IAED,IAAW,OAAO,iCAejB;IAEM,QAAQ,CAAC,SAAS,EAAE,SAAS,GAAG,KAAK;CAiB7C"}
|
@@ -4,10 +4,10 @@ export default class Ruleset {
|
|
4
4
|
scope;
|
5
5
|
ruleset;
|
6
6
|
overrides = null;
|
7
|
-
constructor(scope, ...
|
7
|
+
constructor(scope, ...rules) {
|
8
8
|
this.scope = scope;
|
9
9
|
try {
|
10
|
-
this.ruleset = [...
|
10
|
+
this.ruleset = [...rules];
|
11
11
|
}
|
12
12
|
catch (e) {
|
13
13
|
throw new Error(`linted.factory.Ruleset`, { cause: e });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Ruleset.js","sourceRoot":"","sources":["../../../src/factory/ruleset/Ruleset.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO;IAKP;IAJH,OAAO,CAAkB;IAClC,SAAS,GAAe,IAAI,CAAC;IAEpC,YACmB,KAAoB,EACrC,GAAG,
|
1
|
+
{"version":3,"file":"Ruleset.js","sourceRoot":"","sources":["../../../src/factory/ruleset/Ruleset.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,gBAAgB,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,MAAM,CAAC,OAAO,OAAO,OAAO;IAKP;IAJH,OAAO,CAAkB;IAClC,SAAS,GAAe,IAAI,CAAC;IAEpC,YACmB,KAAoB,EACrC,GAAG,KAAsB;QADR,UAAK,GAAL,KAAK,CAAe;QAGrC,IAAI,CAAC;YACH,IAAI,CAAC,OAAO,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;QAC5B,CAAC;QACD,OAAO,CAAC,EA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package/dist/index.d.ts
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
import { type Scope } from "./scopes/scopes.js";
|
2
2
|
import type Output from "./boundary/output.js";
|
3
3
|
import type Input from "./boundary/input.js";
|
4
|
-
|
5
|
-
export
|
6
|
-
export { Ruleset, Rule };
|
7
|
-
export default function (plugins: Input.Plugins, parsers: Input.Parsers, base: Record<Scope, string[]>, includes: Particord<Scope, string[]>, rulesets: {
|
8
|
-
[S in Scope]: Ruleset<S>;
|
9
|
-
}, overrides: Particord<Scope, IRule>): Output[];
|
4
|
+
export type { Scope, Input, Output, };
|
5
|
+
export default function (plugins: Input.Plugins, parsers: Input.Parsers, base: Record<Scope, string[]>, includes: Particord<Scope, string[]>, rules: Record<Scope, readonly [string, IRule][]>, overrides: Particord<Scope, IRule>): Output[];
|
10
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAe,EAAE,KAAK,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,KAAK,MAAM,qBAAqB,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAe,EAAE,KAAK,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,MAAM,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,KAAK,MAAM,qBAAqB,CAAC;AAQ7C,YAAY,EACV,KAAK,EACL,KAAK,EACL,MAAM,GACP,CAAC;AACF,MAAM,CAAC,OAAO,WACZ,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,EAC7B,QAAQ,EAAE,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,EACpC,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,EAChD,SAAS,EAAE,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,GACjC,MAAM,EAAE,CAwHV"}
|
package/dist/index.js
CHANGED
@@ -1,9 +1,16 @@
|
|
1
1
|
import scopes, {} from "./scopes/scopes.js";
|
2
2
|
import { Options, Files, Ruleset, Rule, } from "./factory/factory.js";
|
3
|
-
export
|
4
|
-
export default function (plugins, parsers, base, includes, rulesets, overrides) {
|
3
|
+
export default function (plugins, parsers, base, includes, rules, overrides) {
|
5
4
|
try {
|
6
|
-
const files = new Files(base, includes),
|
5
|
+
const files = new Files(base, includes), rulesets = {
|
6
|
+
js: new Ruleset("js", ...rules.js.map(args => new Rule(...args))),
|
7
|
+
ts: new Ruleset("ts", ...rules.ts.map(args => new Rule(...args))),
|
8
|
+
svelte: new Ruleset("svelte", ...rules.svelte.map(args => new Rule(...args))),
|
9
|
+
html: new Ruleset("html", ...rules.html.map(args => new Rule(...args))),
|
10
|
+
json: new Ruleset("json", ...rules.json.map(args => new Rule(...args))),
|
11
|
+
jsonc: new Ruleset("jsonc", ...rules.jsonc.map(args => new Rule(...args))),
|
12
|
+
yml: new Ruleset("yml", ...rules.yml.map(args => new Rule(...args))),
|
13
|
+
}, imports = {
|
7
14
|
js: [plugins.js, []],
|
8
15
|
ts: [plugins.ts, [parsers.ts]],
|
9
16
|
svelte: [
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAc,MAAM,oBAAoB,CAAC;AAGxD,OAAO,EACL,OAAO,EACP,KAAK,EACL,OAAO,EACP,IAAI,GACL,MAAM,sBAAsB,CAAC;
|
1
|
+
{"version":3,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
|
"name": "@eslinted/core",
|
3
|
-
"version": "0.9.0-rc.
|
3
|
+
"version": "0.9.0-rc.7",
|
4
4
|
"description": "Core ESLint flat config factory npm package `linted`.",
|
5
5
|
"keywords": [],
|
6
6
|
"license": "MIT",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"dependencies": {},
|
22
22
|
"devDependencies": {
|
23
23
|
"eslint": "~8.57.0",
|
24
|
-
"linted": "~15.4.
|
24
|
+
"linted": "~15.4.7",
|
25
25
|
"npm-run-all": "^4.1.5",
|
26
26
|
"typescript": "^5.5.4"
|
27
27
|
},
|
@@ -8,10 +8,10 @@ export default class Ruleset<S extends Scope> {
|
|
8
8
|
|
9
9
|
constructor(
|
10
10
|
private readonly scope: literalful<S>,
|
11
|
-
...
|
11
|
+
...rules: readonly Rule[]
|
12
12
|
) {
|
13
13
|
try {
|
14
|
-
this.ruleset = [...
|
14
|
+
this.ruleset = [...rules];
|
15
15
|
}
|
16
16
|
catch (e) {
|
17
17
|
throw new Error(
|
package/src/index.ts
CHANGED
@@ -8,14 +8,17 @@ import {
|
|
8
8
|
Rule,
|
9
9
|
} from "./factory/factory.js";
|
10
10
|
|
11
|
-
export type {
|
12
|
-
|
11
|
+
export type {
|
12
|
+
Scope,
|
13
|
+
Input,
|
14
|
+
Output,
|
15
|
+
};
|
13
16
|
export default function (
|
14
17
|
plugins: Input.Plugins,
|
15
18
|
parsers: Input.Parsers,
|
16
19
|
base: Record<Scope, string[]>,
|
17
20
|
includes: Particord<Scope, string[]>,
|
18
|
-
|
21
|
+
rules: Record<Scope, readonly [string, IRule][]>,
|
19
22
|
overrides: Particord<Scope, IRule>,
|
20
23
|
): Output[] {
|
21
24
|
try {
|
@@ -23,6 +26,36 @@ export default function (
|
|
23
26
|
base,
|
24
27
|
includes,
|
25
28
|
),
|
29
|
+
rulesets = {
|
30
|
+
js: new Ruleset(
|
31
|
+
"js",
|
32
|
+
...rules.js.map(args => new Rule(...args)),
|
33
|
+
),
|
34
|
+
ts: new Ruleset(
|
35
|
+
"ts",
|
36
|
+
...rules.ts.map(args => new Rule(...args)),
|
37
|
+
),
|
38
|
+
svelte: new Ruleset(
|
39
|
+
"svelte",
|
40
|
+
...rules.svelte.map(args => new Rule(...args)),
|
41
|
+
),
|
42
|
+
html: new Ruleset(
|
43
|
+
"html",
|
44
|
+
...rules.html.map(args => new Rule(...args)),
|
45
|
+
),
|
46
|
+
json: new Ruleset(
|
47
|
+
"json",
|
48
|
+
...rules.json.map(args => new Rule(...args)),
|
49
|
+
),
|
50
|
+
jsonc: new Ruleset(
|
51
|
+
"jsonc",
|
52
|
+
...rules.jsonc.map(args => new Rule(...args)),
|
53
|
+
),
|
54
|
+
yml: new Ruleset(
|
55
|
+
"yml",
|
56
|
+
...rules.yml.map(args => new Rule(...args)),
|
57
|
+
),
|
58
|
+
},
|
26
59
|
imports: {
|
27
60
|
[S in Scope]: OmitFilesRuleset<ConstructorParameters<typeof Options[S]>>;
|
28
61
|
} = {
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import type input from "./input/input.js";
|
2
|
-
import type output from "./output/output.js";
|
3
|
-
declare namespace Boundary {
|
4
|
-
namespace Input {
|
5
|
-
type Plugins = input.Plugins;
|
6
|
-
type Parsers = input.Parsers;
|
7
|
-
}
|
8
|
-
type Output = output;
|
9
|
-
}
|
10
|
-
export type { Boundary as default };
|
11
|
-
//# sourceMappingURL=boundary.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"boundary.d.ts","sourceRoot":"","sources":["../../src/boundary/boundary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAE7C,kBAAU,QAAQ,CAAC;IACjB,UAAiB,KAAK,CAAC;QACrB,KAAY,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QACpC,KAAY,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;KACrC;IACD,KAAY,MAAM,GAAG,MAAM,CAAC;CAC7B;AAED,YAAY,EAAE,QAAQ,IAAI,OAAO,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"boundary.js","sourceRoot":"","sources":["../../src/boundary/boundary.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/boundary/input/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAEhD,kBAAU,KAAK,CAAC;IACd,KAAY,OAAO,GAAG,OAAO,CAAC;IAC9B,KAAY,OAAO,GAAG,OAAO,CAAC;CAC/B;AAED,YAAY,EAAE,KAAK,IAAI,OAAO,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/boundary/input/input.ts"],"names":[],"mappings":""}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { Scope } from "../../../scopes/scopes.js";
|
2
|
-
import type { Options } from "../../../factory/factory.js";
|
3
|
-
type Parsers = {
|
4
|
-
readonly [S in Scope]: ConstructorParameters<typeof Options[S]>[2] extends readonly [unknown, ...unknown[]] ? unknown : null;
|
5
|
-
};
|
6
|
-
export type { Parsers as default };
|
7
|
-
//# sourceMappingURL=parsers.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"parsers.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/parsers/parsers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE3D,KAAK,OAAO,GAAG;IACb,QAAQ,EAAE,CAAC,IAAI,KAAK,GAAG,qBAAqB,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,CAAC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,GACvG,OAAO,GACP,IAAI;CACT,CAAC;AAEF,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../../../src/boundary/input/parsers/parsers.ts"],"names":[],"mappings":""}
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import type { Scope } from "../../../scopes/scopes.js";
|
2
|
-
import type { Options } from "../../../factory/factory.js";
|
3
|
-
type Plugins = {
|
4
|
-
readonly [S in Scope]: InstanceType<typeof Options[S]>["plugins"];
|
5
|
-
};
|
6
|
-
export type { Plugins as default };
|
7
|
-
//# sourceMappingURL=plugins.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/boundary/input/plugins/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAE3D,KAAK,OAAO,GAAG;IACb,QAAQ,EAAE,CAAC,IAAI,KAAK,GAAG,YAAY,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;CAClE,CAAC;AAEF,YAAY,EAAE,OAAO,IAAI,OAAO,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../../../src/boundary/input/plugins/plugins.ts"],"names":[],"mappings":""}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
export default interface IConfig {
|
2
|
-
name: `scope:${string}/rule:${string}+${string}`;
|
3
|
-
rules: IRule;
|
4
|
-
files: readonly string[];
|
5
|
-
linterOptions: {
|
6
|
-
noInlineConfig: true;
|
7
|
-
reportUnusedDisableDirectives: "error";
|
8
|
-
};
|
9
|
-
languageOptions: {
|
10
|
-
sourceType?: "module" | "script";
|
11
|
-
ecmaVersion?: "latest";
|
12
|
-
globals?: Record<string, true>;
|
13
|
-
parser?: unknown;
|
14
|
-
parserOptions?: Record<string, unknown>;
|
15
|
-
};
|
16
|
-
plugins: Record<string, Record<"configs", unknown>>;
|
17
|
-
processor?: string;
|
18
|
-
}
|
19
|
-
//# sourceMappingURL=IConfig.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"IConfig.d.ts","sourceRoot":"","sources":["../../../../src/boundary/output/config/IConfig.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,OAAO;IAC9B,IAAI,EAAE,SAAS,MAAM,SAAS,MAAM,IAAI,MAAM,EAAE,CAAC;IACjD,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,aAAa,EAAE;QACb,cAAc,EAAE,IAAI,CAAC;QACrB,6BAA6B,EAAE,OAAO,CAAC;KACxC,CAAC;IACF,eAAe,EAAE;QACf,UAAU,CAAC,EACP,QAAQ,GACR,QAAQ,CAAC;QACb,WAAW,CAAC,EAAE,QAAQ,CAAC;QACvB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACzC,CAAC;IACF,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"IConfig.js","sourceRoot":"","sources":["../../../../src/boundary/output/config/IConfig.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../src/boundary/output/output.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAE9C,YAAY,EAAE,MAAM,IAAI,OAAO,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../../src/boundary/output/output.ts"],"names":[],"mappings":""}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|