@archlinter/core 0.4.1 → 0.5.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.
Files changed (3) hide show
  1. package/index.d.ts +1 -0
  2. package/index.js +2 -1
  3. package/package.json +7 -7
package/index.d.ts CHANGED
@@ -143,5 +143,6 @@ export declare function scanSync(
143
143
  path: string,
144
144
  options?: JsScanOptions | undefined | null
145
145
  ): JsScanResult;
146
+ export declare function clearCache(path: string): void;
146
147
  export declare function loadConfig(path?: string | undefined | null): JsConfig;
147
148
  export declare function getDetectors(): Array<JsDetectorInfo>;
package/index.js CHANGED
@@ -284,9 +284,10 @@ if (!nativeBinding) {
284
284
  throw new Error(`Failed to load native binding`);
285
285
  }
286
286
 
287
- const { scan, scanSync, loadConfig, getDetectors } = nativeBinding;
287
+ const { scan, scanSync, clearCache, loadConfig, getDetectors } = nativeBinding;
288
288
 
289
289
  module.exports.scan = scan;
290
290
  module.exports.scanSync = scanSync;
291
+ module.exports.clearCache = clearCache;
291
292
  module.exports.loadConfig = loadConfig;
292
293
  module.exports.getDetectors = getDetectors;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archlinter/core",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "Core library for archlint - programmatic API",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -27,12 +27,12 @@
27
27
  }
28
28
  },
29
29
  "optionalDependencies": {
30
- "@archlinter/core-win32-x64-msvc": "0.4.1",
31
- "@archlinter/core-darwin-x64": "0.4.1",
32
- "@archlinter/core-linux-x64-gnu": "0.4.1",
33
- "@archlinter/core-linux-x64-musl": "0.4.1",
34
- "@archlinter/core-linux-arm64-gnu": "0.4.1",
35
- "@archlinter/core-darwin-arm64": "0.4.1"
30
+ "@archlinter/core-win32-x64-msvc": "0.5.0",
31
+ "@archlinter/core-darwin-x64": "0.5.0",
32
+ "@archlinter/core-linux-x64-gnu": "0.5.0",
33
+ "@archlinter/core-linux-x64-musl": "0.5.0",
34
+ "@archlinter/core-linux-arm64-gnu": "0.5.0",
35
+ "@archlinter/core-darwin-arm64": "0.5.0"
36
36
  },
37
37
  "engines": {
38
38
  "node": ">=18"