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

bookshelf-scopes

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bookshelf-scopes - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

test/.jshintrc

2

package.json
{
"name": "bookshelf-scopes",
"version": "1.2.1",
"version": "1.2.2",
"description": "Giving you Rails like scopes in Bookshelf.js.",

@@ -5,0 +5,0 @@ "main": "src/scopes.js",

@@ -51,4 +51,7 @@ 'use strict';

relationship.relatedData.selectConstraints = function(knex, options) {
originalSelectConstraints.apply(this, arguments);
target.prototype.scopes.default.apply(this, [knex]);
originalSelectConstraints.apply(this, [knex, options]);
if (!knex.appliedDefault) {
knex.appliedDefault = true;
target.prototype.scopes.default.apply(this, [knex, options]);
}
};

@@ -76,3 +79,6 @@ }

self.query(function(qb) {
self.scopes.default.call(self, qb);
if (!qb.appliedDefault) {
qb.appliedDefault = true;
self.scopes.default.call(self, qb);
}
});

@@ -79,0 +85,0 @@ }

Sorry, the diff of this file is not supported yet

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