Comparing version 0.1.12 to 0.1.13
'use strict'; | ||
module.exports = require('./build/Release/mcrypt'); | ||
module.exports = require('bindings')('mcrypt'); | ||
{ | ||
"name": "mcrypt", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"description": "MCrypt bindings", | ||
@@ -20,4 +20,3 @@ "keywords": [ | ||
"scripts": { | ||
"test": "mocha", | ||
"install": "node-gyp rebuild --release" | ||
"test": "mocha" | ||
}, | ||
@@ -28,2 +27,3 @@ "engines": { | ||
"dependencies": { | ||
"bindings": "^1.3.0", | ||
"nan": "^2.3.3" | ||
@@ -33,5 +33,6 @@ }, | ||
"mocha": "^2.3.3", | ||
"node-gyp": "*" | ||
"node-gyp": "^3.6.2" | ||
}, | ||
"main": "./build/Release/mcrypt" | ||
"main": "index.js", | ||
"gypfile": true | ||
} |
@@ -23,3 +23,3 @@ | ||
}); | ||
describe('encrypt', function() { | ||
@@ -34,8 +34,3 @@ it('plaintext and decrypted ciphertext should be same', function(){ | ||
it('ciphertext and encrypted plaintext should be same', function(){ | ||
var result = mc.decrypt(new Buffer(ciphertext, 'base64')).toString().trim(); | ||
console.log(new Buffer(result)); | ||
console.log(new Buffer(plaintext)); | ||
var result = mc.decrypt(new Buffer(ciphertext, 'base64')).toString(); | ||
assert.equal(plaintext, result, 'plaintext are not same'); | ||
@@ -42,0 +37,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
518135
2
221
+ Addedbindings@^1.3.0
+ Addedbindings@1.5.0(transitive)
+ Addedfile-uri-to-path@1.0.0(transitive)