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

strapi-utils

Package Overview
Dependencies
Maintainers
1
Versions
282
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strapi-utils - npm Package Compare versions

Comparing version 3.0.0-alpha.6.7 to 3.0.0-alpha.7

11

lib/models.js

@@ -272,10 +272,15 @@ 'use strict';

if (!strapi.models.hasOwnProperty(model)) {
const models = _.assign(_.clone(strapi.models), Object.keys(strapi.plugins).reduce((acc, current) => {
_.assign(acc, _.get(strapi.plugins[current], ['models'], {}));
return acc;
}, {}));
if (!models.hasOwnProperty(model)) {
return this.log.error(`The model ${model} can't be found.`);
}
const connector = strapi.models[model].orm;
const connector = models[model].orm;
if (!connector) {
throw new Error(`Impossible to determine the use ORM for the model ${model}.`);
throw new Error(`Impossible to determine the ORM used for the model ${model}.`);
}

@@ -282,0 +287,0 @@

{
"name": "strapi-utils",
"version": "3.0.0-alpha.6.7",
"version": "3.0.0-alpha.7",
"description": "Shared utilities for the Strapi packages",

@@ -5,0 +5,0 @@ "homepage": "http://strapi.io",

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