6 Commits

Author SHA1 Message Date
9a77b5722a 1.0.8 2022-05-29 00:33:37 +02:00
28d9d62bb4 fix(core): update 2022-05-29 00:33:36 +02:00
9fa8754a15 1.0.7 2022-05-28 23:52:46 +02:00
6ff92ff880 fix(core): update 2022-05-28 23:52:46 +02:00
eb9cae4be3 1.0.6 2022-05-28 20:17:17 +02:00
cd5cee545b fix(core): update 2022-05-28 20:17:17 +02:00
4 changed files with 7 additions and 5 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@pushrocks/smartntml", "name": "@pushrocks/smartntml",
"version": "1.0.5", "version": "1.0.8",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@pushrocks/smartntml", "name": "@pushrocks/smartntml",
"version": "1.0.5", "version": "1.0.8",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@happy-dom/global-registrator": "^4.1.0", "@happy-dom/global-registrator": "^4.1.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartntml", "name": "@pushrocks/smartntml",
"version": "1.0.5", "version": "1.0.8",
"private": false, "private": false,
"description": "lit-html for the backend", "description": "lit-html for the backend",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@pushrocks/smartntml', name: '@pushrocks/smartntml',
version: '1.0.5', version: '1.0.8',
description: 'lit-html for the backend' description: 'lit-html for the backend'
} }

View File

@ -1,6 +1,7 @@
import * as plugins from './smartntml.plugins.js'; import * as plugins from './smartntml.plugins.js';
import type * as litTypes from 'lit'; import type * as litTypes from 'lit';
export type { TemplateResult } from 'lit';
export class Smartntml { export class Smartntml {
// STATIC // STATIC
@ -15,13 +16,14 @@ export class Smartntml {
if (this.smartntmlSingletonDeferred) { if (this.smartntmlSingletonDeferred) {
return this.smartntmlSingletonDeferred.promise; return this.smartntmlSingletonDeferred.promise;
} }
this.smartntmlSingletonDeferred = plugins.smartpromise.defer();
const smartntmlInstance = await this.createAndInit(); const smartntmlInstance = await this.createAndInit();
this.smartntmlSingletonDeferred.resolve(smartntmlInstance); this.smartntmlSingletonDeferred.resolve(smartntmlInstance);
return this.smartntmlSingletonDeferred.promise; return this.smartntmlSingletonDeferred.promise;
} }
// INSTANCE // INSTANCE
render: typeof litTypes.render; private render: typeof litTypes.render;
html: typeof litTypes.html; html: typeof litTypes.html;
constructor() { constructor() {