aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package.json3
-rw-r--r--src/index.js1
2 files changed, 4 insertions, 0 deletions
diff --git a/package.json b/package.json
index 1ca0009..b8437b3 100644
--- a/package.json
+++ b/package.json
@@ -42,5 +42,8 @@
"build": "npm run build-browser && npm run build-standalone",
"test": "mocha src/test.js --compilers js:babel-core/register",
"check": "eslint ./src/index.js"
+ },
+ "dependencies": {
+ "safe-buffer": "^5.1.1"
}
}
diff --git a/src/index.js b/src/index.js
index 7cbf47a..a0a9acb 100644
--- a/src/index.js
+++ b/src/index.js
@@ -1,3 +1,4 @@
+import { Buffer } from 'safe-buffer';
import http from 'http';
/**