Socket
Socket
Sign inDemoInstall

@salesforcedevs/docs-components

Package Overview
Dependencies
Maintainers
0
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.300-fix-alpha2 to 1.3.300-fix-alpha3

2

package.json
{
"name": "@salesforcedevs/docs-components",
"version": "1.3.300-fix-alpha2",
"version": "1.3.300-fix-alpha3",
"description": "Docs Lightning web components for DSC",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -1479,5 +1479,5 @@ import { LightningElement, api, track } from "lwc";

// Adding stringify inside try/catch
let amfString = "";
let amfModelString = "";
try {
amfString = JSON.stringify(this.amfMap[referenceId].model);
amfModelString = JSON.stringify(this.amfMap[referenceId].model);
} catch (error) {

@@ -1490,3 +1490,3 @@ console.error(`Error stringifying amf model: ${error}`);

type,
amf: amfString,
amf: amfModelString,
parser: this.amfMap[referenceId].parser,

@@ -1493,0 +1493,0 @@ id: amfId

@@ -33,3 +33,3 @@ import { LightningElement, api } from "lwc";

} catch (error) {
console.error(`Error parsing amf model:: ${error}`);
console.error(`Error parsing amf model: ${error}`);
}

@@ -41,3 +41,3 @@ }

) {
this.type = value && clone(value.type);
this.type = value && value.type;
}

@@ -114,11 +114,1 @@

}
/**
* The underlying web components we use from api-console mutate their models we pass in.
* Since LWC makes them Read Only, we need to copy them before passing to the Web Component.
* @param value JSON Serializable object to clone.
* @returns A copy of Value. One that has been serialized and parsed via JSON. (Functions, Regex, etc are not preserved.)
*/
function clone(value: any): any {
return JSON.parse(JSON.stringify(value));
}
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