nginx-lint-plugin 0.10.2 → 0.10.4

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/README.md CHANGED
@@ -122,7 +122,7 @@ The WIT definition file is bundled with this package, so `jco componentize` can
122
122
  "test": "tsc && node --test dist/plugin.test.js"
123
123
  },
124
124
  "dependencies": {
125
- "nginx-lint-plugin": "^0.10.2"
125
+ "nginx-lint-plugin": "^0.10.4"
126
126
  },
127
127
  "devDependencies": {
128
128
  "@bytecodealliance/componentize-js": "^0.19",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nginx-lint-plugin",
3
- "version": "0.10.2",
3
+ "version": "0.10.4",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,6 +27,6 @@
27
27
  },
28
28
  "devDependencies": {
29
29
  "@bytecodealliance/jco": "^1",
30
- "typescript": "^5"
30
+ "typescript": "^6.0.0"
31
31
  }
32
32
  }
Binary file
@@ -3,3 +3,4 @@ export type ParseOutput = import('./interfaces/nginx-lint-plugin-parser-types.js
3
3
  export type * as NginxLintPluginDataTypes300 from './interfaces/nginx-lint-plugin-data-types.js'; // import nginx-lint:plugin/data-types@3.0.0
4
4
  export type * as NginxLintPluginParserTypes300 from './interfaces/nginx-lint-plugin-parser-types.js'; // import nginx-lint:plugin/parser-types@3.0.0
5
5
  export function parseConfig(source: string, includeContext: Array<string>): ParseOutput;
6
+ export type Result<T, E> = { tag: 'ok', val: T } | { tag: 'err', val: E };
@@ -14,6 +14,8 @@ function promiseWithResolvers() {
14
14
  }
15
15
  }
16
16
 
17
+ const symbolDispose = Symbol.dispose || Symbol.for('dispose');
18
+
17
19
  const _debugLog = (...args) => {
18
20
  if (!globalThis?.process?.env?.JCO_DEBUG) { return; }
19
21
  console.debug(...args);
@@ -1527,8 +1529,9 @@ class Waitable {
1527
1529
 
1528
1530
  const ready = readyFn();
1529
1531
  if (ready && ASYNC_DETERMINISM === 'random') {
1530
- const coinFlip = _coinFlip();
1531
- if (coinFlip) { return true }
1532
+ // const coinFlip = _coinFlip();
1533
+ // if (coinFlip) { return true }
1534
+ return true;
1532
1535
  }
1533
1536
 
1534
1537
  const keepGoing = await this.immediateSuspend({ cancellable, readyFn });