fish-helper 0.0.42 → 0.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/helper.cjs.js +1 -1
- package/build/helper.es.js +1 -1
- package/build/types/index.d.ts +10 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -23,5 +23,5 @@ const helper = require('fish-helper')
|
|
|
23
23
|
| `format_thousandth(num)` | Format the data as a string with thousands of bits. |
|
|
24
24
|
| `is_empty(data)` | Determines whether the data is empty. |
|
|
25
25
|
| `poll(fn, minute)` | Execute fn function every minute, return function to stop the fn. |
|
|
26
|
-
| `is_equal(a, b)`
|
|
26
|
+
| `is_equal(a, b, exact)` | Return boolean, compare a and b; a and b are any type of data. |
|
|
27
27
|
| `sleep(ms)` | Suspend |
|
package/build/helper.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function t(t,e,i,s){if("
|
|
1
|
+
"use strict";function t(t,e,i,s){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)}function e(t,e,i,s,l){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,i),i}var i,s,l,n,r,a,o,h,u,c,f,m,d;const _=()=>null;i=new WeakMap,s=new WeakMap,l=new WeakMap,n=new WeakMap,r=new WeakMap,a=new WeakMap,o=new WeakMap,h=new WeakMap,u=new WeakMap,c=new WeakMap,f=new WeakMap,m=new WeakMap,d=new WeakMap;var p=new class{constructor(){i.set(this,1e3),s.set(this,36e5),l.set(this,null),n.set(this,null),r.set(this,(t=>Object.prototype.toString.call(t).slice(8,-1))),a.set(this,(t=>{if(!t)return Date.now();let e=null;e="string"==typeof t?t.replace(/(\-|\_)/g,"/"):new Date(t);let i=new Date(e);return"Invalid Date"===i.toString()&&(i=new Date(t)),i.getTime()})),o.set(this,(e=>"Function"===t(this,r,"f").call(this,e))),h.set(this,(e=>"Array"===t(this,r,"f").call(this,e))),u.set(this,(e=>"Object"===t(this,r,"f").call(this,e))),c.set(this,(t=>String(t).padStart(2,"0"))),f.set(this,(({date:e,hour:i=1,type:l="before_lt_hour"})=>{let n=t(this,a,"f").call(this,e);const r=new Date(n).getTime(),o=Date.now(),h=r<o,u=r>o;return"before_lt_hour"===l?h&&r+t(this,s,"f")*i>o:"before_gt_hour"===l?h&&r+t(this,s,"f")*i<o:"after_lt_hour"===l?u&&o+t(this,s,"f")*i>r:"after_gt_hour"===l&&(u&&o+t(this,s,"f")*i<r)})),this.offset_time=(e,i="minute")=>{const s=Math.abs(Date.now()-t(this,a,"f").call(this,e)),l=this.format_num2date(s);return"day"===i?t(this,c,"f").call(this,l.day):"hour"===i?t(this,c,"f").call(this,l.hour):"minute"===i?t(this,c,"f").call(this,l.minute):"second"===i?t(this,c,"f").call(this,l.seconds):"The second parameter has an error"},m.set(this,((s=0,l=_,r=t(this,i,"f"),a=0,o=Date.now())=>{if(s<=0)return clearTimeout(t(this,n,"f")),void e(this,n,null);clearTimeout(t(this,n,"f")),e(this,n,setTimeout((()=>{a+=1,s-=t(this,i,"f");let e=this.format_timestamp_to_day_hour_minute_second(s);l({remain:s,obj:e});const n=Date.now()-(o+a*t(this,i,"f"));let r=t(this,i,"f")-n;r<0&&(r=0),t(this,m,"f").call(this,s,l,r,a,o)}),r))})),d.set(this,((s=0,n=_,r=t(this,i,"f"),a=0,o=Date.now())=>{if(s<=0)return clearTimeout(t(this,l,"f")),void e(this,l,null);clearTimeout(t(this,l,"f")),e(this,l,setTimeout((()=>{a+=1,s-=t(this,i,"f");let e=this.format_num2date(s);n({remain:s,obj:e});const l=Date.now()-(o+a*t(this,i,"f"));let r=t(this,i,"f")-l;r<0&&(r=0),t(this,d,"f").call(this,s,n,r,a,o)}),r))})),this.sleep=t=>new Promise((e=>setTimeout(e,t))),this.roxFormatThousandth=(t,e="万")=>t<1e4?t:(Math.floor(t/1e3)/10).toFixed(1)+e,this.chunk=(t,e,i=!1)=>{if(!Array.isArray(t)||e<=0)return[];const s=[];for(let l=0;l<t.length;l+=e){const n=t.slice(l,l+e);i?n.length===e&&s.push(n):s.push(n)}return s},this.debounce=(t,e=200,i=!1)=>{let s,l,n,r,a=null;const o=()=>{const h=+new Date-n;h<e&&h>0?a=setTimeout(o,e-h):(a=null,i||(r=t.apply(l,s),a||(l=s=null)))};return(...h)=>{l=this,s=h,n=+new Date;const u=i&&!a;return a&&clearTimeout(a),a=setTimeout(o,e),u&&(r=t.apply(l,s),l=s=null),r}}}before_lt_hour(e,i=1){return t(this,f,"f").call(this,{date:e,hour:i,type:"before_lt_hour"})}before_gt_hour(e,i=1){return t(this,f,"f").call(this,{date:e,hour:i,type:"before_gt_hour"})}after_lt_hour(e,i=1){return t(this,f,"f").call(this,{date:e,hour:i,type:"after_lt_hour"})}after_gt_hour(e,i=1){return t(this,f,"f").call(this,{date:e,hour:i,type:"after_gt_hour"})}is_current_year(e){const i=t(this,a,"f").call(this,e);return(new Date).getFullYear()===new Date(i).getFullYear()}get_time_obj(e){const i=t(this,a,"f").call(this,e),s=new Date(i),l=t(this,c,"f").call(this,s.getMonth()+1),n=t(this,c,"f").call(this,s.getDate()),r=t(this,c,"f").call(this,s.getHours()),o=t(this,c,"f").call(this,s.getMinutes()),h=t(this,c,"f").call(this,s.getSeconds());return{year:String(s.getFullYear()),month:l,day:n,hour:r,minute:o,seconds:h,day_of_week:String(s.getDay())}}format_count({num:t=0,decimal:e=1,divide:i=1e4,suffix:s="万",show_suffix_always:l=!1}){if(!t)return 0;if(i<=0||e<0)return l?`${t} ${s}`:t;const n=parseFloat(t);if(n<=0)return l?`${n} ${s}`:n;if(n>0&&n<i)return l?`${n} ${s}`:n;const[r,a]=(n/i).toFixed(e).split(".");return a&&0!==parseFloat(a)?`${r}.${a} ${s}`:`${r} ${s}`}format_num2date(e=Date.now()){const i=parseInt(e/1e3/60/60/24%24),s=parseInt(e/1e3/60/60%24),l=parseInt(e/1e3/60%60),n=parseInt(e/1e3%60);return{day:t(this,c,"f").call(this,i),hour:t(this,c,"f").call(this,s),minute:t(this,c,"f").call(this,l),seconds:t(this,c,"f").call(this,n)}}count_down_by_remain_seconds(t=_,e=60){let i;clearTimeout(i);let s=1e3*e,l=this.format_num2date(s),n={remain:s,obj:l};t(n);let r=this;return function t(e=0,a=_,o=1e3,h=0,u=Date.now()){if(e<=0)return clearTimeout(i),r=null,i=null,s=null,l=null,n=null,void a({remain:0,obj:{day:"00",hour:"00",minute:"00",seconds:"00"}});clearTimeout(i),i=setTimeout((()=>{h+=1,e-=1e3;let i=r.format_num2date(e);a({remain:e,obj:i});let s=1e3-(Date.now()-(u+1e3*h));s<0&&(s=0),t(e,a,s,h,u)}),o)}(s,t,1e3),()=>{clearTimeout(i),r=null,i=null,s=null,l=null,n=null}}format_timestamp_to_day_hour_minute_second(e=Date.now()){const i=Math.floor(e/864e5),s=Math.floor(e%864e5/36e5),l=Math.floor(e%36e5/6e4),n=Math.floor(e%6e4/1e3);return{day:t(this,c,"f").call(this,i),hour:t(this,c,"f").call(this,s),minute:t(this,c,"f").call(this,l),seconds:t(this,c,"f").call(this,n)}}count_down(e=Date.now(),i=_){let s;clearTimeout(s);let l=this,n=t(this,a,"f").call(this,e),r=n-Date.now(),o=this.format_timestamp_to_day_hour_minute_second(r),h={remain:r,obj:o};return i(h),function t(e=0,i=_,a=1e3,u=0,c=Date.now()){if(e<=0)return clearTimeout(s),s=null,l=null,n=null,r=null,o=null,h=null,void i({remain:0,obj:{day:"00",hour:"00",minute:"00",seconds:"00"}});clearTimeout(s),s=setTimeout((()=>{u+=1,e-=1e3;let s=l.format_timestamp_to_day_hour_minute_second(e);i({remain:e,obj:s});let n=1e3-(Date.now()-(c+1e3*u));n<0&&(n=0),t(e,i,n,u,c)}),a)}(r,i,1e3),()=>{clearTimeout(s),s=null,l=null,n=null,r=null,o=null,h=null}}add(e=1,i=Date.now()){return t(this,a,"f").call(this,i)+60*e*60*1e3}format_thousandth(t){try{const e=parseFloat(t);return e.toFixed(e.toString().split(".")[1]?2:0).replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g,"$&,")}catch(t){return 0}}format_thousandth_with_same_dotlen(t){var e;try{const i=(null===(e=t.toString().split(".")[1])||void 0===e?void 0:e.length)||0;let s=t.toString().replace(/\d+/,(function(t){return t.replace(/(\d)(?=(\d{3})+$)/g,(function(t){return t+","}))}));return i&&(s=s.replace(/\d+\.\d+/,(function(t){return t.replace(/(\d)(?=(\d{3})+\.)/g,(function(t){return t+","}))}))),s}catch(t){return 0}}is_empty(e){return null==e||("String"===t(this,r,"f").call(this,e)?!e.trim():"Array"===t(this,r,"f").call(this,e)?!e.length:"Object"===t(this,r,"f").call(this,e)&&!Object.keys(e).length)}poll(e,i=1){let s;if(!t(this,o,"f").call(this,e))return()=>{clearTimeout(s),s=void 0};const l=60*i*1e3,n=()=>{e(),s=setTimeout(n,l)};return n(),()=>{clearTimeout(s),s=void 0}}is_equal(e,i,s=!1){const l=t(this,h,"f").call(this,e)||t(this,u,"f").call(this,e),n=t(this,h,"f").call(this,i)||t(this,u,"f").call(this,i);if(!l||!n)return s?e===i:e==i;const r=Object.keys(e),a=Object.keys(i);return 0===r.length&&0===a.length||r.length===a.length&&r.every((l=>{const n=t(this,h,"f").call(this,e[l])||t(this,u,"f").call(this,e[l]),r=t(this,h,"f").call(this,i[l])||t(this,u,"f").call(this,i[l]);return n&&r?this.is_equal(e[l],i[l],s):s?e[l]===i[l]:e[l]==i[l]}))}};module.exports=p;
|
package/build/helper.es.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function t(t,e,i,
|
|
1
|
+
function t(t,e,i,l){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?l:"a"===i?l.call(t):l?l.value:e.get(t)}function e(t,e,i,l,n){if("function"==typeof e||!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e.set(t,i),i}var i,l,n,s,r,a,o,h,u,c,f,m,d;const _=()=>null;i=new WeakMap,l=new WeakMap,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=new WeakMap,o=new WeakMap,h=new WeakMap,u=new WeakMap,c=new WeakMap,f=new WeakMap,m=new WeakMap,d=new WeakMap;var p=new class{constructor(){i.set(this,1e3),l.set(this,36e5),n.set(this,null),s.set(this,null),r.set(this,(t=>Object.prototype.toString.call(t).slice(8,-1))),a.set(this,(t=>{if(!t)return Date.now();let e=null;e="string"==typeof t?t.replace(/(\-|\_)/g,"/"):new Date(t);let i=new Date(e);return"Invalid Date"===i.toString()&&(i=new Date(t)),i.getTime()})),o.set(this,(e=>"Function"===t(this,r,"f").call(this,e))),h.set(this,(e=>"Array"===t(this,r,"f").call(this,e))),u.set(this,(e=>"Object"===t(this,r,"f").call(this,e))),c.set(this,(t=>String(t).padStart(2,"0"))),f.set(this,(({date:e,hour:i=1,type:n="before_lt_hour"})=>{let s=t(this,a,"f").call(this,e);const r=new Date(s).getTime(),o=Date.now(),h=r<o,u=r>o;return"before_lt_hour"===n?h&&r+t(this,l,"f")*i>o:"before_gt_hour"===n?h&&r+t(this,l,"f")*i<o:"after_lt_hour"===n?u&&o+t(this,l,"f")*i>r:"after_gt_hour"===n&&(u&&o+t(this,l,"f")*i<r)})),this.offset_time=(e,i="minute")=>{const l=Math.abs(Date.now()-t(this,a,"f").call(this,e)),n=this.format_num2date(l);return"day"===i?t(this,c,"f").call(this,n.day):"hour"===i?t(this,c,"f").call(this,n.hour):"minute"===i?t(this,c,"f").call(this,n.minute):"second"===i?t(this,c,"f").call(this,n.seconds):"The second parameter has an error"},m.set(this,((l=0,n=_,r=t(this,i,"f"),a=0,o=Date.now())=>{if(l<=0)return clearTimeout(t(this,s,"f")),void e(this,s,null);clearTimeout(t(this,s,"f")),e(this,s,setTimeout((()=>{a+=1,l-=t(this,i,"f");let e=this.format_timestamp_to_day_hour_minute_second(l);n({remain:l,obj:e});const s=Date.now()-(o+a*t(this,i,"f"));let r=t(this,i,"f")-s;r<0&&(r=0),t(this,m,"f").call(this,l,n,r,a,o)}),r))})),d.set(this,((l=0,s=_,r=t(this,i,"f"),a=0,o=Date.now())=>{if(l<=0)return clearTimeout(t(this,n,"f")),void e(this,n,null);clearTimeout(t(this,n,"f")),e(this,n,setTimeout((()=>{a+=1,l-=t(this,i,"f");let e=this.format_num2date(l);s({remain:l,obj:e});const n=Date.now()-(o+a*t(this,i,"f"));let r=t(this,i,"f")-n;r<0&&(r=0),t(this,d,"f").call(this,l,s,r,a,o)}),r))})),this.sleep=t=>new Promise((e=>setTimeout(e,t))),this.roxFormatThousandth=(t,e="万")=>t<1e4?t:(Math.floor(t/1e3)/10).toFixed(1)+e,this.chunk=(t,e,i=!1)=>{if(!Array.isArray(t)||e<=0)return[];const l=[];for(let n=0;n<t.length;n+=e){const s=t.slice(n,n+e);i?s.length===e&&l.push(s):l.push(s)}return l},this.debounce=(t,e=200,i=!1)=>{let l,n,s,r,a=null;const o=()=>{const h=+new Date-s;h<e&&h>0?a=setTimeout(o,e-h):(a=null,i||(r=t.apply(n,l),a||(n=l=null)))};return(...h)=>{n=this,l=h,s=+new Date;const u=i&&!a;return a&&clearTimeout(a),a=setTimeout(o,e),u&&(r=t.apply(n,l),n=l=null),r}}}before_lt_hour(e,i=1){return t(this,f,"f").call(this,{date:e,hour:i,type:"before_lt_hour"})}before_gt_hour(e,i=1){return t(this,f,"f").call(this,{date:e,hour:i,type:"before_gt_hour"})}after_lt_hour(e,i=1){return t(this,f,"f").call(this,{date:e,hour:i,type:"after_lt_hour"})}after_gt_hour(e,i=1){return t(this,f,"f").call(this,{date:e,hour:i,type:"after_gt_hour"})}is_current_year(e){const i=t(this,a,"f").call(this,e);return(new Date).getFullYear()===new Date(i).getFullYear()}get_time_obj(e){const i=t(this,a,"f").call(this,e),l=new Date(i),n=t(this,c,"f").call(this,l.getMonth()+1),s=t(this,c,"f").call(this,l.getDate()),r=t(this,c,"f").call(this,l.getHours()),o=t(this,c,"f").call(this,l.getMinutes()),h=t(this,c,"f").call(this,l.getSeconds());return{year:String(l.getFullYear()),month:n,day:s,hour:r,minute:o,seconds:h,day_of_week:String(l.getDay())}}format_count({num:t=0,decimal:e=1,divide:i=1e4,suffix:l="万",show_suffix_always:n=!1}){if(!t)return 0;if(i<=0||e<0)return n?`${t} ${l}`:t;const s=parseFloat(t);if(s<=0)return n?`${s} ${l}`:s;if(s>0&&s<i)return n?`${s} ${l}`:s;const[r,a]=(s/i).toFixed(e).split(".");return a&&0!==parseFloat(a)?`${r}.${a} ${l}`:`${r} ${l}`}format_num2date(e=Date.now()){const i=parseInt(e/1e3/60/60/24%24),l=parseInt(e/1e3/60/60%24),n=parseInt(e/1e3/60%60),s=parseInt(e/1e3%60);return{day:t(this,c,"f").call(this,i),hour:t(this,c,"f").call(this,l),minute:t(this,c,"f").call(this,n),seconds:t(this,c,"f").call(this,s)}}count_down_by_remain_seconds(t=_,e=60){let i;clearTimeout(i);let l=1e3*e,n=this.format_num2date(l),s={remain:l,obj:n};t(s);let r=this;return function t(e=0,a=_,o=1e3,h=0,u=Date.now()){if(e<=0)return clearTimeout(i),r=null,i=null,l=null,n=null,s=null,void a({remain:0,obj:{day:"00",hour:"00",minute:"00",seconds:"00"}});clearTimeout(i),i=setTimeout((()=>{h+=1,e-=1e3;let i=r.format_num2date(e);a({remain:e,obj:i});let l=1e3-(Date.now()-(u+1e3*h));l<0&&(l=0),t(e,a,l,h,u)}),o)}(l,t,1e3),()=>{clearTimeout(i),r=null,i=null,l=null,n=null,s=null}}format_timestamp_to_day_hour_minute_second(e=Date.now()){const i=Math.floor(e/864e5),l=Math.floor(e%864e5/36e5),n=Math.floor(e%36e5/6e4),s=Math.floor(e%6e4/1e3);return{day:t(this,c,"f").call(this,i),hour:t(this,c,"f").call(this,l),minute:t(this,c,"f").call(this,n),seconds:t(this,c,"f").call(this,s)}}count_down(e=Date.now(),i=_){let l;clearTimeout(l);let n=this,s=t(this,a,"f").call(this,e),r=s-Date.now(),o=this.format_timestamp_to_day_hour_minute_second(r),h={remain:r,obj:o};return i(h),function t(e=0,i=_,a=1e3,u=0,c=Date.now()){if(e<=0)return clearTimeout(l),l=null,n=null,s=null,r=null,o=null,h=null,void i({remain:0,obj:{day:"00",hour:"00",minute:"00",seconds:"00"}});clearTimeout(l),l=setTimeout((()=>{u+=1,e-=1e3;let l=n.format_timestamp_to_day_hour_minute_second(e);i({remain:e,obj:l});let s=1e3-(Date.now()-(c+1e3*u));s<0&&(s=0),t(e,i,s,u,c)}),a)}(r,i,1e3),()=>{clearTimeout(l),l=null,n=null,s=null,r=null,o=null,h=null}}add(e=1,i=Date.now()){return t(this,a,"f").call(this,i)+60*e*60*1e3}format_thousandth(t){try{const e=parseFloat(t);return e.toFixed(e.toString().split(".")[1]?2:0).replace(/\d{1,3}(?=(\d{3})+(\.\d*)?$)/g,"$&,")}catch(t){return 0}}format_thousandth_with_same_dotlen(t){var e;try{const i=(null===(e=t.toString().split(".")[1])||void 0===e?void 0:e.length)||0;let l=t.toString().replace(/\d+/,(function(t){return t.replace(/(\d)(?=(\d{3})+$)/g,(function(t){return t+","}))}));return i&&(l=l.replace(/\d+\.\d+/,(function(t){return t.replace(/(\d)(?=(\d{3})+\.)/g,(function(t){return t+","}))}))),l}catch(t){return 0}}is_empty(e){return null==e||("String"===t(this,r,"f").call(this,e)?!e.trim():"Array"===t(this,r,"f").call(this,e)?!e.length:"Object"===t(this,r,"f").call(this,e)&&!Object.keys(e).length)}poll(e,i=1){let l;if(!t(this,o,"f").call(this,e))return()=>{clearTimeout(l),l=void 0};const n=60*i*1e3,s=()=>{e(),l=setTimeout(s,n)};return s(),()=>{clearTimeout(l),l=void 0}}is_equal(e,i,l=!1){const n=t(this,h,"f").call(this,e)||t(this,u,"f").call(this,e),s=t(this,h,"f").call(this,i)||t(this,u,"f").call(this,i);if(!n||!s)return l?e===i:e==i;const r=Object.keys(e),a=Object.keys(i);return 0===r.length&&0===a.length||r.length===a.length&&r.every((n=>{const s=t(this,h,"f").call(this,e[n])||t(this,u,"f").call(this,e[n]),r=t(this,h,"f").call(this,i[n])||t(this,u,"f").call(this,i[n]);return s&&r?this.is_equal(e[n],i[n],l):l?e[n]===i[n]:e[n]==i[n]}))}};export{p as default};
|
package/build/types/index.d.ts
CHANGED
|
@@ -41,9 +41,18 @@ declare class Helper {
|
|
|
41
41
|
format_thousandth_with_same_dotlen(num: number | string): string | 0;
|
|
42
42
|
is_empty(data: any): boolean;
|
|
43
43
|
poll(fn: Function, minute?: number): Function;
|
|
44
|
-
is_equal(a: any, b: any): boolean;
|
|
44
|
+
is_equal(a: any, b: any, exact?: boolean): boolean;
|
|
45
45
|
sleep: (ms: number) => Promise<unknown>;
|
|
46
46
|
roxFormatThousandth: (num: number, suffix?: string) => string | number;
|
|
47
|
+
chunk: <T>(arr: T[], size: number, exact?: boolean) => T[][];
|
|
48
|
+
/**
|
|
49
|
+
* 防抖函数,限制函数在指定时间内只执行一次
|
|
50
|
+
* @param {Function} func - 需要防抖处理的函数
|
|
51
|
+
* @param {number} wait - 防抖时间间隔,单位为毫秒
|
|
52
|
+
* @param {boolean} immediate - 是否立即执行一次(触发事件时立即执行,而不是间隔结束后执行)
|
|
53
|
+
* @returns {Function} - 返回一个新的防抖处理过的函数
|
|
54
|
+
*/
|
|
55
|
+
debounce: (func: (...args: any[]) => any, wait?: number, immediate?: boolean) => (..._args: any[]) => any;
|
|
47
56
|
}
|
|
48
57
|
declare const _default: Helper;
|
|
49
58
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fish-helper",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.44",
|
|
5
5
|
"main": "build/helper.cjs.js",
|
|
6
6
|
"module": "build/helper.es.js",
|
|
7
7
|
"types": "build/types/index.d.ts",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"keywords": [
|
|
10
|
-
"
|
|
10
|
+
"js Utils"
|
|
11
11
|
],
|
|
12
12
|
"description": "a tool to process time",
|
|
13
13
|
"exports": {
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"require": "./build/helper.cjs.js",
|
|
16
16
|
"import": "./build/helper.es.js",
|
|
17
17
|
"types": "./build/types/index.d.ts"
|
|
18
|
-
}
|
|
18
|
+
},
|
|
19
|
+
"./package.json": "./package.json"
|
|
19
20
|
},
|
|
20
21
|
"files": [
|
|
21
22
|
"build"
|