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.3 to 0.8.4

5

CHANGELOG.md
## [Unreleased]
## [0.8.4] - 2016-08-19
### Changed
- Moved `try/catch` in `warning` module to helper function to prevent deopts.
## [0.8.3] - 2016-05-25

@@ -5,0 +10,0 @@

2

lib/createArrayFromMixed.js

@@ -74,3 +74,3 @@ 'use strict';

function hasArrayNature(obj) {
return(
return (
// not null/false

@@ -77,0 +77,0 @@ !!obj && (

@@ -45,3 +45,2 @@ 'use strict';

*/
function DataTransfer(data) {

@@ -48,0 +47,0 @@ _classCallCheck(this, DataTransfer);

@@ -28,3 +28,2 @@ "use strict";

*/
var Deferred = function () {

@@ -31,0 +30,0 @@ function Deferred() {

@@ -33,3 +33,2 @@ 'use strict';

// 22.1.5.1 CreateArrayIterator Abstract Operation
function ArrayIterator(array, kind) {

@@ -117,3 +116,2 @@ _classCallCheck(this, ArrayIterator);

// 21.1.5.1 CreateStringIterator Abstract Operation
function StringIterator(string) {

@@ -275,8 +273,8 @@ _classCallCheck(this, StringIterator);

} else if (object[Symbol.iterator]) {
return object[Symbol.iterator]();
return object[Symbol.iterator]();
// And fallback to generic with entries.
} else {
return GenericIterators[kind || KIND_ENTRIES](object);
}
// And fallback to generic with entries.
} else {
return GenericIterators[kind || KIND_ENTRIES](object);
}
}

@@ -283,0 +281,0 @@

@@ -59,3 +59,2 @@ /**

*/
function UnicodeBidiService(defaultDir) {

@@ -62,0 +61,0 @@ _classCallCheck(this, UnicodeBidiService);

@@ -114,3 +114,2 @@ /**

*/
isBrowser: function isBrowser(query) {

@@ -117,0 +116,0 @@ return compare(UserAgentData.browserName, UserAgentData.browserFullVersion, query);

@@ -380,3 +380,2 @@ /**

*/
contains: function contains(range, version) {

@@ -383,0 +382,0 @@ return checkOrExpression(range.trim(), version.trim());

@@ -25,16 +25,8 @@ /**

if (process.env.NODE_ENV !== 'production') {
warning = function warning(condition, format) {
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
args[_key - 2] = arguments[_key];
}
(function () {
var printWarning = function printWarning(format) {
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
if (format === undefined) {
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
}
if (format.indexOf('Failed Composite propType: ') === 0) {
return; // Ignore CompositeComponent proptype check.
}
if (!condition) {
var argIndex = 0;

@@ -53,6 +45,24 @@ var message = 'Warning: ' + format.replace(/%s/g, function () {

} catch (x) {}
}
};
};
warning = function warning(condition, format) {
if (format === undefined) {
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
}
if (format.indexOf('Failed Composite propType: ') === 0) {
return; // Ignore CompositeComponent proptype check.
}
if (!condition) {
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
args[_key2 - 2] = arguments[_key2];
}
printWarning.apply(undefined, [format].concat(args));
}
};
})();
}
module.exports = warning;
{
"name": "fbjs",
"version": "0.8.3",
"version": "0.8.4",
"description": "A collection of utility libraries used by other Facebook JS projects",

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

@@ -11,3 +11,3 @@ # FBJS

Any `@providesModule` modules that are used by your project should be added to `src/`. They will be built and added to `module-map.json`. This file will contain a map from `@providesModule` name to what will be published as `fbjs`. The `module-map.json` file can then be consumed in your own project, along with the [rewrite-modules](https://github.com/facebook/fbjs/blob/master/scripts/babel/rewrite-modules.js) Babel plugin (which we'll publish with this), to rewrite requires in your own project. Then, just make sure `fbjs` is a dependency in your `package.json` and your package will consume the shared code.
Any `@providesModule` modules that are used by your project should be added to `src/`. They will be built and added to `module-map.json`. This file will contain a map from `@providesModule` name to what will be published as `fbjs`. The `module-map.json` file can then be consumed in your own project, along with the [rewrite-modules](https://github.com/facebook/fbjs/blob/master/babel-preset/plugins/rewrite-modules.js) Babel plugin (which we'll publish with this), to rewrite requires in your own project. Then, just make sure `fbjs` is a dependency in your `package.json` and your package will consume the shared code.

@@ -14,0 +14,0 @@ ```js

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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