Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
9a77b5722a | |||
28d9d62bb4 |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartntml",
|
"name": "@pushrocks/smartntml",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@pushrocks/smartntml",
|
"name": "@pushrocks/smartntml",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@happy-dom/global-registrator": "^4.1.0",
|
"@happy-dom/global-registrator": "^4.1.0",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@pushrocks/smartntml",
|
"name": "@pushrocks/smartntml",
|
||||||
"version": "1.0.7",
|
"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",
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@pushrocks/smartntml',
|
name: '@pushrocks/smartntml',
|
||||||
version: '1.0.7',
|
version: '1.0.8',
|
||||||
description: 'lit-html for the backend'
|
description: 'lit-html for the backend'
|
||||||
}
|
}
|
||||||
|
@ -16,6 +16,7 @@ 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;
|
||||||
|
Reference in New Issue
Block a user