@gajae-code/natives 0.12.4 → 0.12.5
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 +1 -15
- package/native/index.js +1 -2
- package/native/loader-state.js +0 -3
- package/package.json +6 -6
package/native/index.d.ts
CHANGED
|
@@ -491,7 +491,7 @@ export declare function __piNativesPublishOutcomeV1(): void
|
|
|
491
491
|
* `packages/natives/native/index.js` (which derives the name from
|
|
492
492
|
* `package.json#version`).
|
|
493
493
|
*/
|
|
494
|
-
export declare function
|
|
494
|
+
export declare function __piNativesV0_12_5(): void
|
|
495
495
|
|
|
496
496
|
/**
|
|
497
497
|
* Apply conservative pre-execution rewrites to a bash command.
|
|
@@ -842,16 +842,6 @@ export declare function encodeSixel(bytes: Uint8Array, targetWidthPx: number, ta
|
|
|
842
842
|
*/
|
|
843
843
|
export declare function exactRemoveDirectoryTree(path: string, snapshot: NativeDirectoryTreeSnapshot): NativeExactUnlinkResult
|
|
844
844
|
|
|
845
|
-
/**
|
|
846
|
-
* Replace a staged regular file only after deleting the exact expected
|
|
847
|
-
*
|
|
848
|
-
* The expected destination identity must describe a regular file, not a
|
|
849
|
-
* directory or detach-only request.
|
|
850
|
-
* Publication uses a retained source handle and a no-replace rename, so a
|
|
851
|
-
* successor installed after deletion is preserved.
|
|
852
|
-
*/
|
|
853
|
-
export declare function exactReplacePath(sourcePath: string, destinationPath: string, expectedDestination: NativeExactFileIdentity): NativeExactUnlinkResult
|
|
854
|
-
|
|
855
845
|
/**
|
|
856
846
|
* Restore only the detached object that still has the supplied platform
|
|
857
847
|
* identity. The detached and original paths must retain the same validated
|
|
@@ -1736,10 +1726,6 @@ export interface NativeExactFileIdentity {
|
|
|
1736
1726
|
export interface NativeExactUnlinkResult {
|
|
1737
1727
|
ok: boolean
|
|
1738
1728
|
code?: string
|
|
1739
|
-
/**
|
|
1740
|
-
* On Windows this is returned in the caller's namespace; retained handle
|
|
1741
|
-
* operations continue to use the volume-GUID canonical path internally.
|
|
1742
|
-
*/
|
|
1743
1729
|
detachedPath?: string
|
|
1744
1730
|
retainedSuccessorPath?: string
|
|
1745
1731
|
/**
|
package/native/index.js
CHANGED
|
@@ -30,7 +30,7 @@ export const Shell = nativeBindings.Shell;
|
|
|
30
30
|
|
|
31
31
|
// functions
|
|
32
32
|
export const __piNativesPublishOutcomeV1 = nativeBindings.__piNativesPublishOutcomeV1;
|
|
33
|
-
export const
|
|
33
|
+
export const __piNativesV0_12_5 = nativeBindings.__piNativesV0_12_5;
|
|
34
34
|
export const applyBashFixups = nativeBindings.applyBashFixups;
|
|
35
35
|
export const applyOwnerOnlyFdSecurity = nativeBindings.applyOwnerOnlyFdSecurity;
|
|
36
36
|
export const applyOwnerOnlyPathSecurity = nativeBindings.applyOwnerOnlyPathSecurity;
|
|
@@ -43,7 +43,6 @@ export const detectMacOSAppearance = nativeBindings.detectMacOSAppearance;
|
|
|
43
43
|
export const diffLines = nativeBindings.diffLines;
|
|
44
44
|
export const encodeSixel = nativeBindings.encodeSixel;
|
|
45
45
|
export const exactRemoveDirectoryTree = nativeBindings.exactRemoveDirectoryTree;
|
|
46
|
-
export const exactReplacePath = nativeBindings.exactReplacePath;
|
|
47
46
|
export const exactRestore = nativeBindings.exactRestore;
|
|
48
47
|
export const exactUnlink = nativeBindings.exactUnlink;
|
|
49
48
|
export const executeShell = nativeBindings.executeShell;
|
package/native/loader-state.js
CHANGED
|
@@ -421,9 +421,6 @@ export function validateLoadedBindings(ctx, bindings, candidate) {
|
|
|
421
421
|
if (typeof bindings.probeWindowsJobMemory !== "function") {
|
|
422
422
|
throw new Error(`Loaded ${candidate} but it lacks required memory probe capability \`probeWindowsJobMemory\`.`);
|
|
423
423
|
}
|
|
424
|
-
if (typeof bindings.exactReplacePath !== "function") {
|
|
425
|
-
throw new Error(`Loaded ${candidate} but it lacks required exact replacement capability \`exactReplacePath\`.`);
|
|
426
|
-
}
|
|
427
424
|
}
|
|
428
425
|
|
|
429
426
|
function buildHelpMessage(ctx) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gajae-code/natives",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.5",
|
|
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://gajae-code.com",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"README.md"
|
|
62
62
|
],
|
|
63
63
|
"optionalDependencies": {
|
|
64
|
-
"@gajae-code/natives-darwin-arm64": "0.12.
|
|
65
|
-
"@gajae-code/natives-darwin-x64": "0.12.
|
|
66
|
-
"@gajae-code/natives-linux-arm64": "0.12.
|
|
67
|
-
"@gajae-code/natives-linux-x64": "0.12.
|
|
68
|
-
"@gajae-code/natives-win32-x64": "0.12.
|
|
64
|
+
"@gajae-code/natives-darwin-arm64": "0.12.5",
|
|
65
|
+
"@gajae-code/natives-darwin-x64": "0.12.5",
|
|
66
|
+
"@gajae-code/natives-linux-arm64": "0.12.5",
|
|
67
|
+
"@gajae-code/natives-linux-x64": "0.12.5",
|
|
68
|
+
"@gajae-code/natives-win32-x64": "0.12.5"
|
|
69
69
|
},
|
|
70
70
|
"exports": {
|
|
71
71
|
".": {
|