@kibalabs/core 0.7.1 → 0.7.2-next.1

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/dist/index.js CHANGED
@@ -1 +1,2 @@
1
- import{addMinutes as L}from"date-fns/addMinutes";import{isValid as V}from"date-fns/isValid";import{parse as W}from"date-fns/parse";import{parseISO as x}from"date-fns/parseISO";import{format as K}from"date-fns-tz";import l from"node:fs";import f from"node:path";import b from"deepmerge";import _ from"fast-deep-equal";var h=class extends Error{constructor(e,t,n,r){super(e),this.name=this.constructor.name,this.statusCode=t||500,this.exceptionType=n||"KibaException",this.fields=r||{}}};let u=(function(e){return e.DELETE="delete",e.GET="get",e.HEAD="head",e.OPTIONS="options",e.PATCH="patch",e.POST="post",e.PUT="put",e})({});var d=class{constructor(e,t,n,r,s,o,i){this.method=e,this.url=t,this.headers=n||{},this.data=r||null,this.formData=s||null,this.date=o||new Date,this.timeoutSeconds=i&&i>0?i:null}},T=class{constructor(e,t,n,r){this.headers={},this.content="",this.status=e,this.headers=t,this.date=n,this.content=r}};const R=(e,t)=>new Promise((n,r)=>{const s=setTimeout(()=>{r(new h("TIMEOUT"))},e*1e3);t.then(o=>{clearTimeout(s),n(o)},o=>{clearTimeout(s),r(o)})}),J=e=>{let t=e;for(t.startsWith("http://")&&(t=t.slice(7)),t.startsWith("https://")&&(t=t.slice(8));t.endsWith("/");)t=t.slice(0,t.length-1);return t},Z=e=>{let t=e;return!t.startsWith("http://")&&!t.startsWith("https://")&&(t=`http://${t}`),t},z=e=>e.startsWith("ipfs://")?e.replace("ipfs://","https://pablo-images.kibalabs.com/v1/ipfs/"):e,D=e=>{const t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{Array.isArray(r)?r.forEach(s=>{t.append(n,s)}):t.append(n,r)}),t},G=(e,t)=>{const n=new URL(e);return Object.keys(t).forEach(r=>{n.searchParams.set(r,String(t[r]))}),n.toString()};var X=class{modifyRequest(e){return e}modifyResponse(e){return e}},Y=class{constructor(e,t,n=!0){this.addModifier=r=>{this.modifiers.push(r)},this.modifyRequest=r=>this.modifiers.reduce((s,o)=>o.modifyRequest(s),r),this.modifyResponse=r=>this.modifiers.reduce((s,o)=>o.modifyResponse(s),r),this.getRequest=async(r,s,o,i)=>{const c=new d(u.GET,r,o,s,void 0,new Date,i);return this.makeRequestInternal(c)},this.postRequest=async(r,s,o,i)=>{const c=new d(u.POST,r,o,s,void 0,new Date,i);return this.makeRequestInternal(c)},this.putRequest=async(r,s,o,i)=>{const c=new d(u.PUT,r,o,s,void 0,new Date,i);return this.makeRequestInternal(c)},this.deleteRequest=async(r,s,o,i)=>{const c=new d(u.DELETE,r,o,s,void 0,new Date,i);return this.makeRequestInternal(c)},this.makeRequest=async(r,s,o,i,c)=>{const a=new d(r,s,i,o,void 0,new Date,c);return this.makeRequestInternal(a)},this.makeFormRequest=async(r,s,o,i)=>{const c=new d(u.POST,r,o,void 0,s,new Date,i);return this.makeRequestInternal(c)},this.makeFormPutRequest=async(r,s,o,i)=>{const c=new d(u.PUT,r,o,void 0,s,new Date,i);return this.makeRequestInternal(c)},this.makeRequestInternal=async r=>{const s=this.modifyRequest(r);let o=await this.makeFetchRequest(s);if(o=this.modifyResponse(o),o.status>=400&&o.status<600){let i=null;try{i=JSON.parse(o.content)}catch{}if(i&&"message"in i){const c=i.fields||{},a=i.exceptionType||void 0;throw new h(i.message,o.status,a,c)}throw new h(o.content,o.status,void 0,{})}return o},this.makeFetchRequest=async r=>{const s=new URL(r.url),o=new Headers({...this.headers,...r.headers||{}}),i={method:r.method.toUpperCase(),headers:o,credentials:this.shouldIncludeCrossSiteCredentials?"include":"same-origin"};if(r.method===u.GET||r.method===u.DELETE){if(r.data){const a={...r.data};Object.keys(a).forEach(m=>{a[m]===void 0&&delete a[m]}),s.search=D(a).toString()}}else{const a=o.get("Content-Type");r.data?(i.body=JSON.stringify(r.data),a&&a!=="application/json"&&console.warn(`Overwriting content-type header for request from ${a} to application/json`),o.set("content-type","application/json")):r.formData&&(i.body=r.formData)}const c=fetch(s.toString(),i).catch(a=>{throw new h(`The request was made but no response was received: [${a.code}] "${a.message}"`)}).then(async a=>{if(!a)throw new h("The request was made but no response was received.");const m=await a.text(),p={};return a.headers.forEach((N,g)=>{p[g]&&console.warn(`key ${g} will be overwritten. TODO(krish): Implement joining keys!`),p[g]=N}),new T(a.status,p,new Date,m)});return await(r.timeoutSeconds?R(r.timeoutSeconds,c):c)},this.headers=e||{},this.modifiers=t||[],this.shouldIncludeCrossSiteCredentials=n}},Q=class{constructor(){this.toObject=()=>({})}},ee=class{},te=class{constructor(e,t){this.makeRequest=async(n,r,s,o,i)=>{const c=`${this.baseUrl}/${r}`,a=await this.requester.makeRequest(n,c,s?.toObject(),i);return o?o.fromObject(JSON.parse(a.content)):null},this.requester=e,this.baseUrl=t}},re=class{constructor(e){this.localStorage=e}getValue(e){return this.localStorage.getItem(e)}setValue(e,t){t==null?this.removeValue(e):this.localStorage.setItem(e,t)}getBoolean(e){const t=this.getValue(e);return t==="1"?!0:t==="0"?!1:null}setBoolean(e,t){t==null?this.removeValue(e):this.setValue(e,t?"1":"0")}removeValue(e){this.localStorage.removeItem(e)}clear(){this.localStorage.clear()}};const ne=e=>new Promise(t=>{setTimeout(t,e)}),E=()=>typeof document<"u",se=async(e,t)=>{const n=new Blob([t]),r=await URL.createObjectURL(n),s=document.createElement("a");s.href=r,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s)},oe=()=>{if(!E())return!1;let e;return document.hidden!==void 0?e="hidden":document.msHidden!==void 0?e="msHidden":document.webkitHidden!==void 0&&(e="webkitHidden"),e?!document[e]:!0},ie=()=>typeof navigator>"u"?!1:[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(e=>e.test(navigator.userAgent)),ae=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),C=e=>e>=1e9?`${(e/1e9).toFixed(0)}B`:e>=1e7?`${(e/1e6).toFixed(0)}M`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e4?`${(e/1e3).toFixed(0)}K`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e>100?e.toFixed(0):e>1?e.toFixed(1):e.toFixed(2),$=(e,t=2,n=!1,r=!1)=>{let s=e.toFixed(t);if(n){for(;s.charAt(s.length-1)===",";)s=s.slice(0,-1);s.endsWith(".0")&&(s=s.replace(".0",""))}if(r){const o=s.split("."),i=o[0].replace(/\B(?=(\d{3})+(?!\d))/g,",");s=o.length===1?i:`${i}.${o[1]}`}return`${s.toLocaleString()}`},A=BigInt("1000000000000000000"),y=e=>Number(e*1000000n/A)/1e6,ce=e=>`\u039E${C(y(e))}`,le=(e,t=2,n=!1,r=!1)=>`\u039E${$(y(e),t,n,r)}`,ue=(...e)=>{const t=[];e.forEach(r=>{r&&t.push(String(r).trim().split(" "))});let n=t.reduce((r,s)=>r.concat(s),[]);return n=n.reverse(),n=Array.from(new Set(n)),n=n.reverse(),n.join(" ")},F="yyyy-MM-dd'T'HH:mm:ss.SSSXXX",de=(e,t)=>{let n;if(!t)n=x(e);else try{n=W(e,t,new Date)}catch{}if(!n||!V(n))throw new h(`Invalid date string ${e} passed to dateFromString`);return n},he=(e,t=F,n=!1)=>{let r=e;return n&&(r=L(r,r.getTimezoneOffset())),K(r,t,n?{timeZone:"UTC"}:{})},w=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),fe=e=>w(e,new Date),me=e=>{const t=new Date;return t.setDate(t.getDate()-1),w(e,t)},pe=(e,t)=>{const n=new Date(e.getTime());return n.setTime(n.getTime()+t*60*60*1e3),n},ge=(e,t)=>{const n=new Date(e.getTime());return n.setDate(n.getDate()+t),n},ye=e=>{const t=Math.floor((new Date().valueOf()-e.valueOf())/1e3);let n,r=Math.floor(t/31536e3);return r>=1?n="year":(r=Math.floor(t/2592e3),r>=1?n="month":(r=Math.floor(t/86400),r>=1?n="day":(r=Math.floor(t/3600),r>=1?n="hour":(r=Math.floor(t/60),r>=1?n="minute":(r=t,n="second"))))),(r>1||r===0)&&(n+="s"),`${r} ${n} ago`},we=e=>{const t=Math.floor((new Date().valueOf()-e.valueOf())/1e3);let n,r=Math.floor(t/31536e3);return r>=1?n="y":(r=Math.floor(t/2592e3),r>=1?n="m":(r=Math.floor(t/86400),r>=1?n="d":(r=Math.floor(t/3600),r>=1?n="h":(r=Math.floor(t/60),r>=1?n="m":(r=t,n="s"))))),`${r}${n} ago`},Se=e=>{const t=new Date(e.getTime());return t.setHours(0,0,0,0),t},be=e=>{const t=new Date(e.getTime());return t.setHours(23,59,59,999),t},Te=(e,t=1)=>{if(e===0)return"0 B";const n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],r=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/1024**r).toFixed(t<0?0:t))} ${n[r]}`},O=(e,t)=>{let n=t;l.existsSync(t)&&l.lstatSync(t).isDirectory()&&(n=f.join(t,f.basename(e)));const r=f.dirname(n);l.existsSync(r)||l.mkdirSync(r,{recursive:!0}),l.writeFileSync(n,l.readFileSync(e))},M=(e,t)=>{if(!l.lstatSync(e).isDirectory())throw new Error(`copyDirectorySync must be called with a directory. source ${e} is not a directory`);if(!l.existsSync(t))l.mkdirSync(t,{recursive:!0});else if(!l.lstatSync(e).isDirectory())throw new Error(`copyDirectorySync must be called with a directory. target ${t} is not a directory`);l.readdirSync(e).forEach(n=>{const r=f.join(e,n),s=f.join(t,n);l.lstatSync(r).isDirectory()?M(r,s):O(r,s)})},Re=(e,t)=>Array(t-e).fill(null).map((n,r)=>e+r),De=(e,t)=>e.reduce((n,r,s)=>{const o=Math.floor(s/t);return n[o]||(n[o]=[]),n[o].push(r),n},[]);function Ee(e,...t){return b(e,q(...t))}function q(...e){let t={};return e.forEach(n=>{n&&(t=b(t,n))}),t}function Ce(e,t){return _(e,t)}const $e=e=>{if(e!==void 0)return e===null?null:JSON.stringify(e)},Ae=e=>{if(e!==void 0)return e===null?null:JSON.parse(e)},Fe=e=>{if(e!==void 0)return e===null?null:e?"1":"0"},Oe=e=>{if(e!==void 0)return e===null?null:e==="1"||e==="true"},I=e=>{if(e!==void 0)return e===null?null:String(e)},P=e=>{if(e===void 0)return;if(e===null)return null;const t=Number(e);return Number.isNaN(t)?null:t},Me=e=>e?String(Math.round(e)):I(e),qe=e=>{const t=P(e);return t&&Math.round(t)},Ie=(e,t=",")=>{if(e!==void 0)return e===null?"":e.join(t)},Pe=(e,t=",")=>{if(e!==void 0)return e===null?[]:e?e.split(t):[]},S="1234567890",k="abcdefghijklmnopqrstuvwxyz",H="ABCDEFGHIJKLMNOPQRSTUVWXYZ",U=`${k}${H}`,v=`${U}${S}`,B=`${S}abcdef`,j=(e,t=v)=>{let n="";for(let r=0;r<e;r+=1)n+=t[Math.floor(Math.random()*t.length)];return n},ke=(e=!0)=>{let t=j(32,B);return e&&(t=[t.substring(0,8),t.substring(8,12),t.substring(12,16),t.substring(16,20),t.substring(20)].join("-")),t},He=e=>/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),Ue=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),ve=(e,t)=>e.length-t>0?`${e.substring(0,Math.ceil(t/2))}...${e.substring(e.length-Math.floor(t/2),e.length)}`:e,Be=(e,t)=>e.length-t>0?`${e.substring(0,t)}...`:e,je=(e,t)=>e.length-t>0?`${e.substring(0,t)}...`:e,Ne=e=>{const t=atob(e).split("").map(n=>`%${`00${n.charCodeAt(0).toString(16)}`.slice(-2)}`).join("");return decodeURIComponent(t)};export{U as CHARACTERS_ALPHA,v as CHARACTERS_ALPHANUMERIC,k as CHARACTERS_ALPHA_LOWERCASE,H as CHARACTERS_ALPHA_UPPERCASE,B as CHARACTERS_HEX,S as CHARACTERS_NUMERIC,A as ETHER,F as JSON_DATE_FORMAT,h as KibaException,d as KibaRequest,T as KibaResponse,re as LocalStorageClient,Q as RequestData,Y as Requester,X as RequesterModifier,ee as ResponseData,u as RestMethod,te as ServiceClient,ge as addDays,pe as addHours,Re as arrayWithRange,ne as asyncSleep,Ne as base64DecodeUnicode,Oe as booleanFromString,Fe as booleanToString,Ue as camelCaseToKebabCase,M as copyDirectorySync,O as copyFileSync,D as createSearchParams,de as dateFromString,we as dateToRelativeShortString,ye as dateToRelativeString,he as dateToString,Ce as deepCompare,se as downloadFileFromBrowser,be as endOfDay,y as etherToNumber,j as generateRandomString,ke as generateUUID,De as getChunks,ue as getClassName,Z as getLinkableUrl,J as getUrlDisplayString,Te as humanFileSize,qe as integerFromString,Me as integerToString,E as isBrowser,oe as isDocumentVisible,ie as isMobile,w as isSameDay,fe as isToday,He as isValidEmail,me as isYesterday,le as longFormatEther,$ as longFormatNumber,Ee as merge,q as mergePartial,P as numberFromString,I as numberToString,ae as numberWithCommas,Ae as objectFromString,$e as objectToString,z as resolveUrl,ce as shortFormatEther,C as shortFormatNumber,Se as startOfDay,Pe as stringListFromString,Ie as stringListToString,R as timeoutPromise,je as truncateEnd,ve as truncateMiddle,Be as truncateStart,G as updateQueryString};
1
+ import{addMinutes as G}from"date-fns/addMinutes";import{isValid as X}from"date-fns/isValid";import{parse as Y}from"date-fns/parse";import{parseISO as Q}from"date-fns/parseISO";import{format as ee}from"date-fns-tz";import l from"node:fs";import S from"node:path";import k from"deepmerge";import te from"fast-deep-equal";var h=class extends Error{constructor(e,t,r,n){super(e),this.name=this.constructor.name,this.statusCode=t||500,this.exceptionType=r||"KibaException",this.fields=n||{}}};let f=(function(e){return e.DELETE="delete",e.GET="get",e.HEAD="head",e.OPTIONS="options",e.PATCH="patch",e.POST="post",e.PUT="put",e})({});var m=class{constructor(e,t,r,n,s,o,i){this.method=e,this.url=t,this.headers=r||{},this.data=n||null,this.formData=s||null,this.date=o||new Date,this.timeoutSeconds=i&&i>0?i:null}},T=class{constructor(e,t,r,n){this.headers={},this.content="",this.status=e,this.headers=t,this.date=r,this.content=n}};const E=(e,t)=>new Promise((r,n)=>{const s=setTimeout(()=>{n(new h("TIMEOUT"))},e*1e3);t.then(o=>{clearTimeout(s),r(o)},o=>{clearTimeout(s),n(o)})}),re=e=>{let t=e;for(t.startsWith("http://")&&(t=t.slice(7)),t.startsWith("https://")&&(t=t.slice(8));t.endsWith("/");)t=t.slice(0,t.length-1);return t},ne=e=>{let t=e;return!t.startsWith("http://")&&!t.startsWith("https://")&&(t=`http://${t}`),t},se=e=>e.startsWith("ipfs://")?e.replace("ipfs://","https://pablo-images.kibalabs.com/v1/ipfs/"):e,M=e=>{const t=new URLSearchParams;return Object.entries(e).forEach(([r,n])=>{Array.isArray(n)?n.forEach(s=>{t.append(r,s)}):t.append(r,n)}),t},oe=(e,t)=>{const r=new URL(e);return Object.keys(t).forEach(n=>{r.searchParams.set(n,String(t[n]))}),r.toString()};var ie=class{modifyRequest(e){return e}modifyResponse(e){return e}},ae=class b{constructor(t,r,n=!0){this.addModifier=s=>{this.modifiers.push(s)},this.modifyRequest=s=>this.modifiers.reduce((o,i)=>i.modifyRequest(o),s),this.modifyResponse=s=>this.modifiers.reduce((o,i)=>i.modifyResponse(o),s),this.getRequest=async(s,o,i,c)=>{const a=new m(f.GET,s,i,o,void 0,new Date,c);return this.makeRequestInternal(a)},this.postRequest=async(s,o,i,c)=>{const a=new m(f.POST,s,i,o,void 0,new Date,c);return this.makeRequestInternal(a)},this.putRequest=async(s,o,i,c)=>{const a=new m(f.PUT,s,i,o,void 0,new Date,c);return this.makeRequestInternal(a)},this.deleteRequest=async(s,o,i,c)=>{const a=new m(f.DELETE,s,i,o,void 0,new Date,c);return this.makeRequestInternal(a)},this.makeRequest=async(s,o,i,c,a)=>{const d=new m(s,o,c,i,void 0,new Date,a);return this.makeRequestInternal(d)},this.makeFormRequest=async(s,o,i,c)=>{const a=new m(f.POST,s,i,void 0,o,new Date,c);return this.makeRequestInternal(a)},this.makeFormPutRequest=async(s,o,i,c)=>{const a=new m(f.PUT,s,i,void 0,o,new Date,c);return this.makeRequestInternal(a)},this.makeStreamingRequest=async(s,o,i,c,a,d,u)=>{const R=new m(s,o,d,i,void 0,new Date,u);await this.makeStreamingRequestInternal(R,c,a)},this.makeRequestInternal=async s=>{const o=this.modifyRequest(s);let i=await this.makeFetchRequest(o);return i=this.modifyResponse(i),i.status>=400&&i.status<600&&b.throwKibaExceptionFromErrorContent(i.content,i.status),i},this.makeStreamingRequestInternal=async(s,o,i)=>{const c=this.modifyRequest(s),a=await this.makeStreamingFetchRequest(c,o,i);this.modifyResponse(a)},this.createFetchRequestConfig=s=>{const o=new URL(s.url),i=new Headers({...this.headers,...s.headers||{}}),c={method:s.method.toUpperCase(),headers:i,credentials:this.shouldIncludeCrossSiteCredentials?"include":"same-origin"};if(s.method===f.GET||s.method===f.DELETE){if(s.data){const a={...s.data};Object.keys(a).forEach(d=>{a[d]===void 0&&delete a[d]}),o.search=M(a).toString()}}else{const a=i.get("Content-Type");s.data?(c.body=JSON.stringify(s.data),a&&a!=="application/json"&&console.warn(`Overwriting content-type header for request from ${a} to application/json`),i.set("content-type","application/json")):s.formData&&(c.body=s.formData)}return{url:o,fetchConfig:c}},this.makeFetchRequest=async s=>{const{url:o,fetchConfig:i}=this.createFetchRequestConfig(s),c=fetch(o.toString(),i).catch(a=>{throw new h(`The request was made but no response was received: [${a.code}] "${a.message}"`)}).then(async a=>{if(!a)throw new h("The request was made but no response was received.");const d=await a.text();return new T(a.status,b.getResponseHeaders(a),new Date,d)});return await(s.timeoutSeconds?E(s.timeoutSeconds,c):c)},this.makeStreamingFetchRequest=async(s,o,i)=>{const{url:c,fetchConfig:a}=this.createFetchRequestConfig(s),d=fetch(c.toString(),a).catch(u=>{throw new h(`The request was made but no response was received: [${u.code}] "${u.message}"`)}).then(async u=>{if(!u)throw new h("The request was made but no response was received.");const R=b.getResponseHeaders(u);if(u.status>=400&&u.status<600){const p=await u.text();b.throwKibaExceptionFromErrorContent(p,u.status)}const F=u.body?.getReader();if(!F)throw new h("The request was made but no response body was received.");const $=p=>{const w=p.trim();if(!w)return;let y;try{y=JSON.parse(w)}catch(z){throw new h(`Failed to parse streaming response line: ${w}. Error: ${String(z)}`)}i(o(y))},A=new TextDecoder;let g="";const O=async()=>{const{done:p,value:w}=await F.read();if(p)return;g+=A.decode(w,{stream:!0});const y=g.split(`
2
+ `);g=y.pop()||"",y.forEach($),await O()};return await O(),g+=A.decode(),$(g),new T(u.status,R,new Date,"")});return await(s.timeoutSeconds?E(s.timeoutSeconds,d):d)},this.headers=t||{},this.modifiers=r||[],this.shouldIncludeCrossSiteCredentials=n}static{this.getResponseHeaders=t=>{const r={};return t.headers.forEach((n,s)=>{r[s]&&console.warn(`key ${s} will be overwritten. TODO(krish): Implement joining keys!`),r[s]=n}),r}}static{this.throwKibaExceptionFromErrorContent=(t,r)=>{let n=null;try{n=JSON.parse(t)}catch{}if(n&&"message"in n){const s=n.fields||{},o=typeof n.exceptionType=="string"?n.exceptionType:void 0;throw new h(String(n.message),r,o,s)}throw new h(t,r,void 0,{})}}},ce=class{constructor(){this.toObject=()=>({})}},ue=class{},le=class{constructor(e,t){this.makeRequest=async(r,n,s,o,i)=>{const c=`${this.baseUrl}/${n}`,a=await this.requester.makeRequest(r,c,s?.toObject(),i);return o?o.fromObject(JSON.parse(a.content)):null},this.makeStreamingRequest=async(r,n,s,o,i,c)=>{const a=`${this.baseUrl}/${n}`;await this.requester.makeStreamingRequest(r,a,s?.toObject(),o.fromObject,i,c)},this.requester=e,this.baseUrl=t}},de=class{constructor(e){this.localStorage=e}getValue(e){return this.localStorage.getItem(e)}setValue(e,t){t==null?this.removeValue(e):this.localStorage.setItem(e,t)}getBoolean(e){const t=this.getValue(e);return t==="1"?!0:t==="0"?!1:null}setBoolean(e,t){t==null?this.removeValue(e):this.setValue(e,t?"1":"0")}removeValue(e){this.localStorage.removeItem(e)}clear(){this.localStorage.clear()}};const he=e=>new Promise(t=>{setTimeout(t,e)}),H=()=>typeof document<"u",fe=async(e,t)=>{const r=new Blob([t]),n=await URL.createObjectURL(r),s=document.createElement("a");s.href=n,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s)},me=()=>{if(!H())return!1;let e;return document.hidden!==void 0?e="hidden":document.msHidden!==void 0?e="msHidden":document.webkitHidden!==void 0&&(e="webkitHidden"),e?!document[e]:!0},ge=()=>typeof navigator>"u"?!1:[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(e=>e.test(navigator.userAgent)),pe=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),I=e=>e>=1e9?`${(e/1e9).toFixed(0)}B`:e>=1e7?`${(e/1e6).toFixed(0)}M`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e4?`${(e/1e3).toFixed(0)}K`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e>100?e.toFixed(0):e>1?e.toFixed(1):e.toFixed(2),P=(e,t=2,r=!1,n=!1)=>{let s=e.toFixed(t);if(r){for(;s.charAt(s.length-1)===",";)s=s.slice(0,-1);s.endsWith(".0")&&(s=s.replace(".0",""))}if(n){const o=s.split("."),i=o[0].replace(/\B(?=(\d{3})+(?!\d))/g,",");s=o.length===1?i:`${i}.${o[1]}`}return`${s.toLocaleString()}`},v=BigInt("1000000000000000000"),D=e=>Number(e*1000000n/v)/1e6,we=e=>`\u039E${I(D(e))}`,ye=(e,t=2,r=!1,n=!1)=>`\u039E${P(D(e),t,r,n)}`,Se=(...e)=>{const t=[];e.forEach(n=>{n&&t.push(String(n).trim().split(" "))});let r=t.reduce((n,s)=>n.concat(s),[]);return r=r.reverse(),r=Array.from(new Set(r)),r=r.reverse(),r.join(" ")},U="yyyy-MM-dd'T'HH:mm:ss.SSSXXX",be=(e,t)=>{let r;if(!t)r=Q(e);else try{r=Y(e,t,new Date)}catch{}if(!r||!X(r))throw new h(`Invalid date string ${e} passed to dateFromString`);return r},Re=(e,t=U,r=!1)=>{let n=e;return r&&(n=G(n,n.getTimezoneOffset())),ee(n,t,r?{timeZone:"UTC"}:{})},C=(e,t)=>e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear(),Te=e=>C(e,new Date),Ee=e=>{const t=new Date;return t.setDate(t.getDate()-1),C(e,t)},De=(e,t)=>{const r=new Date(e.getTime());return r.setTime(r.getTime()+t*60*60*1e3),r},Ce=(e,t)=>{const r=new Date(e.getTime());return r.setDate(r.getDate()+t),r},qe=e=>{const t=Math.floor((new Date().valueOf()-e.valueOf())/1e3);let r,n=Math.floor(t/31536e3);return n>=1?r="year":(n=Math.floor(t/2592e3),n>=1?r="month":(n=Math.floor(t/86400),n>=1?r="day":(n=Math.floor(t/3600),n>=1?r="hour":(n=Math.floor(t/60),n>=1?r="minute":(n=t,r="second"))))),(n>1||n===0)&&(r+="s"),`${n} ${r} ago`},Fe=e=>{const t=Math.floor((new Date().valueOf()-e.valueOf())/1e3);let r,n=Math.floor(t/31536e3);return n>=1?r="y":(n=Math.floor(t/2592e3),n>=1?r="m":(n=Math.floor(t/86400),n>=1?r="d":(n=Math.floor(t/3600),n>=1?r="h":(n=Math.floor(t/60),n>=1?r="m":(n=t,r="s"))))),`${n}${r} ago`},$e=e=>{const t=new Date(e.getTime());return t.setHours(0,0,0,0),t},Ae=e=>{const t=new Date(e.getTime());return t.setHours(23,59,59,999),t},Oe=(e,t=1)=>{if(e===0)return"0 B";const r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/1024**n).toFixed(t<0?0:t))} ${r[n]}`},j=(e,t)=>{let r=t;l.existsSync(t)&&l.lstatSync(t).isDirectory()&&(r=S.join(t,S.basename(e)));const n=S.dirname(r);l.existsSync(n)||l.mkdirSync(n,{recursive:!0}),l.writeFileSync(r,l.readFileSync(e))},B=(e,t)=>{if(!l.lstatSync(e).isDirectory())throw new Error(`copyDirectorySync must be called with a directory. source ${e} is not a directory`);if(!l.existsSync(t))l.mkdirSync(t,{recursive:!0});else if(!l.lstatSync(e).isDirectory())throw new Error(`copyDirectorySync must be called with a directory. target ${t} is not a directory`);l.readdirSync(e).forEach(r=>{const n=S.join(e,r),s=S.join(t,r);l.lstatSync(n).isDirectory()?B(n,s):j(n,s)})},ke=(e,t)=>Array(t-e).fill(null).map((r,n)=>e+n),Me=(e,t)=>e.reduce((r,n,s)=>{const o=Math.floor(s/t);return r[o]||(r[o]=[]),r[o].push(n),r},[]);function He(e,...t){return k(e,N(...t))}function N(...e){let t={};return e.forEach(r=>{r&&(t=k(t,r))}),t}function Ie(e,t){return te(e,t)}const Pe=e=>{if(e!==void 0)return e===null?null:JSON.stringify(e)},ve=e=>{if(e!==void 0)return e===null?null:JSON.parse(e)},Ue=e=>{if(e!==void 0)return e===null?null:e?"1":"0"},je=e=>{if(e!==void 0)return e===null?null:e==="1"||e==="true"},L=e=>{if(e!==void 0)return e===null?null:String(e)},x=e=>{if(e===void 0)return;if(e===null)return null;const t=Number(e);return Number.isNaN(t)?null:t},Be=e=>e?String(Math.round(e)):L(e),Ne=e=>{const t=x(e);return t&&Math.round(t)},Le=(e,t=",")=>{if(e!==void 0)return e===null?"":e.join(t)},xe=(e,t=",")=>{if(e!==void 0)return e===null?[]:e?e.split(t):[]},q="1234567890",K="abcdefghijklmnopqrstuvwxyz",V="ABCDEFGHIJKLMNOPQRSTUVWXYZ",W=`${K}${V}`,J=`${W}${q}`,Z=`${q}abcdef`,_=(e,t=J)=>{let r="";for(let n=0;n<e;n+=1)r+=t[Math.floor(Math.random()*t.length)];return r},Ke=(e=!0)=>{let t=_(32,Z);return e&&(t=[t.substring(0,8),t.substring(8,12),t.substring(12,16),t.substring(16,20),t.substring(20)].join("-")),t},Ve=e=>/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e),We=e=>e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase(),Je=(e,t)=>e.length-t>0?`${e.substring(0,Math.ceil(t/2))}...${e.substring(e.length-Math.floor(t/2),e.length)}`:e,Ze=(e,t)=>e.length-t>0?`${e.substring(0,t)}...`:e,_e=(e,t)=>e.length-t>0?`${e.substring(0,t)}...`:e,ze=e=>{const t=atob(e).split("").map(r=>`%${`00${r.charCodeAt(0).toString(16)}`.slice(-2)}`).join("");return decodeURIComponent(t)};export{W as CHARACTERS_ALPHA,J as CHARACTERS_ALPHANUMERIC,K as CHARACTERS_ALPHA_LOWERCASE,V as CHARACTERS_ALPHA_UPPERCASE,Z as CHARACTERS_HEX,q as CHARACTERS_NUMERIC,v as ETHER,U as JSON_DATE_FORMAT,h as KibaException,m as KibaRequest,T as KibaResponse,de as LocalStorageClient,ce as RequestData,ae as Requester,ie as RequesterModifier,ue as ResponseData,f as RestMethod,le as ServiceClient,Ce as addDays,De as addHours,ke as arrayWithRange,he as asyncSleep,ze as base64DecodeUnicode,je as booleanFromString,Ue as booleanToString,We as camelCaseToKebabCase,B as copyDirectorySync,j as copyFileSync,M as createSearchParams,be as dateFromString,Fe as dateToRelativeShortString,qe as dateToRelativeString,Re as dateToString,Ie as deepCompare,fe as downloadFileFromBrowser,Ae as endOfDay,D as etherToNumber,_ as generateRandomString,Ke as generateUUID,Me as getChunks,Se as getClassName,ne as getLinkableUrl,re as getUrlDisplayString,Oe as humanFileSize,Ne as integerFromString,Be as integerToString,H as isBrowser,me as isDocumentVisible,ge as isMobile,C as isSameDay,Te as isToday,Ve as isValidEmail,Ee as isYesterday,ye as longFormatEther,P as longFormatNumber,He as merge,N as mergePartial,x as numberFromString,L as numberToString,pe as numberWithCommas,ve as objectFromString,Pe as objectToString,se as resolveUrl,we as shortFormatEther,I as shortFormatNumber,$e as startOfDay,xe as stringListFromString,Le as stringListToString,E as timeoutPromise,_e as truncateEnd,Je as truncateMiddle,Ze as truncateStart,oe as updateQueryString};
@@ -20,7 +20,13 @@ export declare class Requester {
20
20
  makeRequest: (method: RestMethod, url: string, data?: Record<string, unknown>, headers?: Record<string, string>, timeout?: number) => Promise<KibaResponse>;
21
21
  makeFormRequest: (url: string, data?: FormData, headers?: Record<string, string>, timeout?: number) => Promise<KibaResponse>;
22
22
  makeFormPutRequest: (url: string, data?: FormData, headers?: Record<string, string>, timeout?: number) => Promise<KibaResponse>;
23
+ makeStreamingRequest: <StreamItemType>(method: RestMethod, url: string, data: Record<string, unknown> | undefined, parseItem: (obj: Record<string, unknown>) => StreamItemType, onItem: (item: StreamItemType) => void, headers?: Record<string, string>, timeout?: number) => Promise<void>;
23
24
  private makeRequestInternal;
25
+ private makeStreamingRequestInternal;
26
+ private createFetchRequestConfig;
27
+ private static getResponseHeaders;
28
+ private static throwKibaExceptionFromErrorContent;
24
29
  private makeFetchRequest;
30
+ private makeStreamingFetchRequest;
25
31
  }
26
32
  //# sourceMappingURL=requester.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"requester.d.ts","sourceRoot":"","sources":["../../src/requester/requester.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,qBAAa,iBAAiB;IAErB,aAAa,CAAC,OAAO,EAAE,WAAW,GAAG,WAAW;IAKhD,cAAc,CAAC,QAAQ,EAAE,YAAY,GAAG,YAAY;CAG5D;AAED,qBAAa,SAAS;IACpB,OAAO,CAAC,OAAO,CAAyB;IACxC,OAAO,CAAC,SAAS,CAAsB;IACvC,OAAO,CAAC,iCAAiC,CAAU;gBAEhC,OAAO,CAAC,EAAE,MAAM,CAA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,IAAI,EACtC,UAAU,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAChC,UAAU,MAAM,KACf,OAAO,CAAC,IAAI,CAAC,CAGd;IAEF,OAAO,CAAC,mBAAmB,CAQzB;IAEF,OAAO,CAAC,4BAA4B,CAQlC;IAEF,OAAO,CAAC,wBAAwB,CAqC9B;IAEF,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAS/B;IAEF,OAAO,CAAC,MAAM,CAAC,kCAAkC,CAa/C;IAEF,OAAO,CAAC,gBAAgB,CAetB;IAEF,OAAO,CAAC,yBAAyB,CA0D/B;CACH"}
@@ -5,12 +5,14 @@ export declare class RequestData {
5
5
  }
6
6
  export declare class ResponseData {
7
7
  }
8
- type Constructor<T = RawObject> = new (...args: any[]) => T;
8
+ export type ResponseDataClass<T extends ResponseData> = {
9
+ fromObject: (obj: RawObject) => T;
10
+ };
9
11
  export declare class ServiceClient {
10
12
  protected requester: Requester;
11
13
  baseUrl: string;
12
14
  constructor(requester: Requester, baseUrl: string);
13
- protected makeRequest: <ResponseType extends ResponseData>(method: RestMethod, path: string, request?: RequestData | undefined, responseClass?: Constructor<ResponseType> | undefined, additionalHeaders?: Record<string, string>) => Promise<ResponseType>;
15
+ protected makeRequest: <ResponseType extends ResponseData>(method: RestMethod, path: string, request?: RequestData | undefined, responseClass?: ResponseDataClass<ResponseType> | undefined, additionalHeaders?: Record<string, string>) => Promise<ResponseType>;
16
+ protected makeStreamingRequest: <StreamItemType extends ResponseData>(method: RestMethod, path: string, request: RequestData | undefined, streamItemClass: ResponseDataClass<StreamItemType>, onStreamItem: (streamItem: StreamItemType) => void, additionalHeaders?: Record<string, string>) => Promise<void>;
14
17
  }
15
- export {};
16
18
  //# sourceMappingURL=serviceClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serviceClient.d.ts","sourceRoot":"","sources":["../../src/services/serviceClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAA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AAM;IAKxD,SAAS,CAAC,WAAW,GAAU,YAAY,SAAS,YAAY,EAC9D,QAAQ,UAAU,EAClB,MAAM,MAAM,EACZ,UAAU,WAAW,GAAG,SAAS,EACjC,gBAAgB,iBAAiB,CAAC,YAAY,CAAC,GAAG,SAAS,EAC3D,oBAAoB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KACzC,OAAO,CAAC,YAAY,CAAC,CAItB;IAEF,SAAS,CAAC,oBAAoB,GAAU,cAAc,SAAS,YAAY,EACzE,QAAQ,UAAU,EAClB,MAAM,MAAM,EACZ,SAAS,WAAW,GAAG,SAAS,EAChC,iBAAiB,iBAAiB,CAAC,cAAc,CAAC,EAClD,cAAc,CAAC,UAAU,EAAE,cAAc,KAAK,IAAI,EAClD,oBAAoB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KACzC,OAAO,CAAC,IAAI,CAAC,CAGd;CACH"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kibalabs/core",
3
- "version": "0.7.1",
3
+ "version": "0.7.2-next.1",
4
4
  "description": "Utilities for use in front-end projects at Kiba Labs",
5
5
  "license": "MIT",
6
6
  "repository": {