fish-helper 0.0.41 → 0.0.43
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 +12 -2
- package/package.json +32 -31
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,
|
|
1
|
+
"use strict";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,s){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,s,n,r,a,o,h,u,c,f,m,d;const _=()=>null;i=new WeakMap,l=new WeakMap,s=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),l.set(this,36e5),s.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:s="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"===s?h&&r+t(this,l,"f")*i>o:"before_gt_hour"===s?h&&r+t(this,l,"f")*i<o:"after_lt_hour"===s?u&&o+t(this,l,"f")*i>r:"after_gt_hour"===s&&(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)),s=this.format_num2date(l);return"day"===i?t(this,c,"f").call(this,s.day):"hour"===i?t(this,c,"f").call(this,s.hour):"minute"===i?t(this,c,"f").call(this,s.minute):"second"===i?t(this,c,"f").call(this,s.seconds):"The second parameter has an error"},m.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_timestamp_to_day_hour_minute_second(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,m,"f").call(this,l,s,r,a,o)}),r))})),d.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_num2date(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,d,"f").call(this,l,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)=>{const i=[];for(let l=0;l<t.length;l+=e)i.push(t.slice(l,l+e));return i},this.debounce=(t,e=200,i=!1)=>{let l,s,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(s,l),a||(s=l=null)))};return(...h)=>{s=this,l=h,n=+new Date;const u=i&&!a;return a&&clearTimeout(a),a=setTimeout(o,e),u&&(r=t.apply(s,l),s=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),s=t(this,c,"f").call(this,l.getMonth()+1),n=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:s,day:n,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:s=!1}){if(!t)return 0;if(i<=0||e<0)return s?`${t} ${l}`:t;const n=parseFloat(t);if(n<=0)return s?`${n} ${l}`:n;if(n>0&&n<i)return s?`${n} ${l}`:n;const[r,a]=(n/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),s=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,l),minute:t(this,c,"f").call(this,s),seconds:t(this,c,"f").call(this,n)}}count_down_by_remain_seconds(t=_,e=60){let i;clearTimeout(i);let l=1e3*e,s=this.format_num2date(l),n={remain:l,obj:s};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,l=null,s=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 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,s=null,n=null}}format_timestamp_to_day_hour_minute_second(e=Date.now()){const i=Math.floor(e/864e5),l=Math.floor(e%864e5/36e5),s=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,l),minute:t(this,c,"f").call(this,s),seconds:t(this,c,"f").call(this,n)}}count_down(e=Date.now(),i=_){let l;clearTimeout(l);let s=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(l),l=null,s=null,n=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=s.format_timestamp_to_day_hour_minute_second(e);i({remain:e,obj:l});let n=1e3-(Date.now()-(c+1e3*u));n<0&&(n=0),t(e,i,n,u,c)}),a)}(r,i,1e3),()=>{clearTimeout(l),l=null,s=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 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 s=60*i*1e3,n=()=>{e(),l=setTimeout(n,s)};return n(),()=>{clearTimeout(l),l=void 0}}is_equal(e,i,l=!1){const s=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(!s||!n)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((s=>{const n=t(this,h,"f").call(this,e[s])||t(this,u,"f").call(this,e[s]),r=t(this,h,"f").call(this,i[s])||t(this,u,"f").call(this,i[s]);return n&&r?this.is_equal(e[s],i[s],l):l?e[s]===i[s]:e[s]==i[s]}))}};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)=>{const i=[];for(let l=0;l<t.length;l+=e)i.push(t.slice(l,l+e));return i},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
|
@@ -31,18 +31,28 @@ declare class Helper {
|
|
|
31
31
|
after_gt_hour(date?: DateType, hour?: number): boolean;
|
|
32
32
|
is_current_year(date?: DateType): boolean;
|
|
33
33
|
get_time_obj(date?: DateType): GetTimeObj;
|
|
34
|
-
format_count({ num, decimal, divide, suffix, show_suffix_always
|
|
34
|
+
format_count({ num, decimal, divide, suffix, show_suffix_always }: FormatCount): number | string;
|
|
35
35
|
format_num2date(timestamp?: number): FormatNum2Date;
|
|
36
36
|
count_down_by_remain_seconds(fn?: CountDownCallback, seconds?: number): Function;
|
|
37
37
|
format_timestamp_to_day_hour_minute_second(timestamp?: number): FormatNum2Date;
|
|
38
38
|
count_down(date?: DateType, fn?: CountDownCallback): Function;
|
|
39
39
|
add(hours?: number, start?: DateType): number;
|
|
40
40
|
format_thousandth(num: number | string): string | 0;
|
|
41
|
+
format_thousandth_with_same_dotlen(num: number | string): string | 0;
|
|
41
42
|
is_empty(data: any): boolean;
|
|
42
43
|
poll(fn: Function, minute?: number): Function;
|
|
43
|
-
is_equal(a: any, b: any): boolean;
|
|
44
|
+
is_equal(a: any, b: any, exact?: boolean): boolean;
|
|
44
45
|
sleep: (ms: number) => Promise<unknown>;
|
|
45
46
|
roxFormatThousandth: (num: number, suffix?: string) => string | number;
|
|
47
|
+
chunk: <T>(arr: T[], size: number) => 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;
|
|
46
56
|
}
|
|
47
57
|
declare const _default: Helper;
|
|
48
58
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
2
|
+
"name": "fish-helper",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.0.43",
|
|
5
|
+
"main": "build/helper.cjs.js",
|
|
6
|
+
"module": "build/helper.es.js",
|
|
7
|
+
"types": "build/types/index.d.ts",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"js Utils"
|
|
11
|
+
],
|
|
12
|
+
"description": "a tool to process time",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"require": "./build/helper.cjs.js",
|
|
16
|
+
"import": "./build/helper.es.js",
|
|
17
|
+
"types": "./build/types/index.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./package.json": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"build"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {},
|
|
25
|
+
"author": {
|
|
26
|
+
"name": "weixin_38726348"
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"url": "https://gitcode.net/weixin_38726348/util.git"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"rollup": "^3.10.0"
|
|
33
|
+
}
|
|
33
34
|
}
|