@salesforcedevs/docs-components
Advanced tools
Comparing version 1.3.304-amf-fix-alpha1 to 1.3.304-async-fix-alpha1
{ | ||
"name": "@salesforcedevs/docs-components", | ||
"version": "1.3.304-amf-fix-alpha1", | ||
"version": "1.3.304-async-fix-alpha1", | ||
"description": "Docs Lightning web components for DSC", | ||
@@ -20,3 +20,4 @@ "license": "MIT", | ||
"query-string": "^7.1.3", | ||
"sentence-case": "^3.0.4" | ||
"sentence-case": "^3.0.4", | ||
"yieldable-json": "^2.0.1" | ||
}, | ||
@@ -23,0 +24,0 @@ "devDependencies": { |
@@ -12,4 +12,4 @@ import { LightningElement, api } from "lwc"; | ||
import { Json } from "typings/custom"; | ||
import { parse, stringify } from "yieldable-json"; | ||
const TABLE_SIZE_MATCH = "769px"; | ||
@@ -28,20 +28,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); | ||
} | ||
@@ -125,4 +118,5 @@ | ||
*/ | ||
function clone(value: any): any { | ||
return JSON.parse(JSON.stringify(value)); | ||
async function clone(value: any): any { | ||
const parsedValue = await parse(stringify(value)); | ||
return parsedValue; | ||
} |
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
254638
76
8
6531
+ Addedyieldable-json@^2.0.1
+ Addedyieldable-json@2.1.0(transitive)