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

@kohanajs/mixin-orm

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kohanajs/mixin-orm - npm Package Compare versions

Comparing version 3.0.16 to 3.0.17

4

classes/controller-mixin/ORMInput.js
const { ControllerMixin } = require('@kohanajs/core-mvc');
const { KohanaJS, ORM } = require('kohanajs');
const { ORM } = require('kohanajs');

@@ -44,3 +44,3 @@ const mapGetOrCreate = (map, key, defaultValue) => {

if (Array.isArray(v)) {
const Type = KohanaJS.require(ORM.classPrefix + prop);
const Type = ORM.require(prop);
if (!Model.belongsToMany.has(prop) && !Type.belongsToMany.has(type)) throw new Error(`Invalid input siblings ${prop} for ${Model.name}`);

@@ -47,0 +47,0 @@ } else if (!Model.fields.has(prop) && !Model.belongsTo.has(prop)) {

@@ -158,3 +158,3 @@ const { ControllerMixin } = require('@kohanajs/core-mvc');

const v = newValues.get(field);
if (v === undefined || v == '') return;
if (v === undefined || v === '') return;
m[field] = v;

@@ -179,3 +179,3 @@ changed = true;

Model.belongsToMany.forEach(xx => {
const k = `*${x}`;
const k = `*${xx}`;
if (m[k] === undefined) return;

@@ -182,0 +182,0 @@ if (!Array.isArray(m[k])) throw new Error(`${k} must be Array`);

{
"name": "@kohanajs/mixin-orm",
"version": "3.0.16",
"version": "3.0.17",
"description": "",

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

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