process
Advanced tools
Comparing version 0.11.1 to 0.11.2
@@ -33,3 +33,5 @@ // shim for using process in browser | ||
while (++queueIndex < len) { | ||
currentQueue[queueIndex].run(); | ||
if (currentQueue) { | ||
currentQueue[queueIndex].run(); | ||
} | ||
} | ||
@@ -86,3 +88,2 @@ queueIndex = -1; | ||
// TODO(shtylman) | ||
process.cwd = function () { return '/' }; | ||
@@ -89,0 +90,0 @@ process.chdir = function (dir) { |
@@ -11,3 +11,3 @@ { | ||
}, | ||
"version": "0.11.1", | ||
"version": "0.11.2", | ||
"repository": { | ||
@@ -17,2 +17,3 @@ "type": "git", | ||
}, | ||
"license": "MIT", | ||
"browser": "./browser.js", | ||
@@ -19,0 +20,0 @@ "main": "./index.js", |
@@ -9,4 +9,6 @@ # process | ||
The goal of this module is not to be a full-fledged alternative to the builtin process module. This module mostly exists to provide the nextTick functionality and nothing more. We keep this module lean because it will often be included by default by tools like browserify when it detects a module has used the `process` global. | ||
The goal of this module is not to be a full-fledged alternative to the builtin process module. This module mostly exists to provide the nextTick functionality and little more. We keep this module lean because it will often be included by default by tools like browserify when it detects a module has used the `process` global. | ||
It also exposes a "browser" member (i.e. `process.browser`) which is `true` in this implementation but `undefined` in node. This can be used in isomorphic code that adjusts it's behavior depending on which environment it's running in. | ||
If you are looking to provide other process methods, I suggest you monkey patch them onto the process global in your app. A list of user created patches is below. | ||
@@ -13,0 +15,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
7368
145
27
0