@humansecurity/expo-mobile-sdk 1.0.5 → 1.0.6

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/CHANGELOG.md ADDED
@@ -0,0 +1,16 @@
1
+ # Changelog
2
+ For Expo wrapper versions
3
+
4
+ ## [1.0.5] - 09-09-2025
5
+ ### Updated wrapper version to Expo 53 and native sdk version 4.2.0 to include new human_session.
6
+ - Expo version: "^53.0.0"
7
+ - react-native: "0.76.9" - "react": "^18.2.0"
8
+ - iOS SDK version: 4.2.0
9
+ - Android SDK version: 4.2.0 - copmiled speacially with kotlin 1.9.25
10
+
11
+ ## [1.0.4] - 09-02-2025
12
+ ### Released wrapper to support easy Expo integration.
13
+ - Expo version: "~51.0.37" - devDependencies - dependencies - "^53.0.0"
14
+ - react-native: "0.74.5" - devDependencies
15
+ - iOS SDK version: 4.0.3
16
+ - Android SDK version: 4.1.0
@@ -32,20 +32,20 @@ if (useManagedAndroidSdkVersions) {
32
32
  }
33
33
 
34
34
  dependencies {
35
- implementation files('libs/HUMAN-4.2.0.aar')
36
- implementation "androidx.core:core-ktx:1.13.1"
37
- implementation "androidx.lifecycle:lifecycle-process:2.8.2"
38
- implementation "androidx.datastore:datastore-preferences:1.1.1"
39
- implementation "com.google.android.material:material:1.12.0"
40
- implementation "com.fasterxml.uuid:java-uuid-generator:4.3.0"
41
- implementation "io.ktor:ktor-client-okhttp:2.3.11"
35
+ implementation files('libs/HUMAN-4.2.1.aar')
36
+ implementation("androidx.core:core-ktx:1.15.0") // any version (select 1.10.1 if your app has 'targetSdkVersion 33')
37
+ implementation("androidx.lifecycle:lifecycle-process:2.8.7") // min v2.6.0 (select 2.6.2 if your app has 'targetSdkVersion 33')
38
+ implementation("androidx.datastore:datastore-preferences:1.1.1") // any version (select 1.0.0 if your app targets API 33)
39
+ implementation("com.google.android.material:material:1.12.0") // min v1.6.0 (select 1.9.0 if your app has 'targetSdkVersion 33')
40
+ implementation("com.fasterxml.uuid:java-uuid-generator:4.3.0") // min v3.0.0
41
+ implementation("io.ktor:ktor-client-okhttp:3.0.3") // min v3.0.0
42
42
  }
43
43
 
44
44
  android {
45
45
  namespace "expo.modules.humansdk"
46
46
  defaultConfig {
47
- versionCode 5
48
- versionName "1.0.5"
47
+ versionCode 6
48
+ versionName "1.0.6"
49
49
  }
50
50
  lintOptions {
51
51
  abortOnError false
Binary file
@@ -1,4 +1,7 @@
1
1
  import { HSPolicy, HSBotDefenderChallengeResult } from "./ExpoHumanSdk.types";
2
+ export type Subscription = {
3
+ remove: () => void;
4
+ };
2
5
  declare class ExpoHumanSdkModule {
3
6
  sdkVersion(): string;
4
7
  startWithAppId(appId: string, policy?: HSPolicy): Promise<void>;
@@ -19,7 +22,7 @@ declare class ExpoHumanSdkModule {
19
22
  [key: string]: string;
20
23
  }, appId?: string): void;
21
24
  }
22
- export declare const addEventListener: (eventName: string, listener: (data: any) => void) => import("expo-modules-core/build/ts-declarations/EventEmitter").EventSubscription;
25
+ export declare const addEventListener: (eventName: string, listener: (data: any) => void) => Subscription;
23
26
  declare const _default: ExpoHumanSdkModule;
24
27
  export default _default;
25
28
  //# sourceMappingURL=ExpoHumanSdkModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExpoHumanSdkModule.d.ts","sourceRoot":"","sources":["../src/ExpoHumanSdkModule.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AAK9E,OAAO,OAAO,kBAAkB;IAC9B,UAAU,IAAI,MAAM;IAEpB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IAC/D,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;IACnE,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG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],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItE,MAAM,YAAY,GAAG,IAAI,YAAY,CAAW,mBAAmB,CAAC,eAAe,CAAC,CAAC,CAAC;AAgCtF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,SAAiB,EACjB,QAA6B,EAC7B,EAAE;IACF,OAAO,YAAY,CAAC,WAAW,CAAC,SAA2B,EAAE,QAAQ,CAAC,CAAC;AACzE,CAAC,CAAC;AAEF,yDAAyD;AACzD,eAAe,mBAAmB,CAAqB,eAAe,CAAC,CAAC","sourcesContent":["import { requireNativeModule, EventEmitter } from \"expo-modules-core\";\nimport { HSPolicy, HSBotDefenderChallengeResult } from \"./ExpoHumanSdk.types\";\n\ntype EventMap = Record<string, (data: any) => void>;\nconst eventEmitter = new EventEmitter<EventMap>(requireNativeModule(\"HumanSecurity\"));\n\ndeclare class ExpoHumanSdkModule {\n sdkVersion(): string;\n\n startWithAppId(appId: string, policy?: HSPolicy): Promise<void>;\n startWithAppIds(appIds: string[], policy?: HSPolicy): Promise<void>;\n vid(appId: string): string | null;\n\n // BD functionality\n headersForURLRequest(appId?: string): { [key: string]: string };\n handleResponse(\n response: string,\n code: number,\n url: string,\n ): Promise<HSBotDefenderChallengeResult>;\n canHandleResponse(response: string, code: number, url: string): boolean;\n challengeReferenceId(): string;\n setCustomParameters(\n parameters: { [key: string]: string },\n appId?: string,\n ): void;\n\n // Adding AD functions\n setUserId(userId: string | null, appId?: string): void;\n registerOutgoingUrlRequest(url: string, appId?: string): void;\n setAdditionalData(\n parameters: { [key: string]: string },\n appId?: string,\n ): void;\n}\n\nexport const addEventListener = (\n eventName: string,\n listener: (data: any) => void,\n) => {\n return eventEmitter.addListener(eventName as keyof EventMap, listener);\n};\n\n// This call loads the native module object from the JSI.\nexport default requireNativeModule<ExpoHumanSdkModule>(\"HumanSecurity\");\n"]}
1
+ {"version":3,"file":"ExpoHumanSdkModule.js","sourceRoot":"","sources":["../src/ExpoHumanSdkModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAItE,MAAM,YAAY,GAAG,IAAI,YAAY,CAAW,mBAAmB,CAAC,eAAe,CAAC,CAAC,CAAC;AAkCtF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,SAAiB,EACjB,QAA6B,EACf,EAAE;IAChB,OAAO,YAAY,CAAC,WAAW,CAAC,SAA2B,EAAE,QAAQ,CAAC,CAAC;AACzE,CAAC,CAAC;AAEF,yDAAyD;AACzD,eAAe,mBAAmB,CAAqB,eAAe,CAAC,CAAC","sourcesContent":["import { requireNativeModule, EventEmitter } from \"expo-modules-core\";\nimport { HSPolicy, HSBotDefenderChallengeResult } from \"./ExpoHumanSdk.types\";\n\ntype EventMap = Record<string, (data: any) => void>;\nconst eventEmitter = new EventEmitter<EventMap>(requireNativeModule(\"HumanSecurity\"));\n\nexport type Subscription = { remove: () => void };\n\ndeclare class ExpoHumanSdkModule {\n sdkVersion(): string;\n\n startWithAppId(appId: string, policy?: HSPolicy): Promise<void>;\n startWithAppIds(appIds: string[], policy?: HSPolicy): Promise<void>;\n vid(appId: string): string | null;\n\n // BD functionality\n headersForURLRequest(appId?: string): { [key: string]: string };\n handleResponse(\n response: string,\n code: number,\n url: string,\n ): Promise<HSBotDefenderChallengeResult>;\n canHandleResponse(response: string, code: number, url: string): boolean;\n challengeReferenceId(): string;\n setCustomParameters(\n parameters: { [key: string]: string },\n appId?: string,\n ): void;\n\n // Adding AD functions\n setUserId(userId: string | null, appId?: string): void;\n registerOutgoingUrlRequest(url: string, appId?: string): void;\n setAdditionalData(\n parameters: { [key: string]: string },\n appId?: string,\n ): void;\n}\n\nexport const addEventListener = (\n eventName: string,\n listener: (data: any) => void,\n): Subscription => {\n return eventEmitter.addListener(eventName as keyof EventMap, listener);\n};\n\n// This call loads the native module object from the JSI.\nexport default requireNativeModule<ExpoHumanSdkModule>(\"HumanSecurity\");\n"]}
@@ -22,7 +22,7 @@ export declare class HumanSecurity {
22
22
  setCustomParameters(parameters: {
23
23
  [key: string]: string;
24
24
  }, appId?: string): void;
25
- addListener(eventName: string, callback: (data: any) => void): import("expo-modules-core/build/ts-declarations/EventEmitter").EventSubscription;
25
+ addListener(eventName: string, callback: (data: any) => void): import("./ExpoHumanSdkModule").Subscription;
26
26
  };
27
27
  static AD: {
28
28
  setUserId(userId: string | null, appId?: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@humansecurity/expo-mobile-sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "An Expo module to wrap human native SDK for Expo users.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -26,17 +26,17 @@
26
26
  "homepage": "https://github.com/PerimeterX/human-security-ios-sdk#readme",
27
27
  "devDependencies": {
28
28
  "expo": "^53.0.0",
29
- "expo-modules-core": "^2.2.3",
30
- "expo-module-scripts": "^4.0.0",
31
- "react": "18.2.0",
32
- "react-native": "0.76.9",
33
- "@types/react": "~18.2.79",
34
- "typescript": "^5.4.0"
29
+ "expo-modules-core": "^3.0.17",
30
+ "expo-module-scripts": "^5.0.7",
31
+ "react": "18.3.1",
32
+ "react-native": "0.81.4",
33
+ "@types/react": "~19.1.0",
34
+ "typescript": "^5.9.2"
35
35
  },
36
36
  "peerDependencies": {
37
- "expo": "^53.0.0",
38
- "expo-modules-core": "^2.2.0",
39
- "react": "^18.2.0",
40
- "react-native": "^0.76.0"
37
+ "expo": "^53 || ^54",
38
+ "expo-modules-core": "^3.0.0",
39
+ "react": ">=18",
40
+ "react-native": ">=0.76"
41
41
  }
42
42
  }
Binary file