@geonosis/ratchet 2.7.0 → 2.8.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @geonosis/ratchet
2
2
 
3
+ ## 2.8.0
4
+
3
5
  ## 2.7.0
4
6
 
5
7
  ## 2.6.1
@@ -34,13 +34,13 @@ if (existsSync(src)) {
34
34
  const built = newest(dist)
35
35
  if (built === 0) {
36
36
  process.stderr.write(
37
- 'geonosis-ratchet: this tree has never been built — run pnpm build. No dist here at all, which is what a fresh clone or a linked git worktree starts with; nothing is stale.\n',
37
+ 'geonosis-ratchet: this tree has never been built — run pnpm build. No dist here at all, which is what a fresh clone or a linked git worktree starts with; nothing is stale.\n'
38
38
  )
39
39
  process.exit(2)
40
40
  }
41
41
  if (newest(src, NOT_SOURCE) > built) {
42
42
  process.stderr.write(
43
- 'geonosis-ratchet: dist is older than src — run pnpm build before trusting this bin.\n',
43
+ 'geonosis-ratchet: dist is older than src — run pnpm build before trusting this bin.\n'
44
44
  )
45
45
  process.exit(2)
46
46
  }
package/dist/index.d.ts CHANGED
@@ -269,7 +269,7 @@ declare const envelopePath: (root: string, tool: string) => string;
269
269
  declare class UnbalancedEnvelope extends Error {
270
270
  constructor(message: string);
271
271
  }
272
- declare const writeEnvelope: ({ envelope, next, root, }: {
272
+ declare const writeEnvelope: ({ envelope, next, root }: {
273
273
  envelope: ReportEnvelope;
274
274
  /** The command a reader should run to see the accounting for themselves. */
275
275
  next: string;
@@ -326,7 +326,7 @@ declare const heavySlotDir: () => string;
326
326
  declare const describeHolders: (holders: HeavySlotHolder[]) => string;
327
327
  declare class HeavySlotTimeout extends Error {
328
328
  }
329
- declare const takeSlot: ({ command, cwd, dir, pollMs, say, waitMs, }: {
329
+ declare const takeSlot: ({ command, cwd, dir, pollMs, say, waitMs }: {
330
330
  command: string;
331
331
  cwd?: string;
332
332
  dir?: string;
@@ -355,7 +355,7 @@ declare const heavyLockPath: () => string;
355
355
  * cleared is worse than no lock. The wait is bounded and says who it is waiting for: a run that
356
356
  * hangs silently for half an hour is indistinguishable from a run that is broken.
357
357
  */
358
- declare const acquireExclusive: ({ noticeMs, path, pollMs, say, timeoutSeconds, }?: {
358
+ declare const acquireExclusive: ({ noticeMs, path, pollMs, say, timeoutSeconds }?: {
359
359
  noticeMs?: number;
360
360
  path?: string;
361
361
  pollMs?: number;
@@ -372,7 +372,7 @@ declare const acquireExclusive: ({ noticeMs, path, pollMs, say, timeoutSeconds,
372
372
  * So each counter plants a known-bad input and must read it. The run stops at the first counter that
373
373
  * reads 0 or throws: the rest of the report would be about a gate whose first gate is not a gate.
374
374
  */
375
- declare const runProve: ({ counters, cwd, exclusiveVia, tier, }: {
375
+ declare const runProve: ({ counters, cwd, exclusiveVia, tier }: {
376
376
  counters: Counter[];
377
377
  cwd: string;
378
378
  /**
@@ -394,7 +394,7 @@ declare const runProve: ({ counters, cwd, exclusiveVia, tier, }: {
394
394
  * seconds gets run less often than one that takes four, and a gate nobody runs enforces nothing —
395
395
  * but a skipped counter that printed OK would be worse than not running at all.
396
396
  */
397
- declare const runRatchet: ({ counters, cwd, tier, }: {
397
+ declare const runRatchet: ({ counters, cwd, tier }: {
398
398
  counters: Counter[];
399
399
  cwd: string;
400
400
  tier?: string;
@@ -405,7 +405,7 @@ declare const runRatchet: ({ counters, cwd, tier, }: {
405
405
  * the tier left out says so by name — printing a number for it would be the stale OK this exists
406
406
  * to prevent.
407
407
  */
408
- declare const formatReport: ({ adopted, measurements, refusals, rewritten, }: RatchetResult) => string;
408
+ declare const formatReport: ({ adopted, measurements, refusals, rewritten }: RatchetResult) => string;
409
409
  declare const formatProve: ({ proofs, proven }: ProveResult) => string;
410
410
 
411
411
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geonosis/ratchet",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "types": "./dist/index.d.ts",
5
5
  "description": "Debt as a number that may only shrink — one ratchet, pluggable counters.",
6
6
  "keywords": [