@socketsecurity/lib 3.2.6 → 3.2.8
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/CHANGELOG.md +24 -1
- package/dist/constants/node.js +1 -1
- package/dist/constants/packages.js +4 -4
- package/dist/external/@inquirer/confirm.js +3199 -18
- package/dist/external/@inquirer/input.js +3223 -18
- package/dist/external/@inquirer/password.js +3331 -18
- package/dist/external/@inquirer/search.js +3328 -21
- package/dist/external/@inquirer/select.js +3445 -21
- package/dist/external/@npmcli/package-json/lib/read-package.js +149 -2
- package/dist/external/@npmcli/package-json/lib/sort.js +96 -1
- package/dist/external/@npmcli/package-json.js +16758 -13
- package/dist/external/@npmcli/promise-spawn.js +480 -1
- package/dist/external/@socketregistry/is-unicode-supported.js +42 -1
- package/dist/external/@socketregistry/packageurl-js.js +6493 -2
- package/dist/external/@socketregistry/yocto-spinner.js +460 -4
- package/dist/external/@yarnpkg/extensions.js +1025 -1
- package/dist/external/cacache.js +13016 -12
- package/dist/external/debug.js +27 -1
- package/dist/external/del.js +7088 -2
- package/dist/external/fast-glob.js +5721 -2
- package/dist/external/fast-sort.js +140 -1
- package/dist/external/get-east-asian-width.js +90 -1
- package/dist/external/libnpmexec.js +33 -1
- package/dist/external/libnpmpack.js +67595 -129
- package/dist/external/make-fetch-happen.js +22595 -21
- package/dist/external/normalize-package-data.js +4474 -2
- package/dist/external/npm-package-arg.js +4511 -2
- package/dist/external/pacote.js +50270 -57
- package/dist/external/picomatch.js +1520 -1
- package/dist/external/semver.js +1930 -1
- package/dist/external/spdx-correct.js +1380 -1
- package/dist/external/spdx-expression-parse.js +1043 -1
- package/dist/external/streaming-iterables.js +1056 -1
- package/dist/external/validate-npm-package-name.js +100 -1
- package/dist/external/which.js +258 -1
- package/dist/external/yargs-parser.js +1075 -1
- package/dist/external/yoctocolors-cjs.js +88 -1
- package/dist/external/zod.js +15207 -13
- package/dist/lifecycle-script-names.js +3 -4
- package/dist/maintained-node-versions.js +3 -4
- package/dist/package-default-node-range.js +4 -5
- package/dist/package-default-socket-categories.js +3 -4
- package/dist/package-extensions.js +3 -4
- package/dist/utils/get-ipc.js +3 -5
- package/package.json +1 -1
|
@@ -3,4 +3,1383 @@
|
|
|
3
3
|
* Bundled from spdx-correct
|
|
4
4
|
* This is a zero-dependency bundle created by esbuild.
|
|
5
5
|
*/
|
|
6
|
-
"use strict";var W=Object.defineProperty;var r=(e,n)=>W(e,"name",{value:n,configurable:!0});var u=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var x=u((Le,K)=>{K.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","Artistic-dist","Aspell-RU","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-2-Clause-pkgconf-disclaimer","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CryptoSwift","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Game-Programming-Gems","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HDF5","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTIA-PD","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SOFA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SUL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","jove","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","man2html","metamail","mpi-permissive","mpich2","mplus","ngrep","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var d=u((oe,V)=>{V.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var O=u((ae,Z)=>{Z.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var v=u((se,m)=>{"use strict";var $=[].concat(x()).concat(d()),X=O();m.exports=function(e){var n=0;function t(){return n<e.length}r(t,"hasMore");function L(a){if(a instanceof RegExp){var i=e.slice(n),o=i.match(a);if(o)return n+=o[0].length,o[0]}else if(e.indexOf(a,n)===n)return n+=a.length,a}r(L,"read");function c(){L(/[ ]*/)}r(c,"skipWhitespace");function l(){for(var a,i=["WITH","AND","OR","(",")",":","+"],o=0;o<i.length&&(a=L(i[o]),!a);o++);if(a==="+"&&n>1&&e[n-2]===" ")throw new Error("Space before `+`");return a&&{type:"OPERATOR",string:a}}r(l,"operator");function s(){return L(/[A-Za-z0-9-.]+/)}r(s,"idstring");function C(){var a=s();if(!a)throw new Error("Expected idstring at offset "+n);return a}r(C,"expectIdstring");function A(){if(L("DocumentRef-")){var a=C();return{type:"DOCUMENTREF",string:a}}}r(A,"documentRef");function f(){if(L("LicenseRef-")){var a=C();return{type:"LICENSEREF",string:a}}}r(f,"licenseRef");function N(){var a=n,i=s();if($.indexOf(i)!==-1)return{type:"LICENSE",string:i};if(X.indexOf(i)!==-1)return{type:"EXCEPTION",string:i};n=a}r(N,"identifier");function S(){return l()||A()||f()||N()}r(S,"parseToken");for(var D=[];t()&&(c(),!!t());){var p=S();if(!p)throw new Error("Unexpected `"+e[n]+"` at offset "+n);D.push(p)}return D}});var F=u((ce,T)=>{"use strict";T.exports=function(e){var n=0;function t(){return n<e.length}r(t,"hasMore");function L(){return t()?e[n]:null}r(L,"token");function c(){if(!t())throw new Error;n++}r(c,"next");function l(i){var o=L();if(o&&o.type==="OPERATOR"&&i===o.string)return c(),o.string}r(l,"parseOperator");function s(){if(l("WITH")){var i=L();if(i&&i.type==="EXCEPTION")return c(),i.string;throw new Error("Expected exception after `WITH`")}}r(s,"parseWith");function C(){var i=n,o="",P=L();if(P.type==="DOCUMENTREF"&&(c(),o+="DocumentRef-"+P.string+":",!l(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(P=L(),P.type==="LICENSEREF")return c(),o+="LicenseRef-"+P.string,{license:o};n=i}r(C,"parseLicenseRef");function A(){var i=L();if(i&&i.type==="LICENSE"){c();var o={license:i.string};l("+")&&(o.plus=!0);var P=s();return P&&(o.exception=P),o}}r(A,"parseLicense");function f(){var i=l("(");if(i){var o=p();if(!l(")"))throw new Error("Expected `)`");return o}}r(f,"parseParenthesizedExpression");function N(){return f()||C()||A()}r(N,"parseAtom");function S(i,o){return r(function P(){var B=o();if(B){if(!l(i))return B;var E=P();if(!E)throw new Error("Expected expression");return{left:B,conjunction:i.toLowerCase(),right:E}}},"parseBinaryOp")}r(S,"makeBinaryOpParser");var D=S("AND",N),p=S("OR",D),a=p();if(!a||t())throw new Error("Syntax error");return a}});var h=u((Pe,g)=>{"use strict";var J=v(),Q=F();g.exports=function(e){return Q(J(e))}});var k=u((ue,H)=>{var q=h(),z=x();function G(e){try{return q(e),!0}catch{return!1}}r(G,"valid");function Y(e,n){var t=n[0].length-e[0].length;return t!==0?t:e[0].toUpperCase().localeCompare(n[0].toUpperCase())}r(Y,"sortTranspositions");var U=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(Y),j=0,_=1,M=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){return e.indexOf("3.0")!==-1?e+"-or-later":e+"-only"},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],I=z.map(function(e){var n=/^(.*)-\d+\.\d+$/.exec(e);return n?[n[0],n[1]]:[e,null]}).reduce(function(e,n){var t=n[1];return e[t]=e[t]||[],e[t].push(n[0]),e},{}),ee=Object.keys(I).map(r(function(n){return[n,I[n]]},"makeEntries")).filter(r(function(n){return n[1].length===1&&n[0]!==null&&n[0]!=="APL"},"identifySoleVersions")).map(r(function(n){return[n[0],n[1][0]]},"createLastResorts"));I=void 0;var y=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(ee).sort(Y),ne=0,re=1,R=r(function(e){for(var n=0;n<M.length;n++){var t=M[n](e).trim();if(t!==e&&G(t))return t}return null},"validTransformation"),b=r(function(e){for(var n=e.toUpperCase(),t=0;t<y.length;t++){var L=y[t];if(n.indexOf(L[ne])>-1)return L[re]}return null},"validLastResort"),w=r(function(e,n){for(var t=0;t<U.length;t++){var L=U[t],c=L[j];if(e.indexOf(c)>-1){var l=e.replace(c,L[_]),s=n(l);if(s!==null)return s}}return null},"anyCorrection");H.exports=function(e,n){n=n||{};var t=n.upgrade===void 0?!0:!!n.upgrade;function L(C){return t?te(C):C}r(L,"postprocess");var c=typeof e=="string"&&e.trim().length!==0;if(!c)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),G(e))return L(e);var l=e.replace(/\+$/,"").trim();if(G(l))return L(l);var s=R(e);return s!==null||(s=w(e,function(C){return G(C)?C:R(C)}),s!==null)||(s=b(e),s!==null)||(s=w(e,b),s!==null)?L(s):null};function te(e){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1?e+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(e)!==-1?e.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1?e+"-or-later":e}r(te,"upgradeGPLs")});module.exports=k();
|
|
6
|
+
"use strict";
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
9
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
10
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
11
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
// node_modules/.pnpm/spdx-license-ids@3.0.22/node_modules/spdx-license-ids/index.json
|
|
15
|
+
var require_spdx_license_ids = __commonJS({
|
|
16
|
+
"node_modules/.pnpm/spdx-license-ids@3.0.22/node_modules/spdx-license-ids/index.json"(exports2, module2) {
|
|
17
|
+
module2.exports = [
|
|
18
|
+
"0BSD",
|
|
19
|
+
"3D-Slicer-1.0",
|
|
20
|
+
"AAL",
|
|
21
|
+
"ADSL",
|
|
22
|
+
"AFL-1.1",
|
|
23
|
+
"AFL-1.2",
|
|
24
|
+
"AFL-2.0",
|
|
25
|
+
"AFL-2.1",
|
|
26
|
+
"AFL-3.0",
|
|
27
|
+
"AGPL-1.0-only",
|
|
28
|
+
"AGPL-1.0-or-later",
|
|
29
|
+
"AGPL-3.0-only",
|
|
30
|
+
"AGPL-3.0-or-later",
|
|
31
|
+
"AMD-newlib",
|
|
32
|
+
"AMDPLPA",
|
|
33
|
+
"AML",
|
|
34
|
+
"AML-glslang",
|
|
35
|
+
"AMPAS",
|
|
36
|
+
"ANTLR-PD",
|
|
37
|
+
"ANTLR-PD-fallback",
|
|
38
|
+
"APAFML",
|
|
39
|
+
"APL-1.0",
|
|
40
|
+
"APSL-1.0",
|
|
41
|
+
"APSL-1.1",
|
|
42
|
+
"APSL-1.2",
|
|
43
|
+
"APSL-2.0",
|
|
44
|
+
"ASWF-Digital-Assets-1.0",
|
|
45
|
+
"ASWF-Digital-Assets-1.1",
|
|
46
|
+
"Abstyles",
|
|
47
|
+
"AdaCore-doc",
|
|
48
|
+
"Adobe-2006",
|
|
49
|
+
"Adobe-Display-PostScript",
|
|
50
|
+
"Adobe-Glyph",
|
|
51
|
+
"Adobe-Utopia",
|
|
52
|
+
"Afmparse",
|
|
53
|
+
"Aladdin",
|
|
54
|
+
"Apache-1.0",
|
|
55
|
+
"Apache-1.1",
|
|
56
|
+
"Apache-2.0",
|
|
57
|
+
"App-s2p",
|
|
58
|
+
"Arphic-1999",
|
|
59
|
+
"Artistic-1.0",
|
|
60
|
+
"Artistic-1.0-Perl",
|
|
61
|
+
"Artistic-1.0-cl8",
|
|
62
|
+
"Artistic-2.0",
|
|
63
|
+
"Artistic-dist",
|
|
64
|
+
"Aspell-RU",
|
|
65
|
+
"BSD-1-Clause",
|
|
66
|
+
"BSD-2-Clause",
|
|
67
|
+
"BSD-2-Clause-Darwin",
|
|
68
|
+
"BSD-2-Clause-Patent",
|
|
69
|
+
"BSD-2-Clause-Views",
|
|
70
|
+
"BSD-2-Clause-first-lines",
|
|
71
|
+
"BSD-2-Clause-pkgconf-disclaimer",
|
|
72
|
+
"BSD-3-Clause",
|
|
73
|
+
"BSD-3-Clause-Attribution",
|
|
74
|
+
"BSD-3-Clause-Clear",
|
|
75
|
+
"BSD-3-Clause-HP",
|
|
76
|
+
"BSD-3-Clause-LBNL",
|
|
77
|
+
"BSD-3-Clause-Modification",
|
|
78
|
+
"BSD-3-Clause-No-Military-License",
|
|
79
|
+
"BSD-3-Clause-No-Nuclear-License",
|
|
80
|
+
"BSD-3-Clause-No-Nuclear-License-2014",
|
|
81
|
+
"BSD-3-Clause-No-Nuclear-Warranty",
|
|
82
|
+
"BSD-3-Clause-Open-MPI",
|
|
83
|
+
"BSD-3-Clause-Sun",
|
|
84
|
+
"BSD-3-Clause-acpica",
|
|
85
|
+
"BSD-3-Clause-flex",
|
|
86
|
+
"BSD-4-Clause",
|
|
87
|
+
"BSD-4-Clause-Shortened",
|
|
88
|
+
"BSD-4-Clause-UC",
|
|
89
|
+
"BSD-4.3RENO",
|
|
90
|
+
"BSD-4.3TAHOE",
|
|
91
|
+
"BSD-Advertising-Acknowledgement",
|
|
92
|
+
"BSD-Attribution-HPND-disclaimer",
|
|
93
|
+
"BSD-Inferno-Nettverk",
|
|
94
|
+
"BSD-Protection",
|
|
95
|
+
"BSD-Source-Code",
|
|
96
|
+
"BSD-Source-beginning-file",
|
|
97
|
+
"BSD-Systemics",
|
|
98
|
+
"BSD-Systemics-W3Works",
|
|
99
|
+
"BSL-1.0",
|
|
100
|
+
"BUSL-1.1",
|
|
101
|
+
"Baekmuk",
|
|
102
|
+
"Bahyph",
|
|
103
|
+
"Barr",
|
|
104
|
+
"Beerware",
|
|
105
|
+
"BitTorrent-1.0",
|
|
106
|
+
"BitTorrent-1.1",
|
|
107
|
+
"Bitstream-Charter",
|
|
108
|
+
"Bitstream-Vera",
|
|
109
|
+
"BlueOak-1.0.0",
|
|
110
|
+
"Boehm-GC",
|
|
111
|
+
"Boehm-GC-without-fee",
|
|
112
|
+
"Borceux",
|
|
113
|
+
"Brian-Gladman-2-Clause",
|
|
114
|
+
"Brian-Gladman-3-Clause",
|
|
115
|
+
"C-UDA-1.0",
|
|
116
|
+
"CAL-1.0",
|
|
117
|
+
"CAL-1.0-Combined-Work-Exception",
|
|
118
|
+
"CATOSL-1.1",
|
|
119
|
+
"CC-BY-1.0",
|
|
120
|
+
"CC-BY-2.0",
|
|
121
|
+
"CC-BY-2.5",
|
|
122
|
+
"CC-BY-2.5-AU",
|
|
123
|
+
"CC-BY-3.0",
|
|
124
|
+
"CC-BY-3.0-AT",
|
|
125
|
+
"CC-BY-3.0-AU",
|
|
126
|
+
"CC-BY-3.0-DE",
|
|
127
|
+
"CC-BY-3.0-IGO",
|
|
128
|
+
"CC-BY-3.0-NL",
|
|
129
|
+
"CC-BY-3.0-US",
|
|
130
|
+
"CC-BY-4.0",
|
|
131
|
+
"CC-BY-NC-1.0",
|
|
132
|
+
"CC-BY-NC-2.0",
|
|
133
|
+
"CC-BY-NC-2.5",
|
|
134
|
+
"CC-BY-NC-3.0",
|
|
135
|
+
"CC-BY-NC-3.0-DE",
|
|
136
|
+
"CC-BY-NC-4.0",
|
|
137
|
+
"CC-BY-NC-ND-1.0",
|
|
138
|
+
"CC-BY-NC-ND-2.0",
|
|
139
|
+
"CC-BY-NC-ND-2.5",
|
|
140
|
+
"CC-BY-NC-ND-3.0",
|
|
141
|
+
"CC-BY-NC-ND-3.0-DE",
|
|
142
|
+
"CC-BY-NC-ND-3.0-IGO",
|
|
143
|
+
"CC-BY-NC-ND-4.0",
|
|
144
|
+
"CC-BY-NC-SA-1.0",
|
|
145
|
+
"CC-BY-NC-SA-2.0",
|
|
146
|
+
"CC-BY-NC-SA-2.0-DE",
|
|
147
|
+
"CC-BY-NC-SA-2.0-FR",
|
|
148
|
+
"CC-BY-NC-SA-2.0-UK",
|
|
149
|
+
"CC-BY-NC-SA-2.5",
|
|
150
|
+
"CC-BY-NC-SA-3.0",
|
|
151
|
+
"CC-BY-NC-SA-3.0-DE",
|
|
152
|
+
"CC-BY-NC-SA-3.0-IGO",
|
|
153
|
+
"CC-BY-NC-SA-4.0",
|
|
154
|
+
"CC-BY-ND-1.0",
|
|
155
|
+
"CC-BY-ND-2.0",
|
|
156
|
+
"CC-BY-ND-2.5",
|
|
157
|
+
"CC-BY-ND-3.0",
|
|
158
|
+
"CC-BY-ND-3.0-DE",
|
|
159
|
+
"CC-BY-ND-4.0",
|
|
160
|
+
"CC-BY-SA-1.0",
|
|
161
|
+
"CC-BY-SA-2.0",
|
|
162
|
+
"CC-BY-SA-2.0-UK",
|
|
163
|
+
"CC-BY-SA-2.1-JP",
|
|
164
|
+
"CC-BY-SA-2.5",
|
|
165
|
+
"CC-BY-SA-3.0",
|
|
166
|
+
"CC-BY-SA-3.0-AT",
|
|
167
|
+
"CC-BY-SA-3.0-DE",
|
|
168
|
+
"CC-BY-SA-3.0-IGO",
|
|
169
|
+
"CC-BY-SA-4.0",
|
|
170
|
+
"CC-PDDC",
|
|
171
|
+
"CC-PDM-1.0",
|
|
172
|
+
"CC-SA-1.0",
|
|
173
|
+
"CC0-1.0",
|
|
174
|
+
"CDDL-1.0",
|
|
175
|
+
"CDDL-1.1",
|
|
176
|
+
"CDL-1.0",
|
|
177
|
+
"CDLA-Permissive-1.0",
|
|
178
|
+
"CDLA-Permissive-2.0",
|
|
179
|
+
"CDLA-Sharing-1.0",
|
|
180
|
+
"CECILL-1.0",
|
|
181
|
+
"CECILL-1.1",
|
|
182
|
+
"CECILL-2.0",
|
|
183
|
+
"CECILL-2.1",
|
|
184
|
+
"CECILL-B",
|
|
185
|
+
"CECILL-C",
|
|
186
|
+
"CERN-OHL-1.1",
|
|
187
|
+
"CERN-OHL-1.2",
|
|
188
|
+
"CERN-OHL-P-2.0",
|
|
189
|
+
"CERN-OHL-S-2.0",
|
|
190
|
+
"CERN-OHL-W-2.0",
|
|
191
|
+
"CFITSIO",
|
|
192
|
+
"CMU-Mach",
|
|
193
|
+
"CMU-Mach-nodoc",
|
|
194
|
+
"CNRI-Jython",
|
|
195
|
+
"CNRI-Python",
|
|
196
|
+
"CNRI-Python-GPL-Compatible",
|
|
197
|
+
"COIL-1.0",
|
|
198
|
+
"CPAL-1.0",
|
|
199
|
+
"CPL-1.0",
|
|
200
|
+
"CPOL-1.02",
|
|
201
|
+
"CUA-OPL-1.0",
|
|
202
|
+
"Caldera",
|
|
203
|
+
"Caldera-no-preamble",
|
|
204
|
+
"Catharon",
|
|
205
|
+
"ClArtistic",
|
|
206
|
+
"Clips",
|
|
207
|
+
"Community-Spec-1.0",
|
|
208
|
+
"Condor-1.1",
|
|
209
|
+
"Cornell-Lossless-JPEG",
|
|
210
|
+
"Cronyx",
|
|
211
|
+
"Crossword",
|
|
212
|
+
"CryptoSwift",
|
|
213
|
+
"CrystalStacker",
|
|
214
|
+
"Cube",
|
|
215
|
+
"D-FSL-1.0",
|
|
216
|
+
"DEC-3-Clause",
|
|
217
|
+
"DL-DE-BY-2.0",
|
|
218
|
+
"DL-DE-ZERO-2.0",
|
|
219
|
+
"DOC",
|
|
220
|
+
"DRL-1.0",
|
|
221
|
+
"DRL-1.1",
|
|
222
|
+
"DSDP",
|
|
223
|
+
"DocBook-DTD",
|
|
224
|
+
"DocBook-Schema",
|
|
225
|
+
"DocBook-Stylesheet",
|
|
226
|
+
"DocBook-XML",
|
|
227
|
+
"Dotseqn",
|
|
228
|
+
"ECL-1.0",
|
|
229
|
+
"ECL-2.0",
|
|
230
|
+
"EFL-1.0",
|
|
231
|
+
"EFL-2.0",
|
|
232
|
+
"EPICS",
|
|
233
|
+
"EPL-1.0",
|
|
234
|
+
"EPL-2.0",
|
|
235
|
+
"EUDatagrid",
|
|
236
|
+
"EUPL-1.0",
|
|
237
|
+
"EUPL-1.1",
|
|
238
|
+
"EUPL-1.2",
|
|
239
|
+
"Elastic-2.0",
|
|
240
|
+
"Entessa",
|
|
241
|
+
"ErlPL-1.1",
|
|
242
|
+
"Eurosym",
|
|
243
|
+
"FBM",
|
|
244
|
+
"FDK-AAC",
|
|
245
|
+
"FSFAP",
|
|
246
|
+
"FSFAP-no-warranty-disclaimer",
|
|
247
|
+
"FSFUL",
|
|
248
|
+
"FSFULLR",
|
|
249
|
+
"FSFULLRSD",
|
|
250
|
+
"FSFULLRWD",
|
|
251
|
+
"FSL-1.1-ALv2",
|
|
252
|
+
"FSL-1.1-MIT",
|
|
253
|
+
"FTL",
|
|
254
|
+
"Fair",
|
|
255
|
+
"Ferguson-Twofish",
|
|
256
|
+
"Frameworx-1.0",
|
|
257
|
+
"FreeBSD-DOC",
|
|
258
|
+
"FreeImage",
|
|
259
|
+
"Furuseth",
|
|
260
|
+
"GCR-docs",
|
|
261
|
+
"GD",
|
|
262
|
+
"GFDL-1.1-invariants-only",
|
|
263
|
+
"GFDL-1.1-invariants-or-later",
|
|
264
|
+
"GFDL-1.1-no-invariants-only",
|
|
265
|
+
"GFDL-1.1-no-invariants-or-later",
|
|
266
|
+
"GFDL-1.1-only",
|
|
267
|
+
"GFDL-1.1-or-later",
|
|
268
|
+
"GFDL-1.2-invariants-only",
|
|
269
|
+
"GFDL-1.2-invariants-or-later",
|
|
270
|
+
"GFDL-1.2-no-invariants-only",
|
|
271
|
+
"GFDL-1.2-no-invariants-or-later",
|
|
272
|
+
"GFDL-1.2-only",
|
|
273
|
+
"GFDL-1.2-or-later",
|
|
274
|
+
"GFDL-1.3-invariants-only",
|
|
275
|
+
"GFDL-1.3-invariants-or-later",
|
|
276
|
+
"GFDL-1.3-no-invariants-only",
|
|
277
|
+
"GFDL-1.3-no-invariants-or-later",
|
|
278
|
+
"GFDL-1.3-only",
|
|
279
|
+
"GFDL-1.3-or-later",
|
|
280
|
+
"GL2PS",
|
|
281
|
+
"GLWTPL",
|
|
282
|
+
"GPL-1.0-only",
|
|
283
|
+
"GPL-1.0-or-later",
|
|
284
|
+
"GPL-2.0-only",
|
|
285
|
+
"GPL-2.0-or-later",
|
|
286
|
+
"GPL-3.0-only",
|
|
287
|
+
"GPL-3.0-or-later",
|
|
288
|
+
"Game-Programming-Gems",
|
|
289
|
+
"Giftware",
|
|
290
|
+
"Glide",
|
|
291
|
+
"Glulxe",
|
|
292
|
+
"Graphics-Gems",
|
|
293
|
+
"Gutmann",
|
|
294
|
+
"HDF5",
|
|
295
|
+
"HIDAPI",
|
|
296
|
+
"HP-1986",
|
|
297
|
+
"HP-1989",
|
|
298
|
+
"HPND",
|
|
299
|
+
"HPND-DEC",
|
|
300
|
+
"HPND-Fenneberg-Livingston",
|
|
301
|
+
"HPND-INRIA-IMAG",
|
|
302
|
+
"HPND-Intel",
|
|
303
|
+
"HPND-Kevlin-Henney",
|
|
304
|
+
"HPND-MIT-disclaimer",
|
|
305
|
+
"HPND-Markus-Kuhn",
|
|
306
|
+
"HPND-Netrek",
|
|
307
|
+
"HPND-Pbmplus",
|
|
308
|
+
"HPND-UC",
|
|
309
|
+
"HPND-UC-export-US",
|
|
310
|
+
"HPND-doc",
|
|
311
|
+
"HPND-doc-sell",
|
|
312
|
+
"HPND-export-US",
|
|
313
|
+
"HPND-export-US-acknowledgement",
|
|
314
|
+
"HPND-export-US-modify",
|
|
315
|
+
"HPND-export2-US",
|
|
316
|
+
"HPND-merchantability-variant",
|
|
317
|
+
"HPND-sell-MIT-disclaimer-xserver",
|
|
318
|
+
"HPND-sell-regexpr",
|
|
319
|
+
"HPND-sell-variant",
|
|
320
|
+
"HPND-sell-variant-MIT-disclaimer",
|
|
321
|
+
"HPND-sell-variant-MIT-disclaimer-rev",
|
|
322
|
+
"HTMLTIDY",
|
|
323
|
+
"HaskellReport",
|
|
324
|
+
"Hippocratic-2.1",
|
|
325
|
+
"IBM-pibs",
|
|
326
|
+
"ICU",
|
|
327
|
+
"IEC-Code-Components-EULA",
|
|
328
|
+
"IJG",
|
|
329
|
+
"IJG-short",
|
|
330
|
+
"IPA",
|
|
331
|
+
"IPL-1.0",
|
|
332
|
+
"ISC",
|
|
333
|
+
"ISC-Veillard",
|
|
334
|
+
"ImageMagick",
|
|
335
|
+
"Imlib2",
|
|
336
|
+
"Info-ZIP",
|
|
337
|
+
"Inner-Net-2.0",
|
|
338
|
+
"InnoSetup",
|
|
339
|
+
"Intel",
|
|
340
|
+
"Intel-ACPI",
|
|
341
|
+
"Interbase-1.0",
|
|
342
|
+
"JPL-image",
|
|
343
|
+
"JPNIC",
|
|
344
|
+
"JSON",
|
|
345
|
+
"Jam",
|
|
346
|
+
"JasPer-2.0",
|
|
347
|
+
"Kastrup",
|
|
348
|
+
"Kazlib",
|
|
349
|
+
"Knuth-CTAN",
|
|
350
|
+
"LAL-1.2",
|
|
351
|
+
"LAL-1.3",
|
|
352
|
+
"LGPL-2.0-only",
|
|
353
|
+
"LGPL-2.0-or-later",
|
|
354
|
+
"LGPL-2.1-only",
|
|
355
|
+
"LGPL-2.1-or-later",
|
|
356
|
+
"LGPL-3.0-only",
|
|
357
|
+
"LGPL-3.0-or-later",
|
|
358
|
+
"LGPLLR",
|
|
359
|
+
"LOOP",
|
|
360
|
+
"LPD-document",
|
|
361
|
+
"LPL-1.0",
|
|
362
|
+
"LPL-1.02",
|
|
363
|
+
"LPPL-1.0",
|
|
364
|
+
"LPPL-1.1",
|
|
365
|
+
"LPPL-1.2",
|
|
366
|
+
"LPPL-1.3a",
|
|
367
|
+
"LPPL-1.3c",
|
|
368
|
+
"LZMA-SDK-9.11-to-9.20",
|
|
369
|
+
"LZMA-SDK-9.22",
|
|
370
|
+
"Latex2e",
|
|
371
|
+
"Latex2e-translated-notice",
|
|
372
|
+
"Leptonica",
|
|
373
|
+
"LiLiQ-P-1.1",
|
|
374
|
+
"LiLiQ-R-1.1",
|
|
375
|
+
"LiLiQ-Rplus-1.1",
|
|
376
|
+
"Libpng",
|
|
377
|
+
"Linux-OpenIB",
|
|
378
|
+
"Linux-man-pages-1-para",
|
|
379
|
+
"Linux-man-pages-copyleft",
|
|
380
|
+
"Linux-man-pages-copyleft-2-para",
|
|
381
|
+
"Linux-man-pages-copyleft-var",
|
|
382
|
+
"Lucida-Bitmap-Fonts",
|
|
383
|
+
"MIPS",
|
|
384
|
+
"MIT",
|
|
385
|
+
"MIT-0",
|
|
386
|
+
"MIT-CMU",
|
|
387
|
+
"MIT-Click",
|
|
388
|
+
"MIT-Festival",
|
|
389
|
+
"MIT-Khronos-old",
|
|
390
|
+
"MIT-Modern-Variant",
|
|
391
|
+
"MIT-Wu",
|
|
392
|
+
"MIT-advertising",
|
|
393
|
+
"MIT-enna",
|
|
394
|
+
"MIT-feh",
|
|
395
|
+
"MIT-open-group",
|
|
396
|
+
"MIT-testregex",
|
|
397
|
+
"MITNFA",
|
|
398
|
+
"MMIXware",
|
|
399
|
+
"MPEG-SSG",
|
|
400
|
+
"MPL-1.0",
|
|
401
|
+
"MPL-1.1",
|
|
402
|
+
"MPL-2.0",
|
|
403
|
+
"MPL-2.0-no-copyleft-exception",
|
|
404
|
+
"MS-LPL",
|
|
405
|
+
"MS-PL",
|
|
406
|
+
"MS-RL",
|
|
407
|
+
"MTLL",
|
|
408
|
+
"Mackerras-3-Clause",
|
|
409
|
+
"Mackerras-3-Clause-acknowledgment",
|
|
410
|
+
"MakeIndex",
|
|
411
|
+
"Martin-Birgmeier",
|
|
412
|
+
"McPhee-slideshow",
|
|
413
|
+
"Minpack",
|
|
414
|
+
"MirOS",
|
|
415
|
+
"Motosoto",
|
|
416
|
+
"MulanPSL-1.0",
|
|
417
|
+
"MulanPSL-2.0",
|
|
418
|
+
"Multics",
|
|
419
|
+
"Mup",
|
|
420
|
+
"NAIST-2003",
|
|
421
|
+
"NASA-1.3",
|
|
422
|
+
"NBPL-1.0",
|
|
423
|
+
"NCBI-PD",
|
|
424
|
+
"NCGL-UK-2.0",
|
|
425
|
+
"NCL",
|
|
426
|
+
"NCSA",
|
|
427
|
+
"NGPL",
|
|
428
|
+
"NICTA-1.0",
|
|
429
|
+
"NIST-PD",
|
|
430
|
+
"NIST-PD-fallback",
|
|
431
|
+
"NIST-Software",
|
|
432
|
+
"NLOD-1.0",
|
|
433
|
+
"NLOD-2.0",
|
|
434
|
+
"NLPL",
|
|
435
|
+
"NOSL",
|
|
436
|
+
"NPL-1.0",
|
|
437
|
+
"NPL-1.1",
|
|
438
|
+
"NPOSL-3.0",
|
|
439
|
+
"NRL",
|
|
440
|
+
"NTIA-PD",
|
|
441
|
+
"NTP",
|
|
442
|
+
"NTP-0",
|
|
443
|
+
"Naumen",
|
|
444
|
+
"NetCDF",
|
|
445
|
+
"Newsletr",
|
|
446
|
+
"Nokia",
|
|
447
|
+
"Noweb",
|
|
448
|
+
"O-UDA-1.0",
|
|
449
|
+
"OAR",
|
|
450
|
+
"OCCT-PL",
|
|
451
|
+
"OCLC-2.0",
|
|
452
|
+
"ODC-By-1.0",
|
|
453
|
+
"ODbL-1.0",
|
|
454
|
+
"OFFIS",
|
|
455
|
+
"OFL-1.0",
|
|
456
|
+
"OFL-1.0-RFN",
|
|
457
|
+
"OFL-1.0-no-RFN",
|
|
458
|
+
"OFL-1.1",
|
|
459
|
+
"OFL-1.1-RFN",
|
|
460
|
+
"OFL-1.1-no-RFN",
|
|
461
|
+
"OGC-1.0",
|
|
462
|
+
"OGDL-Taiwan-1.0",
|
|
463
|
+
"OGL-Canada-2.0",
|
|
464
|
+
"OGL-UK-1.0",
|
|
465
|
+
"OGL-UK-2.0",
|
|
466
|
+
"OGL-UK-3.0",
|
|
467
|
+
"OGTSL",
|
|
468
|
+
"OLDAP-1.1",
|
|
469
|
+
"OLDAP-1.2",
|
|
470
|
+
"OLDAP-1.3",
|
|
471
|
+
"OLDAP-1.4",
|
|
472
|
+
"OLDAP-2.0",
|
|
473
|
+
"OLDAP-2.0.1",
|
|
474
|
+
"OLDAP-2.1",
|
|
475
|
+
"OLDAP-2.2",
|
|
476
|
+
"OLDAP-2.2.1",
|
|
477
|
+
"OLDAP-2.2.2",
|
|
478
|
+
"OLDAP-2.3",
|
|
479
|
+
"OLDAP-2.4",
|
|
480
|
+
"OLDAP-2.5",
|
|
481
|
+
"OLDAP-2.6",
|
|
482
|
+
"OLDAP-2.7",
|
|
483
|
+
"OLDAP-2.8",
|
|
484
|
+
"OLFL-1.3",
|
|
485
|
+
"OML",
|
|
486
|
+
"OPL-1.0",
|
|
487
|
+
"OPL-UK-3.0",
|
|
488
|
+
"OPUBL-1.0",
|
|
489
|
+
"OSET-PL-2.1",
|
|
490
|
+
"OSL-1.0",
|
|
491
|
+
"OSL-1.1",
|
|
492
|
+
"OSL-2.0",
|
|
493
|
+
"OSL-2.1",
|
|
494
|
+
"OSL-3.0",
|
|
495
|
+
"OpenPBS-2.3",
|
|
496
|
+
"OpenSSL",
|
|
497
|
+
"OpenSSL-standalone",
|
|
498
|
+
"OpenVision",
|
|
499
|
+
"PADL",
|
|
500
|
+
"PDDL-1.0",
|
|
501
|
+
"PHP-3.0",
|
|
502
|
+
"PHP-3.01",
|
|
503
|
+
"PPL",
|
|
504
|
+
"PSF-2.0",
|
|
505
|
+
"Parity-6.0.0",
|
|
506
|
+
"Parity-7.0.0",
|
|
507
|
+
"Pixar",
|
|
508
|
+
"Plexus",
|
|
509
|
+
"PolyForm-Noncommercial-1.0.0",
|
|
510
|
+
"PolyForm-Small-Business-1.0.0",
|
|
511
|
+
"PostgreSQL",
|
|
512
|
+
"Python-2.0",
|
|
513
|
+
"Python-2.0.1",
|
|
514
|
+
"QPL-1.0",
|
|
515
|
+
"QPL-1.0-INRIA-2004",
|
|
516
|
+
"Qhull",
|
|
517
|
+
"RHeCos-1.1",
|
|
518
|
+
"RPL-1.1",
|
|
519
|
+
"RPL-1.5",
|
|
520
|
+
"RPSL-1.0",
|
|
521
|
+
"RSA-MD",
|
|
522
|
+
"RSCPL",
|
|
523
|
+
"Rdisc",
|
|
524
|
+
"Ruby",
|
|
525
|
+
"Ruby-pty",
|
|
526
|
+
"SAX-PD",
|
|
527
|
+
"SAX-PD-2.0",
|
|
528
|
+
"SCEA",
|
|
529
|
+
"SGI-B-1.0",
|
|
530
|
+
"SGI-B-1.1",
|
|
531
|
+
"SGI-B-2.0",
|
|
532
|
+
"SGI-OpenGL",
|
|
533
|
+
"SGP4",
|
|
534
|
+
"SHL-0.5",
|
|
535
|
+
"SHL-0.51",
|
|
536
|
+
"SISSL",
|
|
537
|
+
"SISSL-1.2",
|
|
538
|
+
"SL",
|
|
539
|
+
"SMAIL-GPL",
|
|
540
|
+
"SMLNJ",
|
|
541
|
+
"SMPPL",
|
|
542
|
+
"SNIA",
|
|
543
|
+
"SOFA",
|
|
544
|
+
"SPL-1.0",
|
|
545
|
+
"SSH-OpenSSH",
|
|
546
|
+
"SSH-short",
|
|
547
|
+
"SSLeay-standalone",
|
|
548
|
+
"SSPL-1.0",
|
|
549
|
+
"SUL-1.0",
|
|
550
|
+
"SWL",
|
|
551
|
+
"Saxpath",
|
|
552
|
+
"SchemeReport",
|
|
553
|
+
"Sendmail",
|
|
554
|
+
"Sendmail-8.23",
|
|
555
|
+
"Sendmail-Open-Source-1.1",
|
|
556
|
+
"SimPL-2.0",
|
|
557
|
+
"Sleepycat",
|
|
558
|
+
"Soundex",
|
|
559
|
+
"Spencer-86",
|
|
560
|
+
"Spencer-94",
|
|
561
|
+
"Spencer-99",
|
|
562
|
+
"SugarCRM-1.1.3",
|
|
563
|
+
"Sun-PPP",
|
|
564
|
+
"Sun-PPP-2000",
|
|
565
|
+
"SunPro",
|
|
566
|
+
"Symlinks",
|
|
567
|
+
"TAPR-OHL-1.0",
|
|
568
|
+
"TCL",
|
|
569
|
+
"TCP-wrappers",
|
|
570
|
+
"TGPPL-1.0",
|
|
571
|
+
"TMate",
|
|
572
|
+
"TORQUE-1.1",
|
|
573
|
+
"TOSL",
|
|
574
|
+
"TPDL",
|
|
575
|
+
"TPL-1.0",
|
|
576
|
+
"TTWL",
|
|
577
|
+
"TTYP0",
|
|
578
|
+
"TU-Berlin-1.0",
|
|
579
|
+
"TU-Berlin-2.0",
|
|
580
|
+
"TermReadKey",
|
|
581
|
+
"ThirdEye",
|
|
582
|
+
"TrustedQSL",
|
|
583
|
+
"UCAR",
|
|
584
|
+
"UCL-1.0",
|
|
585
|
+
"UMich-Merit",
|
|
586
|
+
"UPL-1.0",
|
|
587
|
+
"URT-RLE",
|
|
588
|
+
"Ubuntu-font-1.0",
|
|
589
|
+
"Unicode-3.0",
|
|
590
|
+
"Unicode-DFS-2015",
|
|
591
|
+
"Unicode-DFS-2016",
|
|
592
|
+
"Unicode-TOU",
|
|
593
|
+
"UnixCrypt",
|
|
594
|
+
"Unlicense",
|
|
595
|
+
"Unlicense-libtelnet",
|
|
596
|
+
"Unlicense-libwhirlpool",
|
|
597
|
+
"VOSTROM",
|
|
598
|
+
"VSL-1.0",
|
|
599
|
+
"Vim",
|
|
600
|
+
"W3C",
|
|
601
|
+
"W3C-19980720",
|
|
602
|
+
"W3C-20150513",
|
|
603
|
+
"WTFPL",
|
|
604
|
+
"Watcom-1.0",
|
|
605
|
+
"Widget-Workshop",
|
|
606
|
+
"Wsuipa",
|
|
607
|
+
"X11",
|
|
608
|
+
"X11-distribute-modifications-variant",
|
|
609
|
+
"X11-swapped",
|
|
610
|
+
"XFree86-1.1",
|
|
611
|
+
"XSkat",
|
|
612
|
+
"Xdebug-1.03",
|
|
613
|
+
"Xerox",
|
|
614
|
+
"Xfig",
|
|
615
|
+
"Xnet",
|
|
616
|
+
"YPL-1.0",
|
|
617
|
+
"YPL-1.1",
|
|
618
|
+
"ZPL-1.1",
|
|
619
|
+
"ZPL-2.0",
|
|
620
|
+
"ZPL-2.1",
|
|
621
|
+
"Zed",
|
|
622
|
+
"Zeeff",
|
|
623
|
+
"Zend-2.0",
|
|
624
|
+
"Zimbra-1.3",
|
|
625
|
+
"Zimbra-1.4",
|
|
626
|
+
"Zlib",
|
|
627
|
+
"any-OSI",
|
|
628
|
+
"any-OSI-perl-modules",
|
|
629
|
+
"bcrypt-Solar-Designer",
|
|
630
|
+
"blessing",
|
|
631
|
+
"bzip2-1.0.6",
|
|
632
|
+
"check-cvs",
|
|
633
|
+
"checkmk",
|
|
634
|
+
"copyleft-next-0.3.0",
|
|
635
|
+
"copyleft-next-0.3.1",
|
|
636
|
+
"curl",
|
|
637
|
+
"cve-tou",
|
|
638
|
+
"diffmark",
|
|
639
|
+
"dtoa",
|
|
640
|
+
"dvipdfm",
|
|
641
|
+
"eGenix",
|
|
642
|
+
"etalab-2.0",
|
|
643
|
+
"fwlw",
|
|
644
|
+
"gSOAP-1.3b",
|
|
645
|
+
"generic-xts",
|
|
646
|
+
"gnuplot",
|
|
647
|
+
"gtkbook",
|
|
648
|
+
"hdparm",
|
|
649
|
+
"iMatix",
|
|
650
|
+
"jove",
|
|
651
|
+
"libpng-1.6.35",
|
|
652
|
+
"libpng-2.0",
|
|
653
|
+
"libselinux-1.0",
|
|
654
|
+
"libtiff",
|
|
655
|
+
"libutil-David-Nugent",
|
|
656
|
+
"lsof",
|
|
657
|
+
"magaz",
|
|
658
|
+
"mailprio",
|
|
659
|
+
"man2html",
|
|
660
|
+
"metamail",
|
|
661
|
+
"mpi-permissive",
|
|
662
|
+
"mpich2",
|
|
663
|
+
"mplus",
|
|
664
|
+
"ngrep",
|
|
665
|
+
"pkgconf",
|
|
666
|
+
"pnmstitch",
|
|
667
|
+
"psfrag",
|
|
668
|
+
"psutils",
|
|
669
|
+
"python-ldap",
|
|
670
|
+
"radvd",
|
|
671
|
+
"snprintf",
|
|
672
|
+
"softSurfer",
|
|
673
|
+
"ssh-keyscan",
|
|
674
|
+
"swrule",
|
|
675
|
+
"threeparttable",
|
|
676
|
+
"ulem",
|
|
677
|
+
"w3m",
|
|
678
|
+
"wwl",
|
|
679
|
+
"xinetd",
|
|
680
|
+
"xkeyboard-config-Zinoviev",
|
|
681
|
+
"xlock",
|
|
682
|
+
"xpp",
|
|
683
|
+
"xzoom",
|
|
684
|
+
"zlib-acknowledgement"
|
|
685
|
+
];
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
|
|
689
|
+
// node_modules/.pnpm/spdx-license-ids@3.0.22/node_modules/spdx-license-ids/deprecated.json
|
|
690
|
+
var require_deprecated = __commonJS({
|
|
691
|
+
"node_modules/.pnpm/spdx-license-ids@3.0.22/node_modules/spdx-license-ids/deprecated.json"(exports2, module2) {
|
|
692
|
+
module2.exports = [
|
|
693
|
+
"AGPL-1.0",
|
|
694
|
+
"AGPL-3.0",
|
|
695
|
+
"BSD-2-Clause-FreeBSD",
|
|
696
|
+
"BSD-2-Clause-NetBSD",
|
|
697
|
+
"GFDL-1.1",
|
|
698
|
+
"GFDL-1.2",
|
|
699
|
+
"GFDL-1.3",
|
|
700
|
+
"GPL-1.0",
|
|
701
|
+
"GPL-2.0",
|
|
702
|
+
"GPL-2.0-with-GCC-exception",
|
|
703
|
+
"GPL-2.0-with-autoconf-exception",
|
|
704
|
+
"GPL-2.0-with-bison-exception",
|
|
705
|
+
"GPL-2.0-with-classpath-exception",
|
|
706
|
+
"GPL-2.0-with-font-exception",
|
|
707
|
+
"GPL-3.0",
|
|
708
|
+
"GPL-3.0-with-GCC-exception",
|
|
709
|
+
"GPL-3.0-with-autoconf-exception",
|
|
710
|
+
"LGPL-2.0",
|
|
711
|
+
"LGPL-2.1",
|
|
712
|
+
"LGPL-3.0",
|
|
713
|
+
"Net-SNMP",
|
|
714
|
+
"Nunit",
|
|
715
|
+
"StandardML-NJ",
|
|
716
|
+
"bzip2-1.0.5",
|
|
717
|
+
"eCos-2.0",
|
|
718
|
+
"wxWindows"
|
|
719
|
+
];
|
|
720
|
+
}
|
|
721
|
+
});
|
|
722
|
+
|
|
723
|
+
// node_modules/.pnpm/spdx-exceptions@2.5.0/node_modules/spdx-exceptions/index.json
|
|
724
|
+
var require_spdx_exceptions = __commonJS({
|
|
725
|
+
"node_modules/.pnpm/spdx-exceptions@2.5.0/node_modules/spdx-exceptions/index.json"(exports2, module2) {
|
|
726
|
+
module2.exports = [
|
|
727
|
+
"389-exception",
|
|
728
|
+
"Asterisk-exception",
|
|
729
|
+
"Autoconf-exception-2.0",
|
|
730
|
+
"Autoconf-exception-3.0",
|
|
731
|
+
"Autoconf-exception-generic",
|
|
732
|
+
"Autoconf-exception-generic-3.0",
|
|
733
|
+
"Autoconf-exception-macro",
|
|
734
|
+
"Bison-exception-1.24",
|
|
735
|
+
"Bison-exception-2.2",
|
|
736
|
+
"Bootloader-exception",
|
|
737
|
+
"Classpath-exception-2.0",
|
|
738
|
+
"CLISP-exception-2.0",
|
|
739
|
+
"cryptsetup-OpenSSL-exception",
|
|
740
|
+
"DigiRule-FOSS-exception",
|
|
741
|
+
"eCos-exception-2.0",
|
|
742
|
+
"Fawkes-Runtime-exception",
|
|
743
|
+
"FLTK-exception",
|
|
744
|
+
"fmt-exception",
|
|
745
|
+
"Font-exception-2.0",
|
|
746
|
+
"freertos-exception-2.0",
|
|
747
|
+
"GCC-exception-2.0",
|
|
748
|
+
"GCC-exception-2.0-note",
|
|
749
|
+
"GCC-exception-3.1",
|
|
750
|
+
"Gmsh-exception",
|
|
751
|
+
"GNAT-exception",
|
|
752
|
+
"GNOME-examples-exception",
|
|
753
|
+
"GNU-compiler-exception",
|
|
754
|
+
"gnu-javamail-exception",
|
|
755
|
+
"GPL-3.0-interface-exception",
|
|
756
|
+
"GPL-3.0-linking-exception",
|
|
757
|
+
"GPL-3.0-linking-source-exception",
|
|
758
|
+
"GPL-CC-1.0",
|
|
759
|
+
"GStreamer-exception-2005",
|
|
760
|
+
"GStreamer-exception-2008",
|
|
761
|
+
"i2p-gpl-java-exception",
|
|
762
|
+
"KiCad-libraries-exception",
|
|
763
|
+
"LGPL-3.0-linking-exception",
|
|
764
|
+
"libpri-OpenH323-exception",
|
|
765
|
+
"Libtool-exception",
|
|
766
|
+
"Linux-syscall-note",
|
|
767
|
+
"LLGPL",
|
|
768
|
+
"LLVM-exception",
|
|
769
|
+
"LZMA-exception",
|
|
770
|
+
"mif-exception",
|
|
771
|
+
"OCaml-LGPL-linking-exception",
|
|
772
|
+
"OCCT-exception-1.0",
|
|
773
|
+
"OpenJDK-assembly-exception-1.0",
|
|
774
|
+
"openvpn-openssl-exception",
|
|
775
|
+
"PS-or-PDF-font-exception-20170817",
|
|
776
|
+
"QPL-1.0-INRIA-2004-exception",
|
|
777
|
+
"Qt-GPL-exception-1.0",
|
|
778
|
+
"Qt-LGPL-exception-1.1",
|
|
779
|
+
"Qwt-exception-1.0",
|
|
780
|
+
"SANE-exception",
|
|
781
|
+
"SHL-2.0",
|
|
782
|
+
"SHL-2.1",
|
|
783
|
+
"stunnel-exception",
|
|
784
|
+
"SWI-exception",
|
|
785
|
+
"Swift-exception",
|
|
786
|
+
"Texinfo-exception",
|
|
787
|
+
"u-boot-exception-2.0",
|
|
788
|
+
"UBDL-exception",
|
|
789
|
+
"Universal-FOSS-exception-1.0",
|
|
790
|
+
"vsftpd-openssl-exception",
|
|
791
|
+
"WxWindows-exception-3.1",
|
|
792
|
+
"x11vnc-openssl-exception"
|
|
793
|
+
];
|
|
794
|
+
}
|
|
795
|
+
});
|
|
796
|
+
|
|
797
|
+
// node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/scan.js
|
|
798
|
+
var require_scan = __commonJS({
|
|
799
|
+
"node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/scan.js"(exports2, module2) {
|
|
800
|
+
"use strict";
|
|
801
|
+
var licenses = [].concat(require_spdx_license_ids()).concat(require_deprecated());
|
|
802
|
+
var exceptions = require_spdx_exceptions();
|
|
803
|
+
module2.exports = function(source) {
|
|
804
|
+
var index = 0;
|
|
805
|
+
function hasMore() {
|
|
806
|
+
return index < source.length;
|
|
807
|
+
}
|
|
808
|
+
__name(hasMore, "hasMore");
|
|
809
|
+
function read(value) {
|
|
810
|
+
if (value instanceof RegExp) {
|
|
811
|
+
var chars = source.slice(index);
|
|
812
|
+
var match = chars.match(value);
|
|
813
|
+
if (match) {
|
|
814
|
+
index += match[0].length;
|
|
815
|
+
return match[0];
|
|
816
|
+
}
|
|
817
|
+
} else {
|
|
818
|
+
if (source.indexOf(value, index) === index) {
|
|
819
|
+
index += value.length;
|
|
820
|
+
return value;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
__name(read, "read");
|
|
825
|
+
function skipWhitespace() {
|
|
826
|
+
read(/[ ]*/);
|
|
827
|
+
}
|
|
828
|
+
__name(skipWhitespace, "skipWhitespace");
|
|
829
|
+
function operator() {
|
|
830
|
+
var string;
|
|
831
|
+
var possibilities = ["WITH", "AND", "OR", "(", ")", ":", "+"];
|
|
832
|
+
for (var i = 0; i < possibilities.length; i++) {
|
|
833
|
+
string = read(possibilities[i]);
|
|
834
|
+
if (string) {
|
|
835
|
+
break;
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
if (string === "+" && index > 1 && source[index - 2] === " ") {
|
|
839
|
+
throw new Error("Space before `+`");
|
|
840
|
+
}
|
|
841
|
+
return string && {
|
|
842
|
+
type: "OPERATOR",
|
|
843
|
+
string
|
|
844
|
+
};
|
|
845
|
+
}
|
|
846
|
+
__name(operator, "operator");
|
|
847
|
+
function idstring() {
|
|
848
|
+
return read(/[A-Za-z0-9-.]+/);
|
|
849
|
+
}
|
|
850
|
+
__name(idstring, "idstring");
|
|
851
|
+
function expectIdstring() {
|
|
852
|
+
var string = idstring();
|
|
853
|
+
if (!string) {
|
|
854
|
+
throw new Error("Expected idstring at offset " + index);
|
|
855
|
+
}
|
|
856
|
+
return string;
|
|
857
|
+
}
|
|
858
|
+
__name(expectIdstring, "expectIdstring");
|
|
859
|
+
function documentRef() {
|
|
860
|
+
if (read("DocumentRef-")) {
|
|
861
|
+
var string = expectIdstring();
|
|
862
|
+
return { type: "DOCUMENTREF", string };
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
__name(documentRef, "documentRef");
|
|
866
|
+
function licenseRef() {
|
|
867
|
+
if (read("LicenseRef-")) {
|
|
868
|
+
var string = expectIdstring();
|
|
869
|
+
return { type: "LICENSEREF", string };
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
__name(licenseRef, "licenseRef");
|
|
873
|
+
function identifier() {
|
|
874
|
+
var begin = index;
|
|
875
|
+
var string = idstring();
|
|
876
|
+
if (licenses.indexOf(string) !== -1) {
|
|
877
|
+
return {
|
|
878
|
+
type: "LICENSE",
|
|
879
|
+
string
|
|
880
|
+
};
|
|
881
|
+
} else if (exceptions.indexOf(string) !== -1) {
|
|
882
|
+
return {
|
|
883
|
+
type: "EXCEPTION",
|
|
884
|
+
string
|
|
885
|
+
};
|
|
886
|
+
}
|
|
887
|
+
index = begin;
|
|
888
|
+
}
|
|
889
|
+
__name(identifier, "identifier");
|
|
890
|
+
function parseToken() {
|
|
891
|
+
return operator() || documentRef() || licenseRef() || identifier();
|
|
892
|
+
}
|
|
893
|
+
__name(parseToken, "parseToken");
|
|
894
|
+
var tokens = [];
|
|
895
|
+
while (hasMore()) {
|
|
896
|
+
skipWhitespace();
|
|
897
|
+
if (!hasMore()) {
|
|
898
|
+
break;
|
|
899
|
+
}
|
|
900
|
+
var token = parseToken();
|
|
901
|
+
if (!token) {
|
|
902
|
+
throw new Error("Unexpected `" + source[index] + "` at offset " + index);
|
|
903
|
+
}
|
|
904
|
+
tokens.push(token);
|
|
905
|
+
}
|
|
906
|
+
return tokens;
|
|
907
|
+
};
|
|
908
|
+
}
|
|
909
|
+
});
|
|
910
|
+
|
|
911
|
+
// node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/parse.js
|
|
912
|
+
var require_parse = __commonJS({
|
|
913
|
+
"node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/parse.js"(exports2, module2) {
|
|
914
|
+
"use strict";
|
|
915
|
+
module2.exports = function(tokens) {
|
|
916
|
+
var index = 0;
|
|
917
|
+
function hasMore() {
|
|
918
|
+
return index < tokens.length;
|
|
919
|
+
}
|
|
920
|
+
__name(hasMore, "hasMore");
|
|
921
|
+
function token() {
|
|
922
|
+
return hasMore() ? tokens[index] : null;
|
|
923
|
+
}
|
|
924
|
+
__name(token, "token");
|
|
925
|
+
function next() {
|
|
926
|
+
if (!hasMore()) {
|
|
927
|
+
throw new Error();
|
|
928
|
+
}
|
|
929
|
+
index++;
|
|
930
|
+
}
|
|
931
|
+
__name(next, "next");
|
|
932
|
+
function parseOperator(operator) {
|
|
933
|
+
var t = token();
|
|
934
|
+
if (t && t.type === "OPERATOR" && operator === t.string) {
|
|
935
|
+
next();
|
|
936
|
+
return t.string;
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
__name(parseOperator, "parseOperator");
|
|
940
|
+
function parseWith() {
|
|
941
|
+
if (parseOperator("WITH")) {
|
|
942
|
+
var t = token();
|
|
943
|
+
if (t && t.type === "EXCEPTION") {
|
|
944
|
+
next();
|
|
945
|
+
return t.string;
|
|
946
|
+
}
|
|
947
|
+
throw new Error("Expected exception after `WITH`");
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
__name(parseWith, "parseWith");
|
|
951
|
+
function parseLicenseRef() {
|
|
952
|
+
var begin = index;
|
|
953
|
+
var string = "";
|
|
954
|
+
var t = token();
|
|
955
|
+
if (t.type === "DOCUMENTREF") {
|
|
956
|
+
next();
|
|
957
|
+
string += "DocumentRef-" + t.string + ":";
|
|
958
|
+
if (!parseOperator(":")) {
|
|
959
|
+
throw new Error("Expected `:` after `DocumentRef-...`");
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
t = token();
|
|
963
|
+
if (t.type === "LICENSEREF") {
|
|
964
|
+
next();
|
|
965
|
+
string += "LicenseRef-" + t.string;
|
|
966
|
+
return { license: string };
|
|
967
|
+
}
|
|
968
|
+
index = begin;
|
|
969
|
+
}
|
|
970
|
+
__name(parseLicenseRef, "parseLicenseRef");
|
|
971
|
+
function parseLicense() {
|
|
972
|
+
var t = token();
|
|
973
|
+
if (t && t.type === "LICENSE") {
|
|
974
|
+
next();
|
|
975
|
+
var node2 = { license: t.string };
|
|
976
|
+
if (parseOperator("+")) {
|
|
977
|
+
node2.plus = true;
|
|
978
|
+
}
|
|
979
|
+
var exception = parseWith();
|
|
980
|
+
if (exception) {
|
|
981
|
+
node2.exception = exception;
|
|
982
|
+
}
|
|
983
|
+
return node2;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
__name(parseLicense, "parseLicense");
|
|
987
|
+
function parseParenthesizedExpression() {
|
|
988
|
+
var left = parseOperator("(");
|
|
989
|
+
if (!left) {
|
|
990
|
+
return;
|
|
991
|
+
}
|
|
992
|
+
var expr = parseExpression();
|
|
993
|
+
if (!parseOperator(")")) {
|
|
994
|
+
throw new Error("Expected `)`");
|
|
995
|
+
}
|
|
996
|
+
return expr;
|
|
997
|
+
}
|
|
998
|
+
__name(parseParenthesizedExpression, "parseParenthesizedExpression");
|
|
999
|
+
function parseAtom() {
|
|
1000
|
+
return parseParenthesizedExpression() || parseLicenseRef() || parseLicense();
|
|
1001
|
+
}
|
|
1002
|
+
__name(parseAtom, "parseAtom");
|
|
1003
|
+
function makeBinaryOpParser(operator, nextParser) {
|
|
1004
|
+
return /* @__PURE__ */ __name(function parseBinaryOp() {
|
|
1005
|
+
var left = nextParser();
|
|
1006
|
+
if (!left) {
|
|
1007
|
+
return;
|
|
1008
|
+
}
|
|
1009
|
+
if (!parseOperator(operator)) {
|
|
1010
|
+
return left;
|
|
1011
|
+
}
|
|
1012
|
+
var right = parseBinaryOp();
|
|
1013
|
+
if (!right) {
|
|
1014
|
+
throw new Error("Expected expression");
|
|
1015
|
+
}
|
|
1016
|
+
return {
|
|
1017
|
+
left,
|
|
1018
|
+
conjunction: operator.toLowerCase(),
|
|
1019
|
+
right
|
|
1020
|
+
};
|
|
1021
|
+
}, "parseBinaryOp");
|
|
1022
|
+
}
|
|
1023
|
+
__name(makeBinaryOpParser, "makeBinaryOpParser");
|
|
1024
|
+
var parseAnd = makeBinaryOpParser("AND", parseAtom);
|
|
1025
|
+
var parseExpression = makeBinaryOpParser("OR", parseAnd);
|
|
1026
|
+
var node = parseExpression();
|
|
1027
|
+
if (!node || hasMore()) {
|
|
1028
|
+
throw new Error("Syntax error");
|
|
1029
|
+
}
|
|
1030
|
+
return node;
|
|
1031
|
+
};
|
|
1032
|
+
}
|
|
1033
|
+
});
|
|
1034
|
+
|
|
1035
|
+
// node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/index.js
|
|
1036
|
+
var require_spdx_expression_parse = __commonJS({
|
|
1037
|
+
"node_modules/.pnpm/spdx-expression-parse@3.0.1/node_modules/spdx-expression-parse/index.js"(exports2, module2) {
|
|
1038
|
+
"use strict";
|
|
1039
|
+
var scan = require_scan();
|
|
1040
|
+
var parse = require_parse();
|
|
1041
|
+
module2.exports = function(source) {
|
|
1042
|
+
return parse(scan(source));
|
|
1043
|
+
};
|
|
1044
|
+
}
|
|
1045
|
+
});
|
|
1046
|
+
|
|
1047
|
+
// node_modules/.pnpm/spdx-correct@3.2.0/node_modules/spdx-correct/index.js
|
|
1048
|
+
var require_spdx_correct = __commonJS({
|
|
1049
|
+
"node_modules/.pnpm/spdx-correct@3.2.0/node_modules/spdx-correct/index.js"(exports2, module2) {
|
|
1050
|
+
var parse = require_spdx_expression_parse();
|
|
1051
|
+
var spdxLicenseIds = require_spdx_license_ids();
|
|
1052
|
+
function valid(string) {
|
|
1053
|
+
try {
|
|
1054
|
+
parse(string);
|
|
1055
|
+
return true;
|
|
1056
|
+
} catch (error) {
|
|
1057
|
+
return false;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
__name(valid, "valid");
|
|
1061
|
+
function sortTranspositions(a, b) {
|
|
1062
|
+
var length = b[0].length - a[0].length;
|
|
1063
|
+
if (length !== 0) return length;
|
|
1064
|
+
return a[0].toUpperCase().localeCompare(b[0].toUpperCase());
|
|
1065
|
+
}
|
|
1066
|
+
__name(sortTranspositions, "sortTranspositions");
|
|
1067
|
+
var transpositions = [
|
|
1068
|
+
["APGL", "AGPL"],
|
|
1069
|
+
["Gpl", "GPL"],
|
|
1070
|
+
["GLP", "GPL"],
|
|
1071
|
+
["APL", "Apache"],
|
|
1072
|
+
["ISD", "ISC"],
|
|
1073
|
+
["GLP", "GPL"],
|
|
1074
|
+
["IST", "ISC"],
|
|
1075
|
+
["Claude", "Clause"],
|
|
1076
|
+
[" or later", "+"],
|
|
1077
|
+
[" International", ""],
|
|
1078
|
+
["GNU", "GPL"],
|
|
1079
|
+
["GUN", "GPL"],
|
|
1080
|
+
["+", ""],
|
|
1081
|
+
["GNU GPL", "GPL"],
|
|
1082
|
+
["GNU LGPL", "LGPL"],
|
|
1083
|
+
["GNU/GPL", "GPL"],
|
|
1084
|
+
["GNU GLP", "GPL"],
|
|
1085
|
+
["GNU LESSER GENERAL PUBLIC LICENSE", "LGPL"],
|
|
1086
|
+
["GNU Lesser General Public License", "LGPL"],
|
|
1087
|
+
["GNU LESSER GENERAL PUBLIC LICENSE", "LGPL-2.1"],
|
|
1088
|
+
["GNU Lesser General Public License", "LGPL-2.1"],
|
|
1089
|
+
["LESSER GENERAL PUBLIC LICENSE", "LGPL"],
|
|
1090
|
+
["Lesser General Public License", "LGPL"],
|
|
1091
|
+
["LESSER GENERAL PUBLIC LICENSE", "LGPL-2.1"],
|
|
1092
|
+
["Lesser General Public License", "LGPL-2.1"],
|
|
1093
|
+
["GNU General Public License", "GPL"],
|
|
1094
|
+
["Gnu public license", "GPL"],
|
|
1095
|
+
["GNU Public License", "GPL"],
|
|
1096
|
+
["GNU GENERAL PUBLIC LICENSE", "GPL"],
|
|
1097
|
+
["MTI", "MIT"],
|
|
1098
|
+
["Mozilla Public License", "MPL"],
|
|
1099
|
+
["Universal Permissive License", "UPL"],
|
|
1100
|
+
["WTH", "WTF"],
|
|
1101
|
+
["WTFGPL", "WTFPL"],
|
|
1102
|
+
["-License", ""]
|
|
1103
|
+
].sort(sortTranspositions);
|
|
1104
|
+
var TRANSPOSED = 0;
|
|
1105
|
+
var CORRECT = 1;
|
|
1106
|
+
var transforms = [
|
|
1107
|
+
// e.g. 'mit'
|
|
1108
|
+
function(argument) {
|
|
1109
|
+
return argument.toUpperCase();
|
|
1110
|
+
},
|
|
1111
|
+
// e.g. 'MIT '
|
|
1112
|
+
function(argument) {
|
|
1113
|
+
return argument.trim();
|
|
1114
|
+
},
|
|
1115
|
+
// e.g. 'M.I.T.'
|
|
1116
|
+
function(argument) {
|
|
1117
|
+
return argument.replace(/\./g, "");
|
|
1118
|
+
},
|
|
1119
|
+
// e.g. 'Apache- 2.0'
|
|
1120
|
+
function(argument) {
|
|
1121
|
+
return argument.replace(/\s+/g, "");
|
|
1122
|
+
},
|
|
1123
|
+
// e.g. 'CC BY 4.0''
|
|
1124
|
+
function(argument) {
|
|
1125
|
+
return argument.replace(/\s+/g, "-");
|
|
1126
|
+
},
|
|
1127
|
+
// e.g. 'LGPLv2.1'
|
|
1128
|
+
function(argument) {
|
|
1129
|
+
return argument.replace("v", "-");
|
|
1130
|
+
},
|
|
1131
|
+
// e.g. 'Apache 2.0'
|
|
1132
|
+
function(argument) {
|
|
1133
|
+
return argument.replace(/,?\s*(\d)/, "-$1");
|
|
1134
|
+
},
|
|
1135
|
+
// e.g. 'GPL 2'
|
|
1136
|
+
function(argument) {
|
|
1137
|
+
return argument.replace(/,?\s*(\d)/, "-$1.0");
|
|
1138
|
+
},
|
|
1139
|
+
// e.g. 'Apache Version 2.0'
|
|
1140
|
+
function(argument) {
|
|
1141
|
+
return argument.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, "-$2");
|
|
1142
|
+
},
|
|
1143
|
+
// e.g. 'Apache Version 2'
|
|
1144
|
+
function(argument) {
|
|
1145
|
+
return argument.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, "-$2.0");
|
|
1146
|
+
},
|
|
1147
|
+
// e.g. 'ZLIB'
|
|
1148
|
+
function(argument) {
|
|
1149
|
+
return argument[0].toUpperCase() + argument.slice(1);
|
|
1150
|
+
},
|
|
1151
|
+
// e.g. 'MPL/2.0'
|
|
1152
|
+
function(argument) {
|
|
1153
|
+
return argument.replace("/", "-");
|
|
1154
|
+
},
|
|
1155
|
+
// e.g. 'Apache 2'
|
|
1156
|
+
function(argument) {
|
|
1157
|
+
return argument.replace(/\s*V\s*(\d)/, "-$1").replace(/(\d)$/, "$1.0");
|
|
1158
|
+
},
|
|
1159
|
+
// e.g. 'GPL-2.0', 'GPL-3.0'
|
|
1160
|
+
function(argument) {
|
|
1161
|
+
if (argument.indexOf("3.0") !== -1) {
|
|
1162
|
+
return argument + "-or-later";
|
|
1163
|
+
} else {
|
|
1164
|
+
return argument + "-only";
|
|
1165
|
+
}
|
|
1166
|
+
},
|
|
1167
|
+
// e.g. 'GPL-2.0-'
|
|
1168
|
+
function(argument) {
|
|
1169
|
+
return argument + "only";
|
|
1170
|
+
},
|
|
1171
|
+
// e.g. 'GPL2'
|
|
1172
|
+
function(argument) {
|
|
1173
|
+
return argument.replace(/(\d)$/, "-$1.0");
|
|
1174
|
+
},
|
|
1175
|
+
// e.g. 'BSD 3'
|
|
1176
|
+
function(argument) {
|
|
1177
|
+
return argument.replace(/(-| )?(\d)$/, "-$2-Clause");
|
|
1178
|
+
},
|
|
1179
|
+
// e.g. 'BSD clause 3'
|
|
1180
|
+
function(argument) {
|
|
1181
|
+
return argument.replace(/(-| )clause(-| )(\d)/, "-$3-Clause");
|
|
1182
|
+
},
|
|
1183
|
+
// e.g. 'New BSD license'
|
|
1184
|
+
function(argument) {
|
|
1185
|
+
return argument.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i, "BSD-3-Clause");
|
|
1186
|
+
},
|
|
1187
|
+
// e.g. 'Simplified BSD license'
|
|
1188
|
+
function(argument) {
|
|
1189
|
+
return argument.replace(/\bSimplified(-| )?BSD((-| )License)?/i, "BSD-2-Clause");
|
|
1190
|
+
},
|
|
1191
|
+
// e.g. 'Free BSD license'
|
|
1192
|
+
function(argument) {
|
|
1193
|
+
return argument.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i, "BSD-2-Clause-$1BSD");
|
|
1194
|
+
},
|
|
1195
|
+
// e.g. 'Clear BSD license'
|
|
1196
|
+
function(argument) {
|
|
1197
|
+
return argument.replace(/\bClear(-| )?BSD((-| )License)?/i, "BSD-3-Clause-Clear");
|
|
1198
|
+
},
|
|
1199
|
+
// e.g. 'Old BSD License'
|
|
1200
|
+
function(argument) {
|
|
1201
|
+
return argument.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i, "BSD-4-Clause");
|
|
1202
|
+
},
|
|
1203
|
+
// e.g. 'BY-NC-4.0'
|
|
1204
|
+
function(argument) {
|
|
1205
|
+
return "CC-" + argument;
|
|
1206
|
+
},
|
|
1207
|
+
// e.g. 'BY-NC'
|
|
1208
|
+
function(argument) {
|
|
1209
|
+
return "CC-" + argument + "-4.0";
|
|
1210
|
+
},
|
|
1211
|
+
// e.g. 'Attribution-NonCommercial'
|
|
1212
|
+
function(argument) {
|
|
1213
|
+
return argument.replace("Attribution", "BY").replace("NonCommercial", "NC").replace("NoDerivatives", "ND").replace(/ (\d)/, "-$1").replace(/ ?International/, "");
|
|
1214
|
+
},
|
|
1215
|
+
// e.g. 'Attribution-NonCommercial'
|
|
1216
|
+
function(argument) {
|
|
1217
|
+
return "CC-" + argument.replace("Attribution", "BY").replace("NonCommercial", "NC").replace("NoDerivatives", "ND").replace(/ (\d)/, "-$1").replace(/ ?International/, "") + "-4.0";
|
|
1218
|
+
}
|
|
1219
|
+
];
|
|
1220
|
+
var licensesWithVersions = spdxLicenseIds.map(function(id) {
|
|
1221
|
+
var match = /^(.*)-\d+\.\d+$/.exec(id);
|
|
1222
|
+
return match ? [match[0], match[1]] : [id, null];
|
|
1223
|
+
}).reduce(function(objectMap, item) {
|
|
1224
|
+
var key = item[1];
|
|
1225
|
+
objectMap[key] = objectMap[key] || [];
|
|
1226
|
+
objectMap[key].push(item[0]);
|
|
1227
|
+
return objectMap;
|
|
1228
|
+
}, {});
|
|
1229
|
+
var licensesWithOneVersion = Object.keys(licensesWithVersions).map(/* @__PURE__ */ __name(function makeEntries(key) {
|
|
1230
|
+
return [key, licensesWithVersions[key]];
|
|
1231
|
+
}, "makeEntries")).filter(/* @__PURE__ */ __name(function identifySoleVersions(item) {
|
|
1232
|
+
return (
|
|
1233
|
+
// Licenses has just one valid version suffix.
|
|
1234
|
+
item[1].length === 1 && item[0] !== null && // APL will be considered Apache, rather than APL-1.0
|
|
1235
|
+
item[0] !== "APL"
|
|
1236
|
+
);
|
|
1237
|
+
}, "identifySoleVersions")).map(/* @__PURE__ */ __name(function createLastResorts(item) {
|
|
1238
|
+
return [item[0], item[1][0]];
|
|
1239
|
+
}, "createLastResorts"));
|
|
1240
|
+
licensesWithVersions = void 0;
|
|
1241
|
+
var lastResorts = [
|
|
1242
|
+
["UNLI", "Unlicense"],
|
|
1243
|
+
["WTF", "WTFPL"],
|
|
1244
|
+
["2 CLAUSE", "BSD-2-Clause"],
|
|
1245
|
+
["2-CLAUSE", "BSD-2-Clause"],
|
|
1246
|
+
["3 CLAUSE", "BSD-3-Clause"],
|
|
1247
|
+
["3-CLAUSE", "BSD-3-Clause"],
|
|
1248
|
+
["AFFERO", "AGPL-3.0-or-later"],
|
|
1249
|
+
["AGPL", "AGPL-3.0-or-later"],
|
|
1250
|
+
["APACHE", "Apache-2.0"],
|
|
1251
|
+
["ARTISTIC", "Artistic-2.0"],
|
|
1252
|
+
["Affero", "AGPL-3.0-or-later"],
|
|
1253
|
+
["BEER", "Beerware"],
|
|
1254
|
+
["BOOST", "BSL-1.0"],
|
|
1255
|
+
["BSD", "BSD-2-Clause"],
|
|
1256
|
+
["CDDL", "CDDL-1.1"],
|
|
1257
|
+
["ECLIPSE", "EPL-1.0"],
|
|
1258
|
+
["FUCK", "WTFPL"],
|
|
1259
|
+
["GNU", "GPL-3.0-or-later"],
|
|
1260
|
+
["LGPL", "LGPL-3.0-or-later"],
|
|
1261
|
+
["GPLV1", "GPL-1.0-only"],
|
|
1262
|
+
["GPL-1", "GPL-1.0-only"],
|
|
1263
|
+
["GPLV2", "GPL-2.0-only"],
|
|
1264
|
+
["GPL-2", "GPL-2.0-only"],
|
|
1265
|
+
["GPL", "GPL-3.0-or-later"],
|
|
1266
|
+
["MIT +NO-FALSE-ATTRIBS", "MITNFA"],
|
|
1267
|
+
["MIT", "MIT"],
|
|
1268
|
+
["MPL", "MPL-2.0"],
|
|
1269
|
+
["X11", "X11"],
|
|
1270
|
+
["ZLIB", "Zlib"]
|
|
1271
|
+
].concat(licensesWithOneVersion).sort(sortTranspositions);
|
|
1272
|
+
var SUBSTRING = 0;
|
|
1273
|
+
var IDENTIFIER = 1;
|
|
1274
|
+
var validTransformation = /* @__PURE__ */ __name(function(identifier) {
|
|
1275
|
+
for (var i = 0; i < transforms.length; i++) {
|
|
1276
|
+
var transformed = transforms[i](identifier).trim();
|
|
1277
|
+
if (transformed !== identifier && valid(transformed)) {
|
|
1278
|
+
return transformed;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
return null;
|
|
1282
|
+
}, "validTransformation");
|
|
1283
|
+
var validLastResort = /* @__PURE__ */ __name(function(identifier) {
|
|
1284
|
+
var upperCased = identifier.toUpperCase();
|
|
1285
|
+
for (var i = 0; i < lastResorts.length; i++) {
|
|
1286
|
+
var lastResort = lastResorts[i];
|
|
1287
|
+
if (upperCased.indexOf(lastResort[SUBSTRING]) > -1) {
|
|
1288
|
+
return lastResort[IDENTIFIER];
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
return null;
|
|
1292
|
+
}, "validLastResort");
|
|
1293
|
+
var anyCorrection = /* @__PURE__ */ __name(function(identifier, check) {
|
|
1294
|
+
for (var i = 0; i < transpositions.length; i++) {
|
|
1295
|
+
var transposition = transpositions[i];
|
|
1296
|
+
var transposed = transposition[TRANSPOSED];
|
|
1297
|
+
if (identifier.indexOf(transposed) > -1) {
|
|
1298
|
+
var corrected = identifier.replace(
|
|
1299
|
+
transposed,
|
|
1300
|
+
transposition[CORRECT]
|
|
1301
|
+
);
|
|
1302
|
+
var checked = check(corrected);
|
|
1303
|
+
if (checked !== null) {
|
|
1304
|
+
return checked;
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
return null;
|
|
1309
|
+
}, "anyCorrection");
|
|
1310
|
+
module2.exports = function(identifier, options) {
|
|
1311
|
+
options = options || {};
|
|
1312
|
+
var upgrade = options.upgrade === void 0 ? true : !!options.upgrade;
|
|
1313
|
+
function postprocess(value) {
|
|
1314
|
+
return upgrade ? upgradeGPLs(value) : value;
|
|
1315
|
+
}
|
|
1316
|
+
__name(postprocess, "postprocess");
|
|
1317
|
+
var validArugment = typeof identifier === "string" && identifier.trim().length !== 0;
|
|
1318
|
+
if (!validArugment) {
|
|
1319
|
+
throw Error("Invalid argument. Expected non-empty string.");
|
|
1320
|
+
}
|
|
1321
|
+
identifier = identifier.trim();
|
|
1322
|
+
if (valid(identifier)) {
|
|
1323
|
+
return postprocess(identifier);
|
|
1324
|
+
}
|
|
1325
|
+
var noPlus = identifier.replace(/\+$/, "").trim();
|
|
1326
|
+
if (valid(noPlus)) {
|
|
1327
|
+
return postprocess(noPlus);
|
|
1328
|
+
}
|
|
1329
|
+
var transformed = validTransformation(identifier);
|
|
1330
|
+
if (transformed !== null) {
|
|
1331
|
+
return postprocess(transformed);
|
|
1332
|
+
}
|
|
1333
|
+
transformed = anyCorrection(identifier, function(argument) {
|
|
1334
|
+
if (valid(argument)) {
|
|
1335
|
+
return argument;
|
|
1336
|
+
}
|
|
1337
|
+
return validTransformation(argument);
|
|
1338
|
+
});
|
|
1339
|
+
if (transformed !== null) {
|
|
1340
|
+
return postprocess(transformed);
|
|
1341
|
+
}
|
|
1342
|
+
transformed = validLastResort(identifier);
|
|
1343
|
+
if (transformed !== null) {
|
|
1344
|
+
return postprocess(transformed);
|
|
1345
|
+
}
|
|
1346
|
+
transformed = anyCorrection(identifier, validLastResort);
|
|
1347
|
+
if (transformed !== null) {
|
|
1348
|
+
return postprocess(transformed);
|
|
1349
|
+
}
|
|
1350
|
+
return null;
|
|
1351
|
+
};
|
|
1352
|
+
function upgradeGPLs(value) {
|
|
1353
|
+
if ([
|
|
1354
|
+
"GPL-1.0",
|
|
1355
|
+
"LGPL-1.0",
|
|
1356
|
+
"AGPL-1.0",
|
|
1357
|
+
"GPL-2.0",
|
|
1358
|
+
"LGPL-2.0",
|
|
1359
|
+
"AGPL-2.0",
|
|
1360
|
+
"LGPL-2.1"
|
|
1361
|
+
].indexOf(value) !== -1) {
|
|
1362
|
+
return value + "-only";
|
|
1363
|
+
} else if ([
|
|
1364
|
+
"GPL-1.0+",
|
|
1365
|
+
"GPL-2.0+",
|
|
1366
|
+
"GPL-3.0+",
|
|
1367
|
+
"LGPL-2.0+",
|
|
1368
|
+
"LGPL-2.1+",
|
|
1369
|
+
"LGPL-3.0+",
|
|
1370
|
+
"AGPL-1.0+",
|
|
1371
|
+
"AGPL-3.0+"
|
|
1372
|
+
].indexOf(value) !== -1) {
|
|
1373
|
+
return value.replace(/\+$/, "-or-later");
|
|
1374
|
+
} else if (["GPL-3.0", "LGPL-3.0", "AGPL-3.0"].indexOf(value) !== -1) {
|
|
1375
|
+
return value + "-or-later";
|
|
1376
|
+
} else {
|
|
1377
|
+
return value;
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
__name(upgradeGPLs, "upgradeGPLs");
|
|
1381
|
+
}
|
|
1382
|
+
});
|
|
1383
|
+
|
|
1384
|
+
// src/external/spdx-correct.js
|
|
1385
|
+
module.exports = require_spdx_correct();
|