@capturebridge/sdk 0.19.1 → 0.19.2
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 +9 -0
- package/ICAO.js +2 -1
- package/IFace.js +2 -1
- package/Version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,15 @@ 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
|
+
|
|
9
|
+
## [0.19.2] - 2023-11-18
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- `ICAO.check()`, `IFace.icao()`, and `IFace.match()` will now throw an
|
|
14
|
+
exception if the response from the server is an error (e.g. if an IFace
|
|
15
|
+
license is not present.)
|
|
16
|
+
|
|
8
17
|
## [0.19.0] - 2023-11-13
|
|
9
18
|
|
|
10
19
|
### Added
|
package/ICAO.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Plugin from './Plugin.js'
|
|
2
|
-
import { BASE_URL } from './Common.js'
|
|
2
|
+
import { BASE_URL, checkResponse } from './Common.js'
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* ICAO
|
|
@@ -79,6 +79,7 @@ class ICAO extends Plugin {
|
|
|
79
79
|
}
|
|
80
80
|
const url = `${this.baseUrl}/plugin/${this.id}/icao`
|
|
81
81
|
const response = await fetch(url, options)
|
|
82
|
+
await checkResponse(response)
|
|
82
83
|
return await response.json()
|
|
83
84
|
}
|
|
84
85
|
}
|
package/IFace.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import ICAO from './ICAO.js'
|
|
6
6
|
import ImageSource from './ImageSource.js'
|
|
7
|
-
import { BASE_URL } from './Common.js'
|
|
7
|
+
import { BASE_URL, checkResponse } from './Common.js'
|
|
8
8
|
|
|
9
9
|
// This is not exported as we may eventually detect this from the plugin
|
|
10
10
|
// See: Iface.matchModes()
|
|
@@ -226,6 +226,7 @@ export class IFace extends ICAO {
|
|
|
226
226
|
}
|
|
227
227
|
const url = `${this.baseUrl}/plugin/${this.id}/face/match`
|
|
228
228
|
const response = await fetch(url, options)
|
|
229
|
+
await checkResponse(response)
|
|
229
230
|
return await response.json()
|
|
230
231
|
}
|
|
231
232
|
}
|
package/Version.js
CHANGED