opcodes: add json extension to fix Webpack JSON loader

This commit is contained in:
JP Richardson 2016-06-08 17:00:37 -05:00
parent 7203b7a94d
commit ac8ae8f0ed
5 changed files with 5 additions and 5 deletions

View file

@ -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) {

View file

@ -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')
}

View file

@ -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) {

View file

@ -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')

View file

@ -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')