zedbee 0.1.0-beta.5 → 0.1.0-beta.6

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 (118) hide show
  1. package/dist/checks/eslint/lint-adapter.d.ts.map +1 -1
  2. package/dist/checks/eslint/lint-adapter.js +74 -15
  3. package/dist/checks/eslint/lint-adapter.js.map +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +4 -0
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/init.d.ts +3 -2
  8. package/dist/commands/init.d.ts.map +1 -1
  9. package/dist/commands/init.js +32 -8
  10. package/dist/commands/init.js.map +1 -1
  11. package/dist/commands/scan.d.ts.map +1 -1
  12. package/dist/commands/scan.js +7 -0
  13. package/dist/commands/scan.js.map +1 -1
  14. package/dist/config/schema.d.ts +2 -1
  15. package/dist/config/schema.d.ts.map +1 -1
  16. package/dist/config/schema.js +4 -1
  17. package/dist/config/schema.js.map +1 -1
  18. package/dist/hooks/command.d.ts +2 -0
  19. package/dist/hooks/command.d.ts.map +1 -1
  20. package/dist/hooks/command.js +12 -0
  21. package/dist/hooks/command.js.map +1 -1
  22. package/dist/init/format-proposal.d.ts +4 -0
  23. package/dist/init/format-proposal.d.ts.map +1 -0
  24. package/dist/init/format-proposal.js +48 -0
  25. package/dist/init/format-proposal.js.map +1 -0
  26. package/dist/init/recommend.d.ts.map +1 -1
  27. package/dist/init/recommend.js +45 -7
  28. package/dist/init/recommend.js.map +1 -1
  29. package/dist/init/types.d.ts +5 -0
  30. package/dist/init/types.d.ts.map +1 -1
  31. package/dist/init/types.js.map +1 -1
  32. package/dist/renderers/json.d.ts.map +1 -1
  33. package/dist/renderers/json.js +10 -5
  34. package/dist/renderers/json.js.map +1 -1
  35. package/dist/renderers/sarif.d.ts.map +1 -1
  36. package/dist/renderers/sarif.js +6 -3
  37. package/dist/renderers/sarif.js.map +1 -1
  38. package/dist/renderers/text.d.ts.map +1 -1
  39. package/dist/renderers/text.js +9 -6
  40. package/dist/renderers/text.js.map +1 -1
  41. package/dist/reporting/fix-command.d.ts +5 -0
  42. package/dist/reporting/fix-command.d.ts.map +1 -0
  43. package/dist/reporting/fix-command.js +27 -0
  44. package/dist/reporting/fix-command.js.map +1 -0
  45. package/dist/reporting/next-steps.d.ts +2 -1
  46. package/dist/reporting/next-steps.d.ts.map +1 -1
  47. package/dist/reporting/next-steps.js +4 -3
  48. package/dist/reporting/next-steps.js.map +1 -1
  49. package/dist/scan/report.d.ts +2 -0
  50. package/dist/scan/report.d.ts.map +1 -1
  51. package/dist/ui/init-app.d.ts +5 -4
  52. package/dist/ui/init-app.d.ts.map +1 -1
  53. package/dist/ui/init-app.js +77 -16
  54. package/dist/ui/init-app.js.map +1 -1
  55. package/dist/ui/scan-app.d.ts.map +1 -1
  56. package/dist/ui/scan-app.js +4 -1
  57. package/dist/ui/scan-app.js.map +1 -1
  58. package/docs/checks.md +1 -1
  59. package/docs/cli-reference.md +5 -1
  60. package/licenses/production-inventory.json +492 -492
  61. package/node_modules/prettier/LICENSE +7 -0
  62. package/node_modules/prettier/README.md +104 -0
  63. package/node_modules/prettier/THIRD-PARTY-NOTICES.md +8019 -0
  64. package/node_modules/prettier/bin/prettier.cjs +84 -0
  65. package/node_modules/prettier/doc.d.ts +254 -0
  66. package/node_modules/prettier/doc.js +1575 -0
  67. package/node_modules/prettier/doc.mjs +1544 -0
  68. package/node_modules/prettier/index.cjs +790 -0
  69. package/node_modules/prettier/index.d.ts +959 -0
  70. package/node_modules/prettier/index.mjs +19074 -0
  71. package/node_modules/prettier/internal/experimental-cli-worker.mjs +2756 -0
  72. package/node_modules/prettier/internal/experimental-cli.mjs +12572 -0
  73. package/node_modules/prettier/internal/legacy-cli.mjs +7059 -0
  74. package/node_modules/prettier/package.json +207 -0
  75. package/node_modules/prettier/plugins/acorn.d.ts +6 -0
  76. package/node_modules/prettier/plugins/acorn.js +17 -0
  77. package/node_modules/prettier/plugins/acorn.mjs +17 -0
  78. package/node_modules/prettier/plugins/angular.d.ts +8 -0
  79. package/node_modules/prettier/plugins/angular.js +5 -0
  80. package/node_modules/prettier/plugins/angular.mjs +5 -0
  81. package/node_modules/prettier/plugins/babel.d.ts +18 -0
  82. package/node_modules/prettier/plugins/babel.js +16 -0
  83. package/node_modules/prettier/plugins/babel.mjs +16 -0
  84. package/node_modules/prettier/plugins/estree.d.ts +6 -0
  85. package/node_modules/prettier/plugins/estree.js +44 -0
  86. package/node_modules/prettier/plugins/estree.mjs +44 -0
  87. package/node_modules/prettier/plugins/flow.d.ts +5 -0
  88. package/node_modules/prettier/plugins/flow.js +7 -0
  89. package/node_modules/prettier/plugins/flow.mjs +7 -0
  90. package/node_modules/prettier/plugins/glimmer.d.ts +9 -0
  91. package/node_modules/prettier/plugins/glimmer.js +37 -0
  92. package/node_modules/prettier/plugins/glimmer.mjs +37 -0
  93. package/node_modules/prettier/plugins/graphql.d.ts +9 -0
  94. package/node_modules/prettier/plugins/graphql.js +17 -0
  95. package/node_modules/prettier/plugins/graphql.mjs +17 -0
  96. package/node_modules/prettier/plugins/html.d.ts +13 -0
  97. package/node_modules/prettier/plugins/html.js +25 -0
  98. package/node_modules/prettier/plugins/html.mjs +25 -0
  99. package/node_modules/prettier/plugins/markdown.d.ts +11 -0
  100. package/node_modules/prettier/plugins/markdown.js +70 -0
  101. package/node_modules/prettier/plugins/markdown.mjs +70 -0
  102. package/node_modules/prettier/plugins/meriyah.d.ts +5 -0
  103. package/node_modules/prettier/plugins/meriyah.js +6 -0
  104. package/node_modules/prettier/plugins/meriyah.mjs +6 -0
  105. package/node_modules/prettier/plugins/postcss.d.ts +11 -0
  106. package/node_modules/prettier/plugins/postcss.js +62 -0
  107. package/node_modules/prettier/plugins/postcss.mjs +62 -0
  108. package/node_modules/prettier/plugins/typescript.d.ts +5 -0
  109. package/node_modules/prettier/plugins/typescript.js +22 -0
  110. package/node_modules/prettier/plugins/typescript.mjs +22 -0
  111. package/node_modules/prettier/plugins/yaml.d.ts +9 -0
  112. package/node_modules/prettier/plugins/yaml.js +141 -0
  113. package/node_modules/prettier/plugins/yaml.mjs +154 -0
  114. package/node_modules/prettier/standalone.d.ts +33 -0
  115. package/node_modules/prettier/standalone.js +29 -0
  116. package/node_modules/prettier/standalone.mjs +29 -0
  117. package/package.json +4 -1
  118. package/schema/zedbee.schema.json +1 -1
@@ -0,0 +1,84 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __commonJS = function(cb, mod) {
5
+ return function __require() {
6
+ try {
7
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
8
+ } catch (e) {
9
+ throw mod = 0, e;
10
+ }
11
+ };
12
+ };
13
+
14
+ // node_modules/semver-compare/index.js
15
+ var require_semver_compare = __commonJS({
16
+ "node_modules/semver-compare/index.js": function(exports2, module2) {
17
+ module2.exports = function cmp(a, b) {
18
+ var pa = a.split(".");
19
+ var pb = b.split(".");
20
+ for (var i = 0; i < 3; i++) {
21
+ var na = Number(pa[i]);
22
+ var nb = Number(pb[i]);
23
+ if (na > nb) return 1;
24
+ if (nb > na) return -1;
25
+ if (!isNaN(na) && isNaN(nb)) return 1;
26
+ if (isNaN(na) && !isNaN(nb)) return -1;
27
+ }
28
+ return 0;
29
+ };
30
+ }
31
+ });
32
+
33
+ // node_modules/please-upgrade-node/index.js
34
+ var require_please_upgrade_node = __commonJS({
35
+ "node_modules/please-upgrade-node/index.js": function(exports2, module2) {
36
+ var semverCompare = require_semver_compare();
37
+ module2.exports = function pleaseUpgradeNode2(pkg, opts) {
38
+ var opts = opts || {};
39
+ var requiredVersion = pkg.engines.node.replace(">=", "");
40
+ var currentVersion = process.version.replace("v", "");
41
+ if (semverCompare(currentVersion, requiredVersion) === -1) {
42
+ if (opts.message) {
43
+ console.error(opts.message(requiredVersion));
44
+ } else {
45
+ console.error(
46
+ pkg.name + " requires at least version " + requiredVersion + " of Node, please upgrade"
47
+ );
48
+ }
49
+ if (opts.hasOwnProperty("exitCode")) {
50
+ process.exit(opts.exitCode);
51
+ } else {
52
+ process.exit(1);
53
+ }
54
+ }
55
+ };
56
+ }
57
+ });
58
+
59
+ // bin/prettier.cjs
60
+ var nodeModule = require("module");
61
+ if (typeof nodeModule.enableCompileCache === "function") {
62
+ nodeModule.enableCompileCache();
63
+ }
64
+ var pleaseUpgradeNode = require_please_upgrade_node();
65
+ var packageJson = require("../package.json");
66
+ pleaseUpgradeNode(packageJson);
67
+ var dynamicImport = new Function("module", "return import(module)");
68
+ var promise;
69
+ var index = process.argv.indexOf("--experimental-cli");
70
+ if (process.env.PRETTIER_EXPERIMENTAL_CLI || index !== -1) {
71
+ if (index !== -1) {
72
+ process.argv.splice(index, 1);
73
+ }
74
+ promise = dynamicImport("../internal/experimental-cli.mjs").then(
75
+ function(cli) {
76
+ return cli.__promise;
77
+ }
78
+ );
79
+ } else {
80
+ promise = dynamicImport("../internal/legacy-cli.mjs").then(function runCli(cli) {
81
+ return cli.run();
82
+ });
83
+ }
84
+ module.exports.__promise = promise;
@@ -0,0 +1,254 @@
1
+ // https://github.com/prettier/prettier/blob/next/src/document/public.js
2
+ export namespace builders {
3
+ type DocCommand =
4
+ | Align
5
+ | BreakParent
6
+ | Cursor
7
+ | Fill
8
+ | Group
9
+ | IfBreak
10
+ | Indent
11
+ | IndentIfBreak
12
+ | Label
13
+ | Line
14
+ | LineSuffix
15
+ | LineSuffixBoundary
16
+ | Trim;
17
+ type Doc = string | Doc[] | DocCommand;
18
+
19
+ interface Align {
20
+ type: "align";
21
+ contents: Doc;
22
+ n: number | string | { type: "root" };
23
+ }
24
+
25
+ interface BreakParent {
26
+ type: "break-parent";
27
+ }
28
+
29
+ interface Cursor {
30
+ type: "cursor";
31
+ placeholder: symbol;
32
+ }
33
+
34
+ interface Fill {
35
+ type: "fill";
36
+ parts: Doc[];
37
+ }
38
+
39
+ interface Group {
40
+ type: "group";
41
+ id?: symbol;
42
+ contents: Doc;
43
+ break: boolean;
44
+ expandedStates: Doc[];
45
+ }
46
+
47
+ interface HardlineWithoutBreakParent extends Line {
48
+ hard: true;
49
+ }
50
+
51
+ interface IfBreak {
52
+ type: "if-break";
53
+ breakContents: Doc;
54
+ flatContents: Doc;
55
+ }
56
+
57
+ interface Indent {
58
+ type: "indent";
59
+ contents: Doc;
60
+ }
61
+
62
+ interface IndentIfBreak {
63
+ type: "indent-if-break";
64
+ }
65
+
66
+ interface Label {
67
+ type: "label";
68
+ label: any;
69
+ contents: Doc;
70
+ }
71
+
72
+ interface Line {
73
+ type: "line";
74
+ soft?: boolean | undefined;
75
+ hard?: boolean | undefined;
76
+ literal?: boolean | undefined;
77
+ }
78
+
79
+ interface LineSuffix {
80
+ type: "line-suffix";
81
+ contents: Doc;
82
+ }
83
+
84
+ interface LineSuffixBoundary {
85
+ type: "line-suffix-boundary";
86
+ }
87
+
88
+ interface LiterallineWithoutBreakParent extends Line {
89
+ hard: true;
90
+ literal: true;
91
+ }
92
+
93
+ type LiteralLine = [LiterallineWithoutBreakParent, BreakParent];
94
+
95
+ interface Softline extends Line {
96
+ soft: true;
97
+ }
98
+
99
+ type Hardline = [HardlineWithoutBreakParent, BreakParent];
100
+
101
+ interface Trim {
102
+ type: "trim";
103
+ }
104
+
105
+ interface GroupOptions {
106
+ shouldBreak?: boolean | undefined;
107
+ id?: symbol | undefined;
108
+ }
109
+
110
+ function addAlignmentToDoc(doc: Doc, size: number, tabWidth: number): Doc;
111
+
112
+ /** @see [align](https://github.com/prettier/prettier/blob/main/commands.md#align) */
113
+ function align(widthOrString: Align["n"], doc: Doc): Align;
114
+
115
+ /** @see [breakParent](https://github.com/prettier/prettier/blob/main/commands.md#breakparent) */
116
+ const breakParent: BreakParent;
117
+
118
+ /** @see [conditionalGroup](https://github.com/prettier/prettier/blob/main/commands.md#conditionalgroup) */
119
+ function conditionalGroup(alternatives: Doc[], options?: GroupOptions): Group;
120
+
121
+ /** @see [dedent](https://github.com/prettier/prettier/blob/main/commands.md#dedent) */
122
+ function dedent(doc: Doc): Align;
123
+
124
+ /** @see [dedentToRoot](https://github.com/prettier/prettier/blob/main/commands.md#dedenttoroot) */
125
+ function dedentToRoot(doc: Doc): Align;
126
+
127
+ /** @see [fill](https://github.com/prettier/prettier/blob/main/commands.md#fill) */
128
+ function fill(docs: Doc[]): Fill;
129
+
130
+ /** @see [group](https://github.com/prettier/prettier/blob/main/commands.md#group) */
131
+ function group(doc: Doc, opts?: GroupOptions): Group;
132
+
133
+ /** @see [hardline](https://github.com/prettier/prettier/blob/main/commands.md#hardline) */
134
+ const hardline: Hardline;
135
+
136
+ /** @see [hardlineWithoutBreakParent](https://github.com/prettier/prettier/blob/main/commands.md#hardlinewithoutbreakparent-and-literallinewithoutbreakparent) */
137
+ const hardlineWithoutBreakParent: HardlineWithoutBreakParent;
138
+
139
+ /** @see [ifBreak](https://github.com/prettier/prettier/blob/main/commands.md#ifbreak) */
140
+ function ifBreak(
141
+ ifBreak: Doc,
142
+ noBreak?: Doc,
143
+ options?: { groupId?: symbol | undefined },
144
+ ): IfBreak;
145
+
146
+ /** @see [indent](https://github.com/prettier/prettier/blob/main/commands.md#indent) */
147
+ function indent(doc: Doc): Indent;
148
+
149
+ /** @see [indentIfBreak](https://github.com/prettier/prettier/blob/main/commands.md#indentifbreak) */
150
+ function indentIfBreak(
151
+ doc: Doc,
152
+ opts: { groupId: symbol; negate?: boolean | undefined },
153
+ ): IndentIfBreak;
154
+
155
+ /** @see [join](https://github.com/prettier/prettier/blob/main/commands.md#join) */
156
+ function join(sep: Doc, docs: Doc[]): Doc[];
157
+
158
+ /** @see [label](https://github.com/prettier/prettier/blob/main/commands.md#label) */
159
+ function label(label: any | undefined, contents: Doc): Doc;
160
+
161
+ /** @see [line](https://github.com/prettier/prettier/blob/main/commands.md#line) */
162
+ const line: Line;
163
+
164
+ /** @see [lineSuffix](https://github.com/prettier/prettier/blob/main/commands.md#linesuffix) */
165
+ function lineSuffix(suffix: Doc): LineSuffix;
166
+
167
+ /** @see [lineSuffixBoundary](https://github.com/prettier/prettier/blob/main/commands.md#linesuffixboundary) */
168
+ const lineSuffixBoundary: LineSuffixBoundary;
169
+
170
+ /** @see [literalline](https://github.com/prettier/prettier/blob/main/commands.md#literalline) */
171
+ const literalline: LiteralLine;
172
+
173
+ /** @see [literallineWithoutBreakParent](https://github.com/prettier/prettier/blob/main/commands.md#hardlinewithoutbreakparent-and-literallinewithoutbreakparent) */
174
+ const literallineWithoutBreakParent: LiterallineWithoutBreakParent;
175
+
176
+ /** @see [markAsRoot](https://github.com/prettier/prettier/blob/main/commands.md#markasroot) */
177
+ function markAsRoot(doc: Doc): Align;
178
+
179
+ /** @see [softline](https://github.com/prettier/prettier/blob/main/commands.md#softline) */
180
+ const softline: Softline;
181
+
182
+ /** @see [trim](https://github.com/prettier/prettier/blob/main/commands.md#trim) */
183
+ const trim: Trim;
184
+
185
+ /** @see [cursor](https://github.com/prettier/prettier/blob/main/commands.md#cursor) */
186
+ const cursor: Cursor;
187
+ }
188
+
189
+ export namespace printer {
190
+ function printDocToString(
191
+ doc: builders.Doc,
192
+ options: Options,
193
+ ): {
194
+ formatted: string;
195
+ /**
196
+ * This property is a misnomer, and has been since the changes in
197
+ * https://github.com/prettier/prettier/pull/15709.
198
+ * The region of the document indicated by `cursorNodeStart` and `cursorNodeText` will
199
+ * sometimes actually be what lies BETWEEN a pair of leaf nodes in the AST, rather than a node.
200
+ */
201
+ cursorNodeStart?: number | undefined;
202
+
203
+ /**
204
+ * Note that, like cursorNodeStart, this is a misnomer and may actually be the text between two
205
+ * leaf nodes in the AST instead of the text of a node.
206
+ */
207
+ cursorNodeText?: string | undefined;
208
+ };
209
+ interface Options {
210
+ /**
211
+ * Specify the line length that the printer will wrap on.
212
+ * @default 80
213
+ */
214
+ printWidth: number;
215
+ /**
216
+ * Specify the number of spaces per indentation-level.
217
+ * @default 2
218
+ */
219
+ tabWidth: number;
220
+ /**
221
+ * Indent lines with tabs instead of spaces
222
+ * @default false
223
+ */
224
+ useTabs?: boolean;
225
+ parentParser?: string | undefined;
226
+ __embeddedInHtml?: boolean | undefined;
227
+ }
228
+ }
229
+
230
+ export namespace utils {
231
+ function willBreak(doc: builders.Doc): boolean;
232
+ function traverseDoc(
233
+ doc: builders.Doc,
234
+ onEnter?: (doc: builders.Doc) => void | boolean,
235
+ onExit?: (doc: builders.Doc) => void,
236
+ shouldTraverseConditionalGroups?: boolean,
237
+ ): void;
238
+ function findInDoc<T = builders.Doc>(
239
+ doc: builders.Doc,
240
+ callback: (doc: builders.Doc) => T,
241
+ defaultValue: T,
242
+ ): T;
243
+ function mapDoc<T = builders.Doc>(
244
+ doc: builders.Doc,
245
+ callback: (doc: builders.Doc) => T,
246
+ ): T;
247
+ function removeLines(doc: builders.Doc): builders.Doc;
248
+ function stripTrailingHardline(doc: builders.Doc): builders.Doc;
249
+ function replaceEndOfLine(
250
+ doc: builders.Doc,
251
+ replacement?: builders.Doc,
252
+ ): builders.Doc;
253
+ function canBreak(doc: builders.Doc): boolean;
254
+ }