[Pkg-javascript-commits] [node-browserify-aes] 03/43: add .json on require modes

Bastien Roucariès rouca at moszumanska.debian.org
Thu Sep 7 14:41:56 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-browserify-aes.

commit 7aca10974e0bbf34bcc009b29a6a9b4252d99c9d
Author: Kirill Fomichev <fanatid at ya.ru>
Date:   Fri Mar 4 20:46:58 2016 +0300

    add .json on require modes
---
 browser.js          | 2 +-
 decrypter.js        | 2 +-
 encrypter.js        | 2 +-
 populateFixtures.js | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/browser.js b/browser.js
index a058a84..2583539 100644
--- a/browser.js
+++ b/browser.js
@@ -4,7 +4,7 @@ exports.createCipheriv = exports.Cipheriv = ciphers.createCipheriv
 var deciphers = require('./decrypter')
 exports.createDecipher = exports.Decipher = deciphers.createDecipher
 exports.createDecipheriv = exports.Decipheriv = deciphers.createDecipheriv
-var modes = require('./modes')
+var modes = require('./modes.json')
 function getCiphers () {
   return Object.keys(modes)
 }
diff --git a/decrypter.js b/decrypter.js
index b7b8bb0..0a33aec 100644
--- a/decrypter.js
+++ b/decrypter.js
@@ -1,7 +1,7 @@
 var aes = require('./aes')
 var Transform = require('cipher-base')
 var inherits = require('inherits')
-var modes = require('./modes')
+var modes = require('./modes.json')
 var StreamCipher = require('./streamCipher')
 var AuthCipher = require('./authCipher')
 var ebtk = require('evp_bytestokey')
diff --git a/encrypter.js b/encrypter.js
index 3d3f561..e309f32 100644
--- a/encrypter.js
+++ b/encrypter.js
@@ -1,7 +1,7 @@
 var aes = require('./aes')
 var Transform = require('cipher-base')
 var inherits = require('inherits')
-var modes = require('./modes')
+var modes = require('./modes.json')
 var ebtk = require('evp_bytestokey')
 var StreamCipher = require('./streamCipher')
 var AuthCipher = require('./authCipher')
diff --git a/populateFixtures.js b/populateFixtures.js
index ac31eb3..9dd6bf2 100644
--- a/populateFixtures.js
+++ b/populateFixtures.js
@@ -1,4 +1,4 @@
-var modes = require('./modes')
+var modes = require('./modes.json')
 var fixtures = require('./test/fixtures.json')
 var crypto = require('crypto')
 var types = ['aes-128-cfb1', 'aes-192-cfb1', 'aes-256-cfb1']

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-browserify-aes.git



More information about the Pkg-javascript-commits mailing list