@vltpkg/query 1.5.0 → 1.6.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.
Files changed (211) hide show
  1. package/dist/id.js +12 -5
  2. package/package.json +10 -12
  3. package/skills/dss-query/REFERENCE.md +0 -125
  4. package/skills/dss-query/SKILL.md +0 -190
  5. package/skills/dss-query/evals/README.md +0 -81
  6. package/skills/dss-query/evals/evals.json +0 -89
  7. package/skills/dss-query/evals/grade.mjs +0 -481
  8. package/src/attribute.ts +0 -190
  9. package/src/combinator.ts +0 -135
  10. package/src/error.ts +0 -78
  11. package/src/id.ts +0 -46
  12. package/src/index.ts +0 -670
  13. package/src/parser.ts +0 -122
  14. package/src/pseudo/abandoned.ts +0 -9
  15. package/src/pseudo/attr.ts +0 -92
  16. package/src/pseudo/built.ts +0 -19
  17. package/src/pseudo/confused.ts +0 -29
  18. package/src/pseudo/cve.ts +0 -93
  19. package/src/pseudo/cwe.ts +0 -97
  20. package/src/pseudo/debug.ts +0 -9
  21. package/src/pseudo/deprecated.ts +0 -9
  22. package/src/pseudo/dev.ts +0 -18
  23. package/src/pseudo/diff.ts +0 -90
  24. package/src/pseudo/dist.ts +0 -148
  25. package/src/pseudo/dynamic.ts +0 -9
  26. package/src/pseudo/empty.ts +0 -15
  27. package/src/pseudo/entropic.ts +0 -9
  28. package/src/pseudo/env.ts +0 -6
  29. package/src/pseudo/eval.ts +0 -9
  30. package/src/pseudo/fs.ts +0 -9
  31. package/src/pseudo/helpers.ts +0 -106
  32. package/src/pseudo/host.ts +0 -111
  33. package/src/pseudo/hostname.ts +0 -156
  34. package/src/pseudo/license.ts +0 -134
  35. package/src/pseudo/link.ts +0 -30
  36. package/src/pseudo/malware.ts +0 -41
  37. package/src/pseudo/minified.ts +0 -9
  38. package/src/pseudo/missing.ts +0 -16
  39. package/src/pseudo/native.ts +0 -9
  40. package/src/pseudo/network.ts +0 -9
  41. package/src/pseudo/obfuscated.ts +0 -9
  42. package/src/pseudo/optional.ts +0 -18
  43. package/src/pseudo/outdated.ts +0 -345
  44. package/src/pseudo/overridden.ts +0 -20
  45. package/src/pseudo/path.ts +0 -146
  46. package/src/pseudo/peer.ts +0 -18
  47. package/src/pseudo/prerelease.ts +0 -47
  48. package/src/pseudo/private.ts +0 -19
  49. package/src/pseudo/prod.ts +0 -18
  50. package/src/pseudo/published.ts +0 -250
  51. package/src/pseudo/registry.ts +0 -29
  52. package/src/pseudo/root.ts +0 -19
  53. package/src/pseudo/scanned.ts +0 -20
  54. package/src/pseudo/score.ts +0 -186
  55. package/src/pseudo/scripts.ts +0 -61
  56. package/src/pseudo/semver.ts +0 -320
  57. package/src/pseudo/severity.ts +0 -231
  58. package/src/pseudo/shell.ts +0 -9
  59. package/src/pseudo/shrinkwrap.ts +0 -9
  60. package/src/pseudo/skill.ts +0 -59
  61. package/src/pseudo/skills.ts +0 -29
  62. package/src/pseudo/spec.ts +0 -131
  63. package/src/pseudo/squat.ts +0 -225
  64. package/src/pseudo/suspicious.ts +0 -9
  65. package/src/pseudo/tracker.ts +0 -9
  66. package/src/pseudo/trivial.ts +0 -9
  67. package/src/pseudo/type.ts +0 -26
  68. package/src/pseudo/undesirable.ts +0 -9
  69. package/src/pseudo/unknown.ts +0 -9
  70. package/src/pseudo/unmaintained.ts +0 -9
  71. package/src/pseudo/unpopular.ts +0 -9
  72. package/src/pseudo/unstable.ts +0 -9
  73. package/src/pseudo/vuln.ts +0 -273
  74. package/src/pseudo/workspace.ts +0 -22
  75. package/src/pseudo.ts +0 -440
  76. package/src/types.ts +0 -206
  77. package/tap-snapshots/test/attribute.ts.test.cjs +0 -304
  78. package/tap-snapshots/test/combinator.ts.test.cjs +0 -333
  79. package/tap-snapshots/test/id.ts.test.cjs +0 -118
  80. package/tap-snapshots/test/parser.ts.test.cjs +0 -344
  81. package/tap-snapshots/test/pseudo/abandoned.ts.test.cjs +0 -18
  82. package/tap-snapshots/test/pseudo/attr.ts.test.cjs +0 -161
  83. package/tap-snapshots/test/pseudo/built.ts.test.cjs +0 -70
  84. package/tap-snapshots/test/pseudo/confused.ts.test.cjs +0 -32
  85. package/tap-snapshots/test/pseudo/cve.ts.test.cjs +0 -49
  86. package/tap-snapshots/test/pseudo/cwe.ts.test.cjs +0 -49
  87. package/tap-snapshots/test/pseudo/debug.ts.test.cjs +0 -18
  88. package/tap-snapshots/test/pseudo/deprecated.ts.test.cjs +0 -18
  89. package/tap-snapshots/test/pseudo/dist.ts.test.cjs +0 -30
  90. package/tap-snapshots/test/pseudo/dynamic.ts.test.cjs +0 -18
  91. package/tap-snapshots/test/pseudo/empty.ts.test.cjs +0 -50
  92. package/tap-snapshots/test/pseudo/entropic.ts.test.cjs +0 -18
  93. package/tap-snapshots/test/pseudo/env.ts.test.cjs +0 -18
  94. package/tap-snapshots/test/pseudo/eval.ts.test.cjs +0 -18
  95. package/tap-snapshots/test/pseudo/fs.ts.test.cjs +0 -18
  96. package/tap-snapshots/test/pseudo/helpers.ts.test.cjs +0 -18
  97. package/tap-snapshots/test/pseudo/hostname.ts.test.cjs +0 -148
  98. package/tap-snapshots/test/pseudo/license.ts.test.cjs +0 -41
  99. package/tap-snapshots/test/pseudo/link.ts.test.cjs +0 -36
  100. package/tap-snapshots/test/pseudo/malware.ts.test.cjs +0 -22
  101. package/tap-snapshots/test/pseudo/minified.ts.test.cjs +0 -18
  102. package/tap-snapshots/test/pseudo/missing.ts.test.cjs +0 -30
  103. package/tap-snapshots/test/pseudo/native.ts.test.cjs +0 -18
  104. package/tap-snapshots/test/pseudo/network.ts.test.cjs +0 -18
  105. package/tap-snapshots/test/pseudo/obfuscated.ts.test.cjs +0 -18
  106. package/tap-snapshots/test/pseudo/outdated.ts.test.cjs +0 -132
  107. package/tap-snapshots/test/pseudo/overridden.ts.test.cjs +0 -75
  108. package/tap-snapshots/test/pseudo/prerelease.ts.test.cjs +0 -101
  109. package/tap-snapshots/test/pseudo/private.ts.test.cjs +0 -38
  110. package/tap-snapshots/test/pseudo/published.ts.test.cjs +0 -171
  111. package/tap-snapshots/test/pseudo/registry.ts.test.cjs +0 -68
  112. package/tap-snapshots/test/pseudo/root.ts.test.cjs +0 -24
  113. package/tap-snapshots/test/pseudo/scanned.ts.test.cjs +0 -18
  114. package/tap-snapshots/test/pseudo/score.ts.test.cjs +0 -239
  115. package/tap-snapshots/test/pseudo/scripts.ts.test.cjs +0 -62
  116. package/tap-snapshots/test/pseudo/semver.ts.test.cjs +0 -575
  117. package/tap-snapshots/test/pseudo/severity.ts.test.cjs +0 -122
  118. package/tap-snapshots/test/pseudo/shell.ts.test.cjs +0 -18
  119. package/tap-snapshots/test/pseudo/shrinkwrap.ts.test.cjs +0 -18
  120. package/tap-snapshots/test/pseudo/skills.ts.test.cjs +0 -19
  121. package/tap-snapshots/test/pseudo/spec.ts.test.cjs +0 -148
  122. package/tap-snapshots/test/pseudo/squat.ts.test.cjs +0 -129
  123. package/tap-snapshots/test/pseudo/suspicious.ts.test.cjs +0 -18
  124. package/tap-snapshots/test/pseudo/tracker.ts.test.cjs +0 -18
  125. package/tap-snapshots/test/pseudo/trivial.ts.test.cjs +0 -18
  126. package/tap-snapshots/test/pseudo/type.ts.test.cjs +0 -51
  127. package/tap-snapshots/test/pseudo/undesirable.ts.test.cjs +0 -18
  128. package/tap-snapshots/test/pseudo/unknown.ts.test.cjs +0 -18
  129. package/tap-snapshots/test/pseudo/unmaintained.ts.test.cjs +0 -18
  130. package/tap-snapshots/test/pseudo/unpopular.ts.test.cjs +0 -18
  131. package/tap-snapshots/test/pseudo/unstable.ts.test.cjs +0 -18
  132. package/tap-snapshots/test/pseudo/vuln.ts.test.cjs +0 -208
  133. package/tap-snapshots/test/pseudo/vulnerable.ts.test.cjs +0 -20
  134. package/tap-snapshots/test/pseudo/workspace.ts.test.cjs +0 -19
  135. package/tap-snapshots/test/pseudo.ts.test.cjs +0 -1247
  136. package/test/attribute.ts +0 -273
  137. package/test/combinator.ts +0 -175
  138. package/test/error.ts +0 -60
  139. package/test/fixtures/graph.ts +0 -999
  140. package/test/fixtures/selector.ts +0 -103
  141. package/test/fixtures/types.ts +0 -7
  142. package/test/id.ts +0 -102
  143. package/test/index.ts +0 -1148
  144. package/test/parser.ts +0 -117
  145. package/test/pseudo/abandoned.ts +0 -98
  146. package/test/pseudo/attr.ts +0 -298
  147. package/test/pseudo/built.ts +0 -214
  148. package/test/pseudo/confused.ts +0 -160
  149. package/test/pseudo/cve.ts +0 -249
  150. package/test/pseudo/cwe.ts +0 -255
  151. package/test/pseudo/debug.ts +0 -98
  152. package/test/pseudo/deprecated.ts +0 -98
  153. package/test/pseudo/dev.ts +0 -61
  154. package/test/pseudo/diff.ts +0 -417
  155. package/test/pseudo/dist.ts +0 -215
  156. package/test/pseudo/dynamic.ts +0 -98
  157. package/test/pseudo/empty.ts +0 -108
  158. package/test/pseudo/entropic.ts +0 -101
  159. package/test/pseudo/env.ts +0 -98
  160. package/test/pseudo/eval.ts +0 -98
  161. package/test/pseudo/fs.ts +0 -98
  162. package/test/pseudo/helpers.ts +0 -370
  163. package/test/pseudo/host-context.ts +0 -276
  164. package/test/pseudo/hostname.ts +0 -314
  165. package/test/pseudo/license.ts +0 -265
  166. package/test/pseudo/link.ts +0 -94
  167. package/test/pseudo/malware.ts +0 -184
  168. package/test/pseudo/minified.ts +0 -98
  169. package/test/pseudo/missing.ts +0 -111
  170. package/test/pseudo/native.ts +0 -98
  171. package/test/pseudo/network.ts +0 -98
  172. package/test/pseudo/obfuscated.ts +0 -98
  173. package/test/pseudo/optional.ts +0 -73
  174. package/test/pseudo/outdated.ts +0 -461
  175. package/test/pseudo/overridden.ts +0 -317
  176. package/test/pseudo/path.ts +0 -680
  177. package/test/pseudo/peer.ts +0 -101
  178. package/test/pseudo/prerelease.ts +0 -279
  179. package/test/pseudo/private.ts +0 -108
  180. package/test/pseudo/prod.ts +0 -61
  181. package/test/pseudo/published.ts +0 -557
  182. package/test/pseudo/registry.ts +0 -122
  183. package/test/pseudo/root.ts +0 -66
  184. package/test/pseudo/scanned.ts +0 -144
  185. package/test/pseudo/score.ts +0 -591
  186. package/test/pseudo/scripts.ts +0 -324
  187. package/test/pseudo/semver.ts +0 -822
  188. package/test/pseudo/severity.ts +0 -342
  189. package/test/pseudo/shell.ts +0 -98
  190. package/test/pseudo/shrinkwrap.ts +0 -98
  191. package/test/pseudo/skill.ts +0 -189
  192. package/test/pseudo/skills.ts +0 -90
  193. package/test/pseudo/spec.ts +0 -525
  194. package/test/pseudo/squat.ts +0 -565
  195. package/test/pseudo/suspicious.ts +0 -98
  196. package/test/pseudo/tracker.ts +0 -98
  197. package/test/pseudo/trivial.ts +0 -98
  198. package/test/pseudo/type.ts +0 -105
  199. package/test/pseudo/undesirable.ts +0 -98
  200. package/test/pseudo/unknown.ts +0 -98
  201. package/test/pseudo/unmaintained.ts +0 -98
  202. package/test/pseudo/unpopular.ts +0 -98
  203. package/test/pseudo/unstable.ts +0 -98
  204. package/test/pseudo/vuln.ts +0 -625
  205. package/test/pseudo/vulnerable.ts +0 -137
  206. package/test/pseudo/workspace.ts +0 -111
  207. package/test/pseudo.ts +0 -584
  208. package/tsconfig.json +0 -3
  209. package/tsconfig.publish.json +0 -19
  210. package/tsconfig.publish.tsbuildinfo +0 -1
  211. package/typedoc.mjs +0 -2
@@ -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/network.ts > TAP > selects packages with a networkAccess 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/obfuscated.ts > TAP > selects packages with an obfuscated 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,132 +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/outdated.ts > TAP > select from outdated definition > missing package response > should log a warning for missing package response 1`] = `
9
- Array [
10
- Array [
11
- Error: Could not retrieve registry versions {
12
- "cause": Object {
13
- "cause": Error: Missing API,
14
- "found": Array [
15
- "c",
16
- ],
17
- },
18
- },
19
- ],
20
- ]
21
- `
22
-
23
- exports[`test/pseudo/outdated.ts > TAP > select from outdated definition > outdated as an element > must match snapshot 1`] = `
24
- Object {
25
- "edges": Array [
26
- "a",
27
- "c",
28
- "d",
29
- "e",
30
- "g",
31
- "e",
32
- ],
33
- "nodes": Array [
34
- "a",
35
- "c",
36
- "d",
37
- "e",
38
- "g",
39
- "e",
40
- ],
41
- }
42
- `
43
-
44
- exports[`test/pseudo/outdated.ts > TAP > select from outdated definition > outdated kind any > must match snapshot 1`] = `
45
- Object {
46
- "edges": Array [
47
- "a",
48
- "c",
49
- "d",
50
- "e",
51
- "g",
52
- "e",
53
- ],
54
- "nodes": Array [
55
- "a",
56
- "c",
57
- "d",
58
- "e",
59
- "g",
60
- "e",
61
- ],
62
- }
63
- `
64
-
65
- exports[`test/pseudo/outdated.ts > TAP > select from outdated definition > outdated kind in-range > must match snapshot 1`] = `
66
- Object {
67
- "edges": Array [
68
- "c",
69
- "e",
70
- ],
71
- "nodes": Array [
72
- "c",
73
- "e",
74
- ],
75
- }
76
- `
77
-
78
- exports[`test/pseudo/outdated.ts > TAP > select from outdated definition > outdated kind major > must match snapshot 1`] = `
79
- Object {
80
- "edges": Array [
81
- "a",
82
- "c",
83
- "e",
84
- "e",
85
- ],
86
- "nodes": Array [
87
- "a",
88
- "c",
89
- "e",
90
- "e",
91
- ],
92
- }
93
- `
94
-
95
- exports[`test/pseudo/outdated.ts > TAP > select from outdated definition > outdated kind minor > must match snapshot 1`] = `
96
- Object {
97
- "edges": Array [
98
- "e",
99
- ],
100
- "nodes": Array [
101
- "e",
102
- ],
103
- }
104
- `
105
-
106
- exports[`test/pseudo/outdated.ts > TAP > select from outdated definition > outdated kind out-of-range > must match snapshot 1`] = `
107
- Object {
108
- "edges": Array [
109
- "a",
110
- "d",
111
- "g",
112
- "e",
113
- ],
114
- "nodes": Array [
115
- "a",
116
- "d",
117
- "g",
118
- "e",
119
- ],
120
- }
121
- `
122
-
123
- exports[`test/pseudo/outdated.ts > TAP > select from outdated definition > outdated kind patch > must match snapshot 1`] = `
124
- Object {
125
- "edges": Array [
126
- "d",
127
- ],
128
- "nodes": Array [
129
- "d",
130
- ],
131
- }
132
- `
@@ -1,75 +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/overridden.ts > TAP > selects edges with overridden specs > handles an empty partial state > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [],
11
- "nodes": Array [],
12
- }
13
- `
14
-
15
- exports[`test/pseudo/overridden.ts > TAP > selects edges with overridden specs > handles edges with spec.overridden false > must match snapshot 1`] = `
16
- Object {
17
- "edges": Array [],
18
- "nodes": Array [],
19
- }
20
- `
21
-
22
- exports[`test/pseudo/overridden.ts > TAP > selects edges with overridden specs > preserves edges with both overridden and non-overridden pointing to same node > must match snapshot 1`] = `
23
- Object {
24
- "edges": Array [
25
- "a",
26
- "b",
27
- "c",
28
- "missing",
29
- ],
30
- "nodes": Array [
31
- "a",
32
- "b",
33
- "c",
34
- ],
35
- }
36
- `
37
-
38
- exports[`test/pseudo/overridden.ts > TAP > selects edges with overridden specs > removes nodes that no longer have incoming edges > must match snapshot 1`] = `
39
- Object {
40
- "edges": Array [
41
- "a",
42
- "b",
43
- "c",
44
- "missing",
45
- ],
46
- "nodes": Array [
47
- "a",
48
- "b",
49
- "c",
50
- ],
51
- }
52
- `
53
-
54
- exports[`test/pseudo/overridden.ts > TAP > selects edges with overridden specs > returns only overridden edges and their linked nodes > must match snapshot 1`] = `
55
- Object {
56
- "edges": Array [
57
- "a",
58
- "b",
59
- "c",
60
- "missing",
61
- ],
62
- "nodes": Array [
63
- "a",
64
- "b",
65
- "c",
66
- ],
67
- }
68
- `
69
-
70
- exports[`test/pseudo/overridden.ts > TAP > selects edges with overridden specs > works with simple graph (no overridden edges) > must match snapshot 1`] = `
71
- Object {
72
- "edges": Array [],
73
- "nodes": Array [],
74
- }
75
- `
@@ -1,101 +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/prerelease.ts > TAP > :prerelease pseudo-selector > excludes non-prerelease versions > must match snapshot 1`] = `
9
- Array [
10
- "1.2.3-rc.1+rev.2",
11
- "1.3.4-beta.1",
12
- ]
13
- `
14
-
15
- exports[`test/pseudo/prerelease.ts > TAP > :prerelease pseudo-selector > handles nodes with invalid semver > must match snapshot 1`] = `
16
- Object {
17
- "nodes": Array [],
18
- }
19
- `
20
-
21
- exports[`test/pseudo/prerelease.ts > TAP > :prerelease pseudo-selector > handles nodes without version > must match snapshot 1`] = `
22
- Object {
23
- "nodes": Array [],
24
- }
25
- `
26
-
27
- exports[`test/pseudo/prerelease.ts > TAP > :prerelease pseudo-selector > handles various prerelease formats > must match snapshot 1`] = `
28
- Object {
29
- "selected": Array [
30
- Object {
31
- "name": "alpha",
32
- "version": "2.1.0-alpha.1",
33
- },
34
- Object {
35
- "name": "beta",
36
- "version": "1.0.0-beta.0",
37
- },
38
- Object {
39
- "name": "build-meta",
40
- "version": "1.2.3-alpha.1+build.123",
41
- },
42
- Object {
43
- "name": "canary",
44
- "version": "19.2.0-canary-fa3feba6-20250623",
45
- },
46
- Object {
47
- "name": "dev",
48
- "version": "0.0.0-16",
49
- },
50
- Object {
51
- "name": "next",
52
- "version": "1.5.0-next.1",
53
- },
54
- Object {
55
- "name": "rc",
56
- "version": "3.0.0-rc.2",
57
- },
58
- Object {
59
- "name": "snapshot",
60
- "version": "2.0.0-snapshot.20231201",
61
- },
62
- ],
63
- "total": 10,
64
- }
65
- `
66
-
67
- exports[`test/pseudo/prerelease.ts > TAP > :prerelease pseudo-selector > removes dangling edges properly > must match snapshot 1`] = `
68
- Object {
69
- "edgeNames": Array [
70
- "e",
71
- "g",
72
- ],
73
- "initialEdges": 9,
74
- "remainingEdges": 2,
75
- }
76
- `
77
-
78
- exports[`test/pseudo/prerelease.ts > TAP > :prerelease pseudo-selector > selects only nodes with prerelease versions > must match snapshot 1`] = `
79
- Object {
80
- "edges": Array [
81
- "g",
82
- "e",
83
- ],
84
- "nodes": Array [
85
- Object {
86
- "name": "g",
87
- "version": "1.2.3-rc.1+rev.2",
88
- },
89
- Object {
90
- "name": "e",
91
- "version": "1.3.4-beta.1",
92
- },
93
- ],
94
- }
95
- `
96
-
97
- exports[`test/pseudo/prerelease.ts > TAP > :prerelease pseudo-selector > works with simple graph (no prereleases) > must match snapshot 1`] = `
98
- Object {
99
- "nodes": Array [],
100
- }
101
- `
@@ -1,38 +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/private.ts > TAP > selects packages with private flag > handles an empty partial state > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [],
11
- "nodes": Array [],
12
- }
13
- `
14
-
15
- exports[`test/pseudo/private.ts > TAP > selects packages with private flag > selects no nodes in cycle graph > must match snapshot 1`] = `
16
- Object {
17
- "edges": Array [],
18
- "nodes": Array [],
19
- }
20
- `
21
-
22
- exports[`test/pseudo/private.ts > TAP > selects packages with private flag > selects no nodes with private flag in workspace graph > must match snapshot 1`] = `
23
- Object {
24
- "edges": Array [],
25
- "nodes": Array [],
26
- }
27
- `
28
-
29
- exports[`test/pseudo/private.ts > TAP > selects packages with private flag > selects nodes with private flag in simple graph > must match snapshot 1`] = `
30
- Object {
31
- "edges": Array [
32
- "d",
33
- ],
34
- "nodes": Array [
35
- "d",
36
- ],
37
- }
38
- `
@@ -1,171 +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/published.ts > TAP > pseudo state form - :published without parameters > should match packages with published metadata (registry packages) 1`] = `
9
- Object {
10
- "edges": Array [
11
- "file~_d->~npm~a@1.0.0",
12
- "file~_d->~npm~b@1.0.0",
13
- "file~_d->~npm~e@1.0.0",
14
- "~npm~b@1.0.0->~npm~c@1.0.0",
15
- "~npm~d@1.0.0->~npm~e@1.0.0",
16
- "~npm~d@1.0.0->~npm~f@1.0.0",
17
- ],
18
- "nodes": Array [
19
- "~npm~a@1.0.0",
20
- "~npm~b@1.0.0",
21
- "~npm~c@1.0.0",
22
- "~npm~e@1.0.0",
23
- "~npm~f@1.0.0",
24
- ],
25
- }
26
- `
27
-
28
- exports[`test/pseudo/published.ts > TAP > select from published definition > published exact date > must match snapshot 1`] = `
29
- Object {
30
- "edges": Array [
31
- "a",
32
- ],
33
- "nodes": Array [
34
- "a",
35
- ],
36
- }
37
- `
38
-
39
- exports[`test/pseudo/published.ts > TAP > select from published definition > published exact time (quoted) > must match snapshot 1`] = `
40
- Object {
41
- "edges": Array [
42
- "a",
43
- ],
44
- "nodes": Array [
45
- "a",
46
- ],
47
- }
48
- `
49
-
50
- exports[`test/pseudo/published.ts > TAP > select from published definition > published exact time > must match snapshot 1`] = `
51
- Object {
52
- "edges": Array [
53
- "a",
54
- ],
55
- "nodes": Array [
56
- "a",
57
- ],
58
- }
59
- `
60
-
61
- exports[`test/pseudo/published.ts > TAP > select from published definition > published greater than date (quoted) > must match snapshot 1`] = `
62
- Object {
63
- "edges": Array [
64
- "c",
65
- "d",
66
- "e",
67
- ],
68
- "nodes": Array [
69
- "c",
70
- "d",
71
- "e",
72
- ],
73
- }
74
- `
75
-
76
- exports[`test/pseudo/published.ts > TAP > select from published definition > published greater than date (unquoted) > must match snapshot 1`] = `
77
- Object {
78
- "edges": Array [
79
- "c",
80
- "d",
81
- "e",
82
- ],
83
- "nodes": Array [
84
- "c",
85
- "d",
86
- "e",
87
- ],
88
- }
89
- `
90
-
91
- exports[`test/pseudo/published.ts > TAP > select from published definition > published greater than or equal date (quoted) > must match snapshot 1`] = `
92
- Object {
93
- "edges": Array [
94
- "b",
95
- "c",
96
- "d",
97
- "e",
98
- ],
99
- "nodes": Array [
100
- "b",
101
- "c",
102
- "d",
103
- "e",
104
- ],
105
- }
106
- `
107
-
108
- exports[`test/pseudo/published.ts > TAP > select from published definition > published greater than or equal date (unquoted) > must match snapshot 1`] = `
109
- Object {
110
- "edges": Array [
111
- "b",
112
- "c",
113
- "d",
114
- "e",
115
- ],
116
- "nodes": Array [
117
- "b",
118
- "c",
119
- "d",
120
- "e",
121
- ],
122
- }
123
- `
124
-
125
- exports[`test/pseudo/published.ts > TAP > select from published definition > published less than date (quoted) > must match snapshot 1`] = `
126
- Object {
127
- "edges": Array [
128
- "a",
129
- ],
130
- "nodes": Array [
131
- "a",
132
- ],
133
- }
134
- `
135
-
136
- exports[`test/pseudo/published.ts > TAP > select from published definition > published less than date (unquoted) > must match snapshot 1`] = `
137
- Object {
138
- "edges": Array [
139
- "a",
140
- ],
141
- "nodes": Array [
142
- "a",
143
- ],
144
- }
145
- `
146
-
147
- exports[`test/pseudo/published.ts > TAP > select from published definition > published less than or equal date (quoted) > must match snapshot 1`] = `
148
- Object {
149
- "edges": Array [
150
- "a",
151
- "b",
152
- ],
153
- "nodes": Array [
154
- "a",
155
- "b",
156
- ],
157
- }
158
- `
159
-
160
- exports[`test/pseudo/published.ts > TAP > select from published definition > published less than or equal date (unquoted) > must match snapshot 1`] = `
161
- Object {
162
- "edges": Array [
163
- "a",
164
- "b",
165
- ],
166
- "nodes": Array [
167
- "a",
168
- "b",
169
- ],
170
- }
171
- `
@@ -1,68 +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/registry.ts > TAP > selects nodes by registry > handles an empty partial state > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [],
11
- "nodes": Array [],
12
- }
13
- `
14
-
15
- exports[`test/pseudo/registry.ts > TAP > selects nodes by registry > returns no nodes for nonexistent registry > must match snapshot 1`] = `
16
- Object {
17
- "edges": Array [],
18
- "nodes": Array [],
19
- }
20
- `
21
-
22
- exports[`test/pseudo/registry.ts > TAP > selects nodes by registry > selects all registry nodes in simple graph as npm > must match snapshot 1`] = `
23
- Object {
24
- "edges": Array [
25
- "a",
26
- "b",
27
- "c",
28
- "d",
29
- "e",
30
- "e",
31
- "f",
32
- ],
33
- "nodes": Array [
34
- "a",
35
- "b",
36
- "c",
37
- "d",
38
- "e",
39
- "f",
40
- ],
41
- }
42
- `
43
-
44
- exports[`test/pseudo/registry.ts > TAP > selects nodes by registry > selects custom registry nodes in aliased graph > must match snapshot 1`] = `
45
- Object {
46
- "edges": Array [
47
- "c",
48
- ],
49
- "nodes": Array [
50
- "c",
51
- ],
52
- }
53
- `
54
-
55
- exports[`test/pseudo/registry.ts > TAP > selects nodes by registry > selects default npm registry nodes in aliased graph > must match snapshot 1`] = `
56
- Object {
57
- "edges": Array [
58
- "a",
59
- "b",
60
- "bar",
61
- ],
62
- "nodes": Array [
63
- "a",
64
- "d",
65
- "foo",
66
- ],
67
- }
68
- `
@@ -1,24 +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/root.ts > TAP > selects the root node of the graph > selects root node in simple graph > must match snapshot 1`] = `
9
- Object {
10
- "edges": Array [],
11
- "nodes": Array [
12
- "my-project",
13
- ],
14
- }
15
- `
16
-
17
- exports[`test/pseudo/root.ts > TAP > selects the root node of the graph > selects root node in workspace graph > must match snapshot 1`] = `
18
- Object {
19
- "edges": Array [],
20
- "nodes": Array [
21
- "ws",
22
- ],
23
- }
24
- `
@@ -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/scanned.ts > TAP > scanned selector > should return only nodes with security archive data available 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
- `