tackbox 0.1.78 → 0.1.79

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/js/report.js CHANGED
@@ -1,6 +1,5 @@
1
1
  // Browser report helper: empty DSN = log-only no-op.
2
- // Mirrors the gmux/sts-wand pattern single funnel for toast,
3
- // Sentry capture, optional diagnostic stream.
2
+ // Single funnel for toast, Sentry capture, optional diagnostic stream.
4
3
 
5
4
  const Sentry = require('@sentry/browser')
6
5
 
@@ -438,9 +438,9 @@ function hasMarkerAbove(context, node, prefix) {
438
438
  // One coherent path analysis for all three legal catch exits: throw and a
439
439
  // Result-boundary return terminate a path; a recognized reporter call is a
440
440
  // sticky event (statements after it on the path are fine). A path reaching the
441
- // end of the handler without a terminator or event swallows. Ported from gmux
442
- // makeHandledAnalysis; reporter recognition stays tackbox origin-gating.
443
- // Result-boundary is kin to the policy layer (specs/general/error-policies.md):
441
+ // end of the handler without a terminator or event swallows. Reporter
442
+ // recognition stays tackbox origin-gating.
443
+ // Result-boundary is kin to the error-policy layer:
444
444
  // annotation-based (no type program) - only a syntactic Result / Attempt /
445
445
  // Promise<Result|Attempt> return type earns the boundary credit.
446
446
 
@@ -633,7 +633,7 @@ function isBareErrReturn(expr, errName) {
633
633
  // return), 'bad' (some path exits unhandled), { reported } (falls through;
634
634
  // reported true when every falling path passed the sticky event). Constructs
635
635
  // not modeled (switch, loops, nested try) are opaque: a hidden return fails
636
- // closed, reporters inside do not count. Ported from gmux. returnIdentity
636
+ // closed, reporters inside do not count. returnIdentity
637
637
  // credits `return <errName>` as terminal (promise handlers only: the settled
638
638
  // value is the error object itself).
639
639
  function makeHandledAnalysis(opts) {
@@ -8,7 +8,7 @@ const {
8
8
  module.exports = {
9
9
  meta: {
10
10
  type: 'problem',
11
- docs: { description: 'every path out of a catch must throw, call a reporter, convert to a Result boundary (return { ok: false, cause: err } when the function returns Result/Attempt), or the try must carry a // no-report: marker. Boundary conversion is kin to the policy layer (specs/general/error-policies.md).' },
11
+ docs: { description: 'every path out of a catch must throw, call a reporter, convert to a Result boundary (return { ok: false, cause: err } when the function returns Result/Attempt), or the try must carry a // no-report: marker. Boundary conversion is kin to the policy layer.' },
12
12
  messages: {
13
13
  swallow: 'every catch path must throw, call a reporter, or convert to a Result boundary',
14
14
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tackbox",
3
- "version": "0.1.78",
3
+ "version": "0.1.79",
4
4
  "description": "ESLint and Markdown lint plugins plus direct error-reporting helpers for JavaScript and TypeScript.",
5
5
  "license": "MIT",
6
6
  "main": "./js/eslint-plugin.js",