Socket
Socket
Sign inDemoInstall

@salesforcedevs/docs-components

Package Overview
Dependencies
Maintainers
13
Versions
625
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforcedevs/docs-components - npm Package Compare versions

Comparing version 1.3.304-amf-fix-alpha1 to 1.3.304-async-fix-alpha1

src/modules/doc/amfTopic/worker.ts

5

package.json
{
"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": {

22

src/modules/doc/amfTopic/amfTopic.ts

@@ -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;
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc