Comparing version 0.8.7 to 0.8.8
## [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 @@ |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
381092
5388