react-native-device-integrity 0.2.0 → 0.2.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TurboModule } from 'react-native';
|
|
2
2
|
export type NativeSignal = {
|
|
3
3
|
id: string;
|
|
4
4
|
category: string;
|
|
@@ -10,7 +10,7 @@ export type NativeIntegrityReport = {
|
|
|
10
10
|
signals: NativeSignal[];
|
|
11
11
|
};
|
|
12
12
|
export interface Spec extends TurboModule {
|
|
13
|
-
checkIntegrity(options:
|
|
13
|
+
checkIntegrity(options: Object): Promise<NativeIntegrityReport>;
|
|
14
14
|
}
|
|
15
15
|
declare const _default: Spec | null | undefined;
|
|
16
16
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeDeviceIntegrity.d.ts","sourceRoot":"","sources":["../../../src/NativeDeviceIntegrity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"NativeDeviceIntegrity.d.ts","sourceRoot":"","sources":["../../../src/NativeDeviceIntegrity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,YAAY,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,WAAW,IAAK,SAAQ,WAAW;IAGvC,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACjE;;AAED,wBAAgE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-device-integrity",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Jailbreak, root, hooking, debugger and emulator detection for React Native and Expo",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"types": "./jest/index.d.ts",
|
|
15
15
|
"default": "./jest/index.js"
|
|
16
16
|
},
|
|
17
|
+
"./app.plugin.js": "./app.plugin.js",
|
|
17
18
|
"./package.json": "./package.json"
|
|
18
19
|
},
|
|
19
20
|
"files": [
|
|
@@ -47,7 +48,8 @@
|
|
|
47
48
|
"typecheck": "tsc && tsc -p plugin --noEmit",
|
|
48
49
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
49
50
|
"test": "jest",
|
|
50
|
-
"release": "release-it --only-version"
|
|
51
|
+
"release": "release-it --only-version",
|
|
52
|
+
"check:exports": "node -e \"for (const s of ['react-native-device-integrity/app.plugin.js','react-native-device-integrity/jest','react-native-device-integrity/package.json']) require.resolve(s); console.log('exports ok')\""
|
|
51
53
|
},
|
|
52
54
|
"keywords": [
|
|
53
55
|
"react-native",
|
|
@@ -212,5 +214,8 @@
|
|
|
212
214
|
"eslint"
|
|
213
215
|
],
|
|
214
216
|
"version": "0.63.1"
|
|
217
|
+
},
|
|
218
|
+
"resolutions": {
|
|
219
|
+
"release-it/undici": "7.29.1"
|
|
215
220
|
}
|
|
216
221
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TurboModule } from 'react-native';
|
|
2
2
|
import { TurboModuleRegistry } from 'react-native';
|
|
3
3
|
|
|
4
4
|
export type NativeSignal = {
|
|
@@ -14,9 +14,9 @@ export type NativeIntegrityReport = {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
export interface Spec extends TurboModule {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
): Promise<NativeIntegrityReport>;
|
|
17
|
+
// `Object` (not CodegenTypes.UnsafeObject) so older codegen versions, e.g.
|
|
18
|
+
// React Native 0.79, can parse the spec. Codegen maps it to a generic object.
|
|
19
|
+
checkIntegrity(options: Object): Promise<NativeIntegrityReport>;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export default TurboModuleRegistry.get<Spec>('DeviceIntegrity');
|