Socket
Socket
Sign inDemoInstall

forest-express

Package Overview
Dependencies
Maintainers
1
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 0.1.0 to 0.1.1

2

package.json
{
"name": "forest-express",
"version": "0.1.0",
"version": "0.1.1",
"description": "The official Express liana for Forest",

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

@@ -22,4 +22,8 @@ 'use strict';

var associationField = getAssociationField(req.params.associationName);
var associationModel = models[associationField];
var associationModel = _.find(models, function (model) {
return Implementation.getModelName(model) === associationField;
});
if (!associationModel) { return res.status(404).send(); }
return new Implementation.HasManyGetter(model, associationModel, opts,

@@ -26,0 +30,0 @@ params)

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