lintpage 0.5.0 → 0.5.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.
@@ -1,5 +1,5 @@
1
1
  var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=require(`chalk`);l=c(l);function u(e){let t=0,n=``;for(let r of e){let e=encodeURIComponent(r).length;if(t+e>255)break;t+=e,n+=r}return n}function d(e,t,n){let r=new URLSearchParams({utm_source:`lintpage`,utm_medium:e,utm_campaign:`fix-it`});return t&&r.set(`utm_content`,u(t)),n&&r.set(`utm_term`,`scan_${n}`),`https://calendly.com/bludesksoft/30min?${r.toString()}`}const f={CRITICAL:l.default.red.bold(`✗`),WARNING:l.default.yellow(`⚠`),INFO:l.default.blue(`ℹ`)};function p(e,t){let n=`${e.warn} ${e.warn===1?`warning`:`warnings`}`;return t===`FAIL`?`DEPLOY BLOCKED · ${e.crit} critical · ${n} · ${e.info} info`:t===`AI-FAIL`?`AI VISIBILITY FAIL · ${e.crit} AI critical · ${n} · ${e.info} info`:`READY TO SHIP · ${n} · ${e.info} info`}function m(e,t){let n=[],r={crit:e.results.filter(e=>e.severity===`CRITICAL`).length,warn:e.results.filter(e=>e.severity===`WARNING`).length,info:e.results.filter(e=>e.severity===`INFO`).length};if(t)return n.push(` ${l.default.red.bold(`${r.crit} critical`)} ${l.default.yellow(`${r.warn} ${r.warn===1?`warning`:`warnings`}`)} ${l.default.blue(`${r.info} info`)}`),n.push(``),e.localhost&&(n.push(l.default.dim(` localhost: ${e.localhost.notRun.length} not run, ${e.localhost.downgraded.length} downgraded`)),n.push(``)),n.join(`
2
- `);if(n.push(``),e.results.length===0)n.push(l.default.green(` No issues found.`)),n.push(``);else{let t=[...e.results].sort((e,t)=>h(t.severity)-h(e.severity));t.forEach((e,r)=>{let i=f[e.severity],a=`${e.category.toLowerCase()}/${e.ruleId}`;n.push(`${i} ${l.default.bold(a)} — ${e.message}`),e.fix&&n.push(` ${l.default.dim(e.fix)}`),r<t.length-1&&n.push(``)}),n.push(``)}let i=p(r,e.overallStatus),a=e.overallStatus===`FAIL`?l.default.red.bold:e.overallStatus===`AI-FAIL`?l.default.yellow.bold:l.default.green.bold;return n.push(a(i)),n.push(``),e.localhost&&(n.push(l.default.dim(` localhost mode (${e.localhost.host}): ${e.localhost.notRun.length} checks not run, ${e.localhost.downgraded.length} downgraded. They need a public origin.`)),n.push(``)),r.crit>0&&(n.push(l.default.dim(` Want these fixed for you? Free 30-min call with the LintPage team: ${d(`cli`,e.url)}`)),n.push(``)),n.join(`
3
- `)}function h(e){return e===`CRITICAL`?3:e===`WARNING`?2:1}function g(e){return JSON.stringify(e,null,2)}const _={CRITICAL:`error`,WARNING:`warning`,INFO:`notice`};function v(e){return e.replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`).replace(/:/g,`%3A`).replace(/,/g,`%2C`)}function y(e){let t=[];for(let n of e.results){let e=_[n.severity],r=v(`[${n.ruleId}] ${n.ruleName}`),i=v(n.message);t.push(`::${e} title=${r}::${i}`)}let n=p({crit:e.results.filter(e=>e.severity===`CRITICAL`).length,warn:e.results.filter(e=>e.severity===`WARNING`).length,info:e.results.filter(e=>e.severity===`INFO`).length},e.overallStatus),r=v(`${e.url} — ${n}`);return t.push(`::notice title=LintPage Verdict::${r}`),e.localhost&&t.push(`::notice title=LintPage Localhost::${v(`${e.localhost.notRun.length} checks not run against ${e.localhost.host}: ${e.localhost.notRun.join(`, `)}`)}`),t.join(`
2
+ `);if(n.push(``),e.results.length===0)n.push(l.default.green(` No issues found.`)),n.push(``);else{let t=[...e.results].sort((e,t)=>h(t.severity)-h(e.severity));t.forEach((e,r)=>{let i=f[e.severity],a=`${e.category.toLowerCase()}/${e.ruleId}`;n.push(`${i} ${l.default.bold(a)} — ${e.message}`),e.fix&&n.push(` ${l.default.dim(e.fix)}`),r<t.length-1&&n.push(``)}),n.push(``)}let i=p(r,e.overallStatus),a=e.overallStatus===`FAIL`?l.default.red.bold:e.overallStatus===`AI-FAIL`?l.default.yellow.bold:l.default.green.bold;if(n.push(a(i)),n.push(``),e.localhost){let{host:t,notRun:r,downgraded:i}=e.localhost,a=r.length===1;n.push(l.default.dim(` localhost mode (${t}): ${r.length} ${a?`check`:`checks`} not run (${a?`it needs`:`they need`} a public origin), ${i.length} downgraded to info.`)),n.push(``)}return r.crit>0&&(n.push(l.default.dim(` Want these fixed for you? Free 30-min call with the LintPage team: ${d(`cli`,e.url)}`)),n.push(``)),n.join(`
3
+ `)}function h(e){return e===`CRITICAL`?3:e===`WARNING`?2:1}function g(e){return JSON.stringify(e,null,2)}const _={CRITICAL:`error`,WARNING:`warning`,INFO:`notice`};function v(e){return e.replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`).replace(/:/g,`%3A`).replace(/,/g,`%2C`)}function y(e){let t=[];for(let n of e.results){let e=_[n.severity],r=v(`[${n.ruleId}] ${n.ruleName}`),i=v(n.message);t.push(`::${e} title=${r}::${i}`)}let n=p({crit:e.results.filter(e=>e.severity===`CRITICAL`).length,warn:e.results.filter(e=>e.severity===`WARNING`).length,info:e.results.filter(e=>e.severity===`INFO`).length},e.overallStatus),r=v(`${e.url} — ${n}`);if(t.push(`::notice title=LintPage Verdict::${r}`),e.localhost){let{host:n,notRun:r,downgraded:i}=e.localhost,a=i.length?`. ${i.length} downgraded to info: ${i.join(`, `)}`:``;t.push(`::notice title=LintPage Localhost::${v(`${r.length} ${r.length===1?`check`:`checks`} not run against ${n}: ${r.join(`, `)}${a}`)}`)}return t.join(`
4
4
  `)}function b(e,t,n){switch(t){case`json`:return g(e);case`github`:return y(e);default:return m(e,n)}}Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return b}});
5
- //# sourceMappingURL=formatter-DGoiZDhP.cjs.map
5
+ //# sourceMappingURL=formatter-Dfpq4zwm.cjs.map
@@ -1,5 +1,5 @@
1
1
  import e from"chalk";function t(e){let t=0,n=``;for(let r of e){let e=encodeURIComponent(r).length;if(t+e>255)break;t+=e,n+=r}return n}function n(e,n,r){let i=new URLSearchParams({utm_source:`lintpage`,utm_medium:e,utm_campaign:`fix-it`});return n&&i.set(`utm_content`,t(n)),r&&i.set(`utm_term`,`scan_${r}`),`https://calendly.com/bludesksoft/30min?${i.toString()}`}const r={CRITICAL:e.red.bold(`✗`),WARNING:e.yellow(`⚠`),INFO:e.blue(`ℹ`)};function i(e,t){let n=`${e.warn} ${e.warn===1?`warning`:`warnings`}`;return t===`FAIL`?`DEPLOY BLOCKED · ${e.crit} critical · ${n} · ${e.info} info`:t===`AI-FAIL`?`AI VISIBILITY FAIL · ${e.crit} AI critical · ${n} · ${e.info} info`:`READY TO SHIP · ${n} · ${e.info} info`}function a(t,a){let s=[],c={crit:t.results.filter(e=>e.severity===`CRITICAL`).length,warn:t.results.filter(e=>e.severity===`WARNING`).length,info:t.results.filter(e=>e.severity===`INFO`).length};if(a)return s.push(` ${e.red.bold(`${c.crit} critical`)} ${e.yellow(`${c.warn} ${c.warn===1?`warning`:`warnings`}`)} ${e.blue(`${c.info} info`)}`),s.push(``),t.localhost&&(s.push(e.dim(` localhost: ${t.localhost.notRun.length} not run, ${t.localhost.downgraded.length} downgraded`)),s.push(``)),s.join(`
2
- `);if(s.push(``),t.results.length===0)s.push(e.green(` No issues found.`)),s.push(``);else{let n=[...t.results].sort((e,t)=>o(t.severity)-o(e.severity));n.forEach((t,i)=>{let a=r[t.severity],o=`${t.category.toLowerCase()}/${t.ruleId}`;s.push(`${a} ${e.bold(o)} — ${t.message}`),t.fix&&s.push(` ${e.dim(t.fix)}`),i<n.length-1&&s.push(``)}),s.push(``)}let l=i(c,t.overallStatus),u=t.overallStatus===`FAIL`?e.red.bold:t.overallStatus===`AI-FAIL`?e.yellow.bold:e.green.bold;return s.push(u(l)),s.push(``),t.localhost&&(s.push(e.dim(` localhost mode (${t.localhost.host}): ${t.localhost.notRun.length} checks not run, ${t.localhost.downgraded.length} downgraded. They need a public origin.`)),s.push(``)),c.crit>0&&(s.push(e.dim(` Want these fixed for you? Free 30-min call with the LintPage team: ${n(`cli`,t.url)}`)),s.push(``)),s.join(`
3
- `)}function o(e){return e===`CRITICAL`?3:e===`WARNING`?2:1}function s(e){return JSON.stringify(e,null,2)}const c={CRITICAL:`error`,WARNING:`warning`,INFO:`notice`};function l(e){return e.replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`).replace(/:/g,`%3A`).replace(/,/g,`%2C`)}function u(e){let t=[];for(let n of e.results){let e=c[n.severity],r=l(`[${n.ruleId}] ${n.ruleName}`),i=l(n.message);t.push(`::${e} title=${r}::${i}`)}let n=i({crit:e.results.filter(e=>e.severity===`CRITICAL`).length,warn:e.results.filter(e=>e.severity===`WARNING`).length,info:e.results.filter(e=>e.severity===`INFO`).length},e.overallStatus),r=l(`${e.url} — ${n}`);return t.push(`::notice title=LintPage Verdict::${r}`),e.localhost&&t.push(`::notice title=LintPage Localhost::${l(`${e.localhost.notRun.length} checks not run against ${e.localhost.host}: ${e.localhost.notRun.join(`, `)}`)}`),t.join(`
2
+ `);if(s.push(``),t.results.length===0)s.push(e.green(` No issues found.`)),s.push(``);else{let n=[...t.results].sort((e,t)=>o(t.severity)-o(e.severity));n.forEach((t,i)=>{let a=r[t.severity],o=`${t.category.toLowerCase()}/${t.ruleId}`;s.push(`${a} ${e.bold(o)} — ${t.message}`),t.fix&&s.push(` ${e.dim(t.fix)}`),i<n.length-1&&s.push(``)}),s.push(``)}let l=i(c,t.overallStatus),u=t.overallStatus===`FAIL`?e.red.bold:t.overallStatus===`AI-FAIL`?e.yellow.bold:e.green.bold;if(s.push(u(l)),s.push(``),t.localhost){let{host:n,notRun:r,downgraded:i}=t.localhost,a=r.length===1;s.push(e.dim(` localhost mode (${n}): ${r.length} ${a?`check`:`checks`} not run (${a?`it needs`:`they need`} a public origin), ${i.length} downgraded to info.`)),s.push(``)}return c.crit>0&&(s.push(e.dim(` Want these fixed for you? Free 30-min call with the LintPage team: ${n(`cli`,t.url)}`)),s.push(``)),s.join(`
3
+ `)}function o(e){return e===`CRITICAL`?3:e===`WARNING`?2:1}function s(e){return JSON.stringify(e,null,2)}const c={CRITICAL:`error`,WARNING:`warning`,INFO:`notice`};function l(e){return e.replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`).replace(/:/g,`%3A`).replace(/,/g,`%2C`)}function u(e){let t=[];for(let n of e.results){let e=c[n.severity],r=l(`[${n.ruleId}] ${n.ruleName}`),i=l(n.message);t.push(`::${e} title=${r}::${i}`)}let n=i({crit:e.results.filter(e=>e.severity===`CRITICAL`).length,warn:e.results.filter(e=>e.severity===`WARNING`).length,info:e.results.filter(e=>e.severity===`INFO`).length},e.overallStatus),r=l(`${e.url} — ${n}`);if(t.push(`::notice title=LintPage Verdict::${r}`),e.localhost){let{host:n,notRun:r,downgraded:i}=e.localhost,a=i.length?`. ${i.length} downgraded to info: ${i.join(`, `)}`:``;t.push(`::notice title=LintPage Localhost::${l(`${r.length} ${r.length===1?`check`:`checks`} not run against ${n}: ${r.join(`, `)}${a}`)}`)}return t.join(`
4
4
  `)}function d(e,t,n){switch(t){case`json`:return s(e);case`github`:return u(e);default:return a(e,n)}}export{a as i,u as n,s as r,d as t};
5
- //# sourceMappingURL=formatter-Bg4mtE_M.mjs.map
5
+ //# sourceMappingURL=formatter-sNOxAPld.mjs.map
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./formatter-DGoiZDhP.cjs`);exports.format=e.t,exports.formatGithub=e.n,exports.formatJson=e.r,exports.formatText=e.i;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./formatter-Dfpq4zwm.cjs`);exports.format=e.t,exports.formatGithub=e.n,exports.formatJson=e.r,exports.formatText=e.i;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { URL, URLSearchParams as URLSearchParams$1 } from "node:url";
2
+ import { URL as URL$1, URLSearchParams as URLSearchParams$1 } from "node:url";
3
3
  import { Duplex, Readable, Writable } from "node:stream";
4
4
  import { EventEmitter } from "node:events";
5
5
  import { Blob, File } from "node:buffer";
@@ -273,7 +273,7 @@ type ClientConnectOptions<TOpaque = null> = Omit<Dispatcher.ConnectOptions<TOpaq
273
273
  * A basic HTTP/1.1 client, mapped on top a single TCP/TLS connection. Pipelining is disabled by default.
274
274
  */
275
275
  declare class Client extends Dispatcher {
276
- constructor(url: string | URL, options?: Client.Options);
276
+ constructor(url: string | URL$1, options?: Client.Options);
277
277
  /** Property to get and set the pipelining factor. */
278
278
  pipelining: number;
279
279
  /** `true` after `client.close()` has been called. */
@@ -601,53 +601,53 @@ declare class Dispatcher extends EventEmitter {
601
601
  destroy(callback: () => void): void;
602
602
  destroy(err: Error | null): Promise<void>;
603
603
  destroy(): Promise<void>;
604
- on(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
605
- on(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
606
- on(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
607
- on(eventName: 'drain', callback: (origin: URL) => void): this;
608
- once(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
609
- once(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
610
- once(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
611
- once(eventName: 'drain', callback: (origin: URL) => void): this;
612
- off(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
613
- off(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
614
- off(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
615
- off(eventName: 'drain', callback: (origin: URL) => void): this;
616
- addListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
617
- addListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
618
- addListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
619
- addListener(eventName: 'drain', callback: (origin: URL) => void): this;
620
- removeListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
621
- removeListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
622
- removeListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
623
- removeListener(eventName: 'drain', callback: (origin: URL) => void): this;
624
- prependListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
625
- prependListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
626
- prependListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
627
- prependListener(eventName: 'drain', callback: (origin: URL) => void): this;
628
- prependOnceListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
629
- prependOnceListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
630
- prependOnceListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
631
- prependOnceListener(eventName: 'drain', callback: (origin: URL) => void): this;
632
- listeners(eventName: 'connect'): ((origin: URL, targets: readonly Dispatcher[]) => void)[];
633
- listeners(eventName: 'disconnect'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
634
- listeners(eventName: 'connectionError'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
635
- listeners(eventName: 'drain'): ((origin: URL) => void)[];
636
- rawListeners(eventName: 'connect'): ((origin: URL, targets: readonly Dispatcher[]) => void)[];
637
- rawListeners(eventName: 'disconnect'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
638
- rawListeners(eventName: 'connectionError'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
639
- rawListeners(eventName: 'drain'): ((origin: URL) => void)[];
640
- emit(eventName: 'connect', origin: URL, targets: readonly Dispatcher[]): boolean;
641
- emit(eventName: 'disconnect', origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
642
- emit(eventName: 'connectionError', origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
643
- emit(eventName: 'drain', origin: URL): boolean;
604
+ on(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
605
+ on(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
606
+ on(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
607
+ on(eventName: 'drain', callback: (origin: URL$1) => void): this;
608
+ once(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
609
+ once(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
610
+ once(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
611
+ once(eventName: 'drain', callback: (origin: URL$1) => void): this;
612
+ off(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
613
+ off(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
614
+ off(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
615
+ off(eventName: 'drain', callback: (origin: URL$1) => void): this;
616
+ addListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
617
+ addListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
618
+ addListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
619
+ addListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
620
+ removeListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
621
+ removeListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
622
+ removeListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
623
+ removeListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
624
+ prependListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
625
+ prependListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
626
+ prependListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
627
+ prependListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
628
+ prependOnceListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
629
+ prependOnceListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
630
+ prependOnceListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
631
+ prependOnceListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
632
+ listeners(eventName: 'connect'): ((origin: URL$1, targets: readonly Dispatcher[]) => void)[];
633
+ listeners(eventName: 'disconnect'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
634
+ listeners(eventName: 'connectionError'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
635
+ listeners(eventName: 'drain'): ((origin: URL$1) => void)[];
636
+ rawListeners(eventName: 'connect'): ((origin: URL$1, targets: readonly Dispatcher[]) => void)[];
637
+ rawListeners(eventName: 'disconnect'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
638
+ rawListeners(eventName: 'connectionError'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
639
+ rawListeners(eventName: 'drain'): ((origin: URL$1) => void)[];
640
+ emit(eventName: 'connect', origin: URL$1, targets: readonly Dispatcher[]): boolean;
641
+ emit(eventName: 'disconnect', origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
642
+ emit(eventName: 'connectionError', origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
643
+ emit(eventName: 'drain', origin: URL$1): boolean;
644
644
  }
645
645
  declare namespace Dispatcher {
646
646
  export interface ComposedDispatcher extends Dispatcher {}
647
647
  export type Dispatch = Dispatcher['dispatch'];
648
648
  export type DispatcherComposeInterceptor = (dispatch: Dispatch) => Dispatch;
649
649
  export interface DispatchOptions {
650
- origin?: string | URL;
650
+ origin?: string | URL$1;
651
651
  path: string;
652
652
  method: HttpMethod;
653
653
  /** Default: `null` */
@@ -674,7 +674,7 @@ declare namespace Dispatcher {
674
674
  expectContinue?: boolean;
675
675
  }
676
676
  export interface ConnectOptions<TOpaque = null> {
677
- origin: string | URL;
677
+ origin: string | URL$1;
678
678
  path: string;
679
679
  /** Default: `null` */
680
680
  headers?: UndiciHeaders;
package/dist/index.d.mts CHANGED
@@ -5,7 +5,7 @@ import { EventEmitter } from "node:events";
5
5
  import { Blob, File } from "node:buffer";
6
6
  import { ConnectionOptions, TLSSocket } from "node:tls";
7
7
  import { SessionOptions } from "node:http2";
8
- import { URL, URLSearchParams as URLSearchParams$1 } from "node:url";
8
+ import { URL as URL$1, URLSearchParams as URLSearchParams$1 } from "node:url";
9
9
 
10
10
  //#region ../../node_modules/undici/types/utility.d.ts
11
11
  type AutocompletePrimitiveBaseType<T> = T extends string ? string : T extends number ? number : T extends boolean ? boolean : never;
@@ -273,7 +273,7 @@ type ClientConnectOptions<TOpaque = null> = Omit<Dispatcher.ConnectOptions<TOpaq
273
273
  * A basic HTTP/1.1 client, mapped on top a single TCP/TLS connection. Pipelining is disabled by default.
274
274
  */
275
275
  declare class Client extends Dispatcher {
276
- constructor(url: string | URL, options?: Client.Options);
276
+ constructor(url: string | URL$1, options?: Client.Options);
277
277
  /** Property to get and set the pipelining factor. */
278
278
  pipelining: number;
279
279
  /** `true` after `client.close()` has been called. */
@@ -601,53 +601,53 @@ declare class Dispatcher extends EventEmitter {
601
601
  destroy(callback: () => void): void;
602
602
  destroy(err: Error | null): Promise<void>;
603
603
  destroy(): Promise<void>;
604
- on(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
605
- on(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
606
- on(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
607
- on(eventName: 'drain', callback: (origin: URL) => void): this;
608
- once(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
609
- once(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
610
- once(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
611
- once(eventName: 'drain', callback: (origin: URL) => void): this;
612
- off(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
613
- off(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
614
- off(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
615
- off(eventName: 'drain', callback: (origin: URL) => void): this;
616
- addListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
617
- addListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
618
- addListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
619
- addListener(eventName: 'drain', callback: (origin: URL) => void): this;
620
- removeListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
621
- removeListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
622
- removeListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
623
- removeListener(eventName: 'drain', callback: (origin: URL) => void): this;
624
- prependListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
625
- prependListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
626
- prependListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
627
- prependListener(eventName: 'drain', callback: (origin: URL) => void): this;
628
- prependOnceListener(eventName: 'connect', callback: (origin: URL, targets: readonly Dispatcher[]) => void): this;
629
- prependOnceListener(eventName: 'disconnect', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
630
- prependOnceListener(eventName: 'connectionError', callback: (origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
631
- prependOnceListener(eventName: 'drain', callback: (origin: URL) => void): this;
632
- listeners(eventName: 'connect'): ((origin: URL, targets: readonly Dispatcher[]) => void)[];
633
- listeners(eventName: 'disconnect'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
634
- listeners(eventName: 'connectionError'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
635
- listeners(eventName: 'drain'): ((origin: URL) => void)[];
636
- rawListeners(eventName: 'connect'): ((origin: URL, targets: readonly Dispatcher[]) => void)[];
637
- rawListeners(eventName: 'disconnect'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
638
- rawListeners(eventName: 'connectionError'): ((origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
639
- rawListeners(eventName: 'drain'): ((origin: URL) => void)[];
640
- emit(eventName: 'connect', origin: URL, targets: readonly Dispatcher[]): boolean;
641
- emit(eventName: 'disconnect', origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
642
- emit(eventName: 'connectionError', origin: URL, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
643
- emit(eventName: 'drain', origin: URL): boolean;
604
+ on(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
605
+ on(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
606
+ on(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
607
+ on(eventName: 'drain', callback: (origin: URL$1) => void): this;
608
+ once(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
609
+ once(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
610
+ once(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
611
+ once(eventName: 'drain', callback: (origin: URL$1) => void): this;
612
+ off(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
613
+ off(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
614
+ off(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
615
+ off(eventName: 'drain', callback: (origin: URL$1) => void): this;
616
+ addListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
617
+ addListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
618
+ addListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
619
+ addListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
620
+ removeListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
621
+ removeListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
622
+ removeListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
623
+ removeListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
624
+ prependListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
625
+ prependListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
626
+ prependListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
627
+ prependListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
628
+ prependOnceListener(eventName: 'connect', callback: (origin: URL$1, targets: readonly Dispatcher[]) => void): this;
629
+ prependOnceListener(eventName: 'disconnect', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
630
+ prependOnceListener(eventName: 'connectionError', callback: (origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void): this;
631
+ prependOnceListener(eventName: 'drain', callback: (origin: URL$1) => void): this;
632
+ listeners(eventName: 'connect'): ((origin: URL$1, targets: readonly Dispatcher[]) => void)[];
633
+ listeners(eventName: 'disconnect'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
634
+ listeners(eventName: 'connectionError'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
635
+ listeners(eventName: 'drain'): ((origin: URL$1) => void)[];
636
+ rawListeners(eventName: 'connect'): ((origin: URL$1, targets: readonly Dispatcher[]) => void)[];
637
+ rawListeners(eventName: 'disconnect'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
638
+ rawListeners(eventName: 'connectionError'): ((origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError) => void)[];
639
+ rawListeners(eventName: 'drain'): ((origin: URL$1) => void)[];
640
+ emit(eventName: 'connect', origin: URL$1, targets: readonly Dispatcher[]): boolean;
641
+ emit(eventName: 'disconnect', origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
642
+ emit(eventName: 'connectionError', origin: URL$1, targets: readonly Dispatcher[], error: Errors.UndiciError): boolean;
643
+ emit(eventName: 'drain', origin: URL$1): boolean;
644
644
  }
645
645
  declare namespace Dispatcher {
646
646
  export interface ComposedDispatcher extends Dispatcher {}
647
647
  export type Dispatch = Dispatcher['dispatch'];
648
648
  export type DispatcherComposeInterceptor = (dispatch: Dispatch) => Dispatch;
649
649
  export interface DispatchOptions {
650
- origin?: string | URL;
650
+ origin?: string | URL$1;
651
651
  path: string;
652
652
  method: HttpMethod;
653
653
  /** Default: `null` */
@@ -674,7 +674,7 @@ declare namespace Dispatcher {
674
674
  expectContinue?: boolean;
675
675
  }
676
676
  export interface ConnectOptions<TOpaque = null> {
677
- origin: string | URL;
677
+ origin: string | URL$1;
678
678
  path: string;
679
679
  /** Default: `null` */
680
680
  headers?: UndiciHeaders;
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{i as e,n as t,r as n,t as r}from"./formatter-Bg4mtE_M.mjs";export{r as format,t as formatGithub,n as formatJson,e as formatText};
1
+ import{i as e,n as t,r as n,t as r}from"./formatter-sNOxAPld.mjs";export{r as format,t as formatGithub,n as formatJson,e as formatText};
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "lintpage",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "CLI for LintPage — audit website SEO, accessibility, and performance",
5
5
  "license": "MIT",
6
6
  "bin": {
7
- "lintpage": "./bin/lintpage.js"
7
+ "lintpage": "bin/lintpage.js"
8
8
  },
9
9
  "main": "./dist/index.cjs",
10
10
  "exports": {
@@ -21,7 +21,8 @@
21
21
  },
22
22
  "files": [
23
23
  "dist",
24
- "bin"
24
+ "bin",
25
+ "!dist/**/*.map"
25
26
  ],
26
27
  "scripts": {
27
28
  "build": "tsdown",