Socket
Socket
Sign inDemoInstall

@commodo/fields

Package Overview
Dependencies
4
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.2-beta.19 to 1.1.2-beta.20

6

package.json
{
"name": "@commodo/fields",
"version": "1.1.2-beta.19",
"version": "1.1.2-beta.20",
"main": "index.js",

@@ -14,3 +14,3 @@ "repository": {

"dependencies": {
"@commodo/name": "^1.2.2-beta.19",
"@commodo/name": "^1.2.2-beta.20",
"repropose": "^1.0.2"

@@ -34,3 +34,3 @@ },

},
"gitHead": "9a23d382a4e231020979561d6eed9eb734a8f4e6"
"gitHead": "35888e76b6392122b6662c98eb364516020e24a6"
}

@@ -38,12 +38,14 @@ "use strict";

if (data && typeof data === "object") {
const values = this.getFields();
const fields = this.getFields();
for (let valueKey in values) {
const value = values[valueKey];
for (let fieldName in fields) {
const field = fields[fieldName];
if (!value || value.skipOnPopulate || !(valueKey in data)) {
if (!field || field.skipOnPopulate) {
continue;
}
values[valueKey].setValue(data[valueKey]);
if (fieldName in data && data[fieldName] !== undefined) {
fields[fieldName].setValue(data[fieldName]);
}
}

@@ -50,0 +52,0 @@ }

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc