Comparing version 0.3.2 to 0.4.0
## [Unreleased] | ||
## 0.3.2 - 2015-01-12 | ||
## 0.4.0 - 2015-10-16 | ||
### Changed | ||
- `invariant`: Message is no longer prefixed with "Invariant Violation: ". | ||
## 0.3.2 - 2015-10-12 | ||
### Added | ||
@@ -6,0 +12,0 @@ - Apply appropriate transform (`loose-envify`) when bundling with `browserify` |
@@ -25,3 +25,3 @@ /** | ||
var invariant = function(condition, format, a, b, c, d, e, f) { | ||
function invariant(condition, format, a, b, c, d, e, f) { | ||
if (__DEV__) { | ||
@@ -44,5 +44,5 @@ if (format === undefined) { | ||
error = new Error( | ||
'Invariant Violation: ' + | ||
format.replace(/%s/g, function() { return args[argIndex++]; }) | ||
); | ||
error.name = 'Invariant Violation'; | ||
} | ||
@@ -53,4 +53,4 @@ | ||
} | ||
}; | ||
} | ||
module.exports = invariant; |
@@ -25,3 +25,3 @@ /** | ||
var invariant = function (condition, format, a, b, c, d, e, f) { | ||
function invariant(condition, format, a, b, c, d, e, f) { | ||
if (process.env.NODE_ENV !== 'production') { | ||
@@ -40,5 +40,6 @@ if (format === undefined) { | ||
var argIndex = 0; | ||
error = new Error('Invariant Violation: ' + format.replace(/%s/g, function () { | ||
error = new Error(format.replace(/%s/g, function () { | ||
return args[argIndex++]; | ||
})); | ||
error.name = 'Invariant Violation'; | ||
} | ||
@@ -49,4 +50,4 @@ | ||
} | ||
}; | ||
} | ||
module.exports = invariant; |
{ | ||
"name": "fbjs", | ||
"version": "0.3.2", | ||
"description": "", | ||
"version": "0.4.0", | ||
"description": "A collection of utility libraries used by other Facebook JS projects", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "repository": "facebook/fbjs", |
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
194666
5602