Socket
Socket
Sign inDemoInstall

warning

Package Overview
Dependencies
33
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 2.0.0

.npmignore

9

CHANGELOG.md

@@ -1,4 +0,9 @@

v1.0.2 - Sat, 30 May 2015 06:56:54 GMT
v2.0.0 - July 11, 2015
---------------------
- [1a33d40fa1](https://github.com/r3dm/warning/commit/1a33d40fa1) add browserify.js
v1.0.2 - May 30, 2015
--------------------------------------
- [2ac6962](https://github.com/r3dm/warning/commit/2ac6962263) fix return args in replace
- [2ac6962](https://github.com/r3dm/warning/commit/2ac6962263) fix return args in replace
{
"name": "warning",
"version": "1.0.2",
"version": "2.0.0",
"description": "A mirror of Facebook's Warning",
"main": "warning.js",
"browser": "browser.js",
"browserify": {
"transform": [
"envify"
]
},
"scripts": {
"test": "echo 'you've been warned'"
},
"dependencies": {
"envify": "^3.0.0"
},
"repository": {

@@ -20,3 +29,3 @@ "type": "git",

"author": "Berkeley Martinez <berkeley@r3dm.com> (http://r3dm.com)",
"license": "BSD",
"license": "BSD-2-Clause",
"bugs": {

@@ -23,0 +32,0 @@ "url": "https://github.com/r3dm/warning/issues"

# Warning
A mirror of Facebook's Warning
[![NPM](https://nodei.co/npm/warning.png?downloads=true)](https://npmjs.org/package/warning)
## Usage

@@ -25,1 +27,24 @@ ```

same logic and follow the same code paths.
## Browserify
When using [browserify](http://browserify.org/), the `browser.js` file will be imported instead of `invariant.js` and browserify will be told to transform the file with [envify](https://github.com/hughsk/envify). The only difference between `browser.js` and `invariant.js` is the `process.env.NODE_ENV` variable isn't cached. This, in combination with envify and (optionally) [uglifyjs](https://github.com/mishoo/UglifyJS), will result in a noop in production environments. Otherwise behavior is as expected.
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<small>Don't Forget To Be Awesome</small>
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