Comparing version 0.8.12 to 0.8.13
## [Unreleased] | ||
## [0.8.13] - 2017-07-25 | ||
### Added | ||
- Flow annotations for `keyMirror` module. | ||
### Fixed | ||
- Fixed strict argument arity issues with `Deferred` module. | ||
- Corrected License header in `EventListener`. | ||
## [0.8.12] - 2017-03-29 | ||
@@ -5,0 +15,0 @@ |
@@ -55,11 +55,11 @@ "use strict"; | ||
Deferred.prototype["catch"] = function _catch() { | ||
Deferred.prototype["catch"] = function _catch(onReject) { | ||
return Promise.prototype["catch"].apply(this._promise, arguments); | ||
}; | ||
Deferred.prototype.then = function then() { | ||
Deferred.prototype.then = function then(onFulfill, onReject) { | ||
return Promise.prototype.then.apply(this._promise, arguments); | ||
}; | ||
Deferred.prototype.done = function done() { | ||
Deferred.prototype.done = function done(onFulfill, onReject) { | ||
// Embed the polyfill for the non-standard Promise.prototype.done so that | ||
@@ -66,0 +66,0 @@ // users of the open source fbjs don't need a custom lib for Promise |
@@ -5,15 +5,8 @@ 'use strict'; | ||
* Copyright (c) 2013-present, Facebook, Inc. | ||
* All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. An additional grant | ||
* of patent rights can be found in the PATENTS file in the same directory. | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* @typechecks | ||
@@ -20,0 +13,0 @@ */ |
@@ -10,2 +10,3 @@ /** | ||
* @typechecks static-only | ||
* | ||
*/ | ||
@@ -12,0 +13,0 @@ |
@@ -25,43 +25,41 @@ /** | ||
if (process.env.NODE_ENV !== 'production') { | ||
(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]; | ||
} | ||
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]; | ||
} | ||
var argIndex = 0; | ||
var message = 'Warning: ' + format.replace(/%s/g, function () { | ||
return args[argIndex++]; | ||
}); | ||
if (typeof console !== 'undefined') { | ||
console.error(message); | ||
} | ||
try { | ||
// --- Welcome to debugging React --- | ||
// This error was thrown as a convenience so that you can use this stack | ||
// to find the callsite that caused this warning to fire. | ||
throw new Error(message); | ||
} catch (x) {} | ||
}; | ||
var argIndex = 0; | ||
var message = 'Warning: ' + format.replace(/%s/g, function () { | ||
return args[argIndex++]; | ||
}); | ||
if (typeof console !== 'undefined') { | ||
console.error(message); | ||
} | ||
try { | ||
// --- Welcome to debugging React --- | ||
// This error was thrown as a convenience so that you can use this stack | ||
// to find the callsite that caused this warning to fire. | ||
throw new Error(message); | ||
} catch (x) {} | ||
}; | ||
warning = function warning(condition, format) { | ||
if (format === undefined) { | ||
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); | ||
} | ||
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 (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]; | ||
} | ||
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)); | ||
} | ||
}; | ||
})(); | ||
printWarning.apply(undefined, [format].concat(args)); | ||
} | ||
}; | ||
} | ||
module.exports = warning; |
{ | ||
"name": "fbjs", | ||
"version": "0.8.12", | ||
"version": "0.8.13", | ||
"description": "A collection of utility libraries used by other Facebook JS projects", | ||
@@ -23,3 +23,3 @@ "main": "index.js", | ||
"fbjs-scripts": "file:scripts", | ||
"flow-bin": "^0.38.0", | ||
"flow-bin": "^0.46.0", | ||
"gulp": "^3.9.1", | ||
@@ -26,0 +26,0 @@ "gulp-babel": "^6.1.2", |
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
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
382401
5387
1