6 Commits

Author SHA1 Message Date
4c59d38971 1.0.17 2022-03-25 14:17:13 +01:00
385acfd951 fix(core): update 2022-03-25 14:17:13 +01:00
97eba85337 1.0.16 2022-01-28 17:59:07 +01:00
61936bbdd1 fix(core): update 2022-01-28 17:59:06 +01:00
4ab1b917a9 1.0.15 2022-01-28 17:40:12 +01:00
f299cff4c9 fix(core): update 2022-01-28 17:40:12 +01:00
9 changed files with 5273 additions and 13882 deletions

19087
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,28 +1,28 @@
{ {
"name": "@designestate/dees-comms", "name": "@designestate/dees-comms",
"version": "1.0.14", "version": "1.0.17",
"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",
"typings": "dist_ts/index.d.ts", "typings": "dist_ts/index.d.ts",
"type": "module",
"author": "Lossless GmbH", "author": "Lossless GmbH",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"test": "(tstest test/ --web)", "test": "(tstest test/ --web)",
"build": "(tsbuild --web && tsbundle npm)" "build": "(tsbuild --web --allowimplicitany && tsbundle npm)"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.29", "@gitzone/tsbuild": "^2.1.61",
"@gitzone/tsbundle": "^1.0.89", "@gitzone/tsbundle": "^1.0.101",
"@gitzone/tstest": "^1.0.60", "@gitzone/tstest": "^1.0.70",
"@pushrocks/tapbundle": "^4.0.0", "@pushrocks/tapbundle": "^5.0.3",
"@types/node": "^17.0.10", "@types/node": "^17.0.23"
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.15.0"
}, },
"dependencies": { "dependencies": {
"@apiglobal/typedrequest": "^1.0.65", "@apiglobal/typedrequest": "^2.0.0",
"@apiglobal/typedrequest-interfaces": "^1.0.15" "@apiglobal/typedrequest-interfaces": "^1.0.15",
"broadcast-channel": "^3.7.0"
}, },
"files": [ "files": [
"ts/**/*", "ts/**/*",

View File

@@ -1,5 +1,5 @@
import { expect, tap } from '@pushrocks/tapbundle'; import { expect, tap } from '@pushrocks/tapbundle';
import * as deesComms from '../ts/index'; import * as deesComms from '../ts/index.js';
let deesCommsTest: deesComms.DeesComms; let deesCommsTest: deesComms.DeesComms;

View File

@@ -1,5 +1,10 @@
import { TypedRequest } from '@apiglobal/typedrequest'; import { TypedRequest } from '@apiglobal/typedrequest';
import * as plugins from './dees-comms.plugins'; import * as plugins from './dees-comms.plugins.js';
let BroadcastChannel = globalThis.BroadcastChannel;
if (!BroadcastChannel) {
BroadcastChannel = plugins.BroadCastChannelPolyfill as any;
}
/** /**
* a comm class for client side communication between workers and tabs. * a comm class for client side communication between workers and tabs.

View File

@@ -1,4 +1,4 @@
import * as plugins from './dees-comms.plugins'; import * as plugins from './dees-comms.plugins.js';
/** /**
* a message that can be sent * a message that can be sent

View File

@@ -3,3 +3,10 @@ import * as typedrequestInterfaces from '@apiglobal/typedrequest-interfaces';
import * as typedrequest from '@apiglobal/typedrequest'; import * as typedrequest from '@apiglobal/typedrequest';
export { typedrequestInterfaces, typedrequest }; export { typedrequestInterfaces, typedrequest };
// third party scope
import { BroadcastChannel as BroadCastChannelPolyfill } from 'broadcast-channel';
export {
BroadCastChannelPolyfill
}

View File

@@ -1 +1 @@
export * from './dees-comms.classes.deescomms'; export * from './dees-comms.classes.deescomms.js';

9
tsconfig.json Normal file
View File

@@ -0,0 +1,9 @@
{
"compilerOptions": {
"experimentalDecorators": true,
"useDefineForClassFields": false,
"target": "ES2022",
"module": "ES2022",
"moduleResolution": "nodenext"
}
}

View File

@@ -1,17 +0,0 @@
{
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"semicolon": [true, "always"],
"no-console": false,
"ordered-imports": false,
"object-literal-sort-keys": false,
"member-ordering": {
"options":{
"order": [
"static-method"
]
}
}
},
"defaultSeverity": "warning"
}