@capturebridge/sdk 0.11.5 → 0.12.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.
- package/CHANGELOG.md +7 -0
- package/Common.js +9 -2
- package/Version.js +7 -7
- package/package.json +8 -8
- package/types.d.ts +0 -126
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.12.0] - 2024-08-08
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- `BASE_URL` will default to `window.location.origin` if available, else
|
|
13
|
+
https://local.capturebridge.net:9001) will be used.
|
|
14
|
+
|
|
8
15
|
## [0.11.4] - 2024-07-29
|
|
9
16
|
|
|
10
17
|
### Added
|
package/Common.js
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @summary Default
|
|
2
|
+
* @summary Default URL for API requests.
|
|
3
|
+
* @constant
|
|
4
|
+
* @type {string}
|
|
5
|
+
*/
|
|
6
|
+
export const DEFAULT_URL = 'https://local.capturebridge.net:9001'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @summary Base URL for API requests.
|
|
3
10
|
* @constant
|
|
4
11
|
* @type {string}
|
|
5
12
|
* @default {@link https://local.capturebridge.net:9001}
|
|
6
13
|
*/
|
|
7
|
-
export const BASE_URL =
|
|
14
|
+
export const BASE_URL = window?.location?.origin ?? DEFAULT_URL
|
|
8
15
|
|
|
9
16
|
/**
|
|
10
17
|
* Common {@link https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API|Fetch}
|
package/Version.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @summary SDK Version as published on
|
|
3
|
-
* {@link https://www.npmjs.com/package/@capturebridge/sdk|NPM}
|
|
4
|
-
* @constant
|
|
5
|
-
* @type {string}
|
|
6
|
-
*/
|
|
7
|
-
const VERSION = '0.
|
|
1
|
+
/**
|
|
2
|
+
* @summary SDK Version as published on
|
|
3
|
+
* {@link https://www.npmjs.com/package/@capturebridge/sdk|NPM}
|
|
4
|
+
* @constant
|
|
5
|
+
* @type {string}
|
|
6
|
+
*/
|
|
7
|
+
const VERSION = '0.12.0'
|
|
8
8
|
export default VERSION
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@capturebridge/sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Capture Bridge JavaScript SDK for web applications",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"types": "types.d.ts",
|
|
7
|
-
"license": "Apache-2.0"
|
|
8
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@capturebridge/sdk",
|
|
3
|
+
"version": "0.12.0",
|
|
4
|
+
"description": "Capture Bridge JavaScript SDK for web applications",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"types": "types.d.ts",
|
|
7
|
+
"license": "Apache-2.0"
|
|
8
|
+
}
|
package/types.d.ts
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
declare module '@capturebridge/sdk/Camera' {
|
|
3
|
-
const Camera: any;
|
|
4
|
-
export default Camera;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
declare module '@capturebridge/sdk/CanonCamera' {
|
|
8
|
-
const CanonCamera: any;
|
|
9
|
-
export default CanonCamera;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare module '@capturebridge/sdk/CaptureBridge' {
|
|
13
|
-
const CaptureBridge: any;
|
|
14
|
-
export default CaptureBridge;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
declare module '@capturebridge/sdk/CapturePlugin' {
|
|
18
|
-
const CapturePlugin: any;
|
|
19
|
-
export default CapturePlugin;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
declare module '@capturebridge/sdk/Device' {
|
|
23
|
-
const Device: any;
|
|
24
|
-
export default Device;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
declare module '@capturebridge/sdk/ICAO' {
|
|
28
|
-
const ICAO: any;
|
|
29
|
-
export default ICAO;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
declare module '@capturebridge/sdk/Probe' {
|
|
33
|
-
const Probe: any;
|
|
34
|
-
export default Probe;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
declare module '@capturebridge/sdk/Candidate' {
|
|
38
|
-
const Candidate: any;
|
|
39
|
-
export default Candidate;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
declare module '@capturebridge/sdk/IFace' {
|
|
43
|
-
const IFace: any;
|
|
44
|
-
export default IFace;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
declare module '@capturebridge/sdk/ImageSource' {
|
|
48
|
-
const ImageSource: any;
|
|
49
|
-
export default ImageSource;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
declare module '@capturebridge/sdk/Logs' {
|
|
53
|
-
const Logs: any;
|
|
54
|
-
export default Logs;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
declare module '@capturebridge/sdk/MockCamera' {
|
|
58
|
-
const MockCamera: any;
|
|
59
|
-
export default MockCamera;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
declare module '@capturebridge/sdk/Plugin' {
|
|
63
|
-
const Plugin: any;
|
|
64
|
-
export default Plugin;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
declare module '@capturebridge/sdk/Scanner' {
|
|
68
|
-
const Scanner: any;
|
|
69
|
-
export default Scanner;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
declare module '@capturebridge/sdk/SignatureTablet' {
|
|
73
|
-
const SignatureTablet: any;
|
|
74
|
-
export default SignatureTablet;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
declare module '@capturebridge/sdk/DisplayWidget' {
|
|
78
|
-
const DisplayWidget: any;
|
|
79
|
-
export default DisplayWidget;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
declare module '@capturebridge/sdk/TextButton' {
|
|
83
|
-
const TextButton: any;
|
|
84
|
-
export default TextButton;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
declare module '@capturebridge/sdk/Text' {
|
|
88
|
-
const Text: any;
|
|
89
|
-
export default Text;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
declare module '@capturebridge/sdk/Image' {
|
|
93
|
-
const Image: any;
|
|
94
|
-
export default Image;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
declare module '@capturebridge/sdk/StreamingCapturePlugin' {
|
|
98
|
-
const StreamingCapturePlugin: any;
|
|
99
|
-
export default StreamingCapturePlugin;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
declare module '@capturebridge/sdk/TopazSigGem' {
|
|
103
|
-
const TopazSigGem: any;
|
|
104
|
-
export default TopazSigGem;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
declare module '@capturebridge/sdk/ControlProperty' {
|
|
108
|
-
const ControlProperty: any;
|
|
109
|
-
export default ControlProperty;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
declare module '@capturebridge/sdk/DeviceForm' {
|
|
113
|
-
const DeviceForm: any;
|
|
114
|
-
export default DeviceForm;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
declare module '@capturebridge/sdk/Verifone' {
|
|
118
|
-
const Verifone: any;
|
|
119
|
-
export default Verifone;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
declare module '@capturebridge/sdk/WindowsScanner' {
|
|
123
|
-
const WindowsScanner: any;
|
|
124
|
-
export default WindowsScanner;
|
|
125
|
-
}
|
|
126
|
-
|