From c10b9ea13d5813cc245f4cf63628c770f29f58fc Mon Sep 17 00:00:00 2001 From: Martin Bydzovsky Date: Tue, 14 Oct 2014 16:32:17 +0200 Subject: [PATCH] fixed imports --- index.js | 2 +- require.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 6046a10..ada5f57 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,7 @@ module.exports = function(proto, opts) { if (!opts) opts = {} if (!proto) throw new Error('Pass in a .proto string or a protobuf-schema parsed object') - var sch = (typeof proto === 'object' && !Buffer.isBuffer(proto)) ? proto : schema.parse(proto) + var sch = (typeof proto === 'object' && !Buffer.isBuffer(proto)) ? proto : schema.parse(proto, opts) // to not make toString,toJSON enumarable we make a fire-and-forget prototype var Messages = function() { diff --git a/require.js b/require.js index b868886..1f04203 100644 --- a/require.js +++ b/require.js @@ -6,5 +6,5 @@ var protobuf = require('./') delete require.cache[require.resolve(__filename)] module.exports = function(filename, opts) { - return protobuf(resolve.sync(path.resolve(path.dirname(module.parent.filename), filename)), opts) + return protobuf(resolve.sync(path.resolve(path.dirname(module.parent.filename), filename), opts)) }