@sayknow-cli/natives 0.4.0 → 0.4.2

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/native/index.d.ts CHANGED
@@ -404,7 +404,7 @@ export declare class Shell {
404
404
  * `packages/natives/native/index.js` (which derives the name from
405
405
  * `package.json#version`).
406
406
  */
407
- export declare function __piNativesV0_4_0(): void
407
+ export declare function __piNativesV0_4_2(): void
408
408
 
409
409
  /**
410
410
  * Apply conservative pre-execution rewrites to a bash command.
package/native/index.js CHANGED
@@ -29,7 +29,7 @@ export const RecoveryFsRoot = nativeBindings.RecoveryFsRoot;
29
29
  export const Shell = nativeBindings.Shell;
30
30
 
31
31
  // functions
32
- export const __piNativesV0_4_0 = nativeBindings.__piNativesV0_4_0;
32
+ export const __piNativesV0_4_2 = nativeBindings.__piNativesV0_4_2;
33
33
  export const applyBashFixups = nativeBindings.applyBashFixups;
34
34
  export const applyOwnerOnlyFdSecurity = nativeBindings.applyOwnerOnlyFdSecurity;
35
35
  export const applyOwnerOnlyPathSecurity = nativeBindings.applyOwnerOnlyPathSecurity;
@@ -130,7 +130,8 @@ export function resolveLoaderCandidates({
130
130
  versionedDir,
131
131
  userDataDir,
132
132
  }) {
133
- const sourceNativeDirs = [nativeDir, platformNativeDir].filter(dir => typeof dir === "string" && dir.length > 0);
133
+ const nestedPlatformNativeDir = path.join(nativeDir, "..", "node_modules", "@sayknow-cli", `natives-${process.platform}-${process.arch}`, "native");
134
+ const sourceNativeDirs = [nativeDir, platformNativeDir, nestedPlatformNativeDir].filter(dir => typeof dir === "string" && dir.length > 0);
134
135
  const baseReleaseCandidates = addonFilenames.flatMap(filename => [
135
136
  ...sourceNativeDirs.map(dir => path.join(dir, filename)),
136
137
  path.join(execDir, filename),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sayknow-cli/natives",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Native Rust bindings for grep, clipboard, image processing, syntax highlighting, PTY, and shell operations via N-API",
5
5
  "type": "module",
6
6
  "homepage": "https://sayknow-cli.com",
@@ -61,11 +61,11 @@
61
61
  "README.md"
62
62
  ],
63
63
  "optionalDependencies": {
64
- "@sayknow-cli/natives-darwin-arm64": "0.3.16",
65
- "@sayknow-cli/natives-darwin-x64": "0.3.16",
66
- "@sayknow-cli/natives-linux-arm64": "0.3.16",
67
- "@sayknow-cli/natives-linux-x64": "0.3.16",
68
- "@sayknow-cli/natives-win32-x64": "0.3.16"
64
+ "@sayknow-cli/natives-darwin-arm64": "0.4.2",
65
+ "@sayknow-cli/natives-darwin-x64": "0.4.2",
66
+ "@sayknow-cli/natives-linux-arm64": "0.4.2",
67
+ "@sayknow-cli/natives-linux-x64": "0.4.2",
68
+ "@sayknow-cli/natives-win32-x64": "0.4.2"
69
69
  },
70
70
  "exports": {
71
71
  ".": {