linted 33.8.3-rc.1 → 34.0.1
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/scope/index.d.ts +1 -0
- package/dist/scope/index.d.ts.map +1 -1
- package/dist/scope/index.js +1 -0
- package/dist/scope/index.js.map +1 -1
- package/dist/scope/tree.d.ts +1 -1
- package/dist/scope/tree.d.ts.map +1 -1
- package/dist/scope/tree.js +4 -0
- package/dist/scope/tree.js.map +1 -1
- package/dist/tests/index.spec.js +5 -5
- package/dist/tests/index.spec.js.map +1 -1
- package/dist/tests/scope/index.spec.js +9 -9
- package/dist/tests/scope/index.spec.js.map +1 -1
- package/dist/tests/scope/tree.spec.js +10 -10
- package/dist/tests/scope/tree.spec.js.map +1 -1
- package/package.json +3 -3
- package/src/scope/index.ts +1 -0
- package/src/scope/tree.ts +4 -0
- package/tests/index.spec.ts +5 -5
- package/tests/scope/index.spec.ts +9 -9
- package/tests/scope/tree.spec.ts +10 -10
package/dist/scope/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,eAAO,MAAM,MAAM,2FAWT,EACV,QAAQ,qBAAsB,CAAC"}
|
package/dist/scope/index.js
CHANGED
package/dist/scope/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,QAAQ;IACR,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,QAAQ;IACR,KAAK;CACG,EACV,QAAQ,GAAG,CAAC,QAAQ,CAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scope/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,QAAQ;IACR,KAAK;CACG,EACV,QAAQ,GAAG,CAAC,QAAQ,CAAU,CAAC"}
|
package/dist/scope/tree.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const tree: (readonly ["jsoncc", readonly ["jsonc"]] | readonly ["jsonc", readonly ["json"]] | readonly ["svelte", readonly ["ts"]] | readonly ["ts", readonly ["js"]])[];
|
|
1
|
+
export declare const tree: (readonly ["jsoncc", readonly ["jsonc"]] | readonly ["jsonc", readonly ["json"]] | readonly ["svelte", readonly ["ts"]] | readonly ["mocha", readonly ["ts"]] | readonly ["ts", readonly ["js"]])[];
|
|
2
2
|
//# sourceMappingURL=tree.d.ts.map
|
package/dist/scope/tree.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../src/scope/tree.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI
|
|
1
|
+
{"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../src/scope/tree.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,qMAqBhB,CAAC"}
|
package/dist/scope/tree.js
CHANGED
package/dist/scope/tree.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.js","sourceRoot":"","sources":["../../src/scope/tree.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB;QACE,QAAQ;QACR,CAAC,OAAO,CAAC;KACD;IACV;QACE,OAAO;QACP,CAAC,MAAM,CAAC;KACA;IACV;QACE,QAAQ;QACR,CAAC,IAAI,CAAC;KACE;IACV;QACE,IAAI;QACJ,CAAC,IAAI,CAAC;KACE;CACX,CAAC"}
|
|
1
|
+
{"version":3,"file":"tree.js","sourceRoot":"","sources":["../../src/scope/tree.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB;QACE,QAAQ;QACR,CAAC,OAAO,CAAC;KACD;IACV;QACE,OAAO;QACP,CAAC,MAAM,CAAC;KACA;IACV;QACE,QAAQ;QACR,CAAC,IAAI,CAAC;KACE;IACV;QACE,OAAO;QACP,CAAC,IAAI,CAAC;KACE;IACV;QACE,IAAI;QACJ,CAAC,IAAI,CAAC;KACE;CACX,CAAC"}
|
package/dist/tests/index.spec.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "chai/register-should.js";
|
|
2
2
|
import linted from "../index.js";
|
|
3
3
|
const configs = linted();
|
|
4
|
-
describe("linted",
|
|
5
|
-
describe("shape",
|
|
6
|
-
it("is a function",
|
|
4
|
+
describe("linted", () => {
|
|
5
|
+
describe("shape", () => {
|
|
6
|
+
it("is a function", () => {
|
|
7
7
|
linted
|
|
8
8
|
.should.be
|
|
9
9
|
.a("function");
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
|
-
describe("output",
|
|
13
|
-
it("is a non-empty array",
|
|
12
|
+
describe("output", () => {
|
|
13
|
+
it("is a non-empty array", () => {
|
|
14
14
|
configs
|
|
15
15
|
.should.be
|
|
16
16
|
.an("array")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../tests/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,MAAM,MAAM,IAAI,CAAC;AAExB,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC;AAEzB,QAAQ,CACN,QAAQ,EACR;
|
|
1
|
+
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../tests/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,MAAM,MAAM,IAAI,CAAC;AAExB,MAAM,OAAO,GAAG,MAAM,EAAE,CAAC;AAEzB,QAAQ,CACN,QAAQ,EACR,GAAG,EAAE;IACH,QAAQ,CACN,OAAO,EACP,GAAG,EAAE;QACH,EAAE,CACA,eAAe,EACf,GAAG,EAAE;YACH,MAAM;iBACH,MAAM,CAAC,EAAE;iBACT,CAAC,CAAC,UAAU,CAAC,CAAC;QACnB,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;IACF,QAAQ,CACN,QAAQ,EACR,GAAG,EAAE;QACH,EAAE,CACA,sBAAsB,EACtB,GAAG,EAAE;YACH,OAAO;iBACJ,MAAM,CAAC,EAAE;iBACT,EAAE,CAAC,OAAO,CAAC;iBACX,GAAG,CAAC,KAAK,CAAC;QACf,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "chai/register-should.js";
|
|
2
2
|
import { scopes } from "../../scope/index.js";
|
|
3
|
-
describe("Scopes",
|
|
4
|
-
describe("shape",
|
|
5
|
-
it("is a non-empty array",
|
|
3
|
+
describe("Scopes", () => {
|
|
4
|
+
describe("shape", () => {
|
|
5
|
+
it("is a non-empty array", () => {
|
|
6
6
|
scopes
|
|
7
7
|
.should.be
|
|
8
8
|
.an("array")
|
|
9
9
|
.not.empty;
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
|
-
describe("members",
|
|
13
|
-
it("are unique",
|
|
12
|
+
describe("members", () => {
|
|
13
|
+
it("are unique", () => {
|
|
14
14
|
scopes
|
|
15
15
|
.length
|
|
16
16
|
.should
|
|
@@ -18,8 +18,8 @@ describe("Scopes", function () {
|
|
|
18
18
|
.size);
|
|
19
19
|
});
|
|
20
20
|
});
|
|
21
|
-
describe("order",
|
|
22
|
-
it("`jsoncc` > `jsonc` > `json`",
|
|
21
|
+
describe("order", () => {
|
|
22
|
+
it("`jsoncc` > `jsonc` > `json`", () => {
|
|
23
23
|
scopes
|
|
24
24
|
.should
|
|
25
25
|
.include
|
|
@@ -39,7 +39,7 @@ describe("Scopes", function () {
|
|
|
39
39
|
.greaterThan(scopes
|
|
40
40
|
.indexOf("json"));
|
|
41
41
|
});
|
|
42
|
-
it("`svelte` > `ts`",
|
|
42
|
+
it("`svelte` > `ts`", () => {
|
|
43
43
|
scopes
|
|
44
44
|
.should
|
|
45
45
|
.include
|
|
@@ -53,7 +53,7 @@ describe("Scopes", function () {
|
|
|
53
53
|
.greaterThan(scopes
|
|
54
54
|
.indexOf("ts"));
|
|
55
55
|
});
|
|
56
|
-
it("`ts` > `js`",
|
|
56
|
+
it("`ts` > `js`", () => {
|
|
57
57
|
scopes
|
|
58
58
|
.should
|
|
59
59
|
.include
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../tests/scope/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,QAAQ,CACN,QAAQ,EACR;
|
|
1
|
+
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../tests/scope/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,QAAQ,CACN,QAAQ,EACR,GAAG,EAAE;IACH,QAAQ,CACN,OAAO,EACP,GAAG,EAAE;QACH,EAAE,CACA,sBAAsB,EACtB,GAAG,EAAE;YACH,MAAM;iBACH,MAAM,CAAC,EAAE;iBACT,EAAE,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iBACH,OAAO,CAAC,IAAI,CAAC;iBACb,MAAM,CAAC,EAAE;iBACT,WAAW,CACV,MAAM;iBACH,OAAO,CAAC,IAAI,CAAC,CACjB,CAAC;QACN,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import "chai/register-should.js";
|
|
2
2
|
import { tree } from "../../scope/tree.js";
|
|
3
3
|
const nodes = tree.map(([scope]) => scope);
|
|
4
|
-
describe("Tree",
|
|
5
|
-
describe("shape",
|
|
6
|
-
it("is an array",
|
|
4
|
+
describe("Tree", () => {
|
|
5
|
+
describe("shape", () => {
|
|
6
|
+
it("is an array", () => {
|
|
7
7
|
tree
|
|
8
8
|
.should.be
|
|
9
9
|
.an("array");
|
|
10
10
|
});
|
|
11
11
|
});
|
|
12
|
-
describe("members",
|
|
13
|
-
it("are unique",
|
|
12
|
+
describe("members", () => {
|
|
13
|
+
it("are unique", () => {
|
|
14
14
|
tree
|
|
15
15
|
.length
|
|
16
16
|
.should
|
|
17
17
|
.equal(new Set(nodes)
|
|
18
18
|
.size);
|
|
19
19
|
});
|
|
20
|
-
it("omit `js`",
|
|
20
|
+
it("omit `js`", () => {
|
|
21
21
|
nodes
|
|
22
22
|
.should
|
|
23
23
|
.not.include
|
|
24
24
|
.members(["js"]);
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
|
-
describe("order",
|
|
28
|
-
it("`jsoncc` < [`jsonc`]?",
|
|
27
|
+
describe("order", () => {
|
|
28
|
+
it("`jsoncc` < [`jsonc`]?", () => {
|
|
29
29
|
nodes
|
|
30
30
|
.should
|
|
31
31
|
.include
|
|
@@ -35,7 +35,7 @@ describe("Tree", function () {
|
|
|
35
35
|
.should.be
|
|
36
36
|
.lessThan(nodes.indexOf("jsonc") * tree.length);
|
|
37
37
|
});
|
|
38
|
-
it("`svelte` < `ts`",
|
|
38
|
+
it("`svelte` < `ts`", () => {
|
|
39
39
|
nodes
|
|
40
40
|
.should
|
|
41
41
|
.include
|
|
@@ -49,7 +49,7 @@ describe("Tree", function () {
|
|
|
49
49
|
.lessThan(nodes
|
|
50
50
|
.indexOf("ts"));
|
|
51
51
|
});
|
|
52
|
-
it("`ts` is last",
|
|
52
|
+
it("`ts` is last", () => {
|
|
53
53
|
nodes
|
|
54
54
|
.should
|
|
55
55
|
.include
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.spec.js","sourceRoot":"","sources":["../../../tests/scope/tree.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;AAE3C,QAAQ,CACN,MAAM,EACN;
|
|
1
|
+
{"version":3,"file":"tree.spec.js","sourceRoot":"","sources":["../../../tests/scope/tree.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;AAE3C,QAAQ,CACN,MAAM,EACN,GAAG,EAAE;IACH,QAAQ,CACN,OAAO,EACP,GAAG,EAAE;QACH,EAAE,CACA,aAAa,EACb,GAAG,EAAE;YACH,IAAI;iBACD,MAAM,CAAC,EAAE;iBACT,EAAE,CAAC,OAAO,CAAC,CAAC;QACjB,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;IACF,QAAQ,CACN,SAAS,EACT,GAAG,EAAE;QACH,EAAE,CACA,YAAY,EACZ,GAAG,EAAE;YACH,IAAI;iBACD,MAAM;iBACN,MAAM;iBACN,KAAK,CACJ,IAAI,GAAG,CAAC,KAAK,CAAC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://json.schemastore.org/package",
|
|
4
4
|
"$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
|
|
5
5
|
"name": "linted",
|
|
6
|
-
"version": "
|
|
6
|
+
"version": "34.0.1",
|
|
7
7
|
"repository": "github:jimmy-zhening-luo/linted",
|
|
8
8
|
"description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
|
|
9
9
|
"keywords": [
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@eslint/css": "0.14.1",
|
|
53
53
|
"@eslint/json": "0.14.0",
|
|
54
|
-
"@eslinted/core": "31.0.1
|
|
55
|
-
"@eslinted/defaults": "17.5.
|
|
54
|
+
"@eslinted/core": "31.0.1",
|
|
55
|
+
"@eslinted/defaults": "17.5.2",
|
|
56
56
|
"@html-eslint/eslint-plugin": "0.49.0",
|
|
57
57
|
"@stylistic/eslint-plugin": "5.6.1",
|
|
58
58
|
"eslint-plugin-jsonc": "2.21.0",
|
package/src/scope/index.ts
CHANGED
package/src/scope/tree.ts
CHANGED
package/tests/index.spec.ts
CHANGED
|
@@ -5,13 +5,13 @@ const configs = linted();
|
|
|
5
5
|
|
|
6
6
|
describe(
|
|
7
7
|
"linted",
|
|
8
|
-
|
|
8
|
+
() => {
|
|
9
9
|
describe(
|
|
10
10
|
"shape",
|
|
11
|
-
|
|
11
|
+
() => {
|
|
12
12
|
it(
|
|
13
13
|
"is a function",
|
|
14
|
-
|
|
14
|
+
() => {
|
|
15
15
|
linted
|
|
16
16
|
.should.be
|
|
17
17
|
.a("function");
|
|
@@ -21,10 +21,10 @@ describe(
|
|
|
21
21
|
);
|
|
22
22
|
describe(
|
|
23
23
|
"output",
|
|
24
|
-
|
|
24
|
+
() => {
|
|
25
25
|
it(
|
|
26
26
|
"is a non-empty array",
|
|
27
|
-
|
|
27
|
+
() => {
|
|
28
28
|
configs
|
|
29
29
|
.should.be
|
|
30
30
|
.an("array")
|
|
@@ -3,13 +3,13 @@ import { scopes } from "../../scope";
|
|
|
3
3
|
|
|
4
4
|
describe(
|
|
5
5
|
"Scopes",
|
|
6
|
-
|
|
6
|
+
() => {
|
|
7
7
|
describe(
|
|
8
8
|
"shape",
|
|
9
|
-
|
|
9
|
+
() => {
|
|
10
10
|
it(
|
|
11
11
|
"is a non-empty array",
|
|
12
|
-
|
|
12
|
+
() => {
|
|
13
13
|
scopes
|
|
14
14
|
.should.be
|
|
15
15
|
.an("array")
|
|
@@ -20,10 +20,10 @@ describe(
|
|
|
20
20
|
);
|
|
21
21
|
describe(
|
|
22
22
|
"members",
|
|
23
|
-
|
|
23
|
+
() => {
|
|
24
24
|
it(
|
|
25
25
|
"are unique",
|
|
26
|
-
|
|
26
|
+
() => {
|
|
27
27
|
scopes
|
|
28
28
|
.length
|
|
29
29
|
.should
|
|
@@ -37,10 +37,10 @@ describe(
|
|
|
37
37
|
);
|
|
38
38
|
describe(
|
|
39
39
|
"order",
|
|
40
|
-
|
|
40
|
+
() => {
|
|
41
41
|
it(
|
|
42
42
|
"`jsoncc` > `jsonc` > `json`",
|
|
43
|
-
|
|
43
|
+
() => {
|
|
44
44
|
scopes
|
|
45
45
|
.should
|
|
46
46
|
.include
|
|
@@ -69,7 +69,7 @@ describe(
|
|
|
69
69
|
);
|
|
70
70
|
it(
|
|
71
71
|
"`svelte` > `ts`",
|
|
72
|
-
|
|
72
|
+
() => {
|
|
73
73
|
scopes
|
|
74
74
|
.should
|
|
75
75
|
.include
|
|
@@ -90,7 +90,7 @@ describe(
|
|
|
90
90
|
);
|
|
91
91
|
it(
|
|
92
92
|
"`ts` > `js`",
|
|
93
|
-
|
|
93
|
+
() => {
|
|
94
94
|
scopes
|
|
95
95
|
.should
|
|
96
96
|
.include
|
package/tests/scope/tree.spec.ts
CHANGED
|
@@ -5,13 +5,13 @@ const nodes = tree.map(([scope]) => scope);
|
|
|
5
5
|
|
|
6
6
|
describe(
|
|
7
7
|
"Tree",
|
|
8
|
-
|
|
8
|
+
() => {
|
|
9
9
|
describe(
|
|
10
10
|
"shape",
|
|
11
|
-
|
|
11
|
+
() => {
|
|
12
12
|
it(
|
|
13
13
|
"is an array",
|
|
14
|
-
|
|
14
|
+
() => {
|
|
15
15
|
tree
|
|
16
16
|
.should.be
|
|
17
17
|
.an("array");
|
|
@@ -21,10 +21,10 @@ describe(
|
|
|
21
21
|
);
|
|
22
22
|
describe(
|
|
23
23
|
"members",
|
|
24
|
-
|
|
24
|
+
() => {
|
|
25
25
|
it(
|
|
26
26
|
"are unique",
|
|
27
|
-
|
|
27
|
+
() => {
|
|
28
28
|
tree
|
|
29
29
|
.length
|
|
30
30
|
.should
|
|
@@ -36,7 +36,7 @@ describe(
|
|
|
36
36
|
);
|
|
37
37
|
it(
|
|
38
38
|
"omit `js`",
|
|
39
|
-
|
|
39
|
+
() => {
|
|
40
40
|
nodes
|
|
41
41
|
.should
|
|
42
42
|
.not.include
|
|
@@ -47,10 +47,10 @@ describe(
|
|
|
47
47
|
);
|
|
48
48
|
describe(
|
|
49
49
|
"order",
|
|
50
|
-
|
|
50
|
+
() => {
|
|
51
51
|
it(
|
|
52
52
|
"`jsoncc` < [`jsonc`]?",
|
|
53
|
-
|
|
53
|
+
() => {
|
|
54
54
|
nodes
|
|
55
55
|
.should
|
|
56
56
|
.include
|
|
@@ -65,7 +65,7 @@ describe(
|
|
|
65
65
|
);
|
|
66
66
|
it(
|
|
67
67
|
"`svelte` < `ts`",
|
|
68
|
-
|
|
68
|
+
() => {
|
|
69
69
|
nodes
|
|
70
70
|
.should
|
|
71
71
|
.include
|
|
@@ -86,7 +86,7 @@ describe(
|
|
|
86
86
|
);
|
|
87
87
|
it(
|
|
88
88
|
"`ts` is last",
|
|
89
|
-
|
|
89
|
+
() => {
|
|
90
90
|
nodes
|
|
91
91
|
.should
|
|
92
92
|
.include
|