From ac8ae8f0ed68f99a957c2df6e7d2332f1f94e185 Mon Sep 17 00:00:00 2001 From: JP Richardson Date: Wed, 8 Jun 2016 17:00:37 -0500 Subject: [PATCH] opcodes: add json extension to fix Webpack JSON loader --- src/bufferutils.js | 2 +- src/index.js | 2 +- src/script.js | 2 +- src/transaction.js | 2 +- src/transaction_builder.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bufferutils.js b/src/bufferutils.js index bc44147..8e6db04 100644 --- a/src/bufferutils.js +++ b/src/bufferutils.js @@ -1,4 +1,4 @@ -var opcodes = require('./opcodes') +var opcodes = require('./opcodes.json') // https://github.com/feross/buffer/blob/master/index.js#L1127 function verifuint (value, max) { diff --git a/src/index.js b/src/index.js index a191f17..ed9d562 100644 --- a/src/index.js +++ b/src/index.js @@ -11,6 +11,6 @@ module.exports = { crypto: require('./crypto'), message: require('./message'), networks: require('./networks'), - opcodes: require('./opcodes'), + opcodes: require('./opcodes.json'), script: require('./script') } diff --git a/src/script.js b/src/script.js index 24783e5..917a8e5 100644 --- a/src/script.js +++ b/src/script.js @@ -3,7 +3,7 @@ var bufferutils = require('./bufferutils') var typeforce = require('typeforce') var types = require('./types') -var OPS = require('./opcodes') +var OPS = require('./opcodes.json') var REVERSE_OPS = (function () { var result = {} for (var op in OPS) { diff --git a/src/transaction.js b/src/transaction.js index 13a853b..378b212 100644 --- a/src/transaction.js +++ b/src/transaction.js @@ -2,7 +2,7 @@ var bcrypto = require('./crypto') var bscript = require('./script') var bufferutils = require('./bufferutils') var bufferReverse = require('buffer-reverse') -var opcodes = require('./opcodes') +var opcodes = require('./opcodes.json') var typeforce = require('typeforce') var types = require('./types') diff --git a/src/transaction_builder.js b/src/transaction_builder.js index e0f7b64..0ec0718 100644 --- a/src/transaction_builder.js +++ b/src/transaction_builder.js @@ -4,7 +4,7 @@ var bscript = require('./script') var bufferEquals = require('buffer-equals') var bufferReverse = require('buffer-reverse') var networks = require('./networks') -var ops = require('./opcodes') +var ops = require('./opcodes.json') var typeforce = require('typeforce') var types = require('./types')