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-ww-fix-alpha1

src/modules/doc/amfTopic/worker.ts

2

package.json
{
"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();
});
});
}
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