@idscan/onboarding 2.2.12 → 2.2.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idscan/onboarding",
3
- "version": "2.2.12",
3
+ "version": "2.2.13",
4
4
  "description": "Wrapper of the IDVC library for DVS Online.",
5
5
  "main": "dist/js/wrapper.js",
6
6
  "types": "dist/@types/src/Wrapper.d.ts",
package/readme.md CHANGED
@@ -46,7 +46,7 @@ There are binary files in the folder which do not have the extension. These file
46
46
  new CopyWebpackPlugin ([
47
47
  {
48
48
  from: 'node_modules/@idscan/onboarding/dist/networks/**/*',
49
- to: 'networks/[folder]/[name].[ext]',
49
+ to: `${networkUrl}/[folder]/[name].[ext]`,
50
50
  toType: 'template'
51
51
  }
52
52
  ])
@@ -82,6 +82,12 @@ Available fields:
82
82
 
83
83
  **chunkPublicPath** (string) - Path to the folder with chunks. Specify the path on the server if you need to remove the folder to another location. The default path is \'networks\'.
84
84
 
85
+ **networkUrl** (boolean) - Path to the folder with neural networks. Specify the path on the server if you need to remove the folder to another location. The default path is \'networks\'.'
86
+
87
+ **useCDN** (boolean) - Flag indicating that you want to load networks from cdn instead of your domain.
88
+
89
+ **preferApiConfig** (boolean) - Flag indicating that you prefer to use IDVC library configuration, that was sent from the DVS Online API, instead of the configuration used when initializing the wrapper.
90
+
85
91
  **callbacks** (object) - object with callback hooks. Available next hooks:
86
92
 
87
93
  - **onChange** - callback-function which will be called after change one step. The returnable value is the object with the type and the image.
@@ -151,6 +157,9 @@ btn.addEventListener('click', () => {
151
157
  **updateConfig** (string) - the method that reinitialize wrapper with new config. Parameter is an JSON encoded IDVC config. Works only in demo mode.
152
158
 
153
159
  ## Version history
160
+ - **2.2.13**
161
+ - Added: new config options 'networkUrl', 'useCDN', 'preferApiConfig'
162
+
154
163
  - **2.2.12**
155
164
  - Updated IDVC component
156
165
  - Updated readme