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

pocket-dom

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pocket-dom - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

8

dist/dom.js

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

// dom - v1.0.0 - MIT License
// dom - v1.0.1 - MIT License
// 2015 (c) OrderGroove Developers

@@ -8,3 +8,3 @@

var _ = require('./_misc');
var _ = require('misc');

@@ -375,4 +375,4 @@ /**

},{"./_misc":2}],2:[function(require,module,exports){
// misc - v1.0.0 - License MIT
},{"misc":2}],2:[function(require,module,exports){
// misc - v1.0.1 - MIT License
// 2015 (c) OrderGroove Developers

@@ -379,0 +379,0 @@

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

!function e(t,n,r){function o(i,c){if(!n[i]){if(!t[i]){var u="function"==typeof require&&require;if(!c&&u)return u(i,!0);if(a)return a(i,!0);var s=new Error("Cannot find module '"+i+"'");throw s.code="MODULE_NOT_FOUND",s}var f=n[i]={exports:{}};t[i][0].call(f.exports,function(e){var n=t[i][1][e];return o(n?n:e)},f,f.exports,e,t,n,r)}return n[i].exports}for(var a="function"==typeof require&&require,i=0;i<r.length;i++)o(r[i]);return o}({1:[function(e,t,n){!function(n,r,o){"use strict";var a=e("./_misc"),i={_doc:n,_window:r};i._ua=i._window.navigator.userAgent,i.$=function(e,t){var n,r;return t||(t=i._doc),(n=e.match(/^#([a-zA-Z0-9_\-]+)$/))?(r=i._doc.getElementById(n[1]),r?[r]:[]):(n=e.match(/^\.([a-zA-Z0-9_\-]+)$/),n&&t.getElementsByClassName?a.slice(t.getElementsByClassName(n[1]),0):a.slice(t.querySelectorAll(e),0))},i.addEvent=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},i.removeEvent=function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=o},i.oneTimeEvent=function(e,t,n,r){i.addEvent(e,t,function o(){n.apply(this,arguments),i.removeEvent(e,t,o),"function"==typeof r&&i.addEvent(e,t,r)})},i.getEventTarget=function(e){var t=null;return e||(e=i._window.event),e.target?t=e.target:e.srcElement&&(t=e.srcElement),t&&3===t.nodeType&&(t=t.parentNode),t},i.scrollToEl=function(e){window.scroll(o,e.offsetTop)},i.getWindowYOffset=function(){return"undefined"!=typeof window.pageYOffset?window.pageYOffset:(i._doc.documentElement||i._doc.body.parentNode||i._doc.body).scrollTop},i._addClassShim=function(e,t){i.hasClass(e,t)||(e.className+=""===e.className?t:" "+t)},i._removeClassShim=function(e,t){e.className=e.className.replace(new RegExp("\\b"+t+"\\b","gi"),"")},i.addClass=function(e,t){if(a.isArray(t))for(var n=0;n<t.length;n++)i.addClass(e,t[n]);else document.documentElement.classList?e.classList.add(t):i._addClassShim(e,t);return i},i.removeClass=function(e,t){if(a.isArray(t))for(var n=0;n<t.length;n++)i.removeClass(e,t[n]);else document.documentElement.classList?e.classList.remove(t):i._removeClassShim(e,t);return i},i.hasClass=function(e,t){var n=e.className.split(/\s+/);return-1!==a.indexOf(n,t)},i.checkIsParent=function(e,t){for(var n=e;n!==document.documentElement;){if(n===t)return!0;n=n.parentNode}return!1},i.centerToElement=function(e,t){var n=e.getBoundingClientRect().left+e.offsetWidth/2;if(a.isArray(t))for(var r=0;r<t.length;r++)i.centerToElement(e,t[r]);else t.style.left=n-t.offsetWidth/2+"px"},i.findParentByClass=function(e,t){for(var n=e.parentNode;n.parentNode;){if(i.hasClass(n,t))return n;n=n.parentNode}return null},i.setCssProperty=function(e,t,n,r){if(e.style.setProperty)e.style.setProperty(t,n,r);else if(e.style.setAttribute(t,n),r){var o=new RegExp(encodeURIComponent(t)+"\\s*:\\s*"+encodeURIComponent(n)+"(\\s*;)?","gmi");e.style.cssText=e.style.cssText.replace(o,t+": "+n+" !"+r+";")}},i.ready=function(e){var t=!1,n=!0,o=r.document,a=o.documentElement,i=o.addEventListener,c=i?"addEventListener":"attachEvent",u=i?"removeEventListener":"detachEvent",s=i?"":"on",f=function(n){("readystatechange"!==n.type||"complete"===o.readyState)&&(("load"===n.type?r:o)[u](s+n.type,f,!1),!t&&(t=!0)&&e.call(r,n.type||n))},l=function(){try{a.doScroll("left")}catch(e){return void setTimeout(l,50)}f("poll")};if("complete"===o.readyState)e.call(r,"lazy");else{if(!i&&a.doScroll){try{n=!r.frameElement}catch(p){}n&&l()}o[c](s+"DOMContentLoaded",f,!1),o[c](s+"readystatechange",f,!1),r[c](s+"load",f,!1)}},i.ieVersion=function(){var e=i._ua.match(/rv:([0-9\.]+)/),t=!1;return e&&11===+e[1]&&(t=+e[1]),t||(t=-1!==i._ua.toLowerCase().indexOf("msie")?parseInt(i._ua.toLowerCase().split("msie")[1],10):!1),t}(),t.exports=i}(document,window)},{"./_misc":2}],2:[function(e,t,n){!function(){"use strict";var e={};e.slice=function(){var e=Array.prototype.slice,t=!1;try{e.call(document.documentElement)}catch(n){t=!0}return t?function(e,t,n){var r,o=e.length,a=[];if(null===e)throw new TypeError("Array.prototype.slice called on null or undefined");if(t=null===t?0:t>=0?t:o-t,n=null===n?o:n>=0?n:o-n,e.charAt)for(r=t;n>r;r++)a.push(e.charAt(r));else for(r=t;n>r;r++)a.push(e[r]);return a}:function(t,n,r){return e.call(t,n,r)}}(),e.keys=function(){var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=n.length;return function(o){if(Object.prototype.keys)return Object.keys(o);if("object"!=typeof o&&("function"!=typeof o||null===o))throw new TypeError("Object.keys called on non-object");var a,i,c=[];for(a in o)e.call(o,a)&&c.push(a);if(t)for(i=0;r>i;i++)e.call(o,n[i])&&c.push(n[i]);return c}}(),e.values=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t},e.toMap=function(e,t){var n,r,o,a,i={};for(n=0,r=e.length;r>n;n++)o=e[n],a="string"==typeof t?o[t]:t(o),null!==a&&void 0!==a&&(i[a]=o);return i},e.bind=function(e,t){if(e.bind)return e.bind.apply(e,Array.prototype.slice.call(arguments,1));if("function"!=typeof e)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var n=Array.prototype.slice.call(arguments,2),r=e,o=function(){},a=function(){return r.apply(this instanceof o&&t?e:t,n.concat(Array.prototype.slice.call(arguments)))};return o.prototype=e.prototype,a.prototype=new o,a},e.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.indexOf=function(e,t,n){if(e.indexOf)return e.indexOf(t,n);if(null===e)throw new TypeError('"arr" is null or not defined');var r=this.length>>>0;for(n=+n||0,Math.abs(n)===1/0&&(n=0),0>n&&(n+=r,0>n&&(n=0));r>n;n++)if(e[n]===t)return n;return-1},e.contains=function(t,n,r){return-1!==e.indexOf(t,n,r)},e.extend=function(e){var t,n,r;for(t=1,n=arguments.length;n>t;t++)if(r=arguments[t])for(var o in r)e[o]=r[o];return e},e.deepExtend=function(t){var n,r,o;for(n=1,r=arguments.length;r>n;n++)if(o=arguments[n])for(var a in o)e.isObject(o[a])?(t.hasOwnProperty(a)||(t[a]={}),t[a]=e.deepExtend(t[a],o[a])):t[a]=o[a];return t},e.inherit=function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n},e.trim=function(e){return e.replace(/^\s+|\s+$/g,"")},e.map=function(e,t,n){if(Array.prototype.map&&e.map===Array.prototype.map)return e.map(t,n);if(void 0===e||null===e)throw new TypeError;var r=Object(e),o=r.length>>>0;if("function"!=typeof t)throw new TypeError;for(var a=new Array(o),i=0;o>i;i++)i in r&&(a[i]=t.call(n,r[i],i,r));return a},e.pick=function(t,n,r){for(var o={},a=0,i=n.length;i>a;a++)o[n[a]]=r&&"function"==typeof t[n[a]]?e.bind(t[n[a]],t):t[n[a]];return o},e.debounce=function(e,t){var n,r,o;return function(){o=this,r=arguments,n&&clearTimeout(n),n=setTimeout(function(){e.apply(o,r),n=null},t)}},e.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},e.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},e.containsObj=function(t,n){if(t===n)return!0;if(typeof t!=typeof n)return!1;if("function"==typeof t&&"function"==typeof n)return!0;if(t&&"object"==typeof n){var r;for(r in n)if(!e.containsObj(t[r],n[r]))return!1;return!0}return!1},e.random=function(e,t){return"undefined"==typeof t&&(t=e,e=0),e===t?e:e+Math.floor(Math.random()*(t-e+1))},e.shuffle=function(t){if(!e.isArray(t))return null;if(t.length>1){for(var n,r=t.length,o=new Array(r),a=0;r>a;a++)n=e.random(0,a),n!==a&&(o[a]=o[n]),o[n]=t[a];return o}return t.slice()},e.safeFn=function(e,t){return function(){try{return e.apply(this,arguments)}catch(n){if(t)try{return t(n)}catch(r){}return n}}},"function"==typeof define&&define.amd?define([],e):"object"==typeof n?t.exports=e:window._=e}()},{}]},{},[1]);
!function e(t,n,r){function o(i,c){if(!n[i]){if(!t[i]){var u="function"==typeof require&&require;if(!c&&u)return u(i,!0);if(a)return a(i,!0);var s=new Error("Cannot find module '"+i+"'");throw s.code="MODULE_NOT_FOUND",s}var f=n[i]={exports:{}};t[i][0].call(f.exports,function(e){var n=t[i][1][e];return o(n?n:e)},f,f.exports,e,t,n,r)}return n[i].exports}for(var a="function"==typeof require&&require,i=0;i<r.length;i++)o(r[i]);return o}({1:[function(e,t,n){!function(n,r,o){"use strict";var a=e("misc"),i={_doc:n,_window:r};i._ua=i._window.navigator.userAgent,i.$=function(e,t){var n,r;return t||(t=i._doc),(n=e.match(/^#([a-zA-Z0-9_\-]+)$/))?(r=i._doc.getElementById(n[1]),r?[r]:[]):(n=e.match(/^\.([a-zA-Z0-9_\-]+)$/),n&&t.getElementsByClassName?a.slice(t.getElementsByClassName(n[1]),0):a.slice(t.querySelectorAll(e),0))},i.addEvent=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n},i.removeEvent=function(e,t,n){e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=o},i.oneTimeEvent=function(e,t,n,r){i.addEvent(e,t,function o(){n.apply(this,arguments),i.removeEvent(e,t,o),"function"==typeof r&&i.addEvent(e,t,r)})},i.getEventTarget=function(e){var t=null;return e||(e=i._window.event),e.target?t=e.target:e.srcElement&&(t=e.srcElement),t&&3===t.nodeType&&(t=t.parentNode),t},i.scrollToEl=function(e){window.scroll(o,e.offsetTop)},i.getWindowYOffset=function(){return"undefined"!=typeof window.pageYOffset?window.pageYOffset:(i._doc.documentElement||i._doc.body.parentNode||i._doc.body).scrollTop},i._addClassShim=function(e,t){i.hasClass(e,t)||(e.className+=""===e.className?t:" "+t)},i._removeClassShim=function(e,t){e.className=e.className.replace(new RegExp("\\b"+t+"\\b","gi"),"")},i.addClass=function(e,t){if(a.isArray(t))for(var n=0;n<t.length;n++)i.addClass(e,t[n]);else document.documentElement.classList?e.classList.add(t):i._addClassShim(e,t);return i},i.removeClass=function(e,t){if(a.isArray(t))for(var n=0;n<t.length;n++)i.removeClass(e,t[n]);else document.documentElement.classList?e.classList.remove(t):i._removeClassShim(e,t);return i},i.hasClass=function(e,t){var n=e.className.split(/\s+/);return-1!==a.indexOf(n,t)},i.checkIsParent=function(e,t){for(var n=e;n!==document.documentElement;){if(n===t)return!0;n=n.parentNode}return!1},i.centerToElement=function(e,t){var n=e.getBoundingClientRect().left+e.offsetWidth/2;if(a.isArray(t))for(var r=0;r<t.length;r++)i.centerToElement(e,t[r]);else t.style.left=n-t.offsetWidth/2+"px"},i.findParentByClass=function(e,t){for(var n=e.parentNode;n.parentNode;){if(i.hasClass(n,t))return n;n=n.parentNode}return null},i.setCssProperty=function(e,t,n,r){if(e.style.setProperty)e.style.setProperty(t,n,r);else if(e.style.setAttribute(t,n),r){var o=new RegExp(encodeURIComponent(t)+"\\s*:\\s*"+encodeURIComponent(n)+"(\\s*;)?","gmi");e.style.cssText=e.style.cssText.replace(o,t+": "+n+" !"+r+";")}},i.ready=function(e){var t=!1,n=!0,o=r.document,a=o.documentElement,i=o.addEventListener,c=i?"addEventListener":"attachEvent",u=i?"removeEventListener":"detachEvent",s=i?"":"on",f=function(n){("readystatechange"!==n.type||"complete"===o.readyState)&&(("load"===n.type?r:o)[u](s+n.type,f,!1),!t&&(t=!0)&&e.call(r,n.type||n))},l=function(){try{a.doScroll("left")}catch(e){return void setTimeout(l,50)}f("poll")};if("complete"===o.readyState)e.call(r,"lazy");else{if(!i&&a.doScroll){try{n=!r.frameElement}catch(p){}n&&l()}o[c](s+"DOMContentLoaded",f,!1),o[c](s+"readystatechange",f,!1),r[c](s+"load",f,!1)}},i.ieVersion=function(){var e=i._ua.match(/rv:([0-9\.]+)/),t=!1;return e&&11===+e[1]&&(t=+e[1]),t||(t=-1!==i._ua.toLowerCase().indexOf("msie")?parseInt(i._ua.toLowerCase().split("msie")[1],10):!1),t}(),t.exports=i}(document,window)},{misc:2}],2:[function(e,t,n){!function(){"use strict";var e={};e.slice=function(){var e=Array.prototype.slice,t=!1;try{e.call(document.documentElement)}catch(n){t=!0}return t?function(e,t,n){var r,o=e.length,a=[];if(null===e)throw new TypeError("Array.prototype.slice called on null or undefined");if(t=null===t?0:t>=0?t:o-t,n=null===n?o:n>=0?n:o-n,e.charAt)for(r=t;n>r;r++)a.push(e.charAt(r));else for(r=t;n>r;r++)a.push(e[r]);return a}:function(t,n,r){return e.call(t,n,r)}}(),e.keys=function(){var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],r=n.length;return function(o){if(Object.prototype.keys)return Object.keys(o);if("object"!=typeof o&&("function"!=typeof o||null===o))throw new TypeError("Object.keys called on non-object");var a,i,c=[];for(a in o)e.call(o,a)&&c.push(a);if(t)for(i=0;r>i;i++)e.call(o,n[i])&&c.push(n[i]);return c}}(),e.values=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t},e.toMap=function(e,t){var n,r,o,a,i={};for(n=0,r=e.length;r>n;n++)o=e[n],a="string"==typeof t?o[t]:t(o),null!==a&&void 0!==a&&(i[a]=o);return i},e.bind=function(e,t){if(e.bind)return e.bind.apply(e,Array.prototype.slice.call(arguments,1));if("function"!=typeof e)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var n=Array.prototype.slice.call(arguments,2),r=e,o=function(){},a=function(){return r.apply(this instanceof o&&t?e:t,n.concat(Array.prototype.slice.call(arguments)))};return o.prototype=e.prototype,a.prototype=new o,a},e.capitalize=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.indexOf=function(e,t,n){if(e.indexOf)return e.indexOf(t,n);if(null===e)throw new TypeError('"arr" is null or not defined');var r=this.length>>>0;for(n=+n||0,Math.abs(n)===1/0&&(n=0),0>n&&(n+=r,0>n&&(n=0));r>n;n++)if(e[n]===t)return n;return-1},e.contains=function(t,n,r){return-1!==e.indexOf(t,n,r)},e.extend=function(e){var t,n,r;for(t=1,n=arguments.length;n>t;t++)if(r=arguments[t])for(var o in r)e[o]=r[o];return e},e.deepExtend=function(t){var n,r,o;for(n=1,r=arguments.length;r>n;n++)if(o=arguments[n])for(var a in o)e.isObject(o[a])?(t.hasOwnProperty(a)||(t[a]={}),t[a]=e.deepExtend(t[a],o[a])):t[a]=o[a];return t},e.inherit=function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n},e.trim=function(e){return e.replace(/^\s+|\s+$/g,"")},e.map=function(e,t,n){if(Array.prototype.map&&e.map===Array.prototype.map)return e.map(t,n);if(void 0===e||null===e)throw new TypeError;var r=Object(e),o=r.length>>>0;if("function"!=typeof t)throw new TypeError;for(var a=new Array(o),i=0;o>i;i++)i in r&&(a[i]=t.call(n,r[i],i,r));return a},e.pick=function(t,n,r){for(var o={},a=0,i=n.length;i>a;a++)o[n[a]]=r&&"function"==typeof t[n[a]]?e.bind(t[n[a]],t):t[n[a]];return o},e.debounce=function(e,t){var n,r,o;return function(){o=this,r=arguments,n&&clearTimeout(n),n=setTimeout(function(){e.apply(o,r),n=null},t)}},e.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},e.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},e.containsObj=function(t,n){if(t===n)return!0;if(typeof t!=typeof n)return!1;if("function"==typeof t&&"function"==typeof n)return!0;if(t&&"object"==typeof n){var r;for(r in n)if(!e.containsObj(t[r],n[r]))return!1;return!0}return!1},e.random=function(e,t){return"undefined"==typeof t&&(t=e,e=0),e===t?e:e+Math.floor(Math.random()*(t-e+1))},e.shuffle=function(t){if(!e.isArray(t))return null;if(t.length>1){for(var n,r=t.length,o=new Array(r),a=0;r>a;a++)n=e.random(0,a),n!==a&&(o[a]=o[n]),o[n]=t[a];return o}return t.slice()},e.safeFn=function(e,t){return function(){try{return e.apply(this,arguments)}catch(n){if(t)try{return t(n)}catch(r){}return n}}},"function"==typeof define&&define.amd?define([],e):"object"==typeof n?t.exports=e:window._=e}()},{}]},{},[1]);

@@ -16,3 +16,3 @@ (function() {

var banner = '// ' + pkg.name + ' - v' + pkg.version + ' - ' + pkg.license + ' License' +
var banner = '// ' + pkg.title + ' - v' + pkg.version + ' - ' + pkg.license + ' License' +
'\n// ' + pkg.copyright + ' (c) ' + pkg.author + '\n\n';

@@ -22,5 +22,5 @@

var paths = {
src: './src/' + pkg.name + '.js',
dist: './dist/' + pkg.name + '.js',
spec: './test/' + pkg.name + '.spec.js',
src: './src/' + pkg.title + '.js',
dist: './dist/' + pkg.title + '.js',
spec: './test/' + pkg.title + '.spec.js',
output: './dist'

@@ -47,3 +47,3 @@ };

.bundle()
.pipe(source('dom.js'))
.pipe(source(pkg.title + '.js'))
.pipe(gulp.dest('./dist/'))

@@ -50,0 +50,0 @@ });

@@ -7,5 +7,6 @@ {

"copyright": "2015",
"version": "1.0.0",
"version": "1.0.1",
"description": "Library with DOM manipulation methods",
"private": false,
"main": "gulpfile.js",
"repository": {

@@ -19,18 +20,19 @@ "type": "git",

"devDependencies": {
"browserify": "~9.0.8",
"del": "~1.1.1",
"gulp": "3.8.11",
"karma": "~0.12.31",
"gulp-concat-util": "~0.5.2",
"gulp-jscs": "~1.6.0",
"gulp-jshint": "~1.10.0",
"gulp-karma": "0.0.4",
"gulp-rename": "~1.2.2",
"gulp-uglify": "~1.2.0",
"jasmine-core": "~2.2.0",
"jshint-stylish": "~1.0.1",
"karma": "~0.12.31",
"karma-jasmine": "~0.3.5",
"karma-phantomjs-launcher": "~0.1.4",
"karma-spec-reporter": "0.0.19",
"browserify": "~9.0.8",
"vinyl-source-stream": "~1.1.0",
"gulp-rename": "~1.2.2",
"gulp-uglify": "~1.2.0",
"gulp-concat-util": "~0.5.2",
"del": "~1.1.1",
"gulp-jshint": "~1.10.0",
"jshint-stylish": "~1.0.1",
"gulp-jscs": "~1.6.0"
"misc": "^1.0.2",
"vinyl-source-stream": "~1.1.0"
},

@@ -41,3 +43,2 @@ "bugs": {

"homepage": "https://github.com/ordergroove/dom#readme",
"main": "gulpfile.js",
"directories": {

@@ -44,0 +45,0 @@ "test": "test"

(function(doc, w, undefined) {
'use strict';
var _ = require('./_misc');
var _ = require('misc');

@@ -6,0 +6,0 @@ /**

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