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.0 to 0.1.1

.idea/jsLibraryMappings.xml

198

dist/dom-tools.js

@@ -74,22 +74,24 @@ (function webpackUniversalModuleDefinition(root, factory) {

addClass: __webpack_require__(2),
append: __webpack_require__(3),
children: __webpack_require__(4),
clone: __webpack_require__(5),
contains: __webpack_require__(6),
css: __webpack_require__(7),
empty: __webpack_require__(11),
hasClass: __webpack_require__(12),
height: __webpack_require__(13),
html: __webpack_require__(14),
find: __webpack_require__(15),
insertAfter: __webpack_require__(16),
hide: __webpack_require__(17),
offset: __webpack_require__(18),
outerHeight: __webpack_require__(21),
outerWidth: __webpack_require__(22),
parent: __webpack_require__(23),
prepend: __webpack_require__(24),
remove: __webpack_require__(25),
show: __webpack_require__(26),
width: __webpack_require__(27),
after: __webpack_require__(3),
append: __webpack_require__(5),
before: __webpack_require__(6),
children: __webpack_require__(7),
clone: __webpack_require__(8),
contains: __webpack_require__(9),
css: __webpack_require__(10),
empty: __webpack_require__(14),
hasClass: __webpack_require__(15),
height: __webpack_require__(16),
html: __webpack_require__(17),
find: __webpack_require__(18),
insertAfter: __webpack_require__(4),
hide: __webpack_require__(19),
offset: __webpack_require__(20),
outerHeight: __webpack_require__(23),
outerWidth: __webpack_require__(24),
parent: __webpack_require__(25),
prepend: __webpack_require__(26),
remove: __webpack_require__(27),
show: __webpack_require__(28),
width: __webpack_require__(29),

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

nodeName: __webpack_require__(28),
nodeName: __webpack_require__(30),

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

addEventListener: __webpack_require__(29),
removeEventListener: __webpack_require__(30),
addEventListener: __webpack_require__(31),
removeEventListener: __webpack_require__(32),
__VERSION__: '0.1.0'
__VERSION__: '0.1.1'
};

@@ -139,2 +141,26 @@

/* 3 */
/***/ function(module, exports, __webpack_require__) {
var insertAfter = __webpack_require__(4);
// IE8+
//
// Attempts to mirror $.after for htmlString and Elements.
//
// Portion of this method is a snippet from:
// http://youmightnotneedjquery.com/#after
//
function after( /* Element */el, elementOrText) {
if (typeof elementOrText === 'string') {
el.insertAdjacentHTML('afterend', elementOrText);
} else {
insertAfter(elementOrText, el);
}
}
module.exports = after;
/***/ },
/* 4 */
/***/ function(module, exports) {

@@ -145,2 +171,16 @@

//
// snippet from http://stackoverflow.com/a/4793630
function insertAfter(newNode, referenceNode) {
referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);
}
module.exports = insertAfter;
/***/ },
/* 5 */
/***/ function(module, exports) {
// IE8+
//
// Snippet from:

@@ -155,3 +195,27 @@ // http://youmightnotneedjquery.com/#append

/***/ },
/* 4 */
/* 6 */
/***/ function(module, exports) {
// IE8+
//
// Attempts to mirror $.before for htmlString and Elements.
//
// Portion of this method is a snippet from:
// http://youmightnotneedjquery.com/#before
//
function before( /* Element */el, elementOrText) {
if (typeof elementOrText === 'string') {
el.insertAdjacentHTML('beforebegin', elementOrText);
} else {
// assumes node
el.parentNode.insertBefore(elementOrText, el);
}
}
module.exports = before;
/***/ },
/* 7 */
/***/ function(module, exports, __webpack_require__) {

@@ -196,3 +260,3 @@

/***/ },
/* 5 */
/* 8 */
/***/ function(module, exports) {

@@ -211,3 +275,3 @@

/***/ },
/* 6 */
/* 9 */
/***/ function(module, exports, __webpack_require__) {

@@ -238,6 +302,6 @@

/***/ },
/* 7 */
/* 10 */
/***/ function(module, exports, __webpack_require__) {
var _getComputedStyle = __webpack_require__(8);
var _getComputedStyle = __webpack_require__(11);

@@ -257,3 +321,3 @@ // IE8+

/***/ },
/* 8 */
/* 11 */
/***/ function(module, exports, __webpack_require__) {

@@ -265,3 +329,3 @@

var camelize = __webpack_require__(9);
var camelize = __webpack_require__(12);

@@ -324,3 +388,3 @@ var rposition = /^(top|right|bottom|left)$/;

/***/ },
/* 9 */
/* 12 */
/***/ function(module, exports, __webpack_require__) {

@@ -336,3 +400,3 @@

var camelize = __webpack_require__(10);
var camelize = __webpack_require__(13);
var msPattern = /^-ms-/;

@@ -345,3 +409,3 @@

/***/ },
/* 10 */
/* 13 */
/***/ function(module, exports) {

@@ -362,3 +426,3 @@

/***/ },
/* 11 */
/* 14 */
/***/ function(module, exports) {

@@ -377,3 +441,3 @@

/***/ },
/* 12 */
/* 15 */
/***/ function(module, exports) {

@@ -396,6 +460,6 @@

/***/ },
/* 13 */
/* 16 */
/***/ function(module, exports, __webpack_require__) {
var _getComputedStyle = __webpack_require__(8);
var _getComputedStyle = __webpack_require__(11);

@@ -419,3 +483,3 @@ // emulate $(el).height();

/***/ },
/* 14 */
/* 17 */
/***/ function(module, exports) {

@@ -438,3 +502,3 @@

/***/ },
/* 15 */
/* 18 */
/***/ function(module, exports) {

@@ -461,3 +525,3 @@

/***/ },
/* 16 */
/* 19 */
/***/ function(module, exports) {

@@ -468,16 +532,2 @@

//
// snippet from http://stackoverflow.com/a/4793630
function insertAfter(newNode, referenceNode) {
referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);
}
module.exports = insertAfter;
/***/ },
/* 17 */
/***/ function(module, exports) {
// IE8+
//
// Snippet from:

@@ -492,8 +542,8 @@ // http://youmightnotneedjquery.com/#hide

/***/ },
/* 18 */
/* 20 */
/***/ function(module, exports, __webpack_require__) {
var contains = __webpack_require__(6);
var getWindow = __webpack_require__(19);
var ownerDocument = __webpack_require__(20);
var contains = __webpack_require__(9);
var getWindow = __webpack_require__(21);
var ownerDocument = __webpack_require__(22);

@@ -532,3 +582,3 @@ // Modified version of:

/***/ },
/* 19 */
/* 21 */
/***/ function(module, exports) {

@@ -546,3 +596,3 @@

/***/ },
/* 20 */
/* 22 */
/***/ function(module, exports) {

@@ -560,6 +610,6 @@

/***/ },
/* 21 */
/* 23 */
/***/ function(module, exports, __webpack_require__) {
var _getComputedStyle = __webpack_require__(8);
var _getComputedStyle = __webpack_require__(11);

@@ -583,6 +633,6 @@ // IE8+

/***/ },
/* 22 */
/* 24 */
/***/ function(module, exports, __webpack_require__) {
var _getComputedStyle = __webpack_require__(8);
var _getComputedStyle = __webpack_require__(11);

@@ -607,3 +657,3 @@ // IE8+

/***/ },
/* 23 */
/* 25 */
/***/ function(module, exports) {

@@ -622,3 +672,3 @@

/***/ },
/* 24 */
/* 26 */
/***/ function(module, exports) {

@@ -637,3 +687,3 @@

/***/ },
/* 25 */
/* 27 */
/***/ function(module, exports) {

@@ -653,3 +703,3 @@

/***/ },
/* 26 */
/* 28 */
/***/ function(module, exports) {

@@ -669,6 +719,6 @@

/***/ },
/* 27 */
/* 29 */
/***/ function(module, exports, __webpack_require__) {
var _getComputedStyle = __webpack_require__(8);
var _getComputedStyle = __webpack_require__(11);

@@ -692,3 +742,3 @@ // emulate $(el).width();

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

@@ -705,3 +755,3 @@

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

@@ -745,3 +795,3 @@

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

@@ -748,0 +798,0 @@

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

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

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

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

addClass: require('./addClass'),
after: require('./after'),
append: require('./append'),
before: require('./before'),
children: require('./children'),

@@ -35,3 +37,3 @@ clone: require('./clone'),

parent: require('./parent'),
prepend: require('./preprend'),
prepend: require('./prepend'),
remove: require('./remove'),

@@ -52,3 +54,3 @@ show: require('./show'),

__VERSION__: '0.1.0'
__VERSION__: '0.1.1'
};

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