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

monk

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

monk - npm Package Compare versions

Comparing version 0.1.13 to 0.1.14

6

History.md
0.1.14 / 2012-07-09
===================
* Use any debug. [visionmedia]
* Use any mocha. [visionmedia]
0.1.13 / 2012-05-28

@@ -3,0 +9,0 @@ ===================

4

lib/collection.js

@@ -216,4 +216,4 @@

// query
debug('%s remove "%j" with "%j"', this.name, search, update);
this.col.update(search, this.opts(opts), promise.fulfill);
debug('%s remove "%j" with "%j"', this.name, search, opts);
this.col.remove(search, this.opts(opts), promise.fulfill);

@@ -220,0 +220,0 @@ return promise;

{
"name": "monk"
, "version": "0.1.13"
, "version": "0.1.14"
, "main": "lib/monk.js"

@@ -8,8 +8,8 @@ , "tags": ["mongodb", "mongo", "driver"]

"mongoskin": "0.3.6"
, "debug": "0.6.x"
, "debug": "*"
}
, "devDependencies": {
"mocha": "1.0.x"
"mocha": "*"
, "expect.js": "0.1.x"
}
}

@@ -173,2 +173,18 @@

describe('remove', function () {
it('should remove a document', function (done) {
users.insert({ name: 'Tobi' }, function (err, doc) {
if (err) return done(err);
users.remove({ name: 'Tobi' }, function (err) {
if (err) return done(err);
users.find({ name: 'Tobi' }, function (err, doc) {
if (err) return done(err);
expect(doc).to.eql([]);
done();
})
})
})
})
})
describe('findAndModifying', function () {

@@ -279,6 +295,6 @@ it('should alter an existing document', function (done) {

it('remove', function () {
var p = users.findOne();
var p = users.remove();
expect(p).to.be.a(Promise);
expect(p.col).to.be(users);
expect(p.type).to.be('findOne');
expect(p.type).to.be('remove');
});

@@ -285,0 +301,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