loopback-connector-natsgetter
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -16,3 +16,3 @@ // Copyright IBM Corp. 2013,2016. All Rights Reserved. | ||
var appDir = path.dirname(require.main.filename); | ||
const app = require(appDir + '/server'); | ||
const app = require(path.normalize(appDir + '/server')); | ||
@@ -47,5 +47,5 @@ exports.initialize = function initializeDataSource(dataSource, callback) { | ||
NatsGetter.prototype.create = function create(model, data, options, callback) { | ||
NatsGetter.prototype.create = function create(model, body, options, callback) { | ||
const self = this; | ||
app.models.Nats.publish(self.publishName, { command: 'create', data: {model, data} }, (err, id) => { | ||
app.models.Nats.publish(self.publishName, { command: 'create', data: {model, body} }, (err, id) => { | ||
return callback(err, id); | ||
@@ -52,0 +52,0 @@ }); |
@@ -39,3 +39,3 @@ { | ||
}, | ||
"version": "1.2.0" | ||
"version": "1.2.1" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
3297