@swifty.js/swifty 0.0.5 → 0.0.6
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{B as mi,
|
|
4
|
+
import{A as li,B as ui,D as mi,E as di,F as xi,G as vi,H as fi,I as bi,J as gi,O as hi,Q as yi,S as wi,T as ki,U as ji,V as Be,W as qi,X as Ei,Y as Si,Z as Ci,_ as Ti,a as Ie,aa as zi,b as He,c as $e,g as ce,ga as _i,h as pe,ha as Pi,i as le,ia as Ai,j as ue,ja as Ri,k as me,ka as Oi,l as de,la as Li,m as Va,n as Qa,o as ei,p as ai,q as si,r as Ge,s as oi,v as ct,w as ti,x as ri,y as ci,z as pi}from"./chunk-PAJWEPH7.js";import{c as ii,d as ni,j as Y}from"./chunk-IZ23BHLA.js";import{e as J}from"./chunk-S2DPVNBA.js";import{a as re}from"./chunk-UBV5T4TV.js";import{a as Ue,b as Ha}from"./chunk-XBHVVB5A.js";import{a as L,e as Ga,f as Ba,g as oe,h as De,i as Xa,j as Wa,k as te,o as Za}from"./chunk-DCI5RJC7.js";import{e as Ya,f as Ja,g as Ka}from"./chunk-HU7ELU2V.js";import"./chunk-FZPTNGTU.js";import"./chunk-7MHXMDYC.js";import{I as E,R as Ne,e as $a}from"./chunk-4KVSJNS6.js";import"./chunk-MQ5XOYLD.js";import{a as x,b as l,d as rt}from"./chunk-X3UA5OZL.js";var Fi=l((_l,Mi)=>{"use strict";Mi.exports=pt;function pt(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=lt(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 lt(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 We=l((Pl,Xe)=>{"use strict";Xe.exports=mt;Xe.exports.isFinished=Di;var Ui=bt(),Ni=Fi(),ut=typeof setImmediate=="function"?setImmediate:function(e){process.nextTick(e.bind.apply(e,arguments))};function mt(e,a){return Di(e)!==!1?(ut(a,null,e),e):(xt(e,gt(a)),e)}function Di(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 dt(e,a){var i,n,s=!1;function o(r){i.cancel(),n.cancel(),s=!0,a(r)}i=n=Ni([[e,"end","finish"]],o);function t(r){e.removeListener("socket",t),!s&&i===n&&(n=Ni([[r,"error","close"]],o))}if(e.socket){t(e.socket);return}e.on("socket",t),e.socket===void 0&&ft(e,t)}function xt(e,a){var i=e.__onFinished;(!i||!i.queue)&&(i=e.__onFinished=vt(e),dt(e,i)),i.queue.push(a)}function vt(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 ft(e,a){var i=e.assignSocket;typeof i=="function"&&(e.assignSocket=function(s){i.call(this,s),a(s)})}function bt(){try{return x("async_hooks")}catch{return{}}}function gt(e){var a;return Ui.AsyncResource&&(a=new Ui.AsyncResource(e.name||"bound-anonymous-fn")),!a||!a.runInAsyncScope?e:a.runInAsyncScope.bind(a,e,null)}});var Hi=l((Al,Ii)=>{"use strict";Ii.exports=ht;function ht(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 $i=l((Rl,yt)=>{yt.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 K=l((Ol,Bi)=>{"use strict";var Ze=$i();Bi.exports=_;_.message=Ze;_.code=wt(Ze);_.codes=kt(Ze);_.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 wt(e){var a={};return Object.keys(e).forEach(function(n){var s=e[n],o=Number(n);a[s.toLowerCase()]=o}),a}function kt(e){return Object.keys(e).map(function(i){return Number(i)})}function jt(e){var a=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(_.code,a))throw new Error('invalid status message: "'+e+'"');return _.code[a]}function Gi(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 Gi(e);if(typeof e!="string")throw new TypeError("code must be a number or string");var a=parseInt(e,10);return isNaN(a)?jt(e):Gi(a)}});var Je=l((Ll,Yi)=>{"use strict";var qt=x("path").relative;Yi.exports=zt;var Et=process.cwd();function Wi(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 St(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 Ct(e){for(var a="",i=0;i<e;i++)a+=", arg"+i;return a.substr(2)}function Tt(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 zt(e){if(!e)throw new TypeError("argument namespace is required");var a=ve(),i=H(a[1]),n=i[0];function s(o){xe.call(s,o)}return s._file=n,s._ignored=Pt(e),s._namespace=e,s._traced=At(e),s._warned=Object.create(null),s.function=Mt,s.property=Ft,s}function _t(e,a){var i=typeof e.listenerCount!="function"?e.listeners(a).length:e.listenerCount(a);return i>0}function Pt(e){if(process.noDeprecation)return!0;var a=process.env.NO_DEPRECATION||"";return Wi(a,e)}function At(e){if(process.traceDeprecation)return!0;var a=process.env.TRACE_DEPRECATION||"";return Wi(a,e)}function xe(e,a){var i=_t(process,"deprecation");if(!(!i&&this._ignored)){var n,s,o,t,r=0,c=!1,p=ve(),m=this._file;for(a?(t=a,o=H(p[1]),o.name=t.name,m=o[0]):(r=2,t=H(p[r]),o=t);r<p.length;r++)if(n=H(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?Xi(t):Xi(o)),i){var f=Zi(this._namespace,d,p.slice(r));process.emit("deprecation",f);return}var h=process.stderr.isTTY?Ot:Rt,P=h.call(this,d,n,p.slice(r));process.stderr.write(P+`
|
|
6
6
|
`,"utf8")}}}function H(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 Xi(e){var a=e.callSite,i=e.name;i||(i="<anonymous@"+Ye(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 Rt(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 "+Ye(a)),s}function Ot(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+=`
|