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

thinky

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thinky - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

examples/basic-todo/node_modules/rethinkdb/node_modules/node-protobuf/.npmignore

14

lib/document.js

@@ -282,6 +282,9 @@ var eventEmitter = require('events').EventEmitter;

Document.prototype.delete = function(options, callback) {
var self = this; // The document
var model = this.getModel();
// save(callback) is a valid signature
if ((typeof options === 'function') && (callback == null)) {
callback = options;
options = null;
}
if ((options == null) || (options.deleteJoin == null)) {
if ((options == null) || (options.saveJoin == null)) {
options = {

@@ -291,3 +294,6 @@ deleteJoin: false

}
var self = this; // The document
var model = this.getModel();
var docSettings = self.getDocSettings();

@@ -294,0 +300,0 @@ var query, cb;

{
"name": "thinky",
"version": "0.2.7",
"version": "0.2.8",
"description": "RethinkDB ORM for Node.js",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -167,2 +167,15 @@ var thinky = require('../lib/index.js');

});
it('should delete the doc -- other signature', function(done){
Cat = thinky.createModel('Cat', { id: String, name: String });
catou = new Cat({name: 'Catou'});
catou.save(null, function(error, result) {
should.exist(result.id);
catou.delete(function(error, result) {
catou.getDocSettings().saved.should.be.false
done();
})
})
});
});

@@ -169,0 +182,0 @@

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