sloppycode 0.2.134 → 0.2.135

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.
@@ -46,6 +46,39 @@ var __export = (target, all) => {
46
46
  var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
47
47
  var __promiseAll = (args2) => Promise.all(args2);
48
48
  var __require = import.meta.require;
49
+ var __using = (stack, value, async) => {
50
+ if (value != null) {
51
+ if (typeof value !== "object" && typeof value !== "function")
52
+ throw TypeError('Object expected to be assigned to "using" declaration');
53
+ let dispose;
54
+ if (async)
55
+ dispose = value[Symbol.asyncDispose];
56
+ if (dispose === undefined)
57
+ dispose = value[Symbol.dispose];
58
+ if (typeof dispose !== "function")
59
+ throw TypeError("Object not disposable");
60
+ stack.push([async, dispose, value]);
61
+ } else if (async) {
62
+ stack.push([async]);
63
+ }
64
+ return value;
65
+ };
66
+ var __callDispose = (stack, error, hasError) => {
67
+ let fail = (e) => error = hasError ? new SuppressedError(e, error, "An error was suppressed during disposal") : (hasError = true, e), next = (it) => {
68
+ while (it = stack.pop()) {
69
+ try {
70
+ var result = it[1] && it[1].call(it[2]);
71
+ if (it[0])
72
+ return Promise.resolve(result).then(next, (e) => (fail(e), next()));
73
+ } catch (e) {
74
+ fail(e);
75
+ }
76
+ }
77
+ if (hasError)
78
+ throw error;
79
+ };
80
+ return next();
81
+ };
49
82
 
50
83
  // ../../node_modules/.bun/web-tree-sitter@0.25.10/node_modules/web-tree-sitter/tree-sitter.js
51
84
  var exports_tree_sitter = {};
@@ -1604,7 +1637,7 @@ ${JSON.stringify(symbolNames, null, 2)}`);
1604
1637
  throw new Error(response.status + " : " + response.url);
1605
1638
  }, "readAsync");
1606
1639
  }
1607
- }
1640
+ } else {}
1608
1641
  var out = Module["print"] || console.log.bind(console);
1609
1642
  var err = Module["printErr"] || console.error.bind(console);
1610
1643
  Object.assign(Module, moduleOverrides);