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.3.2 to 0.4.0

8

CHANGELOG.md
## [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`

6

flow/include/invariant.js

@@ -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",

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