Skip to content

Commit

Permalink
deps: rebuild for 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Aug 18, 2024
1 parent bbf010d commit 7715994
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 45 deletions.
14 changes: 7 additions & 7 deletions dist/cli.cjs

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions dist/cli.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions dist/index.all.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.all.js.map

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions dist/index.cjs

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions dist/index.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/node/index.cjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/node/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/utils.cjs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"use strict";var u=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var T=(t,r)=>{for(var e in r)u(t,e,{get:r[e],enumerable:!0})},S=(t,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of U(r))!b.call(t,o)&&o!==e&&u(t,o,{get:()=>r[o],enumerable:!(n=x(r,o))||n.enumerable});return t};var A=t=>S(u({},"__esModule",{value:!0}),t);var P={};T(P,{appendRequestQuery:()=>f,concatChunks:()=>d,getSurt:()=>l,jsonToQueryParams:()=>p,jsonToQueryString:()=>c,mfdToQueryParams:()=>y,mfdToQueryString:()=>g,postToGetUrl:()=>m,splitChunk:()=>w});module.exports=A(P);function h(t){let r;typeof t=="string"?r=t:t&&t.length?r=t.reduce((e,n)=>(e+=String.fromCharCode(n),e),""):t?r=t.toString():r="";try{return"__wb_post_data="+btoa(r)}catch{return"__wb_post_data="}}function R(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function l(t){try{if(!t.startsWith("https:")&&!t.startsWith("http:"))return t;t=t.replace(/^(https?:\/\/)www\d*\./,"$1");let r=t.toLowerCase(),e=new URL(r),o=e.hostname.split(".").reverse().join(",");if(e.port&&(o+=":"+e.port),o+=")",o+=e.pathname,e.search){e.searchParams.sort(),o+=e.search;for(let[s,i]of e.searchParams.entries())if(!i){let a=new RegExp(`(?<=[&?])${R(s)}=(?=&|$)`);a.exec(r)||(o=o.replace(a,s))}}return o}catch{return t}}function m(t){let{method:r,headers:e,postData:n}=t;if(r==="GET")return!1;let o=(e.get("content-type")||"").split(";")[0];function s(a){return a instanceof Uint8Array&&(a=new TextDecoder().decode(a)),a}let i="";switch(o){case"application/x-www-form-urlencoded":i=s(n);break;case"application/json":i=c(s(n));break;case"text/plain":try{i=c(s(n),!1)}catch{i=h(n)}break;case"multipart/form-data":{let a=e.get("content-type");if(!a)throw new Error("utils cannot call postToGetURL when missing content-type header");i=g(s(n),a);break}default:i=h(n)}return i!==null?(t.url=f(t.url,i,t.method),t.method="GET",t.requestBody=i,!0):!1}function f(t,r,e){if(!e)return t;let n=t.indexOf("?")>0?"&":"?";return`${t}${n}__wb_method=${e}&${r}`}function p(t,r=!0){if(typeof t=="string")try{t=JSON.parse(t)}catch{t={}}let e=new URLSearchParams,n={},o=s=>e.has(s)?(s in n||(n[s]=1),s+"."+ ++n[s]+"_"):s;try{JSON.stringify(t,(s,i)=>(["object","function"].includes(typeof i)||e.set(o(s),i),i))}catch(s){if(!r)throw s}return e}function y(t,r){let e=new URLSearchParams;t instanceof Uint8Array&&(t=new TextDecoder().decode(t));try{let n=r.split("boundary=")[1],o=t.split(new RegExp("-*"+n+"-*","mi"));for(let s of o){let i=s.trim().match(/name="([^"]+)"\r\n\r\n(.*)/im);i&&e.set(i[1],i[2])}}catch{}return e}function c(t,r=!0){return p(t,r).toString()}function g(t,r){return y(t,r).toString()}function d(t,r){if(t.length===1)return t[0];let e=new Uint8Array(r),n=0;for(let o of t)e.set(o,n),n+=o.byteLength;return e}function w(t,r){return[t.slice(0,r),t.slice(r)]}0&&(module.exports={appendRequestQuery,concatChunks,getSurt,jsonToQueryParams,jsonToQueryString,mfdToQueryParams,mfdToQueryString,postToGetUrl,splitChunk});
"use strict";var p=Object.defineProperty;var A=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var _=(t,r)=>{for(var n in r)p(t,n,{get:r[n],enumerable:!0})},R=(t,r,n,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of S(r))!b.call(t,i)&&i!==n&&p(t,i,{get:()=>r[i],enumerable:!(o=A(r,i))||o.enumerable});return t};var P=t=>R(p({},"__esModule",{value:!0}),t);var C={};_(C,{appendRequestQuery:()=>y,concatChunks:()=>x,getSurt:()=>d,jsonToQueryParams:()=>l,jsonToQueryString:()=>u,mfdToQueryParams:()=>g,mfdToQueryString:()=>h,postToGetUrl:()=>w,splitChunk:()=>U});module.exports=P(C);function m(t){let r;typeof t=="string"?r=t:t&&t.length?r=t.reduce((n,o)=>(n+=String.fromCharCode(o),n),""):t?r=t.toString():r="";try{return"__wb_post_data="+btoa(r)}catch{return"__wb_post_data="}}function $(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function d(t){try{if(!t.startsWith("https:")&&!t.startsWith("http:"))return t;t=t.replace(/^(https?:\/\/)www\d*\./,"$1");let r=t.toLowerCase(),n=new URL(r),i=n.hostname.split(".").reverse().join(",");if(n.port&&(i+=":"+n.port),i+=")",i+=n.pathname,n.search){n.searchParams.sort(),i+=n.search;for(let[a,e]of n.searchParams.entries())if(!e){let s=new RegExp(`(?<=[&?])${$(a)}=(?=&|$)`);s.exec(r)||(i=i.replace(s,a))}}return i}catch{return t}}function w(t){let{method:r,headers:n,postData:o}=t;if(r==="GET")return!1;let i=(n.get("content-type")||"").split(";")[0];function a(s){return s instanceof Uint8Array&&(s=new TextDecoder().decode(s)),s}let e="";switch(i){case"application/x-www-form-urlencoded":e=a(o);break;case"application/json":e=u(a(o));break;case"text/plain":try{e=u(a(o),!1)}catch{e=m(o)}break;case"multipart/form-data":{let s=n.get("content-type");if(!s)throw new Error("utils cannot call postToGetURL when missing content-type header");e=h(a(o),s);break}default:e=m(o)}return e!==null?(t.url=y(t.url,e,t.method),t.method="GET",t.requestBody=e,!0):!1}function y(t,r,n){if(!n)return t;let o=t.indexOf("?")>0?"&":"?";return`${t}${o}__wb_method=${n}&${r}`}function l(t,r=!0){if(typeof t=="string")try{t=JSON.parse(t)}catch{t={}}let n=new URLSearchParams,o={},i=e=>n.has(e)?(e in o||(o[e]=1),e+"."+ ++o[e]+"_"):e,a=(e,s="")=>{let f="";if(typeof e=="object"&&!(e instanceof Array))try{for(let[c,T]of Object.entries(e))a(T,c)}catch{e===null&&(f="null")}else if(e instanceof Array)for(let c=0;c<e.length;c++)a(e[c],s);["string","number","boolean"].includes(typeof e)&&(f=e.toString()),f&&n.set(i(s),f)};try{a(t)}catch(e){if(!r)throw e}return n}function g(t,r){let n=new URLSearchParams;t instanceof Uint8Array&&(t=new TextDecoder().decode(t));try{let o=r.split("boundary=")[1],i=t.split(new RegExp("-*"+o+"-*","mi"));for(let a of i){let e=a.trim().match(/name="([^"]+)"\r\n\r\n(.*)/im);e&&n.set(e[1],e[2])}}catch{}return n}function u(t,r=!0){return l(t,r).toString()}function h(t,r){return g(t,r).toString()}function x(t,r){if(t.length===1)return t[0];let n=new Uint8Array(r),o=0;for(let i of t)n.set(i,o),o+=i.byteLength;return n}function U(t,r){return[t.slice(0,r),t.slice(r)]}0&&(module.exports={appendRequestQuery,concatChunks,getSurt,jsonToQueryParams,jsonToQueryString,mfdToQueryParams,mfdToQueryString,postToGetUrl,splitChunk});
2 changes: 1 addition & 1 deletion dist/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7715994

Please sign in to comment.