@salesforcedevs/docs-components
Advanced tools
Comparing version 1.3.304-amf-fix-alpha1 to 1.3.304-ww-fix-alpha1
{ | ||
"name": "@salesforcedevs/docs-components", | ||
"version": "1.3.304-amf-fix-alpha1", | ||
"version": "1.3.304-ww-fix-alpha1", | ||
"description": "Docs Lightning web components for DSC", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -13,3 +13,2 @@ import { LightningElement, api } from "lwc"; | ||
const TABLE_SIZE_MATCH = "769px"; | ||
@@ -28,20 +27,13 @@ | ||
set model(value: TopicModel) { | ||
const amfJsonObj = clone(value); | ||
if ( | ||
!this.amf || | ||
(value && | ||
this._model && | ||
value.amf !== this._model?.amf && | ||
amfJsonObj?.amf) | ||
(value && this._model && value.amf !== this._model?.amf) | ||
) { | ||
this.amf = value && amfJsonObj.amf; | ||
this.amf = value && clone(value.amf); | ||
} | ||
if ( | ||
!this.type || | ||
(value && | ||
this._model && | ||
value.type !== this._model?.type && | ||
amfJsonObj?.type) | ||
(value && this._model && value.type !== this._model?.type) | ||
) { | ||
this.type = value && amfJsonObj.type; | ||
this.type = value && clone(value.type); | ||
} | ||
@@ -126,3 +118,10 @@ | ||
function clone(value: any): any { | ||
return JSON.parse(JSON.stringify(value)); | ||
const worker = new Worker("./worker.js"); | ||
worker.postMessage(value); | ||
return new Promise((resolve) => { | ||
worker.addEventListener("message", (event) => { | ||
resolve(event.data); | ||
worker.terminate(); | ||
}); | ||
}); | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
254719
76
6536