Comparing version 0.7.1 to 0.7.2
## [Unreleased] | ||
## [0.7.2] - 2016-02-05 | ||
### Fixed | ||
- `URI`: correctly store reference to value in constructor and return it when stringifying | ||
### Removed | ||
- Backed out rejection tracking for React Native `Promise` implementation. That code now lives in React Native. | ||
## [0.7.1] - 2016-02-02 | ||
@@ -4,0 +12,0 @@ |
@@ -19,19 +19,2 @@ /** | ||
if (process.env.NODE_ENV !== 'production') { | ||
require('promise/setimmediate/rejection-tracking').enable({ | ||
allRejections: true, | ||
onUnhandled: function (id, error) { | ||
var message = error.message; | ||
var stack = error.stack; | ||
var warning = 'Possible Unhandled Promise Rejection (id: ' + id + '):\n' + (message == null ? '' : message + '\n') + (stack == null ? '' : stack); | ||
console.warn(warning); | ||
}, | ||
onHandled: function (id) { | ||
var warning = 'Promise Rejection Handled (id: ' + id + ')\n' + 'This means you can ignore any previous messages of the form ' + ('"Possible Unhandled Promise Rejection (id: ' + id + '):"'); | ||
console.warn(warning); | ||
} | ||
}); | ||
} | ||
/** | ||
@@ -38,0 +21,0 @@ * Handle either fulfillment or rejection with the same callback. |
@@ -9,3 +9,3 @@ /** | ||
* | ||
* @typechecks | ||
* @stub | ||
* | ||
@@ -18,6 +18,16 @@ */ | ||
var URI = function URI() { | ||
_classCallCheck(this, URI); | ||
}; | ||
var URI = (function () { | ||
function URI(uri) { | ||
_classCallCheck(this, URI); | ||
this._uri = uri; | ||
} | ||
URI.prototype.toString = function toString() { | ||
return this._uri; | ||
}; | ||
return URI; | ||
})(); | ||
module.exports = URI; |
{ | ||
"name": "fbjs", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"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
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 25 instances in 1 package
0
100
25
202484
2858