6 Commits

Author SHA1 Message Date
9d895913eb 1.0.23 2022-05-27 01:36:28 +02:00
b5cc8e7952 fix(core): update 2022-05-27 01:36:28 +02:00
1a36912461 1.0.22 2022-03-29 14:56:22 +02:00
1dcbdcc06d fix(core): update 2022-03-29 14:56:21 +02:00
c7d0c8723f 1.0.21 2022-03-29 13:18:10 +02:00
ae377b185e fix(core): update 2022-03-29 13:18:09 +02:00
5 changed files with 228 additions and 8588 deletions

8785
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
{ {
"name": "@designestate/dees-comms", "name": "@designestate/dees-comms",
"version": "1.0.20", "version": "1.0.23",
"private": false, "private": false,
"description": "a comms module for communicating within the DOM", "description": "a comms module for communicating within the DOM",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
@@ -13,14 +13,14 @@
"build": "(tsbuild --web --allowimplicitany && tsbundle npm)" "build": "(tsbuild --web --allowimplicitany && tsbundle npm)"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.61", "@gitzone/tsbuild": "^2.1.63",
"@gitzone/tsbundle": "^1.0.102", "@gitzone/tsbundle": "^2.0.4",
"@gitzone/tstest": "^1.0.70", "@gitzone/tstest": "^1.0.71",
"@pushrocks/tapbundle": "^5.0.3", "@pushrocks/tapbundle": "^5.0.3",
"@types/node": "^17.0.23" "@types/node": "^17.0.35"
}, },
"dependencies": { "dependencies": {
"@apiglobal/typedrequest": "^2.0.2", "@apiglobal/typedrequest": "^2.0.3",
"@apiglobal/typedrequest-interfaces": "^1.0.15", "@apiglobal/typedrequest-interfaces": "^1.0.15",
"@pushrocks/smartdelay": "^2.0.13", "@pushrocks/smartdelay": "^2.0.13",
"broadcast-channel": "^3.7.0" "broadcast-channel": "^3.7.0"

View File

@@ -27,7 +27,12 @@ tap.test('first test', async (tools) => {
hithere: 'hello', hithere: 'hello',
}); });
console.log(JSON.stringify(result2)); */ console.log(JSON.stringify(result2)); */
}); });
tap.test('should end on nodejs', async (toolsArg) => {
if (globalThis.process) {
toolsArg.delayFor(2000).then(() => globalThis.process.exit(0));
}
})
tap.start(); tap.start();

8
ts/00_commitinfo_data.ts Normal file
View File

@@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@designestate/dees-comms',
version: '1.0.23',
description: 'a comms module for communicating within the DOM'
}

View File

@@ -27,8 +27,10 @@ export class DeesComms {
const message = (eventArg as any).method ? eventArg : eventArg.data; const message = (eventArg as any).method ? eventArg : eventArg.data;
console.log(JSON.stringify(message)); console.log(JSON.stringify(message));
const response = await this.typedrouter.routeAndAddResponse(message); const response = await this.typedrouter.routeAndAddResponse(message);
if (response) { if (response && !response.error) {
this.postMessage(response); this.postMessage(response);
} else {
// console.log(response);
} }
}; };
} }