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

loopback-connector-natsgetter

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

loopback-connector-natsgetter - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

6

natsgetter.js

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