@swifty.js/swifty 0.0.11 → 0.0.13
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __swiftyCreateRequire } from "node:module";
|
|
3
3
|
const require = __swiftyCreateRequire(import.meta.url);
|
|
4
|
-
import{$ as ki,A as pe,B as le,C as ue,D as me,E as ui,I as de,J as mi,K as di,L as xe,O as pt,Q as xi,R as vi,S as fi,U as bi,W as gi,X as hi,Y as yi,Z as wi,_ as Xe,a as He,aa as ji,b as $e,ba as qi,c as Ge,ca as Ei,da as Si,ea as Ci,fa as Ti,ga as zi,h as ai,ha as _i,ia as Pi,j as ii,ja as Ai,ka as Ri,l as ni,la as Oi,m as si,ma as Li,n as oi,na as Mi,o as ti,p as Be,q as ri,r as ci,s as pi,y as li}from"./chunk-
|
|
4
|
+
import{$ as ki,A as pe,B as le,C as ue,D as me,E as ui,I as de,J as mi,K as di,L as xe,O as pt,Q as xi,R as vi,S as fi,U as bi,W as gi,X as hi,Y as yi,Z as wi,_ as Xe,a as He,aa as ji,b as $e,ba as qi,c as Ge,ca as Ei,da as Si,ea as Ci,fa as Ti,ga as zi,h as ai,ha as _i,ia as Pi,j as ii,ja as Ai,ka as Ri,l as ni,la as Oi,m as si,ma as Li,n as oi,na as Mi,o as ti,p as Be,q as ri,r as ci,s as pi,y as li}from"./chunk-QNFMJDDO.js";import{a as Ne,b as $a}from"./chunk-XBHVVB5A.js";import{a as Qa,b as ei,h as J}from"./chunk-RNUCVDX2.js";import{a as M,d as Ba,e as Xa,f as te,g as Ie,h as Wa,i as Za,j as re,n as Ya}from"./chunk-GQ2COSTQ.js";import{e as Ja,f as Ka,g as Va}from"./chunk-MSJOPX6X.js";import"./chunk-FZPTNGTU.js";import{e as K}from"./chunk-R7VREEYH.js";import"./chunk-7MHXMDYC.js";import{D as E,I as Ga,K as L,S as De}from"./chunk-M5AOLYFS.js";import{a as ce}from"./chunk-UBV5T4TV.js";import{a as x,b as l,d as ct}from"./chunk-X3UA5OZL.js";var Ui=l((Pl,Fi)=>{"use strict";Fi.exports=lt;function lt(e,a){if(!Array.isArray(e))throw new TypeError("arg must be an array of [ee, events...] arrays");for(var i=[],n=0;n<e.length;n++){var s=e[n];if(!Array.isArray(s)||s.length<2)throw new TypeError("each array member must be [ee, events...]");for(var o=s[0],t=1;t<s.length;t++){var r=s[t],c=ut(r,p);o.on(r,c),i.push({ee:o,event:r,fn:c})}}function p(){m(),a.apply(null,arguments)}function m(){for(var d,f=0;f<i.length;f++)d=i[f],d.ee.removeListener(d.event,d.fn)}function u(d){a=d}return u.cancel=m,u}function ut(e,a){return function(n){for(var s=new Array(arguments.length),o=this,t=e==="error"?n:null,r=0;r<s.length;r++)s[r]=arguments[r];a(t,o,e,s)}}});var Ze=l((Al,We)=>{"use strict";We.exports=dt;We.exports.isFinished=Ii;var Ni=gt(),Di=Ui(),mt=typeof setImmediate=="function"?setImmediate:function(e){process.nextTick(e.bind.apply(e,arguments))};function dt(e,a){return Ii(e)!==!1?(mt(a,null,e),e):(vt(e,ht(a)),e)}function Ii(e){var a=e.socket;if(typeof e.finished=="boolean")return!!(e.finished||a&&!a.writable);if(typeof e.complete=="boolean")return!!(e.upgrade||!a||!a.readable||e.complete&&!e.readable)}function xt(e,a){var i,n,s=!1;function o(r){i.cancel(),n.cancel(),s=!0,a(r)}i=n=Di([[e,"end","finish"]],o);function t(r){e.removeListener("socket",t),!s&&i===n&&(n=Di([[r,"error","close"]],o))}if(e.socket){t(e.socket);return}e.on("socket",t),e.socket===void 0&&bt(e,t)}function vt(e,a){var i=e.__onFinished;(!i||!i.queue)&&(i=e.__onFinished=ft(e),xt(e,i)),i.queue.push(a)}function ft(e){function a(i){if(e.__onFinished===a&&(e.__onFinished=null),!!a.queue){var n=a.queue;a.queue=null;for(var s=0;s<n.length;s++)n[s](i,e)}}return a.queue=[],a}function bt(e,a){var i=e.assignSocket;typeof i=="function"&&(e.assignSocket=function(s){i.call(this,s),a(s)})}function gt(){try{return x("async_hooks")}catch{return{}}}function ht(e){var a;return Ni.AsyncResource&&(a=new Ni.AsyncResource(e.name||"bound-anonymous-fn")),!a||!a.runInAsyncScope?e:a.runInAsyncScope.bind(a,e,null)}});var $i=l((Rl,Hi)=>{"use strict";Hi.exports=yt;function yt(e){if(!Array.isArray(e))throw new TypeError("Middleware stack must be an array!");for(let a of e)if(typeof a!="function")throw new TypeError("Middleware must be composed of functions!");return function(a,i){let n=-1;return s(0);function s(o){if(o<=n)return Promise.reject(new Error("next() called multiple times"));n=o;let t=e[o];if(o===e.length&&(t=i),!t)return Promise.resolve();try{return Promise.resolve(t(a,s.bind(null,o+1)))}catch(r){return Promise.reject(r)}}}}});var Gi=l((Ol,wt)=>{wt.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}});var V=l((Ll,Xi)=>{"use strict";var Ye=Gi();Xi.exports=_;_.message=Ye;_.code=kt(Ye);_.codes=jt(Ye);_.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0};_.empty={204:!0,205:!0,304:!0};_.retry={502:!0,503:!0,504:!0};function kt(e){var a={};return Object.keys(e).forEach(function(n){var s=e[n],o=Number(n);a[s.toLowerCase()]=o}),a}function jt(e){return Object.keys(e).map(function(i){return Number(i)})}function qt(e){var a=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(_.code,a))throw new Error('invalid status message: "'+e+'"');return _.code[a]}function Bi(e){if(!Object.prototype.hasOwnProperty.call(_.message,e))throw new Error("invalid status code: "+e);return _.message[e]}function _(e){if(typeof e=="number")return Bi(e);if(typeof e!="string")throw new TypeError("code must be a number or string");var a=parseInt(e,10);return isNaN(a)?qt(e):Bi(a)}});var Ke=l((Ml,Ji)=>{"use strict";var Et=x("path").relative;Ji.exports=_t;var St=process.cwd();function Zi(e,a){for(var i=e.split(/[ ,]+/),n=String(a).toLowerCase(),s=0;s<i.length;s++){var o=i[s];if(o&&(o==="*"||o.toLowerCase()===n))return!0}return!1}function Ct(e,a,i){var n=Object.getOwnPropertyDescriptor(e,a),s=n.value;return n.get=function(){return s},n.writable&&(n.set=function(t){return s=t}),delete n.value,delete n.writable,Object.defineProperty(e,a,n),n}function Tt(e){for(var a="",i=0;i<e;i++)a+=", arg"+i;return a.substr(2)}function zt(e){var a=this.name+": "+this.namespace;this.message&&(a+=" deprecated "+this.message);for(var i=0;i<e.length;i++)a+=`
|
|
5
5
|
at `+e[i].toString();return a}function _t(e){if(!e)throw new TypeError("argument namespace is required");var a=fe(),i=$(a[1]),n=i[0];function s(o){ve.call(s,o)}return s._file=n,s._ignored=At(e),s._namespace=e,s._traced=Rt(e),s._warned=Object.create(null),s.function=Ft,s.property=Ut,s}function Pt(e,a){var i=typeof e.listenerCount!="function"?e.listeners(a).length:e.listenerCount(a);return i>0}function At(e){if(process.noDeprecation)return!0;var a=process.env.NO_DEPRECATION||"";return Zi(a,e)}function Rt(e){if(process.traceDeprecation)return!0;var a=process.env.TRACE_DEPRECATION||"";return Zi(a,e)}function ve(e,a){var i=Pt(process,"deprecation");if(!(!i&&this._ignored)){var n,s,o,t,r=0,c=!1,p=fe(),m=this._file;for(a?(t=a,o=$(p[1]),o.name=t.name,m=o[0]):(r=2,t=$(p[r]),o=t);r<p.length;r++)if(n=$(p[r]),s=n[0],s===m)c=!0;else if(s===this._file)m=this._file;else if(c)break;var u=n?t.join(":")+"__"+n.join(":"):void 0;if(!(u!==void 0&&u in this._warned)){this._warned[u]=!0;var d=e;if(d||(d=o===t||!o.name?Wi(t):Wi(o)),i){var f=Yi(this._namespace,d,p.slice(r));process.emit("deprecation",f);return}var h=process.stderr.isTTY?Lt:Ot,P=h.call(this,d,n,p.slice(r));process.stderr.write(P+`
|
|
6
6
|
`,"utf8")}}}function $(e){var a=e.getFileName()||"<anonymous>",i=e.getLineNumber(),n=e.getColumnNumber();e.isEval()&&(a=e.getEvalOrigin()+", "+a);var s=[a,i,n];return s.callSite=e,s.name=e.getFunctionName(),s}function Wi(e){var a=e.callSite,i=e.name;i||(i="<anonymous@"+Je(e)+">");var n=a.getThis(),s=n&&a.getTypeName();return s==="Object"&&(s=void 0),s==="Function"&&(s=n.name||s),s&&a.getMethodName()?s+"."+i:i}function Ot(e,a,i){var n=new Date().toUTCString(),s=n+" "+this._namespace+" deprecated "+e;if(this._traced){for(var o=0;o<i.length;o++)s+=`
|
|
7
7
|
at `+i[o].toString();return s}return a&&(s+=" at "+Je(a)),s}function Lt(e,a,i){var n="\x1B[36;1m"+this._namespace+"\x1B[22;39m \x1B[33;1mdeprecated\x1B[22;39m \x1B[0m"+e+"\x1B[39m";if(this._traced){for(var s=0;s<i.length;s++)n+=`
|