New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

datamodel

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datamodel - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

14

lib/datamodel.js

@@ -209,4 +209,14 @@ 'use strict';

module.exports = function (options) {
return new Datamodel(options);
module.exports = function (models) {
var model = new Datamodel();
if (Array.isArray(models)) {
models.forEach(function(func, i) {
if (typeof func === 'function') {
func(model);
}
});
}
return model;
}

2

package.json
{
"name": "datamodel",
"version": "1.2.0",
"version": "1.3.0",
"author": "Nicolas Thouvenin <nthouvenin@gmail.com>",

@@ -5,0 +5,0 @@ "contributors": [],

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