nginx-lint-plugin 0.10.3 → 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.3"
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.3",
3
+ "version": "0.10.4",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
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);