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

pd-redis-childize

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pd-redis-childize - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

11

lib/extends-remove.js

@@ -7,9 +7,8 @@ 'use strict';

var oldRemove = Child.remove;
Child.remove = function (sid, option) {
var opt = option || {};
var oldMultis = opt.multis || function (multis) {
Child.remove = function (sid, multiGen) {
var oldMultis = multiGen || function (multis) {
return multis;
};
var sidStr = sid + '';
var multiGen;
var multiG;
return q.Promise(function (resolve) {

@@ -22,3 +21,3 @@ resolve(

}).then(function (fields) {
multiGen = fields[0] ? function (multis) {
multiG = fields[0] ? function (multis) {
var mGenArgs = arguments;

@@ -34,3 +33,3 @@ var relationshipName = nm.childOf(Child.modelName(), Parent.modelName(), fields[0]);

}).then(function () {
return oldRemove.call(Child, sid, multiGen);
return oldRemove.call(Child, sid, multiG);
});

@@ -37,0 +36,0 @@ };

{
"name": "pd-redis-childize",
"version": "0.1.2",
"version": "0.1.3",
"description": "To make a record model relate to its parent record model",

@@ -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