aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-09 16:59:52 +0300
committerValentin Popov <info@valentineus.link>2017-10-09 16:59:52 +0300
commit73bdca9b218eabf36f70f8206c19ebe7ef1d66cd (patch)
tree856c9cf44dd938d90beaf5598f253dfd01692b75
parenta00f5aa64fb91031cfc75960df3e20eeaf48e8bc (diff)
downloadiii-client-73bdca9b218eabf36f70f8206c19ebe7ef1d66cd.tar.xz
iii-client-73bdca9b218eabf36f70f8206c19ebe7ef1d66cd.zip
Add support for all versions of NodeJS
-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';
/**