From 2709a89df0604ea634ccc9e409527994fde29d52 Mon Sep 17 00:00:00 2001 From: Devope Date: Sun, 22 May 2022 00:06:21 +0300 Subject: [PATCH] fix --- dist/cheghost.js | 2 +- package.json | 1 - src/index.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dist/cheghost.js b/dist/cheghost.js index 4f0c946..a112d11 100644 --- a/dist/cheghost.js +++ b/dist/cheghost.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.cheghost=t():e.cheghost=t()}(self,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{cheghost:()=>l});let o="cheghost-checkbox";function n(e){let t=e.parentNode;Array.prototype.slice.call(t.childNodes).filter((e=>"hidden"==e.type))[0].value=e.checked?"1":"0"}function l(e){!function(e){let t=document.querySelectorAll(e);for(let e=0;e{n(o)}))}}()}return t})())); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.cheghost=t():e.cheghost=t()}(self,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{default:()=>l});let o="cheghost-checkbox";function n(e){let t=e.parentNode;Array.prototype.slice.call(t.childNodes).filter((e=>"hidden"==e.type))[0].value=e.checked?"1":"0"}function l(e){!function(e){let t=document.querySelectorAll(e);for(let e=0;e{n(o)}))}}()}return t})())); \ No newline at end of file diff --git a/package.json b/package.json index cd34d0d..c4664a4 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,6 @@ "name": "cheghost", "version": "2.0.1", "description": "Helps to deal with values of multiple checkboxes", - "main": "dist/cheghost.js", "module": "src/index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" diff --git a/src/index.js b/src/index.js index fb82dec..5d86c51 100644 --- a/src/index.js +++ b/src/index.js @@ -92,7 +92,7 @@ function set(checkbox) { hidden.value = checkbox.checked ? "1" : "0" } -export function cheghost(selectorToWrap) { +export default function cheghost(selectorToWrap) { wrap(selectorToWrap); values(); } \ No newline at end of file