Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / node-pre-gyp / node_modules / tar / lib / buffer.js
diff --git a/legacy-libs/node-pre-gyp/node_modules/tar/lib/buffer.js b/legacy-libs/node-pre-gyp/node_modules/tar/lib/buffer.js
new file mode 100644 (file)
index 0000000..7876d5b
--- /dev/null
@@ -0,0 +1,11 @@
+'use strict'
+
+// Buffer in node 4.x < 4.5.0 doesn't have working Buffer.from
+// or Buffer.alloc, and Buffer in node 10 deprecated the ctor.
+// .M, this is fine .\^/M..
+let B = Buffer
+/* istanbul ignore next */
+if (!B.alloc) {
+  B = require('safe-buffer').Buffer
+}
+module.exports = B