Skip to content

Commit

Permalink
fix(Buffer): import buffer for binary, decimal128, and fnv1a
Browse files Browse the repository at this point in the history
Fixes NODE-1891
  • Loading branch information
daprahamian committed Mar 8, 2019
1 parent f3c2a27 commit 6be7b8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/binary.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';

const Buffer = require('buffer').Buffer;

/**
* A class representation of the BSON Binary type.
*/
Expand Down
1 change: 1 addition & 0 deletions lib/decimal128.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

let Long = require('./long');
const Buffer = require('buffer').Buffer;

const PARSE_STRING_REGEXP = /^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/;
const PARSE_INF_REGEXP = /^(\+|-)?(Infinity|inf)$/i;
Expand Down
1 change: 1 addition & 0 deletions lib/fnv1a.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

const Buffer = require('buffer').Buffer;
const Long = require('./long');

const MASK_8 = 0xff;
Expand Down

0 comments on commit 6be7b8d

Please sign in to comment.