Socket
Socket
Sign inDemoInstall

@deckdeckgo/utils

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deckdeckgo/utils - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

8

CHANGELOG.md

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

<a name="1.1.0"></a>
# 1.1.0 (2020-04-17)
### Features
- add function `isRTL()`
<a name="1.0.0"></a>

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

@@ -53,2 +53,9 @@ 'use strict';

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

@@ -137,4 +144,5 @@ function lazyLoadSelectedImages(images) {

exports.isMobile = isMobile;
exports.isRTL = isRTL;
exports.lazyLoadSelectedImages = lazyLoadSelectedImages;
exports.lazyLoadSelectedLazyImagesComponent = lazyLoadSelectedLazyImagesComponent;
exports.unifyEvent = unifyEvent;

1

lib/utils/utils.d.ts

@@ -8,1 +8,2 @@ export declare function unifyEvent(e: any): any;

export declare function isFirefox(): boolean;
export declare function isRTL(): boolean;

@@ -49,1 +49,8 @@ export function unifyEvent(e) {

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

2

package.json
{
"name": "@deckdeckgo/utils",
"version": "1.0.0",
"version": "1.1.0",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc