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.2.1 to 0.3.1

CHANGELOG.md

8

flow/include/fetchWithRetries.js

@@ -89,3 +89,9 @@ /**

// Request was not successful, giving up.
reject(response);
var error: any = new Error(sprintf(
'fetchWithRetries(): Still no successful response after ' +
'%s retries, giving up.',
requestsAttempted
));
error.response = response;
reject(error);
}

@@ -92,0 +98,0 @@ }

@@ -17,5 +17,9 @@ /**

*
* The activeElement will be null only if the document body is not yet defined.
* The activeElement will be null only if the document or document body is not yet defined.
*/
function getActiveElement() /*?DOMElement*/ {
if (typeof document === 'undefined') {
return null;
}
try {

@@ -22,0 +26,0 @@ return document.activeElement || document.body;

2

flow/include/getUnboundedScrollPosition.js

@@ -13,3 +13,3 @@ /**

"use strict";
'use strict';

@@ -16,0 +16,0 @@ /**

@@ -12,3 +12,3 @@ /**

"use strict";
'use strict';

@@ -15,0 +15,0 @@ /**

@@ -12,3 +12,3 @@ /**

"use strict";
'use strict';

@@ -15,0 +15,0 @@ var invariant = require('invariant');

@@ -12,3 +12,3 @@ /**

"use strict";
'use strict';

@@ -50,3 +50,3 @@ var emptyFunction = require('emptyFunction');

throw new Error(message);
} catch(x) {}
} catch (x) {}
}

@@ -53,0 +53,0 @@ };

@@ -82,3 +82,5 @@ /**

// Request was not successful, giving up.
reject(response);
var error = new Error(sprintf('fetchWithRetries(): Still no successful response after ' + '%s retries, giving up.', requestsAttempted));
error.response = response;
reject(error);
}

@@ -85,0 +87,0 @@ }

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

*
* The activeElement will be null only if the document body is not yet defined.
* The activeElement will be null only if the document or document body is not yet defined.
*/
"use strict";
'use strict';
function getActiveElement() /*?DOMElement*/{
if (typeof document === 'undefined') {
return null;
}
try {

@@ -24,0 +28,0 @@ return document.activeElement || document.body;

@@ -13,3 +13,3 @@ /**

"use strict";
'use strict';

@@ -16,0 +16,0 @@ /**

@@ -12,3 +12,3 @@ /**

"use strict";
'use strict';

@@ -15,0 +15,0 @@ /**

@@ -12,3 +12,3 @@ /**

"use strict";
'use strict';

@@ -15,0 +15,0 @@ var invariant = require('./invariant');

@@ -12,3 +12,3 @@ /**

"use strict";
'use strict';

@@ -15,0 +15,0 @@ var emptyFunction = require('./emptyFunction');

@@ -12,2 +12,5 @@ {

"URI": "fbjs/lib/URI",
"UserAgent": "fbjs/lib/UserAgent",
"UserAgentData": "fbjs/lib/UserAgentData",
"VersionRange": "fbjs/lib/VersionRange",
"areEqual": "fbjs/lib/areEqual",

@@ -38,5 +41,7 @@ "camelize": "fbjs/lib/camelize",

"isTextNode": "fbjs/lib/isTextNode",
"joinClasses": "fbjs/lib/joinClasses",
"keyMirror": "fbjs/lib/keyMirror",
"keyOf": "fbjs/lib/keyOf",
"mapObject": "fbjs/lib/mapObject",
"memoizeStringOnly": "fbjs/lib/memoizeStringOnly",
"monitorCodeUse": "fbjs/lib/monitorCodeUse",

@@ -43,0 +48,0 @@ "nativeRequestAnimationFrame": "fbjs/lib/nativeRequestAnimationFrame",

{
"name": "fbjs",
"version": "0.2.1",
"version": "0.3.1",
"description": "",

@@ -9,2 +9,3 @@ "main": "index.js",

"build": "gulp build",
"lint": "eslint .",
"prepublish": "npm run build",

@@ -19,11 +20,13 @@ "pretest": "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json",

"babel": "^5.4.7",
"del": "^1.2.0",
"babel-eslint": "^4.1.3",
"del": "^1.2.1",
"eslint": "^1.5.0",
"fbjs-scripts": "file:scripts",
"flow-bin": "^0.14.0",
"flow-bin": "^0.16.0",
"gulp": "^3.9.0",
"gulp-babel": "^5.1.0",
"gulp-flatten": "^0.1.1",
"gulp-flatten": "^0.2.0",
"jest-cli": "^0.5.0",
"merge-stream": "^0.1.8",
"object-assign": "^3.0.0",
"merge-stream": "^1.0.0",
"object-assign": "^4.0.1",
"run-sequence": "^1.1.0"

@@ -50,4 +53,4 @@ },

"rootDir": "",
"scriptPreprocessor": "scripts/jest/preprocessor.js",
"setupEnvScriptFile": "scripts/jest/environment.js",
"scriptPreprocessor": "node_modules/fbjs-scripts/jest/preprocessor.js",
"setupEnvScriptFile": "node_modules/fbjs-scripts/jest/environment.js",
"testPathDirs": [

@@ -64,8 +67,9 @@ "<rootDir>/src"

"promise": "^7.0.3",
"ua-parser-js": "^0.7.9",
"whatwg-fetch": "^0.9.0"
},
"devEngines": {
"node": "3.x",
"node": ">=3",
"npm": "2.x"
}
}
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