Socket
Socket
Sign inDemoInstall

process

Package Overview
Dependencies
0
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.11.1 to 0.11.2

5

browser.js

@@ -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) {

3

package.json

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc