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

dom-tools

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-tools - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

37

dist/dom-tools.js

@@ -94,4 +94,5 @@ (function webpackUniversalModuleDefinition(root, factory) {

remove: __webpack_require__(27),
show: __webpack_require__(28),
width: __webpack_require__(29),
removeClass: __webpack_require__(28),
show: __webpack_require__(29),
width: __webpack_require__(30),

@@ -101,3 +102,3 @@ // jQuery methods

nodeName: __webpack_require__(30),
nodeName: __webpack_require__(31),

@@ -107,6 +108,6 @@ // Events

addEventListener: __webpack_require__(31),
removeEventListener: __webpack_require__(32),
addEventListener: __webpack_require__(32),
removeEventListener: __webpack_require__(33),
__VERSION__: '0.1.1'
__VERSION__: '0.1.4'
};

@@ -684,2 +685,18 @@

// Snippet from:
//
function removeClass( /* Element */el, className) {
if (el.classList) el.classList.remove(className);else el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
}
module.exports = removeClass;
/***/ },
/* 29 */
/***/ function(module, exports) {
// IE8+
//
// Snippet from:
// http://youmightnotneedjquery.com/#show

@@ -693,3 +710,3 @@ function show( /* Element */el) {

/***/ },
/* 29 */
/* 30 */
/***/ function(module, exports, __webpack_require__) {

@@ -716,3 +733,3 @@

/***/ },
/* 30 */
/* 31 */
/***/ function(module, exports) {

@@ -729,3 +746,3 @@

/***/ },
/* 31 */
/* 32 */
/***/ function(module, exports, __webpack_require__) {

@@ -769,3 +786,3 @@

/***/ },
/* 32 */
/* 33 */
/***/ function(module, exports, __webpack_require__) {

@@ -772,0 +789,0 @@

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.DOMTools=e():t.DOMTools=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports={canUseDOM:n(1),addClass:n(5),after:n(7),append:n(8),before:n(9),children:n(10),clone:n(11),contains:n(3),css:n(12),empty:n(13),hasClass:n(15),height:n(16),html:n(18),find:n(14),insertAfter:n(4),hide:n(17),offset:n(20),outerHeight:n(21),outerWidth:n(22),parent:n(23),prepend:n(24),remove:n(25),show:n(27),width:n(32),nodeName:n(19),addEventListener:n(6),removeEventListener:n(26),__VERSION__:"0.1.1"}},function(t,e){t.exports=!("undefined"==typeof window||!window.document||!window.document.createElement)},function(t,e,n){"use strict";var o=n(29),r=/^(top|right|bottom|left)$/,i=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;t.exports=function(t){if(!t)throw new TypeError("No Element passed to `getComputedStyle()`");var e=t.ownerDocument;return"defaultView"in e?e.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):window.getComputedStyle(t,null):{getPropertyValue:function(e){var n=t.style;e=o(e),"float"==e&&(e="styleFloat");var u=t.currentStyle[e]||null;if(null==u&&n&&n[e]&&(u=n[e]),i.test(u)&&!r.test(e)){var f=n.left,c=t.runtimeStyle,s=c&&c.left;s&&(c.left=t.currentStyle.left),n.left="fontSize"===e?"1em":u,u=n.pixelLeft+"px",n.left=f,s&&(c.left=s)}return u}}}},function(t,e,n){var o=n(1),r=function(){var t=o&&document.documentElement;return t&&t.contains?function(t,e){return t.contains(e)}:t&&t.compareDocumentPosition?function(t,e){return t===e||!!(16&t.compareDocumentPosition(e))}:function(t,e){if(e)do if(e===t)return!0;while(e=e.parentNode);return!1}}();t.exports=r},function(t,e){function n(t,e){e.parentNode.insertBefore(t,e.nextSibling)}t.exports=n},function(t,e){function n(t,e){t.classList?t.classList.add(e):t.className+=" "+e}t.exports=n},function(t,e,n){var o=n(1),r=function(){};o&&(r=function(){return document.addEventListener?function(t,e,n,o){t.addEventListener(e,n,!!o)}:document.attachEvent?function(t,e,n){t.attachEvent("on"+e,n)}:void 0}()),t.exports=r},function(t,e,n){function o(t,e){"string"==typeof e?t.insertAdjacentHTML("afterend",e):r(e,t)}var r=n(4);t.exports=o},function(t,e){function n(t,e){t.appendChild(e)}t.exports=n},function(t,e){function n(t,e){"string"==typeof e?t.insertAdjacentHTML("beforebegin",e):t.parentNode.insertBefore(e,t)}t.exports=n},function(t,e,n){var o=n(1),r=function(){};o&&(r=function(){return document.children?function(t){return Array.prototype.slice.call(t.children)}:function(t){var e,n,o=[],r=t.childNodes;for(n=0;n<r.length;n++)e=r[n],1===e.nodeType&&o.push(e);return o}}()),t.exports=r},function(t,e){function n(t){return t.cloneNode(!0)}t.exports=n},function(t,e,n){function o(t,e){return r(t)[e]}var r=n(2);t.exports=o},function(t,e){function n(t){t.innerHTML=""}t.exports=n},function(t,e){function n(t,e){return t.querySelectorAll(e)}t.exports=n},function(t,e){function n(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}t.exports=n},function(t,e,n){function o(t){var e=r(t),n=t.clientHeight;return n-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)}var r=n(2);t.exports=o},function(t,e){function n(t){t.style.display="none"}t.exports=n},function(t,e){function n(t,e){return"string"!=typeof e?t.innerHTML:void(t.innerHTML=e)}t.exports=n},function(t,e){function n(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}t.exports=n},function(t,e,n){function o(t){var e=u(t),n=i(e),o=e&&e.documentElement,f={top:0,left:0,height:0,width:0};if(e)return r(o,t)?(void 0!==t.getBoundingClientRect&&(f=t.getBoundingClientRect()),(f.width||f.height)&&(f={top:f.top+(n.pageYOffset||o.scrollTop)-(o.clientTop||0),left:f.left+(n.pageXOffset||o.scrollLeft)-(o.clientLeft||0),width:(null==f.width?t.offsetWidth:f.width)||0,height:(null==f.height?t.offsetHeight:f.height)||0}),f):f}var r=n(3),i=n(30),u=n(31);t.exports=o},function(t,e,n){function o(t,e){var n=t.offsetHeight;if(e){var o=r(t);n+=parseInt(o.marginTop)+parseInt(o.marginBottom)}return n}var r=n(2);t.exports=o},function(t,e,n){function o(t,e){var n=t.offsetWidth;if(e){var o=r(t);return n+=parseInt(o.marginLeft)+parseInt(o.marginRight)}return n}var r=n(2);t.exports=o},function(t,e){function n(t){return t.parentNode}t.exports=n},function(t,e){function n(t,e){t.insertBefore(e,t.firstChild)}t.exports=n},function(t,e){function n(t){t.parentNode.removeChild(t)}t.exports=n},function(t,e,n){var o=n(1),r=function(){};o&&(r=function(){return document.addEventListener?function(t,e,n,o){t.removeEventListener(e,n,!!o)}:document.attachEvent?function(t,e,n){t.detachEvent("on"+e,n)}:void 0}()),t.exports=r},function(t,e){function n(t){t.style.display=""}t.exports=n},function(t,e){var n=/-(.)/g;t.exports=function(t){return t.replace(n,function(t,e){e.toUpperCase()})}},function(t,e,n){"use strict";var o=n(28),r=/^-ms-/;t.exports=function(t){return o(t.replace(r,"ms-"))}},function(t,e){function n(t){return t===t.window?t:9===t.nodeType?t.defaultView||t.parentWindow:!1}t.exports=n},function(t,e){function n(t){return t&&t.ownerDocument||document}t.exports=n},function(t,e,n){function o(t){var e=r(t),n=t.clientWidth;return n-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)}var r=n(2);t.exports=o}])});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.DOMTools=e():t.DOMTools=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports={canUseDOM:n(1),addClass:n(5),after:n(7),append:n(8),before:n(9),children:n(10),clone:n(11),contains:n(3),css:n(12),empty:n(13),hasClass:n(15),height:n(16),html:n(18),find:n(14),insertAfter:n(4),hide:n(17),offset:n(20),outerHeight:n(21),outerWidth:n(22),parent:n(23),prepend:n(24),remove:n(25),removeClass:n(26),show:n(28),width:n(33),nodeName:n(19),addEventListener:n(6),removeEventListener:n(27),__VERSION__:"0.1.4"}},function(t,e){t.exports=!("undefined"==typeof window||!window.document||!window.document.createElement)},function(t,e,n){"use strict";var o=n(30),r=/^(top|right|bottom|left)$/,i=/^([+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|))(?!px)[a-z%]+$/i;t.exports=function(t){if(!t)throw new TypeError("No Element passed to `getComputedStyle()`");var e=t.ownerDocument;return"defaultView"in e?e.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):window.getComputedStyle(t,null):{getPropertyValue:function(e){var n=t.style;e=o(e),"float"==e&&(e="styleFloat");var u=t.currentStyle[e]||null;if(null==u&&n&&n[e]&&(u=n[e]),i.test(u)&&!r.test(e)){var c=n.left,f=t.runtimeStyle,s=f&&f.left;s&&(f.left=t.currentStyle.left),n.left="fontSize"===e?"1em":u,u=n.pixelLeft+"px",n.left=c,s&&(f.left=s)}return u}}}},function(t,e,n){var o=n(1),r=function(){var t=o&&document.documentElement;return t&&t.contains?function(t,e){return t.contains(e)}:t&&t.compareDocumentPosition?function(t,e){return t===e||!!(16&t.compareDocumentPosition(e))}:function(t,e){if(e)do if(e===t)return!0;while(e=e.parentNode);return!1}}();t.exports=r},function(t,e){function n(t,e){e.parentNode.insertBefore(t,e.nextSibling)}t.exports=n},function(t,e){function n(t,e){t.classList?t.classList.add(e):t.className+=" "+e}t.exports=n},function(t,e,n){var o=n(1),r=function(){};o&&(r=function(){return document.addEventListener?function(t,e,n,o){t.addEventListener(e,n,!!o)}:document.attachEvent?function(t,e,n){t.attachEvent("on"+e,n)}:void 0}()),t.exports=r},function(t,e,n){function o(t,e){"string"==typeof e?t.insertAdjacentHTML("afterend",e):r(e,t)}var r=n(4);t.exports=o},function(t,e){function n(t,e){t.appendChild(e)}t.exports=n},function(t,e){function n(t,e){"string"==typeof e?t.insertAdjacentHTML("beforebegin",e):t.parentNode.insertBefore(e,t)}t.exports=n},function(t,e,n){var o=n(1),r=function(){};o&&(r=function(){return document.children?function(t){return Array.prototype.slice.call(t.children)}:function(t){var e,n,o=[],r=t.childNodes;for(n=0;n<r.length;n++)e=r[n],1===e.nodeType&&o.push(e);return o}}()),t.exports=r},function(t,e){function n(t){return t.cloneNode(!0)}t.exports=n},function(t,e,n){function o(t,e){return r(t)[e]}var r=n(2);t.exports=o},function(t,e){function n(t){t.innerHTML=""}t.exports=n},function(t,e){function n(t,e){return t.querySelectorAll(e)}t.exports=n},function(t,e){function n(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}t.exports=n},function(t,e,n){function o(t){var e=r(t),n=t.clientHeight;return n-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)}var r=n(2);t.exports=o},function(t,e){function n(t){t.style.display="none"}t.exports=n},function(t,e){function n(t,e){return"string"!=typeof e?t.innerHTML:void(t.innerHTML=e)}t.exports=n},function(t,e){function n(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}t.exports=n},function(t,e,n){function o(t){var e=u(t),n=i(e),o=e&&e.documentElement,c={top:0,left:0,height:0,width:0};if(e)return r(o,t)?(void 0!==t.getBoundingClientRect&&(c=t.getBoundingClientRect()),(c.width||c.height)&&(c={top:c.top+(n.pageYOffset||o.scrollTop)-(o.clientTop||0),left:c.left+(n.pageXOffset||o.scrollLeft)-(o.clientLeft||0),width:(null==c.width?t.offsetWidth:c.width)||0,height:(null==c.height?t.offsetHeight:c.height)||0}),c):c}var r=n(3),i=n(31),u=n(32);t.exports=o},function(t,e,n){function o(t,e){var n=t.offsetHeight;if(e){var o=r(t);n+=parseInt(o.marginTop)+parseInt(o.marginBottom)}return n}var r=n(2);t.exports=o},function(t,e,n){function o(t,e){var n=t.offsetWidth;if(e){var o=r(t);return n+=parseInt(o.marginLeft)+parseInt(o.marginRight)}return n}var r=n(2);t.exports=o},function(t,e){function n(t){return t.parentNode}t.exports=n},function(t,e){function n(t,e){t.insertBefore(e,t.firstChild)}t.exports=n},function(t,e){function n(t){t.parentNode.removeChild(t)}t.exports=n},function(t,e){function n(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}t.exports=n},function(t,e,n){var o=n(1),r=function(){};o&&(r=function(){return document.addEventListener?function(t,e,n,o){t.removeEventListener(e,n,!!o)}:document.attachEvent?function(t,e,n){t.detachEvent("on"+e,n)}:void 0}()),t.exports=r},function(t,e){function n(t){t.style.display=""}t.exports=n},function(t,e){var n=/-(.)/g;t.exports=function(t){return t.replace(n,function(t,e){e.toUpperCase()})}},function(t,e,n){"use strict";var o=n(29),r=/^-ms-/;t.exports=function(t){return o(t.replace(r,"ms-"))}},function(t,e){function n(t){return t===t.window?t:9===t.nodeType?t.defaultView||t.parentWindow:!1}t.exports=n},function(t,e){function n(t){return t&&t.ownerDocument||document}t.exports=n},function(t,e,n){function o(t){var e=r(t),n=t.clientWidth;return n-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)}var r=n(2);t.exports=o}])});
{
"name": "dom-tools",
"version": "0.1.3",
"version": "0.1.4",
"description": "A tiny collection of DOM helpers for IE8+.",

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

@@ -53,3 +53,3 @@ /* Provides DOM Helpers for -IE8+- IE9+

__VERSION__: '0.1.3'
__VERSION__: '0.1.4'
};

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