spectral-cli-bundle 1.0.0 → 1.0.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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # spectral-cli-bundle
2
+
3
+ Bundled version of `@stoplight/spectral-cli`.
@@ -658,193 +658,3 @@ GFS4: `),console.error(e)});Ii[sa]||(Mqe=global[sa]||[],Lqe(Ii,Mqe),Ii.close=(fu
658
658
  `)}rl.exit(2)};function Yte(e){return Math.min(20,Math.floor(e*rl.stderr.columns))}function OXt(e,t){return new AXt.default(e).slice(0,5).withSources().asTable({maxColumnWidths:{callee:Yte(.2),file:Yte(.4),sourceLine:Yte(.4)}}).split(`
659
659
  `).map(i=>`${" ".repeat(t)}${i}`).join(`
660
660
  `)}var IXt=(e,t)=>{let i=(0,fq.getDiagnosticSeverity)(t);return e.filter(n=>n.severity<=i)},kXt=e=>e.map(t=>({...t,documentationUrl:void 0})),TXt=(e,t)=>{let i=(0,fq.getDiagnosticSeverity)(t);return e.some(n=>n.severity<=i)};f$.severeEnoughToFail=TXt;f$.default=jXt});var nNe=S((C4r,iNe)=>{"use strict";v();var ere=require("https"),tre=require("http"),{URL:rNe}=require("url"),rre=class extends tre.Agent{constructor(t){let{proxy:i,proxyRequestOptions:n,...a}=t;super(a),this.proxy=typeof i=="string"?new rNe(i):i,this.proxyRequestOptions=n||{}}createConnection(t,i){let n={...this.proxyRequestOptions,method:"CONNECT",host:this.proxy.hostname,port:this.proxy.port,path:`${t.host}:${t.port}`,setHost:!1,headers:{...this.proxyRequestOptions.headers,connection:this.keepAlive?"keep-alive":"close",host:`${t.host}:${t.port}`},agent:!1,timeout:t.timeout||0};if(this.proxy.username||this.proxy.password){let o=Buffer.from(`${decodeURIComponent(this.proxy.username||"")}:${decodeURIComponent(this.proxy.password||"")}`).toString("base64");n.headers["proxy-authorization"]=`Basic ${o}`}this.proxy.protocol==="https:"&&(n.servername=this.proxy.hostname);let a=(this.proxy.protocol==="http:"?tre:ere).request(n);a.once("connect",(o,r,s)=>{a.removeAllListeners(),r.removeAllListeners(),o.statusCode===200?i(null,r):(r.destroy(),i(new Error(`Bad response: ${o.statusCode}`),null))}),a.once("timeout",()=>{a.destroy(new Error("Proxy timeout"))}),a.once("error",o=>{a.removeAllListeners(),i(o,null)}),a.end()}},ire=class extends ere.Agent{constructor(t){let{proxy:i,proxyRequestOptions:n,...a}=t;super(a),this.proxy=typeof i=="string"?new rNe(i):i,this.proxyRequestOptions=n||{}}createConnection(t,i){let n={...this.proxyRequestOptions,method:"CONNECT",host:this.proxy.hostname,port:this.proxy.port,path:`${t.host}:${t.port}`,setHost:!1,headers:{...this.proxyRequestOptions.headers,connection:this.keepAlive?"keep-alive":"close",host:`${t.host}:${t.port}`},agent:!1,timeout:t.timeout||0};if(this.proxy.username||this.proxy.password){let o=Buffer.from(`${decodeURIComponent(this.proxy.username||"")}:${decodeURIComponent(this.proxy.password||"")}`).toString("base64");n.headers["proxy-authorization"]=`Basic ${o}`}this.proxy.protocol==="https:"&&(n.servername=this.proxy.hostname);let a=(this.proxy.protocol==="http:"?tre:ere).request(n);a.once("connect",(o,r,s)=>{if(a.removeAllListeners(),r.removeAllListeners(),o.statusCode===200){let c=super.createConnection({...t,socket:r});i(null,c)}else r.destroy(),i(new Error(`Bad response: ${o.statusCode}`),null)}),a.once("timeout",()=>{a.destroy(new Error("Proxy timeout"))}),a.once("error",o=>{a.removeAllListeners(),i(o,null)}),a.end()}};iNe.exports={HttpProxyAgent:rre,HttpsProxyAgent:ire}});v();Object.defineProperty(exports,"__esModule",{value:!0});var aNe=(Le(),Ae(Fe)),sNe=(0,aNe.__importStar)(wae()),qXt=Si(),CXt=(0,aNe.__importDefault)(tNe());if(typeof process.env.PROXY=="string"){let{HttpProxyAgent:e,HttpsProxyAgent:t}=nNe(),i=new e({proxy:process.env.PROXY}),n=new t({proxy:process.env.PROXY});qXt.DEFAULT_REQUEST_OPTIONS.agent=a=>a.protocol==="http:"?i:n}exports.default=sNe.scriptName("spectral").parserConfiguration({"camel-case-expansion":!0}).version().help(!0).strictCommands().strictOptions().showHelpOnFail(!0).wrap(sNe.terminalWidth()).command(CXt.default).demandCommand(1,"").argv;
661
- /*! Bundled license information:
662
-
663
- lodash/lodash.js:
664
- (**
665
- * @license
666
- * Lodash <https://lodash.com/>
667
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
668
- * Released under MIT license <https://lodash.com/license>
669
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
670
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
671
- *)
672
-
673
- tslib/tslib.es6.js:
674
- (*! *****************************************************************************
675
- Copyright (c) Microsoft Corporation.
676
-
677
- Permission to use, copy, modify, and/or distribute this software for any
678
- purpose with or without fee is hereby granted.
679
-
680
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
681
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
682
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
683
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
684
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
685
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
686
- PERFORMANCE OF THIS SOFTWARE.
687
- ***************************************************************************** *)
688
-
689
- urijs/src/punycode.js:
690
- (*! https://mths.be/punycode v1.4.0 by @mathias *)
691
-
692
- urijs/src/IPv6.js:
693
- (*!
694
- * URI.js - Mutating URLs
695
- * IPv6 Support
696
- *
697
- * Version: 1.19.11
698
- *
699
- * Author: Rodney Rehm
700
- * Web: http://medialize.github.io/URI.js/
701
- *
702
- * Licensed under
703
- * MIT License http://www.opensource.org/licenses/mit-license
704
- *
705
- *)
706
-
707
- urijs/src/SecondLevelDomains.js:
708
- (*!
709
- * URI.js - Mutating URLs
710
- * Second Level Domain (SLD) Support
711
- *
712
- * Version: 1.19.11
713
- *
714
- * Author: Rodney Rehm
715
- * Web: http://medialize.github.io/URI.js/
716
- *
717
- * Licensed under
718
- * MIT License http://www.opensource.org/licenses/mit-license
719
- *
720
- *)
721
-
722
- urijs/src/URI.js:
723
- (*!
724
- * URI.js - Mutating URLs
725
- *
726
- * Version: 1.19.11
727
- *
728
- * Author: Rodney Rehm
729
- * Web: http://medialize.github.io/URI.js/
730
- *
731
- * Licensed under
732
- * MIT License http://www.opensource.org/licenses/mit-license
733
- *
734
- *)
735
-
736
- reserved/index.js:
737
- (*!
738
- * reserved <https://github.com/jonschlinkert/reserved
739
- *
740
- * Copyright (c) 2014 Jon Schlinkert, contributors
741
- * Licensed under the MIT License (MIT)
742
- *)
743
-
744
- rollup/dist/shared/mergeOptions.js:
745
- rollup/dist/shared/watch.js:
746
- rollup/dist/shared/rollup.js:
747
- rollup/dist/rollup.js:
748
- (*
749
- @license
750
- Rollup.js v2.79.2
751
- Thu, 26 Sep 2024 18:44:14 GMT - commit 48aef33cf2f2a6dfb175afb3bcd6a977c81f1d5c
752
-
753
- https://github.com/rollup/rollup
754
-
755
- Released under the MIT License.
756
- *)
757
-
758
- rollup/dist/shared/index.js:
759
- (*
760
- @license
761
- Rollup.js v2.79.2
762
- Thu, 26 Sep 2024 18:44:14 GMT - commit 48aef33cf2f2a6dfb175afb3bcd6a977c81f1d5c
763
-
764
- https://github.com/rollup/rollup
765
-
766
- Released under the MIT License.
767
- *)
768
- (*!
769
- * normalize-path <https://github.com/jonschlinkert/normalize-path>
770
- *
771
- * Copyright (c) 2014-2018, Jon Schlinkert.
772
- * Released under the MIT License.
773
- *)
774
- (*!
775
- * is-extglob <https://github.com/jonschlinkert/is-extglob>
776
- *
777
- * Copyright (c) 2014-2016, Jon Schlinkert.
778
- * Licensed under the MIT License.
779
- *)
780
- (*!
781
- * is-glob <https://github.com/jonschlinkert/is-glob>
782
- *
783
- * Copyright (c) 2014-2017, Jon Schlinkert.
784
- * Released under the MIT License.
785
- *)
786
- (*!
787
- * is-number <https://github.com/jonschlinkert/is-number>
788
- *
789
- * Copyright (c) 2014-present, Jon Schlinkert.
790
- * Released under the MIT License.
791
- *)
792
- (*!
793
- * to-regex-range <https://github.com/micromatch/to-regex-range>
794
- *
795
- * Copyright (c) 2015-present, Jon Schlinkert.
796
- * Released under the MIT License.
797
- *)
798
- (*!
799
- * fill-range <https://github.com/jonschlinkert/fill-range>
800
- *
801
- * Copyright (c) 2014-present, Jon Schlinkert.
802
- * Licensed under the MIT License.
803
- *)
804
-
805
- is-extglob/index.js:
806
- (*!
807
- * is-extglob <https://github.com/jonschlinkert/is-extglob>
808
- *
809
- * Copyright (c) 2014-2016, Jon Schlinkert.
810
- * Licensed under the MIT License.
811
- *)
812
-
813
- is-glob/index.js:
814
- (*!
815
- * is-glob <https://github.com/jonschlinkert/is-glob>
816
- *
817
- * Copyright (c) 2014-2017, Jon Schlinkert.
818
- * Released under the MIT License.
819
- *)
820
-
821
- is-number/index.js:
822
- (*!
823
- * is-number <https://github.com/jonschlinkert/is-number>
824
- *
825
- * Copyright (c) 2014-present, Jon Schlinkert.
826
- * Released under the MIT License.
827
- *)
828
-
829
- to-regex-range/index.js:
830
- (*!
831
- * to-regex-range <https://github.com/micromatch/to-regex-range>
832
- *
833
- * Copyright (c) 2015-present, Jon Schlinkert.
834
- * Released under the MIT License.
835
- *)
836
-
837
- fill-range/index.js:
838
- (*!
839
- * fill-range <https://github.com/jonschlinkert/fill-range>
840
- *
841
- * Copyright (c) 2014-present, Jon Schlinkert.
842
- * Licensed under the MIT License.
843
- *)
844
-
845
- queue-microtask/index.js:
846
- (*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
847
-
848
- run-parallel/index.js:
849
- (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
850
- */
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "spectral-cli-bundle",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Bundled version of @stoplight/spectral-cli",
5
5
  "author": "silverwind",
6
6
  "repository": "silverwind/spectral-cli-bundle",
7
7
  "license": "BSD-2-Clause",
8
- "bin": "dist/index.js",
8
+ "bin": "dist/index.cjs",
9
+ "type": "module",
9
10
  "files": [
10
11
  "dist"
11
12
  ],