Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fbjs

Package Overview
Dependencies
Maintainers
8
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fbjs - npm Package Compare versions

Comparing version 0.8.7 to 0.8.8

6

CHANGELOG.md
## [Unreleased]
## [0.8.8] - 2016-12-20
### Changed
- `invariant`: Moved `process.env.NODE_ENV` check to module scope, eliminating check on each call.
## [0.8.7] - 2016-12-19

@@ -5,0 +11,0 @@

12

lib/invariant.js

@@ -24,9 +24,15 @@ /**

function invariant(condition, format, a, b, c, d, e, f) {
if (process.env.NODE_ENV !== 'production') {
var validateFormat = function validateFormat(format) {};
if (process.env.NODE_ENV !== 'production') {
validateFormat = function validateFormat(format) {
if (format === undefined) {
throw new Error('invariant requires an error message argument');
}
}
};
}
function invariant(condition, format, a, b, c, d, e, f) {
validateFormat(format);
if (!condition) {

@@ -33,0 +39,0 @@ var error;

{
"name": "fbjs",
"version": "0.8.7",
"version": "0.8.8",
"description": "A collection of utility libraries used by other Facebook JS projects",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc