[Pkg-javascript-commits] [node-browser-pack] 08/27: Uses safe-buffer package to enable backward compatibility in Node < 4 for Buffer.from
Bastien Roucariès
rouca at moszumanska.debian.org
Sun Feb 18 22:35:16 UTC 2018
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-browser-pack.
commit 8923267c54dbd627e0d9c1afe0d7401dd0fd916f
Author: JMJBower <jmjbower at gmail.com>
Date: Mon Jan 15 12:30:28 2018 +0000
Uses safe-buffer package to enable backward compatibility in Node < 4 for Buffer.from
---
index.js | 1 +
package.json | 1 +
2 files changed, 2 insertions(+)
diff --git a/index.js b/index.js
index 284c780..ffa91c7 100644
--- a/index.js
+++ b/index.js
@@ -2,6 +2,7 @@ var JSONStream = require('JSONStream');
var defined = require('defined');
var through = require('through2');
var umd = require('umd');
+var Buffer = require('safe-buffer').Buffer;
var fs = require('fs');
var path = require('path');
diff --git a/package.json b/package.json
index 5bf686f..bbb2686 100644
--- a/package.json
+++ b/package.json
@@ -10,6 +10,7 @@
"JSONStream": "^1.0.3",
"combine-source-map": "~0.8.0",
"defined": "^1.0.0",
+ "safe-buffer": "^5.1.1",
"through2": "^2.0.0",
"umd": "^3.0.0"
},
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-browser-pack.git
More information about the Pkg-javascript-commits
mailing list