webstore-lint 1.0.27 → 1.0.28

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.
@@ -131,7 +131,10 @@ if (flags.has("--permissions")) {
131
131
  const { audit: a, root, manifestError } = auditPermissions(target);
132
132
  if (manifestError) { console.error(manifestError); process.exit(1); }
133
133
 
134
- if (flags.has("--json")) { console.log(JSON.stringify(a, null, 2)); process.exit(0); }
134
+ if (flags.has("--json")) {
135
+ await new Promise((resolve) => process.stdout.write(JSON.stringify(a, null, 2) + "\n", resolve));
136
+ process.exit(0);
137
+ }
135
138
 
136
139
  const cite = POLICY.categories["excessive-permissions"];
137
140
  console.log(`\nwebstore-lint permission ledger ${root}`);
@@ -173,6 +176,9 @@ if (flags.has("--permissions")) {
173
176
  for (const m of a.confidence.minified) console.log(` minified, so call sites are unreliable: ${m.file} (longest line ${m.longestLine} chars)`);
174
177
  for (const s of a.confidence.skipped) console.log(` not read: ${s.path} (${s.why})`);
175
178
  console.log("");
179
+ // Drain the text report before exiting too. A slow pipe can otherwise lose
180
+ // the minified/skipped warnings needed to interpret the permission evidence.
181
+ await new Promise((resolve) => process.stdout.write("", resolve));
176
182
  process.exit(0);
177
183
  }
178
184
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webstore-lint",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "Check an unpacked Chrome extension against the Chrome Web Store program policies before you submit it. Every finding cites Google's own notification ID and verbatim policy text. Covers the 1 August 2026 policy updates.",
5
5
  "keywords": [
6
6
  "chrome-extension",
@@ -38,7 +38,7 @@
38
38
  "node": ">=18"
39
39
  },
40
40
  "scripts": {
41
- "test": "node test/lint.test.mjs && node test/action.test.mjs"
41
+ "test": "node test/lint.test.mjs && node test/action.test.mjs && node --test test/permissions-output.test.mjs"
42
42
  },
43
43
  "repository": {
44
44
  "type": "git",