frida-fs 7.0.0 → 7.0.1

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 +4 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -815,8 +815,10 @@ function statsReadField(name, path) {
815
815
  return undefined;
816
816
  }
817
817
  const [offset, type] = field;
818
- const read = (typeof type === "string") ? NativePointer.prototype["read" + type] : type;
819
- const value = read.call(this.buffer.add(offset), path);
818
+ const address = this.buffer.add(offset);
819
+ const value = (typeof type === "string")
820
+ ? NativePointer.prototype["read" + type].call(address)
821
+ : type.call(address, path);
820
822
  if (value instanceof Int64 || value instanceof UInt64)
821
823
  return value.valueOf();
822
824
  return value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frida-fs",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
4
4
  "description": "Create a stream from a filesystem resource",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",