frida-screenshot 3.0.3 → 4.0.0

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 (3) hide show
  1. package/index.js +2 -2
  2. package/lib/ios.js +1 -1
  3. package/package.json +2 -1
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
- const ios = require('./lib/ios');
1
+ import { ios } from './lib/ios.js';
2
2
 
3
3
  const IOS = Symbol('ios');
4
4
  const UNKNOWN = Symbol('unknown');
5
5
 
6
- module.exports = function (view) {
6
+ export default function screenshot(view) {
7
7
  if (getOS() === IOS) {
8
8
  return ios(view);
9
9
  } else {
package/lib/ios.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const CGFloat = (Process.pointerSize === 4) ? 'float' : 'double';
2
2
  const CGSize = [CGFloat, CGFloat];
3
3
 
4
- module.exports = function (view) {
4
+ export function ios(view) {
5
5
  return performOnMainThread(function () {
6
6
  const api = getApi();
7
7
 
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "frida-screenshot",
3
- "version": "3.0.3",
3
+ "version": "4.0.0",
4
4
  "description": "Grab screenshots using Frida",
5
5
  "main": "index.js",
6
+ "type": "module",
6
7
  "files": [
7
8
  "/index.js",
8
9
  "/lib/**/*.js"