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

ee-soa-service

Package Overview
Dependencies
Maintainers
2
Versions
176
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ee-soa-service - npm Package Compare versions

Comparing version 0.2.62 to 0.2.63

45

lib/DefaultORMController.js

@@ -174,8 +174,18 @@

, _getSingleModel: function(queryData, baseQuery, callback) {
var query;
if(!queryData.hasResourceId()) return callback(new Error('[' + this.table + '] no resourceId provided!'));
var idFilter = {};
idFilter[this.specs.primaryKey] = queryData.getResourceId();
(baseQuery || this.rootQuery)(['*'], idFilter).findOne(function(err, data) {
query = (baseQuery || this.rootQuery)(['*'], idFilter);
// row restrictions
if (queryData.permissions && query.setRestrictions) query.setRestrictions(queryData.permissions.getRestrictions());
query.findOne(function(err, data) {
callback(err, data);

@@ -243,2 +253,5 @@ }.bind(this));

// row restrictions
if (queryData.permissions && query.setRestrictions) query.setRestrictions(queryData.permissions.getRestrictions());
//ORDER

@@ -766,2 +779,5 @@ var orders = queryData.getOrder();

// row restrictions
if (queryData.permissions && record.setRestrictions) record.setRestrictions(queryData.permissions.getRestrictions());
record.save(function(err, newRecord) {

@@ -812,2 +828,7 @@ callback(err, newRecord);

data[withModel] = this.root[withModel](filterForWithModel);
// row restrictions
if (queryData.permissions && data.setRestrictions) data.setRestrictions(queryData.permissions.getRestrictions());
data.save(function(err, result) {

@@ -833,2 +854,8 @@ if(err) return callback(err);

entity[withModel].push(this.root[withModel](filterForWithModel));
// row restrictions
if (queryData.permissions && entity.setRestrictions) entity.setRestrictions(queryData.permissions.getRestrictions());
entity.save(function(err, result) {

@@ -857,2 +884,6 @@ if(err) return callback(err);

var record = (baseQuery || new this.root[this.specs.hasMany[withModel].table.name]()).setValues(content);
// row restrictions
if (queryData.permissions && record.setRestrictions) record.setRestrictions(queryData.permissions.getRestrictions());
record.save(function(err, newRecord) {

@@ -871,2 +902,6 @@ callback(err, newRecord);

entity[withModel].push(this.root[withModel](filterForWithModel));
// row restrictions
if (queryData.permissions && entity.setRestrictions) entity.setRestrictions(queryData.permissions.getRestrictions());
entity.save(function(err, result) {

@@ -905,2 +940,6 @@ if(err) return callback(err);

// row restrictions
if (queryData.permissions && data.setRestrictions) data.setRestrictions(queryData.permissions.getRestrictions());
data.save(function(err, record) {

@@ -954,2 +993,6 @@ if(err) return callback(err);

// row restrictions
if (queryData.permissions && mapping.setRestrictions) mapping.setRestrictions(queryData.permissions.getRestrictions());
mapping.save(function(err, result) {

@@ -956,0 +999,0 @@ if(err) return callback(err);

2

package.json

@@ -5,3 +5,3 @@ {

, "keywords" : ["ee", "soa", "service"]
, "version" : "0.2.62"
, "version" : "0.2.63"
, "author": {

@@ -8,0 +8,0 @@ "name" : "Tobias Kneubuehler"

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