frida-fs 5.2.2 → 5.2.3

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 (2) hide show
  1. package/dist/index.js +8 -1
  2. package/package.json +1 -1
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.2",
3
+ "version": "5.2.3",
4
4
  "description": "Create a stream from a filesystem resource",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",