create-element-x
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -109,2 +109,14 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createCreateElement", function() { return createCreateElement; }); | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | ||
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } | ||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } | ||
var isArray = Array.isArray || function (arg) { | ||
@@ -122,5 +134,6 @@ return Object.prototype.toString.call(arg) === "[object Array]"; | ||
var RE_HANDLER = /on([A-Z][A-Za-z]+)/; | ||
var createCreateElement = function createCreateElement(createElement, createTextNode) { | ||
function appendChild(c) { | ||
if (typeof c === "string") this.appendChild(createTextNode(c));else this.appendChild(c); | ||
if (typeof c === "string") this.appendChild(createTextNode(c));else if (c != null) this.appendChild(c); | ||
} | ||
@@ -132,4 +145,14 @@ | ||
for (var attr in attributes) { | ||
el.setAttribute(attr, attributes[attr]); | ||
} // Support old JSX sytax that wraps children in an array, | ||
var res = void 0; | ||
if (res = RE_HANDLER.exec(attr)) { | ||
var _res = res, | ||
_res2 = _slicedToArray(_res, 2), | ||
eventName = _res2[1]; | ||
el.addEventListener(eventName.toLowerCase(), attributes[attr]); | ||
} else { | ||
el.setAttribute(attr, attributes[attr]); | ||
} | ||
} // Support old JSX syntax that wraps children in an array, | ||
// as 3rd parameter. | ||
@@ -147,5 +170,5 @@ | ||
// In case use user provides a `NodeList` or `HTMLCollection`, | ||
// appening will have the effect of removing the item the current | ||
// appending will have the effect of removing the item the current | ||
// collection, which in turn will cause problems which `forEach`. | ||
// So we create a copy frist: | ||
// So we create a copy first: | ||
if (shouldCopy) { | ||
@@ -155,12 +178,7 @@ cs = Array.prototype.slice.call(cs, 0); | ||
Array.prototype.forEach.call(cs, appendChild, el); // Support new JSX syntax, where each child is an additional | ||
Array.prototype.forEach.call(cs, appendChild, el); | ||
} else { | ||
// Support new JSX syntax, where each child is an additional | ||
// function parameter. | ||
} else { | ||
Array.prototype.forEach.call(children, function (child) { | ||
if (typeof child === "string") { | ||
el.appendChild(createTextNode(child)); | ||
} else { | ||
el.appendChild(child); | ||
} | ||
}); | ||
Array.prototype.forEach.call(children, appendChild, el); | ||
} | ||
@@ -167,0 +185,0 @@ |
/*! | ||
* Copyright (c) 2018 Florian Klampfer <https://qwtel.com/> | ||
* Copyright (c) 2020 Florian Klampfer <https://qwtel.com/> | ||
* | ||
@@ -7,2 +7,2 @@ * This source code is licensed under the MIT license found in the | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("createElementX",[],t):"object"==typeof exports?exports.createElementX=t():e.createElementX=t()}(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";r.r(t);var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=function(e,t){function r(e){"string"==typeof e?this.appendChild(t(e)):this.appendChild(e)}return function(o,c){var u=e(o);for(var i in c)u.setAttribute(i,c[i]);for(var a=arguments.length,l=new Array(a>2?a-2:0),f=2;f<a;f++)l[f-2]=arguments[f];var d,p=l[0];return n(p)||(d=function(e){return"[object HTMLCollection]"===Object.prototype.toString.call(e)}(p))||(d=function(e){return"[object NodeList]"===Object.prototype.toString.call(e)}(p))?(d&&(p=Array.prototype.slice.call(p,0)),Array.prototype.forEach.call(p,r,u)):Array.prototype.forEach.call(l,function(e){"string"==typeof e?u.appendChild(t(e)):u.appendChild(e)}),u}};r.d(t,"nativeCreateElement",function(){return c}),r.d(t,"createElement",function(){return u});var c=document.createElement;document.createElement=o(c.bind(document),document.createTextNode.bind(document));var u=document.createElement.bind(document);t.default=u}])}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("createElementX",[],t):"object"==typeof exports?exports.createElementX=t():e.createElementX=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,u=void 0;try{for(var i,c=e[Symbol.iterator]();!(n=(i=c.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,u=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw u}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.r(t),r.d(t,"nativeCreateElement",(function(){return f})),r.d(t,"createElement",(function(){return d}));var u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=function(e){return"[object HTMLCollection]"===Object.prototype.toString.call(e)},c=function(e){return"[object NodeList]"===Object.prototype.toString.call(e)},a=/on([A-Z][A-Za-z]+)/,l=function(e,t){function r(e){"string"==typeof e?this.appendChild(t(e)):null!=e&&this.appendChild(e)}return function(t,o){var l=e(t);for(var f in o){var d=void 0;if(d=a.exec(f)){var p=d,y=n(p,2),s=y[1];l.addEventListener(s.toLowerCase(),o[f])}else l.setAttribute(f,o[f])}for(var b=arguments.length,m=new Array(b>2?b-2:0),v=2;v<b;v++)m[v-2]=arguments[v];var j,g=m[0];return u(g)||(j=i(g))||(j=c(g))?(j&&(g=Array.prototype.slice.call(g,0)),Array.prototype.forEach.call(g,r,l)):Array.prototype.forEach.call(m,r,l),l}},f=document.createElement;document.createElement=l(f.bind(document),document.createTextNode.bind(document));var d=document.createElement.bind(document);t.default=d}])})); |
@@ -109,2 +109,14 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createCreateElement", function() { return createCreateElement; }); | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | ||
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } | ||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } | ||
var isArray = Array.isArray || function (arg) { | ||
@@ -122,5 +134,6 @@ return Object.prototype.toString.call(arg) === "[object Array]"; | ||
var RE_HANDLER = /on([A-Z][A-Za-z]+)/; | ||
var createCreateElement = function createCreateElement(createElement, createTextNode) { | ||
function appendChild(c) { | ||
if (typeof c === "string") this.appendChild(createTextNode(c));else this.appendChild(c); | ||
if (typeof c === "string") this.appendChild(createTextNode(c));else if (c != null) this.appendChild(c); | ||
} | ||
@@ -132,4 +145,14 @@ | ||
for (var attr in attributes) { | ||
el.setAttribute(attr, attributes[attr]); | ||
} // Support old JSX sytax that wraps children in an array, | ||
var res = void 0; | ||
if (res = RE_HANDLER.exec(attr)) { | ||
var _res = res, | ||
_res2 = _slicedToArray(_res, 2), | ||
eventName = _res2[1]; | ||
el.addEventListener(eventName.toLowerCase(), attributes[attr]); | ||
} else { | ||
el.setAttribute(attr, attributes[attr]); | ||
} | ||
} // Support old JSX syntax that wraps children in an array, | ||
// as 3rd parameter. | ||
@@ -147,5 +170,5 @@ | ||
// In case use user provides a `NodeList` or `HTMLCollection`, | ||
// appening will have the effect of removing the item the current | ||
// appending will have the effect of removing the item the current | ||
// collection, which in turn will cause problems which `forEach`. | ||
// So we create a copy frist: | ||
// So we create a copy first: | ||
if (shouldCopy) { | ||
@@ -155,12 +178,7 @@ cs = Array.prototype.slice.call(cs, 0); | ||
Array.prototype.forEach.call(cs, appendChild, el); // Support new JSX syntax, where each child is an additional | ||
Array.prototype.forEach.call(cs, appendChild, el); | ||
} else { | ||
// Support new JSX syntax, where each child is an additional | ||
// function parameter. | ||
} else { | ||
Array.prototype.forEach.call(children, function (child) { | ||
if (typeof child === "string") { | ||
el.appendChild(createTextNode(child)); | ||
} else { | ||
el.appendChild(child); | ||
} | ||
}); | ||
Array.prototype.forEach.call(children, appendChild, el); | ||
} | ||
@@ -167,0 +185,0 @@ |
/*! | ||
* Copyright (c) 2018 Florian Klampfer <https://qwtel.com/> | ||
* Copyright (c) 2020 Florian Klampfer <https://qwtel.com/> | ||
* | ||
@@ -7,2 +7,2 @@ * This source code is licensed under the MIT license found in the | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("createElementX",[],t):"object"==typeof exports?exports.createElementX=t():e.createElementX=t()}(window,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){"use strict";r.r(t);var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=function(e,t){function r(e){"string"==typeof e?this.appendChild(t(e)):this.appendChild(e)}return function(o,c){var u=e(o);for(var i in c)u.setAttribute(i,c[i]);for(var a=arguments.length,l=new Array(a>2?a-2:0),f=2;f<a;f++)l[f-2]=arguments[f];var p,d=l[0];return n(d)||(p=function(e){return"[object HTMLCollection]"===Object.prototype.toString.call(e)}(d))||(p=function(e){return"[object NodeList]"===Object.prototype.toString.call(e)}(d))?(p&&(d=Array.prototype.slice.call(d,0)),Array.prototype.forEach.call(d,r,u)):Array.prototype.forEach.call(l,function(e){"string"==typeof e?u.appendChild(t(e)):u.appendChild(e)}),u}};r.d(t,"createElement",function(){return c});var c=o(document.createElement.bind(document),document.createTextNode.bind(document));t.default=c}])}); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("createElementX",[],e):"object"==typeof exports?exports.createElementX=e():t.createElementX=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,o=!1,u=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!e||r.length!==e);n=!0);}catch(t){o=!0,u=t}finally{try{n||null==a.return||a.return()}finally{if(o)throw u}}return r}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r.r(e),r.d(e,"createElement",(function(){return f}));var u=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=function(t){return"[object HTMLCollection]"===Object.prototype.toString.call(t)},a=function(t){return"[object NodeList]"===Object.prototype.toString.call(t)},c=/on([A-Z][A-Za-z]+)/,l=function(t,e){function r(t){"string"==typeof t?this.appendChild(e(t)):null!=t&&this.appendChild(t)}return function(e,o){var l=t(e);for(var f in o){var p=void 0;if(p=c.exec(f)){var d=p,y=n(d,2),s=y[1];l.addEventListener(s.toLowerCase(),o[f])}else l.setAttribute(f,o[f])}for(var b=arguments.length,m=new Array(b>2?b-2:0),v=2;v<b;v++)m[v-2]=arguments[v];var j,g=m[0];return u(g)||(j=i(g))||(j=a(g))?(j&&(g=Array.prototype.slice.call(g,0)),Array.prototype.forEach.call(g,r,l)):Array.prototype.forEach.call(m,r,l),l}},f=l(document.createElement.bind(document),document.createTextNode.bind(document));e.default=f}])})); |
const isArray = | ||
Array.isArray || | ||
(arg => Object.prototype.toString.call(arg) === "[object Array]"); | ||
const isHTMLCollection = arg => | ||
((arg) => Object.prototype.toString.call(arg) === "[object Array]"); | ||
const isHTMLCollection = (arg) => | ||
Object.prototype.toString.call(arg) === "[object HTMLCollection]"; | ||
const isNodeList = arg => | ||
const isNodeList = (arg) => | ||
Object.prototype.toString.call(arg) === "[object NodeList]"; | ||
const RE_HANDLER = /on([A-Z][A-Za-z]+)/; | ||
export const createCreateElement = (createElement, createTextNode) => { | ||
function appendChild(c) { | ||
if (typeof c === "string") this.appendChild(createTextNode(c)); | ||
else this.appendChild(c); | ||
else if (c != null) this.appendChild(c); | ||
} | ||
@@ -18,5 +20,13 @@ | ||
for (const attr in attributes) el.setAttribute(attr, attributes[attr]); | ||
for (const attr in attributes) { | ||
let res; | ||
if ((res = RE_HANDLER.exec(attr))) { | ||
const [, eventName] = res; | ||
el.addEventListener(eventName.toLowerCase(), attributes[attr]); | ||
} else { | ||
el.setAttribute(attr, attributes[attr]); | ||
} | ||
} | ||
// Support old JSX sytax that wraps children in an array, | ||
// Support old JSX syntax that wraps children in an array, | ||
// as 3rd parameter. | ||
@@ -31,5 +41,5 @@ let cs = children[0]; | ||
// In case use user provides a `NodeList` or `HTMLCollection`, | ||
// appening will have the effect of removing the item the current | ||
// appending will have the effect of removing the item the current | ||
// collection, which in turn will cause problems which `forEach`. | ||
// So we create a copy frist: | ||
// So we create a copy first: | ||
if (shouldCopy) { | ||
@@ -39,13 +49,6 @@ cs = Array.prototype.slice.call(cs, 0); | ||
Array.prototype.forEach.call(cs, appendChild, el); | ||
} else { | ||
// Support new JSX syntax, where each child is an additional | ||
// function parameter. | ||
} else { | ||
Array.prototype.forEach.call(children, child => { | ||
if (typeof child === "string") { | ||
el.appendChild(createTextNode(child)); | ||
} else { | ||
el.appendChild(child); | ||
} | ||
}); | ||
Array.prototype.forEach.call(children, appendChild, el); | ||
} | ||
@@ -52,0 +55,0 @@ |
{ | ||
"name": "create-element-x", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Extends document.createElement to conform to the target API of JSX", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
"preversion": "npm run format", | ||
"prepublishOnly": "npm run test && npm run clean && npm run build" | ||
"prepack": "npm run test && npm run clean && npm run build" | ||
}, | ||
@@ -26,14 +26,14 @@ "author": "Florian Klampfer <mail@qwtel.com> (https://qwtel.com/)", | ||
"devDependencies": { | ||
"@babel/core": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"@babel/register": "^7.0.0", | ||
"babel-loader": "^8.0.0", | ||
"camelcase": "^4.1.0", | ||
"jsdom": "^11.12.0", | ||
"mocha": "^5.2.0", | ||
"prettier": "^1.14.2", | ||
"webpack": "^4.17.1", | ||
"webpack-cli": "^3.1.0", | ||
"webpack-merge": "^4.1.4", | ||
"yargs": "^11.1.0" | ||
"@babel/core": "^7.10.5", | ||
"@babel/preset-env": "^7.10.4", | ||
"@babel/register": "^7.10.5", | ||
"babel-loader": "^8.1.0", | ||
"camelcase": "^6.0.0", | ||
"jsdom": "^16.3.0", | ||
"mocha": "^8.0.1", | ||
"prettier": "^2.0.5", | ||
"webpack": "^4.44.0", | ||
"webpack-cli": "^3.3.12", | ||
"webpack-merge": "^5.0.9", | ||
"yargs": "^15.4.1" | ||
}, | ||
@@ -40,0 +40,0 @@ "directories": { |
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
50901
441