@velion-la/onboarding-sdk-react-native 1.4.0-beta.4 → 1.4.0-beta.5

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 CHANGED
@@ -52,6 +52,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
52
52
 
53
53
  ### Fixed
54
54
 
55
+ - The SDK reports its real version (OSDKR-48). `X-Velion-SDK-Version` and
56
+ `X-Velion-Client` always said `0.1.0`, a constant nobody bumped. The
57
+ constant is now generated from `sdk/package.json` on every build and on
58
+ every CI version change, and a test fails if the two drift apart.
55
59
  - A session status the SDK does not know is no longer reported to the host as
56
60
  `MANUAL_REVIEW` (OSDKR-44); it fails with `API_ERROR`. A verdict still pending
57
61
  when the SDK stops waiting (`INITIATED` / `IN_PROGRESS`) keeps mapping to
@@ -5,9 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.SDK_VERSION = void 0;
7
7
  /**
8
- * Compile-time SDK version string sent on every authenticated request as
9
- * `X-Velion-SDK-Version`. Bump it together with `sdk/package.json#version`
10
- * on every release.
8
+ * SDK version sent on every authenticated request as `X-Velion-SDK-Version`
9
+ * and inside `X-Velion-Client`.
10
+ *
11
+ * GENERATED by `sdk/scripts/sync-sdk-version.js` from `sdk/package.json`:
12
+ * do not edit by hand. The build and the CI version bump regenerate it.
11
13
  */
12
- const SDK_VERSION = exports.SDK_VERSION = '0.1.0';
14
+ const SDK_VERSION = exports.SDK_VERSION = '1.4.0-beta.5';
13
15
  //# sourceMappingURL=sdkVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["SDK_VERSION","exports"],"sourceRoot":"../../../src","sources":["utils/sdkVersion.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACO,MAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,OAAgB","ignoreList":[]}
1
+ {"version":3,"names":["SDK_VERSION","exports"],"sourceRoot":"../../../src","sources":["utils/sdkVersion.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,cAAuB","ignoreList":[]}
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
 
3
3
  /**
4
- * Compile-time SDK version string sent on every authenticated request as
5
- * `X-Velion-SDK-Version`. Bump it together with `sdk/package.json#version`
6
- * on every release.
4
+ * SDK version sent on every authenticated request as `X-Velion-SDK-Version`
5
+ * and inside `X-Velion-Client`.
6
+ *
7
+ * GENERATED by `sdk/scripts/sync-sdk-version.js` from `sdk/package.json`:
8
+ * do not edit by hand. The build and the CI version bump regenerate it.
7
9
  */
8
- export const SDK_VERSION = '0.1.0';
10
+ export const SDK_VERSION = '1.4.0-beta.5';
9
11
  //# sourceMappingURL=sdkVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["SDK_VERSION"],"sourceRoot":"../../../src","sources":["utils/sdkVersion.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,WAAW,GAAG,OAAgB","ignoreList":[]}
1
+ {"version":3,"names":["SDK_VERSION"],"sourceRoot":"../../../src","sources":["utils/sdkVersion.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,WAAW,GAAG,cAAuB","ignoreList":[]}
@@ -1,7 +1,9 @@
1
1
  /**
2
- * Compile-time SDK version string sent on every authenticated request as
3
- * `X-Velion-SDK-Version`. Bump it together with `sdk/package.json#version`
4
- * on every release.
2
+ * SDK version sent on every authenticated request as `X-Velion-SDK-Version`
3
+ * and inside `X-Velion-Client`.
4
+ *
5
+ * GENERATED by `sdk/scripts/sync-sdk-version.js` from `sdk/package.json`:
6
+ * do not edit by hand. The build and the CI version bump regenerate it.
5
7
  */
6
- export declare const SDK_VERSION: "0.1.0";
8
+ export declare const SDK_VERSION: "1.4.0-beta.5";
7
9
  //# sourceMappingURL=sdkVersion.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdkVersion.d.ts","sourceRoot":"","sources":["../../../src/utils/sdkVersion.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAG,OAAgB,CAAC"}
1
+ {"version":3,"file":"sdkVersion.d.ts","sourceRoot":"","sources":["../../../src/utils/sdkVersion.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,EAAG,cAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velion-la/onboarding-sdk-react-native",
3
- "version": "1.4.0-beta.4",
3
+ "version": "1.4.0-beta.5",
4
4
  "description": "Native React Native SDK for the Velion Onboarding (KYC) flow: ID document OCR, passive + active liveness, device fingerprint, OTP verification, address picker, and personal / legal information forms.",
5
5
  "main": "./lib/commonjs/index.js",
6
6
  "module": "./lib/module/index.js",
@@ -38,7 +38,7 @@
38
38
  "lint": "echo 'eslint not configured yet'",
39
39
  "test": "jest",
40
40
  "clean": "del-cli lib",
41
- "build": "bob build",
41
+ "build": "node scripts/sync-sdk-version.js && bob build",
42
42
  "prepack": "npm run build",
43
43
  "release": "release-it"
44
44
  },
@@ -1,6 +1,8 @@
1
1
  /**
2
- * Compile-time SDK version string sent on every authenticated request as
3
- * `X-Velion-SDK-Version`. Bump it together with `sdk/package.json#version`
4
- * on every release.
2
+ * SDK version sent on every authenticated request as `X-Velion-SDK-Version`
3
+ * and inside `X-Velion-Client`.
4
+ *
5
+ * GENERATED by `sdk/scripts/sync-sdk-version.js` from `sdk/package.json`:
6
+ * do not edit by hand. The build and the CI version bump regenerate it.
5
7
  */
6
- export const SDK_VERSION = '0.1.0' as const;
8
+ export const SDK_VERSION = '1.4.0-beta.5' as const;