frida-fs 5.2.2 → 5.2.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/dist/index.d.ts +3 -3
- package/dist/index.js +8 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -20,10 +20,10 @@ declare class WriteStream extends stream.Writable {
|
|
|
20
20
|
_write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void;
|
|
21
21
|
}
|
|
22
22
|
declare function writeFileSync(path: string, data: string | NodeJS.ArrayBufferView, options?: WriteFileOptions): void;
|
|
23
|
-
|
|
23
|
+
type ReadFileOptions = BufferEncoding | {
|
|
24
24
|
encoding?: BufferEncoding;
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
type WriteFileOptions = BufferEncoding | {
|
|
27
27
|
encoding?: BufferEncoding;
|
|
28
28
|
};
|
|
29
29
|
declare const readFileSync: (path: string, options?: ReadFileOptions) => string | Buffer, readlinkSync: (path: string) => string, rmdirSync: (path: string) => void, unlinkSync: (path: string) => void, statSync: (path: string) => Stats, lstatSync: (path: string) => Stats;
|
|
@@ -65,7 +65,7 @@ declare class Stats {
|
|
|
65
65
|
isSymbolicLink(): boolean;
|
|
66
66
|
isSocket(): boolean;
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
type AsyncCallback<T> = (error: Error | null, result?: T) => void;
|
|
69
69
|
export declare function createReadStream(path: string): ReadStream;
|
|
70
70
|
export declare function createWriteStream(path: string): WriteStream;
|
|
71
71
|
export declare const readdir: (args_0: string, args_1: AsyncCallback<string[]>) => void;
|
package/dist/index.js
CHANGED
|
@@ -688,6 +688,14 @@ const statSpecs = {
|
|
|
688
688
|
},
|
|
689
689
|
},
|
|
690
690
|
};
|
|
691
|
+
const linuxStatVersions = {
|
|
692
|
+
ia32: 3,
|
|
693
|
+
x64: 1,
|
|
694
|
+
arm: 3,
|
|
695
|
+
arm64: 0,
|
|
696
|
+
mips: 3,
|
|
697
|
+
};
|
|
698
|
+
const STAT_VER_LINUX = linuxStatVersions[Process.arch];
|
|
691
699
|
let cachedStatSpec = null;
|
|
692
700
|
const statBufSize = 256;
|
|
693
701
|
function getStatSpec() {
|
|
@@ -940,7 +948,6 @@ function _getPosixApi() {
|
|
|
940
948
|
]);
|
|
941
949
|
}
|
|
942
950
|
function invokeXstat(impl, path, buf) {
|
|
943
|
-
const STAT_VER_LINUX = 3;
|
|
944
951
|
return impl(STAT_VER_LINUX, path, buf);
|
|
945
952
|
}
|
|
946
953
|
function makeApi(spec) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "frida-fs",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.4",
|
|
4
4
|
"description": "Create a stream from a filesystem resource",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://github.com/nowsecure/frida-fs#readme",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/frida-gum": "^18.
|
|
27
|
-
"@types/node": "^
|
|
28
|
-
"typescript": "^
|
|
26
|
+
"@types/frida-gum": "^18.3.2",
|
|
27
|
+
"@types/node": "^20.3.1",
|
|
28
|
+
"typescript": "^5.1.3"
|
|
29
29
|
}
|
|
30
30
|
}
|