diff options
author | Kat Marchán <kzm@sykosomatic.org> | 2016-05-27 14:07:59 -0700 |
---|---|---|
committer | Jeremiah Senkpiel <fishrock123@rocketmail.com> | 2016-05-28 10:42:48 -0400 |
commit | bd8b1ddb2007dcc8ec2a0a08e16208aa21b83400 (patch) | |
tree | aab54a7bbc42e1477a8a2b175dfc9f9eb36ca9e2 /deps/npm/node_modules/readable-stream/node_modules/inline-process-browser/index.js | |
parent | 16f98e589c69ffe6283aa11493fd417368708557 (diff) | |
download | android-node-v8-bd8b1ddb2007dcc8ec2a0a08e16208aa21b83400.tar.gz android-node-v8-bd8b1ddb2007dcc8ec2a0a08e16208aa21b83400.tar.bz2 android-node-v8-bd8b1ddb2007dcc8ec2a0a08e16208aa21b83400.zip |
deps: upgrade npm to 3.9.3
Contains the following npm releases:
- v3.9.0: https://github.com/npm/npm/releases/tag/v3.9.0
- v3.9.1: https://github.com/npm/npm/releases/tag/v3.9.1
- v3.9.2: https://github.com/npm/npm/releases/tag/v3.9.2
- v3.9.3: https://github.com/npm/npm/releases/tag/v3.9.3
PR-URL: https://github.com/nodejs/node/pull/7030
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'deps/npm/node_modules/readable-stream/node_modules/inline-process-browser/index.js')
-rw-r--r-- | deps/npm/node_modules/readable-stream/node_modules/inline-process-browser/index.js | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/deps/npm/node_modules/readable-stream/node_modules/inline-process-browser/index.js b/deps/npm/node_modules/readable-stream/node_modules/inline-process-browser/index.js deleted file mode 100644 index c1fb0077e9..0000000000 --- a/deps/npm/node_modules/readable-stream/node_modules/inline-process-browser/index.js +++ /dev/null @@ -1,37 +0,0 @@ -'use strict'; -var through = require('through2'); -var falafel = require('falafel'); - -module.exports = apply; -var regex = /process\s*\.\s*browser/; -function apply() { - var buffers = []; - - return through(function(chunk, enc, next) { - buffers.push(chunk); - next(); - }, function(next) { - var string = Buffer.concat(buffers).toString(); - if (!string.match(regex)) { - this.push(string); - return next(); - } - var resp = falafel(string, { - ecmaVersion: 6, - allowReturnOutsideFunction: true - }, function (node) { - - if ( - node.type === 'MemberExpression' && - node.object && node.property && - node.object.name === 'process' - && node.property.name === 'browser' && - !(node.parent ? node.parent.operator === '=' && node.parent.left === node : true) - ) { - node.update('true'); - } - }); - this.push(resp.toString()); - next(); - }); -} |