Socket
Socket
Sign inDemoInstall

warning

Package Overview
Dependencies
2
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.0 to 3.0.0

12

package.json
{
"name": "warning",
"version": "2.1.0",
"version": "3.0.0",
"description": "A mirror of Facebook's Warning",

@@ -28,3 +28,3 @@ "main": "warning.js",

"type": "git",
"url": "https://github.com/r3dm/warning.git"
"url": "https://github.com/BerkeleyTrue/warning.git"
},

@@ -37,8 +37,8 @@ "keywords": [

],
"author": "Berkeley Martinez <berkeley@r3dm.com> (http://r3dm.com)",
"license": "BSD-2-Clause",
"author": "Berkeley Martinez <berkeley@r3dm.com> (http://www.freecodecamp.com)",
"license": "BSD-3-Clause",
"bugs": {
"url": "https://github.com/r3dm/warning/issues"
"url": "https://github.com/BerkeleyTrue/warning/issues"
},
"homepage": "https://github.com/r3dm/warning"
"homepage": "https://github.com/BerkeleyTrue/warning"
}

@@ -1,7 +0,5 @@

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

@@ -18,4 +16,6 @@ ```

warning(ShouldBeTrue, 'This thing should be true but you set to false. No soup
for you!');
warning(
ShouldBeTrue,
'This thing should be true but you set to false. No soup for you!'
);
// 'This thing should be true but you set to false. No soup for you!'

@@ -33,2 +33,5 @@ ```

## Use in Production
It is recommended to add [babel-plugin-dev-expression](https://github.com/4Catalyzer/babel-plugin-dev-expression) with this module to remove warning messages in production.
<br>

@@ -35,0 +38,0 @@ <br>

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