feat(core): add staged self-updates and unify application version
This commit is contained in:
1 parent
c54aeffc77
commit
5032cbb8c0
45 files changed
+1860
-165
No files matched your search
@@ -132,5 +132,22 @@ function tryLoad(): NativeAddon {
|
||||
}
|
||||
}
|
||||
|
||||
const addon: NativeAddon = tryLoad();
|
||||
export default addon;
|
||||
let addon: NativeAddon | undefined;
|
||||
|
||||
function getAddon(): NativeAddon {
|
||||
return (addon ??= tryLoad());
|
||||
}
|
||||
|
||||
const native: NativeAddon = {
|
||||
get Parser() {
|
||||
return getAddon().Parser;
|
||||
},
|
||||
buildFrame(...args) {
|
||||
return getAddon().buildFrame(...args);
|
||||
},
|
||||
computeAcceptKey(key) {
|
||||
return getAddon().computeAcceptKey(key);
|
||||
},
|
||||
};
|
||||
|
||||
export default native;
|
||||
Reference in new issue
Block a user