Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

fbjs

Package Overview
Dependencies
17
Maintainers
8
Versions
58
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 2.0.0

12

CHANGELOG.md

@@ -1,3 +0,13 @@

## [Unreleased]
## [2.0.0] - 2020-07-29
### Changed
- Upgraded `core-js` dependency to ^3.6.4
- Replaced `isomorphic-fetch` dependency with `cross-fetch`
### Fixed
- Fixed `__DEV__` check in `invariant`
## [1.0.0] - 2018-09-18
### Added

@@ -4,0 +14,0 @@ - More modules, primarily focused on the requirements of Fixed Data Table.

4

lib/fetch.js

@@ -10,3 +10,3 @@ /**

// its own fetch polyfill. That should exist on `global`. If that doesn't exist
// then we'll try to polyfill, which might not work correctly in all environments.
// then we'll try to ponyfill, which might not work correctly in all environments.

@@ -16,3 +16,3 @@ if (global.fetch) {

} else {
module.exports = require("isomorphic-fetch");
module.exports = require("cross-fetch");
}

@@ -11,7 +11,7 @@ /**

var validateFormat = process.env.NODE_ENV !== "production" ? function (format) {} : function (format) {
var validateFormat = process.env.NODE_ENV !== "production" ? function (format) {
if (format === undefined) {
throw new Error('invariant(...): Second argument must be a string.');
}
};
} : function (format) {};
/**

@@ -18,0 +18,0 @@ * Use invariant() to assert state which your program assumes to be true.

@@ -10,2 +10,2 @@ "use strict";

*/
module.exports = require("core-js/library/es6/map");
module.exports = require("core-js/es/map");

@@ -13,3 +13,3 @@ "use strict";

var performanceNow;
var loadTime = Date.now();
/**

@@ -21,12 +21,6 @@ * Detect if we can use `window.performance.now()` and gracefully fallback to

if (performance.now) {
performanceNow = function performanceNow() {
return performance.now();
};
} else {
performanceNow = function performanceNow() {
return Date.now();
};
}
module.exports = performanceNow;
module.exports = performance.now ? function () {
return performance.now();
} : function () {
return Date.now() - loadTime;
};

@@ -10,2 +10,2 @@ "use strict";

*/
module.exports = require("core-js/library/es6/set");
module.exports = require("core-js/es/set");
{
"name": "fbjs",
"version": "1.0.0",
"version": "2.0.0",
"description": "A collection of utility libraries used by other Facebook JS projects",

@@ -22,11 +22,10 @@ "main": "index.js",

"fbjs-scripts": "file:../fbjs-scripts",
"flow-bin": "^0.80.0",
"gulp": "^3.9.1",
"flow-bin": "^0.99.0",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"gulp-flatten": "^0.2.0",
"gulp-rename": "^1.2.2",
"gulp-flatten": "^0.4.0",
"gulp-rename": "^2.0.0",
"immutable": "^3.7.6",
"jest-cli": "^17.0.3",
"merge-stream": "^1.0.0",
"run-sequence": "^1.1.5"
"jest-cli": "^23.6.0",
"merge-stream": "^1.0.0"
},

@@ -48,8 +47,7 @@ "license": "MIT",

],
"persistModuleRegistryBetweenSpecs": true,
"rootDir": "",
"setupFiles": [
"node_modules/fbjs-scripts/jest/environment.js"
"fbjs-scripts/jest/environment.js"
],
"testPathDirs": [
"roots": [
"<rootDir>/src"

@@ -59,3 +57,3 @@ ],

"transform": {
".*": "node_modules/fbjs-scripts/jest/preprocessor.js"
".*": "fbjs-scripts/jest/preprocessor.js"
},

@@ -71,5 +69,5 @@ "transformIgnorePatterns": [

"dependencies": {
"core-js": "^2.4.1",
"core-js": "^3.6.4",
"cross-fetch": "^3.0.4",
"fbjs-css-vars": "^1.0.0",
"isomorphic-fetch": "^2.1.1",
"loose-envify": "^1.0.0",

@@ -76,0 +74,0 @@ "object-assign": "^4.1.0",

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

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc