Socket
Socket
Sign inDemoInstall

@deckdeckgo/utils

Package Overview
Dependencies
0
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.8.0 to 1.8.1

8

CHANGELOG.md

@@ -0,1 +1,9 @@

<a name="1.8.1"></a>
# 1.8.1 (2021-04-23)
### Chore
- remove document check
<a name="1.8.0"></a>

@@ -2,0 +10,0 @@

6

lib/index.cjs.js

@@ -42,5 +42,2 @@ 'use strict';

function isFullscreen() {
if (!document) {
return false;
}
return (!!(document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement));

@@ -56,5 +53,2 @@ }

function isRTL() {
if (!document || !document.documentElement) {
return false;
}
const htmlDir = document.documentElement.getAttribute('dir');

@@ -61,0 +55,0 @@ return htmlDir !== null && htmlDir === 'rtl';

@@ -38,5 +38,2 @@ export function unifyEvent(e) {

export function isFullscreen() {
if (!document) {
return false;
}
return (!!(document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement || document.msFullscreenElement));

@@ -52,5 +49,2 @@ }

export function isRTL() {
if (!document || !document.documentElement) {
return false;
}
const htmlDir = document.documentElement.getAttribute('dir');

@@ -57,0 +51,0 @@ return htmlDir !== null && htmlDir === 'rtl';

2

package.json
{
"name": "@deckdeckgo/utils",
"version": "1.8.0",
"version": "1.8.1",
"author": "David Dal Busco",

@@ -5,0 +5,0 @@ "description": "A collection of utils methods and functions developed for DeckDeckGo",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc