Socket
Socket
Sign inDemoInstall

forest-express

Package Overview
Dependencies
Maintainers
2
Versions
374
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

forest-express - npm Package Compare versions

Comparing version 8.7.6 to 8.7.7

10

dist/serializers/resource.js

@@ -172,2 +172,10 @@ "use strict";

var setHasManyToEmptyArray = function setHasManyToEmptyArray(record) {
schema.fields.forEach(function (field) {
if (!record[field.field] && _.isArray(field.type) && field.reference) {
record[field.field] = [];
}
});
};
return new P(function (resolve) {

@@ -177,2 +185,3 @@ if (_.isArray(records)) {

resolve(P.map(records, function (record) {
setHasManyToEmptyArray(record);
smartFieldsValuesInjector = new SmartFieldsValuesInjector(record, modelName, fieldsPerModel);

@@ -188,2 +197,3 @@ return smartFieldsValuesInjector.perform();

} else {
setHasManyToEmptyArray(records);
resolve(new SmartFieldsValuesInjector(records, modelName, fieldsPerModel).perform());

@@ -190,0 +200,0 @@ }

2

package.json
{
"name": "forest-express",
"description": "Official package for all Forest Express Lianas",
"version": "8.7.6",
"version": "8.7.7",
"author": "Sandro Munda <sandro@munda.me>",

@@ -6,0 +6,0 @@ "contributors": [

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