@liquid-state/iwa-desktop
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -10,3 +10,4 @@ import { INativeCommunicator, WrappedSendingMessage } from '@liquid-state/iwa-core/dist/communicator/communicator'; | ||
setReady: (dispatch: (response: any) => void) => (next: (message: WrappedSendingMessage) => void, done: () => void) => (message: WrappedSendingMessage) => void; | ||
app: (dispatch: (response: any) => void) => (next: (message: WrappedSendingMessage) => void, done: () => void) => (message: WrappedSendingMessage) => void; | ||
}; | ||
export default _default; |
@@ -5,2 +5,3 @@ import config from './config'; | ||
import setReady from './setReady'; | ||
import app from './app'; | ||
var injectDefaultMiddleware = function (communicator) { | ||
@@ -13,2 +14,3 @@ if (!communicator.addOnSendMiddleware) { | ||
communicator.addOnSendMiddleware(setReady); | ||
communicator.addOnSendMiddleware(app); | ||
return communicator; | ||
@@ -22,3 +24,4 @@ }; | ||
setReady: setReady, | ||
app: app, | ||
}; | ||
//# sourceMappingURL=index.js.map |
import { MiddlewareT } from '@liquid-state/iwa-core/dist/communicator/middleware'; | ||
import { WrappedSendingMessage } from "@liquid-state/iwa-core/dist/communicator/communicator"; | ||
import { WrappedSendingMessage } from '@liquid-state/iwa-core/dist/communicator/communicator'; | ||
export declare type OnSendMiddleware = MiddlewareT<WrappedSendingMessage, any>; | ||
declare const keyValueMiddleware: OnSendMiddleware; | ||
export default keyValueMiddleware; |
@@ -36,3 +36,3 @@ var _kv = null; | ||
found: true, | ||
value: item.value | ||
value: item.value, | ||
}; | ||
@@ -53,3 +53,3 @@ }); | ||
event_type: 'get', | ||
response_data: result | ||
response_data: result, | ||
}); | ||
@@ -64,3 +64,3 @@ done(); | ||
event_type: 'set', | ||
response_data: result | ||
response_data: result, | ||
}); | ||
@@ -67,0 +67,0 @@ done(); |
@@ -7,3 +7,3 @@ var setReadyMiddleware = function (dispatch) { return function (next, done) { return function (message) { | ||
purpose: 'navigate', | ||
route: undefined | ||
route: undefined, | ||
}); | ||
@@ -10,0 +10,0 @@ done(); |
{ | ||
"name": "@liquid-state/iwa-desktop", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "A set of functions and utilities to make it easy to run IWAs in a desktop environment.", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
21798
27
259