@stormid/boilerplate
Advanced tools
Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.6
@@ -1,2 +0,2 @@ | ||
function t(){return t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},t.apply(this,arguments)}var e={callback:null},n=function(t){var e=t.callback;return function(t){this.classList.toggle("clicked"),e&&e.call&&e.call(this)}},r=function(t){return"string"==typeof t?[].slice.call(document.querySelectorAll(t)):t instanceof Array?t:Object.prototype.isPrototypeOf.call(NodeList.prototype,t)?[].slice.call(t):t instanceof HTMLElement?[t]:[]};exports.default=function(l,o){var c=r(l);if(0!==c.length)return c.map(function(r){return Object.create(function(t){var e=t.settings,r=t.node;return r.addEventListener("click",n(e).bind(r),!1),{settings:e,node:r,click:n(e)}}({settings:t({},e,o),node:r}))});console.warn("boilerplate not initialised, no elements found for selector '"+l+"'")},exports.getSelection=r; | ||
function t(){return t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},t.apply(this,arguments)}var e={callback:null},n=function(t){var e=t.callback;return function(t){this.classList.toggle("clicked"),e&&e.call&&e.call(this)}};module.exports=function(r,l){var o=function(t){return"string"==typeof t?[].slice.call(document.querySelectorAll(t)):t instanceof Array?t:Object.prototype.isPrototypeOf.call(NodeList.prototype,t)?[].slice.call(t):t instanceof HTMLElement?[t]:[]}(r);if(0!==o.length)return o.map(function(r){return Object.create(function(t){var e=t.settings,r=t.node;return r.addEventListener("click",n(e).bind(r),!1),{settings:e,node:r,click:n(e)}}({settings:t({},e,l),node:r}))});console.warn("boilerplate not initialised, no elements found for selector '"+r+"'")}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
function t(){return t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var l=arguments[e];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(t[n]=l[n])}return t},t.apply(this,arguments)}var e={callback:null};const l=({callback:t})=>function(e){this.classList.toggle("clicked"),t&&t.call&&t.call(this)},n=t=>"string"==typeof t?[].slice.call(document.querySelectorAll(t)):t instanceof Array?t:Object.prototype.isPrototypeOf.call(NodeList.prototype,t)?[].slice.call(t):t instanceof HTMLElement?[t]:[];var c=(c,o)=>{let r=n(c);if(0!==r.length)return r.map(n=>Object.create((({settings:t,node:e})=>(e.addEventListener("click",l(t).bind(e),!1),{settings:t,node:e,click:l(t)}))({settings:t({},e,o),node:n})));console.warn(`boilerplate not initialised, no elements found for selector '${c}'`)};export{c as default,n as getSelection}; | ||
function t(){return t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var l=arguments[e];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(t[n]=l[n])}return t},t.apply(this,arguments)}var e={callback:null};const l=({callback:t})=>function(e){this.classList.toggle("clicked"),t&&t.call&&t.call(this)};var n=(n,c)=>{let o=(t=>"string"==typeof t?[].slice.call(document.querySelectorAll(t)):t instanceof Array?t:Object.prototype.isPrototypeOf.call(NodeList.prototype,t)?[].slice.call(t):t instanceof HTMLElement?[t]:[])(n);if(0!==o.length)return o.map(n=>Object.create((({settings:t,node:e})=>(e.addEventListener("click",l(t).bind(e),!1),{settings:t,node:e,click:l(t)}))({settings:t({},e,c),node:n})));console.warn(`boilerplate not initialised, no elements found for selector '${n}'`)};export{n as default}; | ||
//# sourceMappingURL=index.modern.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e||self).boilerplate={})}(this,function(e){function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},t.apply(this,arguments)}var n={callback:null},o=function(e){var t=e.callback;return function(e){this.classList.toggle("clicked"),t&&t.call&&t.call(this)}},i=function(e){return"string"==typeof e?[].slice.call(document.querySelectorAll(e)):e instanceof Array?e:Object.prototype.isPrototypeOf.call(NodeList.prototype,e)?[].slice.call(e):e instanceof HTMLElement?[e]:[]};e.default=function(e,l){var r=i(e);if(0!==r.length)return r.map(function(e){return Object.create(function(e){var t=e.settings,n=e.node;return n.addEventListener("click",o(t).bind(n),!1),{settings:t,node:n,click:o(t)}}({settings:t({},n,l),node:e}))});console.warn("boilerplate not initialised, no elements found for selector '"+e+"'")},e.getSelection=i}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e||self).boilerplate=t()}(this,function(){function e(){return e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},e.apply(this,arguments)}var t={callback:null},n=function(e){var t=e.callback;return function(e){this.classList.toggle("clicked"),t&&t.call&&t.call(this)}};return function(o,i){var l=function(e){return"string"==typeof e?[].slice.call(document.querySelectorAll(e)):e instanceof Array?e:Object.prototype.isPrototypeOf.call(NodeList.prototype,e)?[].slice.call(e):e instanceof HTMLElement?[e]:[]}(o);if(0!==l.length)return l.map(function(o){return Object.create(function(e){var t=e.settings,o=e.node;return o.addEventListener("click",n(t).bind(o),!1),{settings:t,node:o,click:n(t)}}({settings:e({},t,i),node:o}))});console.warn("boilerplate not initialised, no elements found for selector '"+o+"'")}}); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "@stormid/boilerplate", | ||
"version": "1.0.0-alpha.5", | ||
"version": "1.0.0-alpha.6", | ||
"description": "Boilerplate for developing UI components", | ||
@@ -30,3 +30,3 @@ "author": "stormid", | ||
}, | ||
"gitHead": "5a78d93bb9f509d1af5dcf4d3b3f30bb2cd1583f" | ||
"gitHead": "4051edd5bb4b814992e426711b1fac24a676fa7f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21849