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

Comments

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comments - npm Package Compare versions

Comparing version

to
0.5.0

18

comments.js

@@ -5,3 +5,2 @@ var append = require('append');

var url = require('url');
var sha1 = require('sha1');
var md5 = require('MD5');

@@ -57,10 +56,6 @@ var querystring = require('querystring');

async.parallel([
function (ensured) {
col.ensureIndex('res', ensured);
},
function (ensured) {
col.ensureIndex('modified', ensured);
}
], function (err) {
col.ensureIndex({
res: -1,
modified: -1
}, function (err) {
if (err)

@@ -117,5 +112,2 @@ return cb(err);

// hash the comment, necessary for future comment editing
comment.hash = sha1(JSON.stringify(comment));
// get collection and save comment

@@ -284,4 +276,2 @@ this.getCollections(function(err, col) {

comment.regular = true;
// save comment

@@ -288,0 +278,0 @@ this.saveComment(res, comment, function(err, comment) {

@@ -10,3 +10,3 @@ {

],
"version": "0.4.5",
"version": "0.5.0",
"repository": {

@@ -28,4 +28,3 @@ "type": "git",

"mongodb": ">=0.9.9",
"pingback": ">=0.0.2",
"sha1": ">=0.0.1"
"pingback": ">=0.0.2"
},

@@ -32,0 +31,0 @@ "licenses": [