Socket
Socket
Sign inDemoInstall

fbjs

Package Overview
Dependencies
7
Maintainers
8
Versions
58
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.0 to 0.6.1

5

CHANGELOG.md
## [Unreleased]
## [0.6.1] - 2016-01-06
### Changed
- `getActiveElement`: no longer throws in non-browser environment (again)
## [0.6.0] - 2015-12-29

@@ -4,0 +9,0 @@

10

lib/getActiveElement.js

@@ -13,2 +13,4 @@ /**

/* eslint-disable fb-www/typeof-undefined */
/**

@@ -18,7 +20,11 @@ * Same as document.activeElement but wraps in a try-catch block. In IE it is

*
* 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 {

@@ -25,0 +31,0 @@ return document.activeElement || document.body;

2

package.json
{
"name": "fbjs",
"version": "0.6.0",
"version": "0.6.1",
"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

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