Socket
Socket
Sign inDemoInstall

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.7.1 to 0.7.2

8

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

17

lib/Promise.native.js

@@ -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.

18

lib/URI.js

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

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