Compare commits

...

6 Commits

Author SHA1 Message Date
fb36c641a9 1.0.18 2020-05-27 18:59:45 +00:00
ae74e0b4f2 fix(core): update 2020-05-27 18:59:44 +00:00
d2a330e5d9 1.0.17 2020-05-25 22:14:38 +00:00
f40287fbb6 fix(core): update 2020-05-25 22:14:37 +00:00
e27bd8a53f 1.0.16 2020-05-25 16:22:05 +00:00
d6fc173a5b fix(core): update 2020-05-25 16:22:05 +00:00
4 changed files with 1905 additions and 54 deletions

1943
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@designestate/dees-domtools",
"version": "1.0.15",
"version": "1.0.18",
"private": false,
"description": "tools to simplify complex css structures",
"main": "dist_ts/index.js",
@ -9,11 +9,12 @@
"license": "MIT",
"scripts": {
"test": "(tstest test/ --web)",
"build": "(tsbuild --web)",
"build": "(tsbuild --web && tsbundle npm)",
"format": "(gitzone format)"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.0.22",
"@gitzone/tsbundle": "^1.0.69",
"@gitzone/tstest": "^1.0.15",
"@pushrocks/tapbundle": "^3.0.7",
"@types/node": "^14.0.5",
@ -21,7 +22,7 @@
"tslint-config-prettier": "^1.15.0"
},
"dependencies": {
"@pushrocks/lik": "^4.0.2",
"@pushrocks/lik": "^4.0.10",
"@pushrocks/smartpromise": "^3.0.6",
"@pushrocks/smartstate": "^1.0.15",
"lit-element": "^2.3.1"

View File

@ -1,5 +1,6 @@
import * as plugins from './domtools.plugins';
import { Stringmap, FastMap } from '@pushrocks/lik';
import { Stringmap } from '@pushrocks/lik/dist_ts/lik.stringmap';
import { FastMap } from '@pushrocks/lik/dist_ts/lik.fastmap';
export class DomTools {
public static async setupDomTools() {
@ -49,6 +50,11 @@ export class DomTools {
private runOnceTrackerStringMap = new Stringmap();
private runOnceResultMap = new FastMap();
/**
* run a function once and always get the Promise of the first execution
* @param identifierArg
* @param funcArg
*/
public async runOnce<T>(identifierArg: string, funcArg: () => Promise<T>) {
const runningId = `${identifierArg}+runningCheck`;
if(!this.runOnceTrackerStringMap.checkString(identifierArg)) {

View File

@ -0,0 +1 @@
import * as plugins from './domtools.plugins';