@vltpkg/query 1.5.0 → 1.6.0

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.
Files changed (210) hide show
  1. package/package.json +10 -12
  2. package/skills/dss-query/REFERENCE.md +0 -125
  3. package/skills/dss-query/SKILL.md +0 -190
  4. package/skills/dss-query/evals/README.md +0 -81
  5. package/skills/dss-query/evals/evals.json +0 -89
  6. package/skills/dss-query/evals/grade.mjs +0 -481
  7. package/src/attribute.ts +0 -190
  8. package/src/combinator.ts +0 -135
  9. package/src/error.ts +0 -78
  10. package/src/id.ts +0 -46
  11. package/src/index.ts +0 -670
  12. package/src/parser.ts +0 -122
  13. package/src/pseudo/abandoned.ts +0 -9
  14. package/src/pseudo/attr.ts +0 -92
  15. package/src/pseudo/built.ts +0 -19
  16. package/src/pseudo/confused.ts +0 -29
  17. package/src/pseudo/cve.ts +0 -93
  18. package/src/pseudo/cwe.ts +0 -97
  19. package/src/pseudo/debug.ts +0 -9
  20. package/src/pseudo/deprecated.ts +0 -9
  21. package/src/pseudo/dev.ts +0 -18
  22. package/src/pseudo/diff.ts +0 -90
  23. package/src/pseudo/dist.ts +0 -148
  24. package/src/pseudo/dynamic.ts +0 -9
  25. package/src/pseudo/empty.ts +0 -15
  26. package/src/pseudo/entropic.ts +0 -9
  27. package/src/pseudo/env.ts +0 -6
  28. package/src/pseudo/eval.ts +0 -9
  29. package/src/pseudo/fs.ts +0 -9
  30. package/src/pseudo/helpers.ts +0 -106
  31. package/src/pseudo/host.ts +0 -111
  32. package/src/pseudo/hostname.ts +0 -156
  33. package/src/pseudo/license.ts +0 -134
  34. package/src/pseudo/link.ts +0 -30
  35. package/src/pseudo/malware.ts +0 -41
  36. package/src/pseudo/minified.ts +0 -9
  37. package/src/pseudo/missing.ts +0 -16
  38. package/src/pseudo/native.ts +0 -9
  39. package/src/pseudo/network.ts +0 -9
  40. package/src/pseudo/obfuscated.ts +0 -9
  41. package/src/pseudo/optional.ts +0 -18
  42. package/src/pseudo/outdated.ts +0 -345
  43. package/src/pseudo/overridden.ts +0 -20
  44. package/src/pseudo/path.ts +0 -146
  45. package/src/pseudo/peer.ts +0 -18
  46. package/src/pseudo/prerelease.ts +0 -47
  47. package/src/pseudo/private.ts +0 -19
  48. package/src/pseudo/prod.ts +0 -18
  49. package/src/pseudo/published.ts +0 -250
  50. package/src/pseudo/registry.ts +0 -29
  51. package/src/pseudo/root.ts +0 -19
  52. package/src/pseudo/scanned.ts +0 -20
  53. package/src/pseudo/score.ts +0 -186
  54. package/src/pseudo/scripts.ts +0 -61
  55. package/src/pseudo/semver.ts +0 -320
  56. package/src/pseudo/severity.ts +0 -231
  57. package/src/pseudo/shell.ts +0 -9
  58. package/src/pseudo/shrinkwrap.ts +0 -9
  59. package/src/pseudo/skill.ts +0 -59
  60. package/src/pseudo/skills.ts +0 -29
  61. package/src/pseudo/spec.ts +0 -131
  62. package/src/pseudo/squat.ts +0 -225
  63. package/src/pseudo/suspicious.ts +0 -9
  64. package/src/pseudo/tracker.ts +0 -9
  65. package/src/pseudo/trivial.ts +0 -9
  66. package/src/pseudo/type.ts +0 -26
  67. package/src/pseudo/undesirable.ts +0 -9
  68. package/src/pseudo/unknown.ts +0 -9
  69. package/src/pseudo/unmaintained.ts +0 -9
  70. package/src/pseudo/unpopular.ts +0 -9
  71. package/src/pseudo/unstable.ts +0 -9
  72. package/src/pseudo/vuln.ts +0 -273
  73. package/src/pseudo/workspace.ts +0 -22
  74. package/src/pseudo.ts +0 -440
  75. package/src/types.ts +0 -206
  76. package/tap-snapshots/test/attribute.ts.test.cjs +0 -304
  77. package/tap-snapshots/test/combinator.ts.test.cjs +0 -333
  78. package/tap-snapshots/test/id.ts.test.cjs +0 -118
  79. package/tap-snapshots/test/parser.ts.test.cjs +0 -344
  80. package/tap-snapshots/test/pseudo/abandoned.ts.test.cjs +0 -18
  81. package/tap-snapshots/test/pseudo/attr.ts.test.cjs +0 -161
  82. package/tap-snapshots/test/pseudo/built.ts.test.cjs +0 -70
  83. package/tap-snapshots/test/pseudo/confused.ts.test.cjs +0 -32
  84. package/tap-snapshots/test/pseudo/cve.ts.test.cjs +0 -49
  85. package/tap-snapshots/test/pseudo/cwe.ts.test.cjs +0 -49
  86. package/tap-snapshots/test/pseudo/debug.ts.test.cjs +0 -18
  87. package/tap-snapshots/test/pseudo/deprecated.ts.test.cjs +0 -18
  88. package/tap-snapshots/test/pseudo/dist.ts.test.cjs +0 -30
  89. package/tap-snapshots/test/pseudo/dynamic.ts.test.cjs +0 -18
  90. package/tap-snapshots/test/pseudo/empty.ts.test.cjs +0 -50
  91. package/tap-snapshots/test/pseudo/entropic.ts.test.cjs +0 -18
  92. package/tap-snapshots/test/pseudo/env.ts.test.cjs +0 -18
  93. package/tap-snapshots/test/pseudo/eval.ts.test.cjs +0 -18
  94. package/tap-snapshots/test/pseudo/fs.ts.test.cjs +0 -18
  95. package/tap-snapshots/test/pseudo/helpers.ts.test.cjs +0 -18
  96. package/tap-snapshots/test/pseudo/hostname.ts.test.cjs +0 -148
  97. package/tap-snapshots/test/pseudo/license.ts.test.cjs +0 -41
  98. package/tap-snapshots/test/pseudo/link.ts.test.cjs +0 -36
  99. package/tap-snapshots/test/pseudo/malware.ts.test.cjs +0 -22
  100. package/tap-snapshots/test/pseudo/minified.ts.test.cjs +0 -18
  101. package/tap-snapshots/test/pseudo/missing.ts.test.cjs +0 -30
  102. package/tap-snapshots/test/pseudo/native.ts.test.cjs +0 -18
  103. package/tap-snapshots/test/pseudo/network.ts.test.cjs +0 -18
  104. package/tap-snapshots/test/pseudo/obfuscated.ts.test.cjs +0 -18
  105. package/tap-snapshots/test/pseudo/outdated.ts.test.cjs +0 -132
  106. package/tap-snapshots/test/pseudo/overridden.ts.test.cjs +0 -75
  107. package/tap-snapshots/test/pseudo/prerelease.ts.test.cjs +0 -101
  108. package/tap-snapshots/test/pseudo/private.ts.test.cjs +0 -38
  109. package/tap-snapshots/test/pseudo/published.ts.test.cjs +0 -171
  110. package/tap-snapshots/test/pseudo/registry.ts.test.cjs +0 -68
  111. package/tap-snapshots/test/pseudo/root.ts.test.cjs +0 -24
  112. package/tap-snapshots/test/pseudo/scanned.ts.test.cjs +0 -18
  113. package/tap-snapshots/test/pseudo/score.ts.test.cjs +0 -239
  114. package/tap-snapshots/test/pseudo/scripts.ts.test.cjs +0 -62
  115. package/tap-snapshots/test/pseudo/semver.ts.test.cjs +0 -575
  116. package/tap-snapshots/test/pseudo/severity.ts.test.cjs +0 -122
  117. package/tap-snapshots/test/pseudo/shell.ts.test.cjs +0 -18
  118. package/tap-snapshots/test/pseudo/shrinkwrap.ts.test.cjs +0 -18
  119. package/tap-snapshots/test/pseudo/skills.ts.test.cjs +0 -19
  120. package/tap-snapshots/test/pseudo/spec.ts.test.cjs +0 -148
  121. package/tap-snapshots/test/pseudo/squat.ts.test.cjs +0 -129
  122. package/tap-snapshots/test/pseudo/suspicious.ts.test.cjs +0 -18
  123. package/tap-snapshots/test/pseudo/tracker.ts.test.cjs +0 -18
  124. package/tap-snapshots/test/pseudo/trivial.ts.test.cjs +0 -18
  125. package/tap-snapshots/test/pseudo/type.ts.test.cjs +0 -51
  126. package/tap-snapshots/test/pseudo/undesirable.ts.test.cjs +0 -18
  127. package/tap-snapshots/test/pseudo/unknown.ts.test.cjs +0 -18
  128. package/tap-snapshots/test/pseudo/unmaintained.ts.test.cjs +0 -18
  129. package/tap-snapshots/test/pseudo/unpopular.ts.test.cjs +0 -18
  130. package/tap-snapshots/test/pseudo/unstable.ts.test.cjs +0 -18
  131. package/tap-snapshots/test/pseudo/vuln.ts.test.cjs +0 -208
  132. package/tap-snapshots/test/pseudo/vulnerable.ts.test.cjs +0 -20
  133. package/tap-snapshots/test/pseudo/workspace.ts.test.cjs +0 -19
  134. package/tap-snapshots/test/pseudo.ts.test.cjs +0 -1247
  135. package/test/attribute.ts +0 -273
  136. package/test/combinator.ts +0 -175
  137. package/test/error.ts +0 -60
  138. package/test/fixtures/graph.ts +0 -999
  139. package/test/fixtures/selector.ts +0 -103
  140. package/test/fixtures/types.ts +0 -7
  141. package/test/id.ts +0 -102
  142. package/test/index.ts +0 -1148
  143. package/test/parser.ts +0 -117
  144. package/test/pseudo/abandoned.ts +0 -98
  145. package/test/pseudo/attr.ts +0 -298
  146. package/test/pseudo/built.ts +0 -214
  147. package/test/pseudo/confused.ts +0 -160
  148. package/test/pseudo/cve.ts +0 -249
  149. package/test/pseudo/cwe.ts +0 -255
  150. package/test/pseudo/debug.ts +0 -98
  151. package/test/pseudo/deprecated.ts +0 -98
  152. package/test/pseudo/dev.ts +0 -61
  153. package/test/pseudo/diff.ts +0 -417
  154. package/test/pseudo/dist.ts +0 -215
  155. package/test/pseudo/dynamic.ts +0 -98
  156. package/test/pseudo/empty.ts +0 -108
  157. package/test/pseudo/entropic.ts +0 -101
  158. package/test/pseudo/env.ts +0 -98
  159. package/test/pseudo/eval.ts +0 -98
  160. package/test/pseudo/fs.ts +0 -98
  161. package/test/pseudo/helpers.ts +0 -370
  162. package/test/pseudo/host-context.ts +0 -276
  163. package/test/pseudo/hostname.ts +0 -314
  164. package/test/pseudo/license.ts +0 -265
  165. package/test/pseudo/link.ts +0 -94
  166. package/test/pseudo/malware.ts +0 -184
  167. package/test/pseudo/minified.ts +0 -98
  168. package/test/pseudo/missing.ts +0 -111
  169. package/test/pseudo/native.ts +0 -98
  170. package/test/pseudo/network.ts +0 -98
  171. package/test/pseudo/obfuscated.ts +0 -98
  172. package/test/pseudo/optional.ts +0 -73
  173. package/test/pseudo/outdated.ts +0 -461
  174. package/test/pseudo/overridden.ts +0 -317
  175. package/test/pseudo/path.ts +0 -680
  176. package/test/pseudo/peer.ts +0 -101
  177. package/test/pseudo/prerelease.ts +0 -279
  178. package/test/pseudo/private.ts +0 -108
  179. package/test/pseudo/prod.ts +0 -61
  180. package/test/pseudo/published.ts +0 -557
  181. package/test/pseudo/registry.ts +0 -122
  182. package/test/pseudo/root.ts +0 -66
  183. package/test/pseudo/scanned.ts +0 -144
  184. package/test/pseudo/score.ts +0 -591
  185. package/test/pseudo/scripts.ts +0 -324
  186. package/test/pseudo/semver.ts +0 -822
  187. package/test/pseudo/severity.ts +0 -342
  188. package/test/pseudo/shell.ts +0 -98
  189. package/test/pseudo/shrinkwrap.ts +0 -98
  190. package/test/pseudo/skill.ts +0 -189
  191. package/test/pseudo/skills.ts +0 -90
  192. package/test/pseudo/spec.ts +0 -525
  193. package/test/pseudo/squat.ts +0 -565
  194. package/test/pseudo/suspicious.ts +0 -98
  195. package/test/pseudo/tracker.ts +0 -98
  196. package/test/pseudo/trivial.ts +0 -98
  197. package/test/pseudo/type.ts +0 -105
  198. package/test/pseudo/undesirable.ts +0 -98
  199. package/test/pseudo/unknown.ts +0 -98
  200. package/test/pseudo/unmaintained.ts +0 -98
  201. package/test/pseudo/unpopular.ts +0 -98
  202. package/test/pseudo/unstable.ts +0 -98
  203. package/test/pseudo/vuln.ts +0 -625
  204. package/test/pseudo/vulnerable.ts +0 -137
  205. package/test/pseudo/workspace.ts +0 -111
  206. package/test/pseudo.ts +0 -584
  207. package/tsconfig.json +0 -3
  208. package/tsconfig.publish.json +0 -19
  209. package/tsconfig.publish.tsbuildinfo +0 -1
  210. package/typedoc.mjs +0 -2
@@ -1,32 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/confused.ts > TAP > nodes with confused=true flag > filter out nodes that are not confused > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [
11
- "a",
12
- "e",
13
- "e",
14
- ],
15
- "nodes": Array [
16
- "a",
17
- "e",
18
- ],
19
- }
20
- `
21
-
22
- exports[`test/pseudo/confused.ts > TAP > selects packages with a manifestConfusion alert > filter out any node that does not have the alert > must match snapshot 1`] = `
23
- Object {
24
- "edges": Array [
25
- "e",
26
- "e",
27
- ],
28
- "nodes": Array [
29
- "e",
30
- ],
31
- }
32
- `
@@ -1,49 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/cve.ts > TAP > selects packages with a CVE alert > filter out any node that does not have the alert > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [
11
- "e",
12
- "e",
13
- ],
14
- "nodes": Array [
15
- "e",
16
- ],
17
- }
18
- `
19
-
20
- exports[`test/pseudo/cve.ts > TAP > selects packages with a CVE alert > filter out any node that does not match the quoted CVE ID > must match snapshot 1`] = `
21
- Object {
22
- "edges": Array [
23
- "e",
24
- "e",
25
- ],
26
- "nodes": Array [
27
- "e",
28
- ],
29
- }
30
- `
31
-
32
- exports[`test/pseudo/cve.ts > TAP > selects packages with a CVE alert > parameterless :cve matches any package with a CVE > must match snapshot 1`] = `
33
- Object {
34
- "edges": Array [
35
- "e",
36
- "e",
37
- ],
38
- "nodes": Array [
39
- "e",
40
- ],
41
- }
42
- `
43
-
44
- exports[`test/pseudo/cve.ts > TAP > selects packages with a CVE alert > should not match an unseen CVE ID > must match snapshot 1`] = `
45
- Object {
46
- "edges": Array [],
47
- "nodes": Array [],
48
- }
49
- `
@@ -1,49 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/cwe.ts > TAP > selects packages with a CWE alert > filter out any node that does not have the alert > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [
11
- "e",
12
- "e",
13
- ],
14
- "nodes": Array [
15
- "e",
16
- ],
17
- }
18
- `
19
-
20
- exports[`test/pseudo/cwe.ts > TAP > selects packages with a CWE alert > filter out any node that does not match the quoted CWE ID > must match snapshot 1`] = `
21
- Object {
22
- "edges": Array [
23
- "e",
24
- "e",
25
- ],
26
- "nodes": Array [
27
- "e",
28
- ],
29
- }
30
- `
31
-
32
- exports[`test/pseudo/cwe.ts > TAP > selects packages with a CWE alert > parameterless :cwe matches any package with a CWE > must match snapshot 1`] = `
33
- Object {
34
- "edges": Array [
35
- "e",
36
- "e",
37
- ],
38
- "nodes": Array [
39
- "e",
40
- ],
41
- }
42
- `
43
-
44
- exports[`test/pseudo/cwe.ts > TAP > selects packages with a CWE alert > should not match an unseen CWE ID > must match snapshot 1`] = `
45
- Object {
46
- "edges": Array [],
47
- "nodes": Array [],
48
- }
49
- `
@@ -1,18 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/debug.ts > TAP > selects packages with a debugAccess alert > filter out any node that does not have the alert > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [
11
- "e",
12
- "e",
13
- ],
14
- "nodes": Array [
15
- "e",
16
- ],
17
- }
18
- `
@@ -1,18 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/deprecated.ts > TAP > selects packages with deprecated alert > filter out any node that does not have the alert > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [
11
- "e",
12
- "e",
13
- ],
14
- "nodes": Array [
15
- "e",
16
- ],
17
- }
18
- `
@@ -1,30 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/dist.ts > TAP > :dist pseudo-selector > matches nodes at the beta dist-tag > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [
11
- "b",
12
- ],
13
- "nodes": Array [
14
- "b",
15
- ],
16
- }
17
- `
18
-
19
- exports[`test/pseudo/dist.ts > TAP > :dist pseudo-selector > matches nodes at the latest dist-tag > must match snapshot 1`] = `
20
- Object {
21
- "edges": Array [
22
- "a",
23
- "f",
24
- ],
25
- "nodes": Array [
26
- "a",
27
- "f",
28
- ],
29
- }
30
- `
@@ -1,18 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/dynamic.ts > TAP > selects packages with a dynamicRequire alert > filter out any node that does not have the alert > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [
11
- "e",
12
- "e",
13
- ],
14
- "nodes": Array [
15
- "e",
16
- ],
17
- }
18
- `
@@ -1,50 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/empty.ts > TAP > selects packages with no dependencies > handles an empty partial state > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [],
11
- "nodes": Array [],
12
- }
13
- `
14
-
15
- exports[`test/pseudo/empty.ts > TAP > selects packages with no dependencies > returns no nodes in cycle graph > must match snapshot 1`] = `
16
- Object {
17
- "edges": Array [],
18
- "nodes": Array [],
19
- }
20
- `
21
-
22
- exports[`test/pseudo/empty.ts > TAP > selects packages with no dependencies > selects nodes with no outgoing edges in simple graph > must match snapshot 1`] = `
23
- Object {
24
- "edges": Array [
25
- "@x/y",
26
- "a",
27
- "c",
28
- "e",
29
- "e",
30
- "f",
31
- ],
32
- "nodes": Array [
33
- "@x/y",
34
- "a",
35
- "c",
36
- "e",
37
- "f",
38
- ],
39
- }
40
- `
41
-
42
- exports[`test/pseudo/empty.ts > TAP > selects packages with no dependencies > selects nodes with no outgoing edges in workspace graph > must match snapshot 1`] = `
43
- Object {
44
- "edges": Array [],
45
- "nodes": Array [
46
- "w",
47
- "ws",
48
- ],
49
- }
50
- `
@@ -1,18 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/entropic.ts > TAP > selects packages with a highEntropyStrings alert > filter out any node that does not have the alert > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [
11
- "e",
12
- "e",
13
- ],
14
- "nodes": Array [
15
- "e",
16
- ],
17
- }
18
- `
@@ -1,18 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/env.ts > TAP > selects packages with a envVars alert > filter out any node that does not have the alert > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [
11
- "e",
12
- "e",
13
- ],
14
- "nodes": Array [
15
- "e",
16
- ],
17
- }
18
- `
@@ -1,18 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/eval.ts > TAP > selects packages with an eval alert > filter out any node that does not have the alert > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [
11
- "e",
12
- "e",
13
- ],
14
- "nodes": Array [
15
- "e",
16
- ],
17
- }
18
- `
@@ -1,18 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/fs.ts > TAP > selects packages with a filesystemAccess alert > filter out any node that does not have the alert > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [
11
- "e",
12
- "e",
13
- ],
14
- "nodes": Array [
15
- "e",
16
- ],
17
- }
18
- `
@@ -1,18 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/helpers.ts > TAP > selects packages with an unmaintained alert > filter out any node that does not have the alert > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [
11
- "e",
12
- "e",
13
- ],
14
- "nodes": Array [
15
- "e",
16
- ],
17
- }
18
- `
@@ -1,148 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/hostname.ts > TAP > selects nodes by hostname > excludes file deps from hostname matching > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [
11
- "b",
12
- ],
13
- "nodes": Array [
14
- "b",
15
- ],
16
- }
17
- `
18
-
19
- exports[`test/pseudo/hostname.ts > TAP > selects nodes by hostname > excludes git deps with unparseable remote URLs > must match snapshot 1`] = `
20
- Object {
21
- "edges": Array [],
22
- "nodes": Array [],
23
- }
24
- `
25
-
26
- exports[`test/pseudo/hostname.ts > TAP > selects nodes by hostname > falls back to default registry for unknown registry name > must match snapshot 1`] = `
27
- Object {
28
- "edges": Array [
29
- "a",
30
- ],
31
- "nodes": Array [
32
- "a",
33
- ],
34
- }
35
- `
36
-
37
- exports[`test/pseudo/hostname.ts > TAP > selects nodes by hostname > handles empty partial state > must match snapshot 1`] = `
38
- Object {
39
- "edges": Array [],
40
- "nodes": Array [],
41
- }
42
- `
43
-
44
- exports[`test/pseudo/hostname.ts > TAP > selects nodes by hostname > matches custom named git host via template URL > must match snapshot 1`] = `
45
- Object {
46
- "edges": Array [
47
- "a",
48
- ],
49
- "nodes": Array [
50
- "a",
51
- ],
52
- }
53
- `
54
-
55
- exports[`test/pseudo/hostname.ts > TAP > selects nodes by hostname > matches custom registry deps by hostname > must match snapshot 1`] = `
56
- Object {
57
- "edges": Array [
58
- "c",
59
- ],
60
- "nodes": Array [
61
- "c",
62
- ],
63
- }
64
- `
65
-
66
- exports[`test/pseudo/hostname.ts > TAP > selects nodes by hostname > matches default registry deps by hostname > must match snapshot 1`] = `
67
- Object {
68
- "edges": Array [
69
- "a",
70
- "b",
71
- "c",
72
- "d",
73
- "e",
74
- "e",
75
- "f",
76
- ],
77
- "nodes": Array [
78
- "a",
79
- "b",
80
- "c",
81
- "d",
82
- "e",
83
- "f",
84
- ],
85
- }
86
- `
87
-
88
- exports[`test/pseudo/hostname.ts > TAP > selects nodes by hostname > matches git dep with plain https URL remote > must match snapshot 1`] = `
89
- Object {
90
- "edges": Array [
91
- "a",
92
- ],
93
- "nodes": Array [
94
- "a",
95
- ],
96
- }
97
- `
98
-
99
- exports[`test/pseudo/hostname.ts > TAP > selects nodes by hostname > matches git deps with full URL by hostname > must match snapshot 1`] = `
100
- Object {
101
- "edges": Array [
102
- "c",
103
- ],
104
- "nodes": Array [
105
- "c",
106
- ],
107
- }
108
- `
109
-
110
- exports[`test/pseudo/hostname.ts > TAP > selects nodes by hostname > matches github git deps by hostname > must match snapshot 1`] = `
111
- Object {
112
- "edges": Array [
113
- "a",
114
- ],
115
- "nodes": Array [
116
- "a",
117
- ],
118
- }
119
- `
120
-
121
- exports[`test/pseudo/hostname.ts > TAP > selects nodes by hostname > matches gitlab git deps by hostname > must match snapshot 1`] = `
122
- Object {
123
- "edges": Array [
124
- "b",
125
- ],
126
- "nodes": Array [
127
- "b",
128
- ],
129
- }
130
- `
131
-
132
- exports[`test/pseudo/hostname.ts > TAP > selects nodes by hostname > matches remote deps by hostname > must match snapshot 1`] = `
133
- Object {
134
- "edges": Array [
135
- "a",
136
- ],
137
- "nodes": Array [
138
- "a",
139
- ],
140
- }
141
- `
142
-
143
- exports[`test/pseudo/hostname.ts > TAP > selects nodes by hostname > returns empty when hostname does not match > must match snapshot 1`] = `
144
- Object {
145
- "edges": Array [],
146
- "nodes": Array [],
147
- }
148
- `
@@ -1,41 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/license.ts > TAP > pseudo state form - :license without parameters > should match packages with any license defined (not none) 1`] = `
9
- Object {
10
- "edges": Array [
11
- "file~_d->~npm~e@1.0.0",
12
- "~npm~d@1.0.0->~npm~e@1.0.0",
13
- ],
14
- "nodes": Array [
15
- "~npm~e@1.0.0",
16
- ],
17
- }
18
- `
19
-
20
- exports[`test/pseudo/license.ts > TAP > selects packages with a specific license kind > filter out any node that does not have the license > must match snapshot 1`] = `
21
- Object {
22
- "edges": Array [
23
- "e",
24
- "e",
25
- ],
26
- "nodes": Array [
27
- "e",
28
- ],
29
- }
30
- `
31
-
32
- exports[`test/pseudo/license.ts > TAP > selects packages with a specific license kind > filter out using unquoted param > must match snapshot 1`] = `
33
- Object {
34
- "edges": Array [
35
- "f",
36
- ],
37
- "nodes": Array [
38
- "f",
39
- ],
40
- }
41
- `
@@ -1,36 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/link.ts > TAP > selects file links and tar.gz packages > handles an empty partial state > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [],
11
- "nodes": Array [],
12
- }
13
- `
14
-
15
- exports[`test/pseudo/link.ts > TAP > selects file links and tar.gz packages > selects nodes that are file links in simple graph > must match snapshot 1`] = `
16
- Object {
17
- "edges": Array [
18
- "@x/y",
19
- ],
20
- "nodes": Array [
21
- "@x/y",
22
- ],
23
- }
24
- `
25
-
26
- exports[`test/pseudo/link.ts > TAP > selects file links and tar.gz packages > selects nodes that are file links or tar.gz in linked graph > must match snapshot 1`] = `
27
- Object {
28
- "edges": Array [
29
- "a",
30
- "d",
31
- ],
32
- "nodes": Array [
33
- "a",
34
- ],
35
- }
36
- `
@@ -1,22 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/malware.ts > TAP > selects packages with malware alerts > matches nodes with malware or gptMalware alerts > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [
11
- "a",
12
- "b",
13
- "e",
14
- "e",
15
- ],
16
- "nodes": Array [
17
- "a",
18
- "b",
19
- "e",
20
- ],
21
- }
22
- `
@@ -1,18 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/minified.ts > TAP > selects packages with a minifiedFile alert > filter out any node that does not have the alert > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [
11
- "e",
12
- "e",
13
- ],
14
- "nodes": Array [
15
- "e",
16
- ],
17
- }
18
- `
@@ -1,30 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/missing.ts > TAP > selects edges with no linked node > handles an empty partial state > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [],
11
- "nodes": Array [],
12
- }
13
- `
14
-
15
- exports[`test/pseudo/missing.ts > TAP > selects edges with no linked node > returns no edges in simple graph (all edges have linked nodes) > must match snapshot 1`] = `
16
- Object {
17
- "edges": Array [],
18
- "nodes": Array [],
19
- }
20
- `
21
-
22
- exports[`test/pseudo/missing.ts > TAP > selects edges with no linked node > selects edges with no linked node in missing node graph > must match snapshot 1`] = `
23
- Object {
24
- "edges": Array [
25
- "a",
26
- "b",
27
- ],
28
- "nodes": Array [],
29
- }
30
- `
@@ -1,18 +0,0 @@
1
- /* IMPORTANT
2
- * This snapshot file is auto-generated, but designed for humans.
3
- * It should be checked into source control and tracked carefully.
4
- * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
5
- * Make sure to inspect the output below. Do not ignore changes!
6
- */
7
- 'use strict'
8
- exports[`test/pseudo/native.ts > TAP > selects packages with a hasNativeCode alert > filter out any node that does not have the alert > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [
11
- "e",
12
- "e",
13
- ],
14
- "nodes": Array [
15
- "e",
16
- ],
17
- }
18
- `