fix(core): update
This commit is contained in:
parent
c7d0c8723f
commit
1dcbdcc06d
14
package-lock.json
generated
14
package-lock.json
generated
@ -9,7 +9,7 @@
|
||||
"version": "1.0.21",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@apiglobal/typedrequest": "^2.0.2",
|
||||
"@apiglobal/typedrequest": "^2.0.3",
|
||||
"@apiglobal/typedrequest-interfaces": "^1.0.15",
|
||||
"@pushrocks/smartdelay": "^2.0.13",
|
||||
"broadcast-channel": "^3.7.0"
|
||||
@ -36,9 +36,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@apiglobal/typedrequest": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://verdaccio.lossless.one/@apiglobal%2ftypedrequest/-/typedrequest-2.0.2.tgz",
|
||||
"integrity": "sha512-bd5N4sbHMLf28mHvC0oweLhsbhFUMvS+7qbzYdKDWC1Ge7b3U1jRi/RT4jWWPew6TiYsxcLLLcEHZh3uoULWeA==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://verdaccio.lossless.one/@apiglobal%2ftypedrequest/-/typedrequest-2.0.3.tgz",
|
||||
"integrity": "sha512-bRXiv3OwPh4uA4ete9maHXyF3CMNz8rc81r41DBeYzscaadKlQSK0ewOBLQjjZ2MBWDAGR0NbGBEaJJrXqYS0w==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@apiglobal/typedrequest-interfaces": "^1.0.15",
|
||||
@ -10768,9 +10768,9 @@
|
||||
}
|
||||
},
|
||||
"@apiglobal/typedrequest": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://verdaccio.lossless.one/@apiglobal%2ftypedrequest/-/typedrequest-2.0.2.tgz",
|
||||
"integrity": "sha512-bd5N4sbHMLf28mHvC0oweLhsbhFUMvS+7qbzYdKDWC1Ge7b3U1jRi/RT4jWWPew6TiYsxcLLLcEHZh3uoULWeA==",
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://verdaccio.lossless.one/@apiglobal%2ftypedrequest/-/typedrequest-2.0.3.tgz",
|
||||
"integrity": "sha512-bRXiv3OwPh4uA4ete9maHXyF3CMNz8rc81r41DBeYzscaadKlQSK0ewOBLQjjZ2MBWDAGR0NbGBEaJJrXqYS0w==",
|
||||
"requires": {
|
||||
"@apiglobal/typedrequest-interfaces": "^1.0.15",
|
||||
"@pushrocks/isounique": "^1.0.5",
|
||||
|
@ -20,7 +20,7 @@
|
||||
"@types/node": "^17.0.23"
|
||||
},
|
||||
"dependencies": {
|
||||
"@apiglobal/typedrequest": "^2.0.2",
|
||||
"@apiglobal/typedrequest": "^2.0.3",
|
||||
"@apiglobal/typedrequest-interfaces": "^1.0.15",
|
||||
"@pushrocks/smartdelay": "^2.0.13",
|
||||
"broadcast-channel": "^3.7.0"
|
||||
|
@ -27,8 +27,10 @@ export class DeesComms {
|
||||
const message = (eventArg as any).method ? eventArg : eventArg.data;
|
||||
console.log(JSON.stringify(message));
|
||||
const response = await this.typedrouter.routeAndAddResponse(message);
|
||||
if (response) {
|
||||
if (response && !response.error) {
|
||||
this.postMessage(response);
|
||||
} else {
|
||||
// console.log(response);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user