@ham2k/extension-tools 0.6.0 → 0.7.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/h2kext.mjs +5 -2
- package/package.json +1 -1
package/h2kext.mjs
CHANGED
|
@@ -28,8 +28,10 @@ import yazl from "yazl"
|
|
|
28
28
|
///
|
|
29
29
|
/// Raised when a bundle using something new could not work at all on an app
|
|
30
30
|
/// without it — not for every addition. 2 adds `host.webSocket` and the
|
|
31
|
-
/// manifest's `webSockets` grant; 3 adds timers and `onShow`/`onHide
|
|
32
|
-
|
|
31
|
+
/// manifest's `webSockets` grant; 3 adds timers and `onShow`/`onHide`; 4 lets
|
|
32
|
+
/// `host.fetch` reach an http-only host the app fronts with its https proxy
|
|
33
|
+
/// (the QSO Party Hub).
|
|
34
|
+
export const H2KEXT_API_VERSION = 4
|
|
33
35
|
|
|
34
36
|
/// The first API with `host.webSocket`. A manifest declaring `webSockets`
|
|
35
37
|
/// under an older one is refused: an older app would install it and fail only
|
|
@@ -133,6 +135,7 @@ export const SHARED_MODULES_BY_API = {
|
|
|
133
135
|
}
|
|
134
136
|
SHARED_MODULES_BY_API[2] = SHARED_MODULES_BY_API[1]
|
|
135
137
|
SHARED_MODULES_BY_API[3] = SHARED_MODULES_BY_API[2]
|
|
138
|
+
SHARED_MODULES_BY_API[4] = SHARED_MODULES_BY_API[3]
|
|
136
139
|
|
|
137
140
|
/// What a scaffolded extension declares on day one: the eight modules the SDK
|
|
138
141
|
/// barrel itself reaches, so a project that has written no code yet still
|