Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

domassist

Package Overview
Dependencies
Maintainers
5
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

domassist - npm Package Compare versions

Comparing version 1.8.0 to 1.9.0

lib/isTouch.js

38

dist/domassist.js

@@ -221,2 +221,30 @@ (function (exports) {

var transform = null;
function prefixedTransform() {
if (transform) {
return transform;
}
var testEl = document.createElement('div');
if (testEl.style.transform === null) {
var vendors = ['Webkit', 'webkit', 'Moz', 'ms'];
var property = null;
for (var i = 0, len = vendors.length; i < len && !property; i++) {
var tProperty = vendors[i] + 'Transform';
if (typeof testEl.style[tProperty] !== 'undefined') {
property = tProperty;
}
}
transform = property;
} else {
transform = 'transform';
}
return transform;
}
function removeClass(selector, cls) {

@@ -373,2 +401,8 @@ if (Array.isArray(selector)) {

/* global DocumentTouch */
function isTouch() {
return 'ontouchstart' in window || window.DocumentTouch && document instanceof DocumentTouch;
}
function bindEvents(el, events) {

@@ -452,2 +486,3 @@ Object.keys(events).forEach(function (event) {

once: once,
prefixedTransform: prefixedTransform,
removeClass: removeClass,

@@ -463,2 +498,3 @@ scrollableContainer: getScrollableContainer,

html: html,
isTouch: isTouch,
modify: modify,

@@ -481,2 +517,3 @@ append: append,

exports.once = once;
exports.prefixedTransform = prefixedTransform;
exports.removeClass = removeClass;

@@ -492,2 +529,3 @@ exports.scrollableContainer = getScrollableContainer;

exports.html = html;
exports.isTouch = isTouch;
exports.modify = modify;

@@ -494,0 +532,0 @@ exports.append = append;

4

domassist.default.js

@@ -13,2 +13,3 @@ import addClass from './lib/addClass';

import once from './lib/once';
import prefixedTransform from './lib/prefixedTransform';
import removeClass from './lib/removeClass';

@@ -24,2 +25,3 @@ import scrollableContainer from './lib/scrollableContainer';

import html from './lib/html';
import isTouch from './lib/isTouch';
import modify from './lib/modify';

@@ -42,2 +44,3 @@ import append from './lib/append';

once,
prefixedTransform,
removeClass,

@@ -53,2 +56,3 @@ scrollableContainer,

html,
isTouch,
modify,

@@ -55,0 +59,0 @@ append,

@@ -13,2 +13,3 @@ export { default as addClass } from './lib/addClass';

export { default as once } from './lib/once';
export { default as prefixedTransform } from './lib/prefixedTransform';
export { default as removeClass } from './lib/removeClass';

@@ -24,2 +25,3 @@ export { default as scrollableContainer } from './lib/scrollableContainer';

export { default as html } from './lib/html';
export { default as isTouch } from './lib/isTouch';
export { default as modify } from './lib/modify';

@@ -26,0 +28,0 @@ export { default as append } from './lib/append';

2

package.json
{
"name": "domassist",
"version": "1.8.0",
"version": "1.9.0",
"description": "Various dom helpers",

@@ -5,0 +5,0 @@ "main": "dist/domassist.js",

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc