Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@symbolic/lib

Package Overview
Dependencies
Maintainers
5
Versions
226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@symbolic/lib - npm Package Compare versions

Comparing version 1.0.211 to 1.0.212

2

package.json
{
"name": "@symbolic/lib",
"version": "1.0.211",
"version": "1.0.212",
"description": "plain js utilities",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -6,31 +6,21 @@ import _ from "lodash";

var engravingsPropertyData = _.get(activeProductInstanceWithData, 'properties.27', {});
var structuredEngravingsPropertyData = _.get(engravingsPropertyData, 'structuredEngravingsPropertyData', {});
_.times(inputQuantity, i => {
var aboveMechanismEngravingData = [];
var belowMechanismEngravingData = [];
var engravings = _.get(engravingsPropertyData, 'engravings');
//Maybe clone ^
if (_.has(engravingsPropertyData, 'text') && !_.isEmpty(_.get(engravingsPropertyData, `text[${i}]`))) {
if (!engravings) {
engravings = {};
_.forEach(_.get(engravingsPropertyData, 'text'), (engravingTextArray, mechanismIndex) => {
var engravingLocation = _.get(activeProductInstanceWithData, 'propertiesDataById.108.selectedProductOption.id') === 623 ? 'above' : 'below';
if (engravingLocation === 'above') {
aboveMechanismEngravingData = _.map(_.get(engravingsPropertyData, `text[${i}]`), engraving => ({text: engraving}));
}
engravings[mechanismIndex] = {
[engravingLocation]: _.map(engravingTextArray, engravingText => ({text: engravingText}))
};
})
}
if (engravingLocation === 'below') {
belowMechanismEngravingData = _.map(_.get(engravingsPropertyData, `text[${i}]`), engraving => ({text: engraving}));
}
_.set(structuredEngravingsPropertyData, `${i}.above`, aboveMechanismEngravingData);
_.set(structuredEngravingsPropertyData, `${i}.below`, belowMechanismEngravingData);
}
else {
_.set(structuredEngravingsPropertyData, `${i}.above`, [{text: ''}, {text: ''}]);
_.set(structuredEngravingsPropertyData, `${i}.below`, [{text: ''}, {text: ''}]);
}
});
return structuredEngravingsPropertyData;
return engravings;
}
}

Sorry, the diff of this file is too big to display

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