remark-oembed
Version:
Converts URLs surrounded by newlines into embeds that are loaded asynchronously
2 lines • 1.86 MB
JavaScript
#!/usr/bin/env node
module.exports=(()=>{var __webpack_modules__={80150:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>g});var n=r(32741);const i={optional:!0},A=[["@samverschueren/stream-to-observable@*",{peerDependenciesMeta:{rxjs:i,zenObservable:i}}],["any-observable@<0.5.1",{peerDependenciesMeta:{rxjs:i,zenObservable:i}}],["@pm2/agent@<1.0.4",{dependencies:{debug:"*"}}],["debug@*",{peerDependenciesMeta:{"supports-color":i}}],["got@<11",{dependencies:{"@types/responselike":"^1.0.0","@types/keyv":"^3.1.1"}}],["cacheable-lookup@<4.1.2",{dependencies:{"@types/keyv":"^3.1.1"}}],["http-link-dataloader@*",{peerDependencies:{graphql:"^0.13.1 || ^14.0.0"}}],["typescript-language-server@*",{dependencies:{"vscode-jsonrpc":"^5.0.1","vscode-languageserver-protocol":"^3.15.0"}}],["postcss-syntax@*",{peerDependenciesMeta:{"postcss-html":i,"postcss-jsx":i,"postcss-less":i,"postcss-markdown":i,"postcss-scss":i}}],["jss-plugin-rule-value-function@<=10.1.1",{dependencies:{"tiny-warning":"^1.0.2"}}],["ink-select-input@*",{peerDependencies:{react:"^16.8.2"}}],["promise-inflight@*",{peerDependenciesMeta:{bluebird:i}}],["reactcss@*",{peerDependencies:{react:"*"}}],["react-color@<=2.19.0",{peerDependencies:{react:"*"}}],["gatsby-plugin-i18n@*",{dependencies:{ramda:"^0.24.1"}}],["useragent@^2.0.0",{dependencies:{request:"^2.88.0",yamlparser:"0.0.x",semver:"5.5.x"}}],["@apollographql/apollo-tools@*",{peerDependencies:{graphql:"^14.2.1 || ^15.0.0"}}],["material-table@^2.0.0",{dependencies:{"@babel/runtime":"^7.11.2"}}],["@babel/parser@*",{dependencies:{"@babel/types":"^7.8.3"}}],["fork-ts-checker-webpack-plugin@*",{peerDependencies:{eslint:">= 6",typescript:">= 2.7",webpack:">= 4"},peerDependenciesMeta:{eslint:i}}],["rc-animate@*",{peerDependencies:{react:"^15.0.0 || ^16.0.0","react-dom":"^15.0.0 || ^16.0.0"}}]];let o,s,a;const c=new Map([[n.structUtils.makeIdent(null,"fsevents").identHash,function(){return void 0===o&&(o=r(78761).brotliDecompressSync(Buffer.from("G1gUAIzCtr2xMzjJgJA88r/l8s7l9OoQ+WtKxU5uIQ1k15mQ1bamroyXoMKC0yqx44/BZ2Kp0oH6z9/XdLihMONU+ufec9+07fv777XvQJOVjRaHnkmAASXQQzhvDK3lC18lfWMQhmk/hyqMS39FA4d4X8na/QZocXQ3LmObAWWccY/xG5ZSBm6J6brPQ3E9pQ9DGJyhaurt4KyaZ+syHd/CnvYuraXnvJwez3WGhy6s6ecrfJVYeBDArI75wxB2HxweIqw0/gT+qXpDEji4JdFGZ5Do7yg5nV8J1f33B2JUENlw97TRDgNjq3yzyqD4IoFfFgJqt3Ga003n9/+eOFU1KYz99N6eCCDmOTGq8usWP53fU1IK8D0qzI3bK5KkKGgUjkG1dRyJBAC/T4SK5AOiInV6kSnLcQGMDKTOwrPxN8919kVydBmns6kfSdr1DhMISD0Q1qGeqWAowNVB+MlACshFFA8GHqpUTfgPlAi3RRDj6lJGtDcafGRQNymNVsmoKySzioKxwowoUiDaisGalJQCq7cw/5n3ETx7nKiI0iqiVdn885HOYSf2yH4hATXJEesF2nOfqp2bzLO2T2uI0hX/0JwMdac692S4i9/UzJ5PPqsqAVnxooXrvlQ/1ibnqvhIvgBqLWtP+p8kNU8NSlso1fnR6P8ir9txAdrm+XaYQpbns6D5hqqKw6WkVuPP2cNXIXqf22EaIHq/FDSg/sUFz5s4K0JyemiYYFrc5HBiLmmE5qqpIStviMHER2BVSUZlRCUOzCaHkCisRn3ltIMkNegRhip+9sT3nKpPPFIASnM1QVvE25LUteytfyIxhi2C4zcl3oloipwOLj6/qJOtPAPEAnKf105va2Lf3B1CndU2yBIrW2urW8N6wbdSYoBvisT5KlRosuRJcV9TL7dGdNXzUA7aqJSIfGdtxCJi8dK7/dx2uFksGP773q3ioNgRNkUAIS6y+CJBY2U5zV0P/XqaWeE3RYDV//Sv7mgs+kEVZ5ST1tCArNYcidRe9ZudVIfLfzxcpbzIv+Lc3ZvJD1cXzeVNM25FDyRmU2fd1F/bdVAqOWnKk1Q52pkEfMDeVC0GW4Q/lmckM5Z5r7Nz3WlkQcEICtc3JDVTXIl3r9YXggjAkDzU4r4NQehHbLEQ/uINXzYTISLiZQsFICKVpU69ME8bYLnLZlwmBJSZYAehatIhj3gC6Iho0uFsc8w92muCdflw5SouKRfSodbNZoLcxbG48Rc6Ng3mU+TcU65b2pRVwaIO0N0TNYmptsxD5WTDtG5SWskELYsSSoqpH6VNkXxcg3vwQGWaF5XL2XI5GgG6iA6kETJUICJE1GBXQ1TJT1OvRjNQFRutEg8EXZHQEHCYv8fWDiL+o7rWbEBqFvhMEZWL9uQLQqyNLrxq7wfa2P5dXv+PYsQqrih/3/6/5zLNAQ==","base64")).toString()),o}],[n.structUtils.makeIdent(null,"resolve").identHash,function(){return void 0===s&&(s=r(78761).brotliDecompressSync(Buffer.from("G1QTIIzURnVBnGa0VPvr81orV8AFIqdU0sqrdcVgCdukgAZwi8a50gLk9+19Z2NcUILjmzXkzt4dzm5a6Yoys+/9qnKiaApXukOiuoyUaMcynG4X7X4vBaIE/PL30gwG6HSGJkLxb9PnLjfMr+748n7sM6C/NycK6ber/bX1reVVxta6W/31tZIhfrS+upoE/TPRHj0S/l0T59gTGdtKOp1OmMOJt9rhfucDdLJ2tgyfnO+u4YMkQAcYq/nebTcDmbXhqhgo6iQA4M3m4xya4Cos3p6klmkmQT+S4DLDZfwfMF+sUCx36KleOtaHLQfEIz0Bmncj/Ngi3lqOl4391EWEfIss6gVp3oDUGwsSZJKeOVONJWZg+Mue3KUMV3aMqYJ+7b2219D+GFDi8EV5y/Y+5J+He0oNjKAgqLsJziEsS9uIaCu3BHBKSXxNKKa2ShbfglcWoiiVT2kfGI7Gw+YJ/Sqy1H6wdFWtyVUQI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6FwTejv92zgpnCxVJnIHHZhCBxNcHF5RTveRp513hUtTHHq4BIndlytZT5xoTSYfHKqKNr4o9kcGINIz6tZSKRdtbON3Ydr9cgqxHIeisMNIsvPg/IFMZuBbSqqDLeSO5dak1cGr76FtH2PC7hs0S0Oq3GsmF1Ga4YABAMGcdPAWzTk26B7cKV91I2b0V/GYvnsEQ1YGntRqi5EQqTlgZszbV/32GuZtUF49JOA/r4jAdwUOsbPo6mNoBlJPYjM5axrZaWQf33bFsLWqiyvvDOM4x0Ng802T7cuP2a3q98GWq6yiq6q3M77hcZlOUnmryctRYmI4Hb2F5XixFohkBmySCjU+M7/WQVE5YAtnlxiUJDhFN0y1tNeMWY9E0MfZi2rQ4eC72WXjsAA==","base64")).toString()),s}],[n.structUtils.makeIdent(null,"typescript").identHash,function(){return void 0===a&&(a=r(78761).brotliDecompressSync(Buffer.from("W873FUXgPCgqnJsVRTlfQz4SIWwcQBZWbUDrA9uY+lR9ougyuDJatOpy2ogPR8RnaDUcYRVZtX6gxcmQzgB3ckRC+qcjTNlldgn5SoHMuAnHU5YzZ9YrLSBAL9PZn89r8TUJyzJcacSp1WlVJ5AMe2OER7uBVPh+c9N6U8QPeRgEKoRNq0JDe6PXID0zCtWhiP+eq+wOwbYly7r+wUjSBrJtqVq76YWFgf6FYfhw8eP96VsbIjkMVZoyXKVOlaJKT2/u3HsSSU8fJH+QLIdoGWbm3qcn+/n/AHsBoNpyudpt6m3a5Xord7XMITAsV0QV0P9OU7rNpAzZWXLWgAF4QuyvzM1yLIFJC2Cm1LEZKNyYFsA7M3xDeupSt6xko3Oh3/x5tGDojPBt+ddjmHnbct/bxgAiIhq1jbPnD38a3Fj2y5noTvMgokcho9qqYD84EUnvkpGf/LiqIEsjM9i89iDnDPX/wOC90cL6HYLm2Nrxe6VP6JPocXP7B2EMgIg/pMnMR2h88OWQn2Gx+MmfhfhE/ZOlDMcHaTlSPN/iD2RnUXNUftJTu7GfIwqRV3D625f7uPXjG/3RI3E9KOI8Vf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NcOzf5oGoIrvHXkHERqRsna9AahPwDeG4yx/41K9umRBouMS4vchPIHjNgWW/SxTFfYi2LtmGQAQ7WWAm8FQb6/XN9kdNeEX7Lexyo/ApQkA1ILpf+As8EwS0DTN5XGpAwBJAA==","base64")).toString()),a}]]),g={hooks:{registerPackageExtensions:async(e,t)=>{for(const[e,r]of A)t(n.structUtils.parseDescriptor(e,!0),r)},getBuiltinPatch:async(e,t)=>{var r;if(!t.startsWith("compat/"))return;const i=n.structUtils.parseIdent(t.slice("compat/".length)),A=null===(r=c.get(i.identHash))||void 0===r?void 0:r();return void 0!==A?A:null},reduceDependency:async(e,t,r,i)=>void 0===c.get(e.identHash)?e:n.structUtils.makeDescriptor(e,n.structUtils.makeRange({protocol:"patch:",source:n.structUtils.stringifyDescriptor(e),selector:`builtin<compat/${n.structUtils.stringifyIdent(e)}>`,params:null}))}}},10420:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>h});var n=r(36370),i=r(95397),A=r(32741),o=r(40822);class s extends i.BaseCommand{constructor(){super(...arguments),this.quiet=!1,this.args=[]}async execute(){const e=[];this.pkg&&e.push("--package",this.pkg),this.quiet&&e.push("--quiet");const t=A.structUtils.parseIdent(this.command),r=A.structUtils.makeIdent(t.scope,"create-"+t.name);return this.cli.run(["dlx",...e,A.structUtils.stringifyIdent(r),...this.args])}}(0,n.gn)([o.Command.String("-p,--package",{description:"The package to run the provided command from"})],s.prototype,"pkg",void 0),(0,n.gn)([o.Command.Boolean("-q,--quiet",{description:"Only report critical errors instead of printing the full install logs"})],s.prototype,"quiet",void 0),(0,n.gn)([o.Command.String()],s.prototype,"command",void 0),(0,n.gn)([o.Command.Proxy()],s.prototype,"args",void 0),(0,n.gn)([o.Command.Path("create")],s.prototype,"execute",null);var a=r(27122),c=r(40376),g=r(56537),l=r(46009);class u extends i.BaseCommand{constructor(){super(...arguments),this.quiet=!1,this.args=[]}async execute(){return a.VK.telemetry=null,await g.xfs.mktempPromise(async e=>{const t=l.y1.join(e,"dlx-"+process.pid);await g.xfs.mkdirPromise(t),await g.xfs.writeFilePromise(l.y1.join(t,"package.json"),"{}\n"),await g.xfs.writeFilePromise(l.y1.join(t,"yarn.lock"),"");const r=l.y1.join(t,".yarnrc.yml"),n=await a.VK.findProjectCwd(this.context.cwd,l.QS.lockfile),o=null!==n?l.y1.join(n,".yarnrc.yml"):null;null!==o&&g.xfs.existsSync(o)?(await g.xfs.copyFilePromise(o,r),await a.VK.updateConfiguration(t,e=>{const t={...e,enableGlobalCache:!0,enableTelemetry:!1};return Array.isArray(e.plugins)&&(t.plugins=e.plugins.map(e=>{const t="string"==typeof e?e:e.path,r=l.cS.isAbsolute(t)?t:l.cS.resolve(l.cS.fromPortablePath(n),t);return"string"==typeof e?r:{path:r,spec:e.spec}})),t})):await g.xfs.writeFilePromise(r,"enableGlobalCache: true\nenableTelemetry: false\n");const s=void 0!==this.pkg?[this.pkg]:[this.command],u=A.structUtils.parseDescriptor(this.command).name,h=await this.cli.run(["add","--",...s],{cwd:t,quiet:this.quiet});if(0!==h)return h;this.quiet||this.context.stdout.write("\n");const p=await a.VK.find(t,this.context.plugins),{project:f,workspace:d}=await c.I.find(p,t);if(null===d)throw new i.WorkspaceRequiredError(f.cwd,t);return await f.restoreInstallState(),await A.scriptUtils.executeWorkspaceAccessibleBinary(d,u,this.args,{cwd:this.context.cwd,stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr})})}}u.usage=o.Command.Usage({description:"run a package in a temporary environment",details:"\n This command will install a package within a temporary environment, and run its binary script if it contains any. The binary will run within the current cwd.\n\n By default Yarn will download the package named `command`, but this can be changed through the use of the `-p,--package` flag which will instruct Yarn to still run the same command but from a different package.\n\n Using `yarn dlx` as a replacement of `yarn add` isn't recommended, as it makes your project non-deterministic (Yarn doesn't keep track of the packages installed through `dlx` - neither their name, nor their version).\n ",examples:[["Use create-react-app to create a new React app","yarn dlx create-react-app ./my-app"]]}),(0,n.gn)([o.Command.String("-p,--package",{description:"The package to run the provided command from"})],u.prototype,"pkg",void 0),(0,n.gn)([o.Command.Boolean("-q,--quiet",{description:"Only report critical errors instead of printing the full install logs"})],u.prototype,"quiet",void 0),(0,n.gn)([o.Command.String()],u.prototype,"command",void 0),(0,n.gn)([o.Command.Proxy()],u.prototype,"args",void 0),(0,n.gn)([o.Command.Path("dlx")],u.prototype,"execute",null);const h={commands:[s,u]}},51202:(e,t,r)=>{"use strict";r.r(t),r.d(t,{suggestUtils:()=>n,default:()=>Oe});var n={};r.r(n),r.d(n,{Modifier:()=>A,Strategy:()=>o,Target:()=>i,applyModifier:()=>D,extractDescriptorFromPath:()=>k,extractRangeModifier:()=>b,fetchDescriptorFrom:()=>N,findProjectDescriptors:()=>S,getModifier:()=>Q,getSuggestedDescriptors:()=>M});var i,A,o,s=r(27122),a=r(36370),c=r(95397),g=r(28148),l=r(62152),u=r(92659),h=r(40376),p=r(15815),f=r(32741),d=r(40822),C=r(61899),I=r(33720),E=r(46611),m=r(46009),B=r(56537),y=r(53887),w=r.n(y);function Q(e,t){return e.exact?A.EXACT:e.caret?A.CARET:e.tilde?A.TILDE:t.configuration.get("defaultSemverRangePrefix")}!function(e){e.REGULAR="dependencies",e.DEVELOPMENT="devDependencies",e.PEER="peerDependencies"}(i||(i={})),function(e){e.CARET="^",e.TILDE="~",e.EXACT=""}(A||(A={})),function(e){e.KEEP="keep",e.REUSE="reuse",e.PROJECT="project",e.LATEST="latest",e.CACHE="cache"}(o||(o={}));const v=/^([\^~]?)[0-9]+(?:\.[0-9]+){0,2}(?:-\S+)?$/;function b(e,{project:t}){const r=e.match(v);return r?r[1]:t.configuration.get("defaultSemverRangePrefix")}function D(e,t){let{protocol:r,source:n,params:i,selector:A}=f.structUtils.parseRange(e.range);return w().valid(A)&&(A=`${t}${e.range}`),f.structUtils.makeDescriptor(e,f.structUtils.makeRange({protocol:r,source:n,params:i,selector:A}))}async function S(e,{project:t,target:r}){const n=new Map,A=e=>{let t=n.get(e.descriptorHash);return t||n.set(e.descriptorHash,t={descriptor:e,locators:[]}),t};for(const n of t.workspaces)if(r===i.PEER){const t=n.manifest.peerDependencies.get(e.identHash);void 0!==t&&A(t).locators.push(n.locator)}else{const t=n.manifest.dependencies.get(e.identHash),o=n.manifest.devDependencies.get(e.identHash);r===i.DEVELOPMENT?void 0!==o?A(o).locators.push(n.locator):void 0!==t&&A(t).locators.push(n.locator):void 0!==t?A(t).locators.push(n.locator):void 0!==o&&A(o).locators.push(n.locator)}return n}async function k(e,{cwd:t,workspace:r}){return await async function(e){return await B.xfs.mktempPromise(async t=>{const r=s.VK.create(t);return r.useWithSource(t,{enableMirror:!1,compressionLevel:0},t,{overwrite:!0}),await e(new g.C(t,{configuration:r,check:!1,immutable:!1}))})}(async n=>{m.y1.isAbsolute(e)||(e=m.y1.relative(r.cwd,m.y1.resolve(t,e))).match(/^\.{0,2}\//)||(e="./"+e);const{project:i}=r,A=await N(f.structUtils.makeIdent(null,"archive"),e,{project:r.project,cache:n,workspace:r});if(!A)throw new Error("Assertion failed: The descriptor should have been found");const o=new I.$,s=i.configuration.makeResolver(),a=i.configuration.makeFetcher(),c={checksums:i.storedChecksums,project:i,cache:n,fetcher:a,report:o,resolver:s},g=s.bindDescriptor(A,r.anchoredLocator,c),l=f.structUtils.convertDescriptorToLocator(g),u=await a.fetch(l,c),h=await E.G.find(u.prefixPath,{baseFs:u.packageFs});if(!h.name)throw new Error("Target path doesn't have a name");return f.structUtils.makeDescriptor(h.name,e)})}async function M(e,{project:t,workspace:r,cache:n,target:A,modifier:s,strategies:a,maxResults:c=1/0}){if(!(c>=0))throw new Error(`Invalid maxResults (${c})`);if("unknown"!==e.range)return{suggestions:[{descriptor:e,name:"Use "+f.structUtils.prettyDescriptor(t.configuration,e),reason:"(unambiguous explicit request)"}],rejections:[]};const g=null!=r&&r.manifest[A].get(e.identHash)||null,l=[],u=[],h=async e=>{try{await e()}catch(e){u.push(e)}};for(const u of a){if(l.length>=c)break;switch(u){case o.KEEP:await h(async()=>{g&&l.push({descriptor:g,name:"Keep "+f.structUtils.prettyDescriptor(t.configuration,g),reason:"(no changes)"})});break;case o.REUSE:await h(async()=>{for(const{descriptor:n,locators:i}of(await S(e,{project:t,target:A})).values()){if(1===i.length&&i[0].locatorHash===r.anchoredLocator.locatorHash&&a.includes(o.KEEP))continue;let e="(originally used by "+f.structUtils.prettyLocator(t.configuration,i[0]);e+=i.length>1?` and ${i.length-1} other${i.length>2?"s":""})`:")",l.push({descriptor:n,name:"Reuse "+f.structUtils.prettyDescriptor(t.configuration,n),reason:e})}});break;case o.CACHE:await h(async()=>{for(const r of t.storedDescriptors.values())r.identHash===e.identHash&&l.push({descriptor:r,name:"Reuse "+f.structUtils.prettyDescriptor(t.configuration,r),reason:"(already used somewhere in the lockfile)"})});break;case o.PROJECT:await h(async()=>{if(null!==r.manifest.name&&e.identHash===r.manifest.name.identHash)return;const n=t.tryWorkspaceByIdent(e);null!==n&&l.push({descriptor:n.anchoredDescriptor,name:"Attach "+f.structUtils.prettyWorkspace(t.configuration,n),reason:`(local workspace at ${n.cwd})`})});break;case o.LATEST:await h(async()=>{if("unknown"!==e.range)l.push({descriptor:e,name:"Use "+f.structUtils.prettyRange(t.configuration,e.range),reason:"(explicit range requested)"});else if(A===i.PEER)l.push({descriptor:f.structUtils.makeDescriptor(e,"*"),name:"Use *",reason:"(catch-all peer dependency pattern)"});else if(t.configuration.get("enableNetwork")){let i=await N(e,"latest",{project:t,cache:n,workspace:r,preserveModifier:!1});i&&(i=D(i,s),l.push({descriptor:i,name:"Use "+f.structUtils.prettyDescriptor(t.configuration,i),reason:"(resolved from latest)"}))}else l.push({descriptor:null,name:"Resolve from latest",reason:f.formatUtils.pretty(t.configuration,"(unavailable because enableNetwork is toggled off)","grey")})})}}return{suggestions:l.slice(0,c),rejections:u.slice(0,c)}}async function N(e,t,{project:r,cache:n,workspace:i,preserveModifier:A=!0}){const o=f.structUtils.makeDescriptor(e,t),s=new I.$,a=r.configuration.makeFetcher(),c=r.configuration.makeResolver(),g={project:r,fetcher:a,cache:n,checksums:r.storedChecksums,report:s,skipIntegrityCheck:!0},l={...g,resolver:c,fetchOptions:g},u=c.bindDescriptor(o,i.anchoredLocator,l),h=await c.getCandidates(u,new Map,l);if(0===h.length)return null;const p=h[0];let{protocol:d,source:C,params:E,selector:m}=f.structUtils.parseRange(f.structUtils.convertToManifestRange(p.reference));if(d===r.configuration.get("defaultProtocol")&&(d=null),w().valid(m)&&!1!==A){m=b("string"==typeof A?A:o.range,{project:r})+m}return f.structUtils.makeDescriptor(p,f.structUtils.makeRange({protocol:d,source:C,params:E,selector:m}))}class F extends c.BaseCommand{constructor(){super(...arguments),this.packages=[],this.json=!1,this.exact=!1,this.tilde=!1,this.caret=!1,this.dev=!1,this.peer=!1,this.optional=!1,this.preferDev=!1,this.interactive=null,this.cached=!1}async execute(){var e;const t=await s.VK.find(this.context.cwd,this.context.plugins),{project:r,workspace:n}=await h.I.find(t,this.context.cwd),A=await g.C.find(t);if(!n)throw new c.WorkspaceRequiredError(r.cwd,this.context.cwd);const a=null!==(e=this.interactive)&&void 0!==e?e:t.get("preferInteractive"),I=Q(this,r),E=[...a?[o.REUSE]:[],o.PROJECT,...this.cached?[o.CACHE]:[],o.LATEST],m=a?1/0:1,B=await Promise.all(this.packages.map(async e=>{const t=e.match(/^\.{0,2}\//)?await k(e,{cwd:this.context.cwd,workspace:n}):f.structUtils.parseDescriptor(e),o=function(e,t,{dev:r,peer:n,preferDev:A,optional:o}){const s=e.manifest[i.REGULAR].has(t.identHash),a=e.manifest[i.DEVELOPMENT].has(t.identHash),c=e.manifest[i.PEER].has(t.identHash);if((r||n)&&s)throw new d.UsageError(`Package "${f.structUtils.prettyIdent(e.project.configuration,t)}" is already listed as a regular dependency - remove the -D,-P flags or remove it from your dependencies first`);if(!r&&!n&&c)throw new d.UsageError(`Package "${f.structUtils.prettyIdent(e.project.configuration,t)}" is already listed as a peer dependency - use either of -D or -P, or remove it from your peer dependencies first`);if(o&&a)throw new d.UsageError(`Package "${f.structUtils.prettyIdent(e.project.configuration,t)}" is already listed as a dev dependency - remove the -O flag or remove it from your dev dependencies first`);if(o&&!n&&c)throw new d.UsageError(`Package "${f.structUtils.prettyIdent(e.project.configuration,t)}" is already listed as a peer dependency - remove the -O flag or add the -P flag or remove it from your peer dependencies first`);if((r||A)&&o)throw new d.UsageError(`Package "${f.structUtils.prettyIdent(e.project.configuration,t)}" cannot simultaneously be a dev dependency and an optional dependency`);return n?i.PEER:r||A?i.DEVELOPMENT:s?i.REGULAR:a?i.DEVELOPMENT:i.REGULAR}(n,t,{dev:this.dev,peer:this.peer,preferDev:this.preferDev,optional:this.optional});return[t,await M(t,{project:r,workspace:n,cache:A,target:o,modifier:I,strategies:E,maxResults:m}),o]})),y=await l.h.start({configuration:t,stdout:this.context.stdout,suggestInstall:!1},async e=>{for(const[n,{suggestions:i,rejections:A}]of B){if(0===i.filter(e=>null!==e.descriptor).length){const[i]=A;if(void 0===i)throw new Error("Assertion failed: Expected an error to have been set");const o=this.cli.error(i);r.configuration.get("enableNetwork")?e.reportError(u.b.CANT_SUGGEST_RESOLUTIONS,`${f.structUtils.prettyDescriptor(t,n)} can't be resolved to a satisfying range:\n\n${o}`):e.reportError(u.b.CANT_SUGGEST_RESOLUTIONS,`${f.structUtils.prettyDescriptor(t,n)} can't be resolved to a satisfying range (note: network resolution has been disabled):\n\n${o}`)}}});if(y.hasErrors())return y.exitCode();let w=!1;const v=[],b=[];for(const[,{suggestions:e},t]of B){let r;const i=e.filter(e=>null!==e.descriptor),A=i[0].descriptor,o=i.every(e=>f.structUtils.areDescriptorsEqual(e.descriptor,A));1===i.length||o?r=A:(w=!0,({answer:r}=await(0,C.prompt)({type:"select",name:"answer",message:"Which range do you want to use?",choices:e.map(({descriptor:e,name:t,reason:r})=>e?{name:t,hint:r,descriptor:e}:{name:t,hint:r,disabled:!0}),onCancel:()=>process.exit(130),result(e){return this.find(e,"descriptor")},stdin:this.context.stdin,stdout:this.context.stdout})));const s=n.manifest[t].get(r.identHash);void 0!==s&&s.descriptorHash===r.descriptorHash||(n.manifest[t].set(r.identHash,r),this.optional&&("dependencies"===t?n.manifest.ensureDependencyMeta({...r,range:"unknown"}).optional=!0:"peerDependencies"===t&&(n.manifest.ensurePeerDependencyMeta({...r,range:"unknown"}).optional=!0)),void 0===s?v.push([n,t,r,E]):b.push([n,t,s,r]))}await t.triggerMultipleHooks(e=>e.afterWorkspaceDependencyAddition,v),await t.triggerMultipleHooks(e=>e.afterWorkspaceDependencyReplacement,b),w&&this.context.stdout.write("\n");return(await p.Pk.start({configuration:t,json:this.json,stdout:this.context.stdout,includeLogs:!this.context.quiet},async e=>{await r.install({cache:A,report:e})})).exitCode()}}F.usage=d.Command.Usage({description:"add dependencies to the project",details:"\n This command adds a package to the package.json for the nearest workspace.\n\n - If it didn't exist before, the package will by default be added to the regular `dependencies` field, but this behavior can be overriden thanks to the `-D,--dev` flag (which will cause the dependency to be added to the `devDependencies` field instead) and the `-P,--peer` flag (which will do the same but for `peerDependencies`).\n\n - If the package was already listed in your dependencies, it will by default be upgraded whether it's part of your `dependencies` or `devDependencies` (it won't ever update `peerDependencies`, though).\n\n - If set, the `--prefer-dev` flag will operate as a more flexible `-D,--dev` in that it will add the package to your `devDependencies` if it isn't already listed in either `dependencies` or `devDependencies`, but it will also happily upgrade your `dependencies` if that's what you already use (whereas `-D,--dev` would throw an exception).\n\n - If set, the `-O,--optional` flag will add the package to the `optionalDependencies` field and, in combination with the `-P,--peer` flag, it will add the package as an optional peer dependency. If the package was already listed in your `dependencies`, it will be upgraded to `optionalDependencies`. If the package was already listed in your `peerDependencies`, in combination with the `-P,--peer` flag, it will be upgraded to an optional peer dependency: `\"peerDependenciesMeta\": { \"<package>\": { \"optional\": true } }`\n\n - If the added package doesn't specify a range at all its `latest` tag will be resolved and the returned version will be used to generate a new semver range (using the `^` modifier by default unless otherwise configured via the `defaultSemverRangePrefix` configuration, or the `~` modifier if `-T,--tilde` is specified, or no modifier at all if `-E,--exact` is specified). Two exceptions to this rule: the first one is that if the package is a workspace then its local version will be used, and the second one is that if you use `-P,--peer` the default range will be `*` and won't be resolved at all.\n\n - If the added package specifies a tag range (such as `latest` or `rc`), Yarn will resolve this tag to a semver version and use that in the resulting package.json entry (meaning that `yarn add foo@latest` will have exactly the same effect as `yarn add foo`).\n\n If the `--cached` option is used, Yarn will preferably reuse the highest version already used somewhere within the project, even if through a transitive dependency.\n\n If the `-i,--interactive` option is used (or if the `preferInteractive` settings is toggled on) the command will first try to check whether other workspaces in the project use the specified package and, if so, will offer to reuse them.\n\n For a compilation of all the supported protocols, please consult the dedicated page from our website: https://yarnpkg.com/features/protocols.\n ",examples:[["Add a regular package to the current workspace","$0 add lodash"],["Add a specific version for a package to the current workspace","$0 add lodash@1.2.3"],["Add a package from a GitHub repository (the master branch) to the current workspace using a URL","$0 add lodash@https://github.com/lodash/lodash"],["Add a package from a GitHub repository (the master branch) to the current workspace using the GitHub protocol","$0 add lodash@github:lodash/lodash"],["Add a package from a GitHub repository (the master branch) to the current workspace using the GitHub protocol (shorthand)","$0 add lodash@lodash/lodash"],["Add a package from a specific branch of a GitHub repository to the current workspace using the GitHub protocol (shorthand)","$0 add lodash-es@lodash/lodash#es"]]}),(0,a.gn)([d.Command.Rest()],F.prototype,"packages",void 0),(0,a.gn)([d.Command.Boolean("--json",{description:"Format the output as an NDJSON stream"})],F.prototype,"json",void 0),(0,a.gn)([d.Command.Boolean("-E,--exact",{description:"Don't use any semver modifier on the resolved range"})],F.prototype,"exact",void 0),(0,a.gn)([d.Command.Boolean("-T,--tilde",{description:"Use the `~` semver modifier on the resolved range"})],F.prototype,"tilde",void 0),(0,a.gn)([d.Command.Boolean("-C,--caret",{description:"Use the `^` semver modifier on the resolved range"})],F.prototype,"caret",void 0),(0,a.gn)([d.Command.Boolean("-D,--dev",{description:"Add a package as a dev dependency"})],F.prototype,"dev",void 0),(0,a.gn)([d.Command.Boolean("-P,--peer",{description:"Add a package as a peer dependency"})],F.prototype,"peer",void 0),(0,a.gn)([d.Command.Boolean("-O,--optional",{description:"Add / upgrade a package to an optional regular / peer dependency"})],F.prototype,"optional",void 0),(0,a.gn)([d.Command.Boolean("--prefer-dev",{description:"Add / upgrade a package to a dev dependency"})],F.prototype,"preferDev",void 0),(0,a.gn)([d.Command.Boolean("-i,--interactive",{description:"Reuse the specified package from other workspaces in the project"})],F.prototype,"interactive",void 0),(0,a.gn)([d.Command.Boolean("--cached",{description:"Reuse the highest version already used somewhere within the project"})],F.prototype,"cached",void 0),(0,a.gn)([d.Command.Path("add")],F.prototype,"execute",null);class R extends c.BaseCommand{constructor(){super(...arguments),this.verbose=!1,this.json=!1}async execute(){const e=await s.VK.find(this.context.cwd,this.context.plugins),{project:t,locator:r}=await h.I.find(e,this.context.cwd);if(await t.restoreInstallState(),this.name){const n=(await f.scriptUtils.getPackageAccessibleBinaries(r,{project:t})).get(this.name);if(!n)throw new d.UsageError(`Couldn't find a binary named "${this.name}" for package "${f.structUtils.prettyLocator(e,r)}"`);const[,i]=n;return this.context.stdout.write(i+"\n"),0}return(await p.Pk.start({configuration:e,json:this.json,stdout:this.context.stdout},async n=>{const i=await f.scriptUtils.getPackageAccessibleBinaries(r,{project:t}),A=Array.from(i.keys()).reduce((e,t)=>Math.max(e,t.length),0);for(const[e,[t,r]]of i)n.reportJson({name:e,source:f.structUtils.stringifyIdent(t),path:r});if(this.verbose)for(const[t,[r]]of i)n.reportInfo(null,`${t.padEnd(A," ")} ${f.structUtils.prettyLocator(e,r)}`);else for(const e of i.keys())n.reportInfo(null,e)})).exitCode()}}R.usage=d.Command.Usage({description:"get the path to a binary script",details:"\n When used without arguments, this command will print the list of all the binaries available in the current workspace. Adding the `-v,--verbose` flag will cause the output to contain both the binary name and the locator of the package that provides the binary.\n\n When an argument is specified, this command will just print the path to the binary on the standard output and exit. Note that the reported path may be stored within a zip archive.\n ",examples:[["List all the available binaries","$0 bin"],["Print the path to a specific binary","$0 bin eslint"]]}),(0,a.gn)([d.Command.String({required:!1})],R.prototype,"name",void 0),(0,a.gn)([d.Command.Boolean("-v,--verbose",{description:"Print both the binary name and the locator of the package that provides the binary"})],R.prototype,"verbose",void 0),(0,a.gn)([d.Command.Boolean("--json",{description:"Format the output as an NDJSON stream"})],R.prototype,"json",void 0),(0,a.gn)([d.Command.Path("bin")],R.prototype,"execute",null);class K extends c.BaseCommand{constructor(){super(...arguments),this.mirror=!1,this.all=!1}async execute(){const e=await s.VK.find(this.context.cwd,this.context.plugins),t=await g.C.find(e);return(await p.Pk.start({configuration:e,stdout:this.context.stdout},async()=>{const e=(this.all||this.mirror)&&null!==t.mirrorCwd,r=!this.mirror;e&&await B.xfs.removePromise(t.mirrorCwd),r&&await B.xfs.removePromise(t.cwd)})).exitCode()}}K.usage=d.Command.Usage({description:"remove the shared cache files",details:"\n This command will remove all the files from the cache.\n ",examples:[["Remove all the local archives","$0 cache clean"],["Remove all the archives stored in the ~/.yarn directory","$0 cache clean --mirror"]]}),(0,a.gn)([d.Command.Boolean("--mirror",{description:"Remove the global cache files instead of the local cache files"})],K.prototype,"mirror",void 0),(0,a.gn)([d.Command.Boolean("--all",{description:"Remove both the global cache files and the local cache files of the current project"})],K.prototype,"all",void 0),(0,a.gn)([d.Command.Path("cache","clean")],K.prototype,"execute",null);var L=r(44674),x=r.n(L),P=r(31669);class U extends c.BaseCommand{constructor(){super(...arguments),this.json=!1,this.unsafe=!1}async execute(){const e=await s.VK.find(this.context.cwd,this.context.plugins),t=this.name.replace(/[.[].*$/,""),r=this.name.replace(/^[^.[]*/,"");if(void 0===e.settings.get(t))throw new d.UsageError(`Couldn't find a configuration settings named "${t}"`);const n=T(e.getSpecial(t,{hideSecrets:!this.unsafe,getNativePaths:!0})),i=r?x()(n,r):n,A=await p.Pk.start({configuration:e,includeFooter:!1,json:this.json,stdout:this.context.stdout},async e=>{e.reportJson(i)});if(!this.json){if("string"==typeof i)return this.context.stdout.write(i+"\n"),A.exitCode();P.inspect.styles.name="cyan",this.context.stdout.write((0,P.inspect)(i,{depth:1/0,colors:e.get("enableColors"),compact:!1})+"\n")}return A.exitCode()}}function T(e){if(e instanceof Map&&(e=Object.fromEntries(e)),"object"==typeof e&&null!==e)for(const t of Object.keys(e)){const r=e[t];"object"==typeof r&&null!==r&&(e[t]=T(r))}return e}U.usage=d.Command.Usage({description:"read a configuration settings",details:"\n This command will print a configuration setting.\n\n Secrets (such as tokens) will be redacted from the output by default. If this behavior isn't desired, set the `--no-redacted` to get the untransformed value.\n ",examples:[["Print a simple configuration setting","yarn config get yarnPath"],["Print a complex configuration setting","yarn config get packageExtensions"],["Print a nested field from the configuration","yarn config get 'npmScopes[\"my-company\"].npmRegistryServer'"],["Print a token from the configuration","yarn config get npmAuthToken --no-redacted"],["Print a configuration setting as JSON","yarn config get packageExtensions --json"]]}),(0,a.gn)([d.Command.String()],U.prototype,"name",void 0),(0,a.gn)([d.Command.Boolean("--json",{description:"Format the output as an NDJSON stream"})],U.prototype,"json",void 0),(0,a.gn)([d.Command.Boolean("--no-redacted",{description:"Don't redact secrets (such as tokens) from the output"})],U.prototype,"unsafe",void 0),(0,a.gn)([d.Command.Path("config","get")],U.prototype,"execute",null);var O=r(82558),Y=r.n(O),j=r(81534),G=r.n(j);class H extends c.BaseCommand{constructor(){super(...arguments),this.json=!1,this.home=!1}async execute(){const e=await s.VK.find(this.context.cwd,this.context.plugins);if(!e.projectCwd)throw new d.UsageError("This command must be run from within a project folder");const t=this.name.replace(/[.[].*$/,""),r=this.name.replace(/^[^.[]*\.?/,"");if(void 0===e.settings.get(t))throw new d.UsageError(`Couldn't find a configuration settings named "${t}"`);const n=this.json?JSON.parse(this.value):this.value,i=this.home?e=>s.VK.updateHomeConfiguration(e):t=>s.VK.updateConfiguration(e.projectCwd,t);await i(e=>{if(r){const t=Y()(e);return G()(t,this.name,n),t}return{...e,[t]:n}});const A=T((await s.VK.find(this.context.cwd,this.context.plugins)).getSpecial(t,{hideSecrets:!0,getNativePaths:!0})),o=r?x()(A,r):A;return(await p.Pk.start({configuration:e,includeFooter:!1,stdout:this.context.stdout},async t=>{P.inspect.styles.name="cyan",t.reportInfo(u.b.UNNAMED,`Successfully set ${this.name} to ${(0,P.inspect)(o,{depth:1/0,colors:e.get("enableColors"),compact:!1})}`)})).exitCode()}}H.usage=d.Command.Usage({description:"change a configuration settings",details:"\n This command will set a configuration setting.\n\n When used without the `--json` flag, it can only set a simple configuration setting (a string, a number, or a boolean).\n\n When used with the `--json` flag, it can set both simple and complex configuration settings, including Arrays and Objects.\n ",examples:[["Set a simple configuration setting (a string, a number, or a boolean)","yarn config set initScope myScope"],["Set a simple configuration setting (a string, a number, or a boolean) using the `--json` flag",'yarn config set initScope --json \\"myScope\\"'],["Set a complex configuration setting (an Array) using the `--json` flag",'yarn config set unsafeHttpWhitelist --json \'["*.example.com", "example.com"]\''],["Set a complex configuration setting (an Object) using the `--json` flag",'yarn config set packageExtensions --json \'{ "@babel/parser@*": { "dependencies": { "@babel/types": "*" } } }\'']]}),(0,a.gn)([d.Command.String()],H.prototype,"name",void 0),(0,a.gn)([d.Command.String()],H.prototype,"value",void 0),(0,a.gn)([d.Command.Boolean("--json",{description:"Set complex configuration settings to JSON values"})],H.prototype,"json",void 0),(0,a.gn)([d.Command.Boolean("-H,--home",{description:"Update the home configuration instead of the project configuration"})],H.prototype,"home",void 0),(0,a.gn)([d.Command.Path("config","set")],H.prototype,"execute",null);class J extends c.BaseCommand{constructor(){super(...arguments),this.verbose=!1,this.why=!1,this.json=!1}async execute(){const e=await s.VK.find(this.context.cwd,this.context.plugins,{strict:!1});return(await p.Pk.start({configuration:e,json:this.json,stdout:this.context.stdout},async t=>{if(e.invalid.size>0&&!this.json){for(const[r,n]of e.invalid)t.reportError(u.b.INVALID_CONFIGURATION_KEY,`Invalid configuration key "${r}" in ${n}`);t.reportSeparator()}if(this.json){const r=f.miscUtils.sortMap(e.settings.keys(),e=>e);for(const n of r){const r=e.settings.get(n),i=e.getSpecial(n,{hideSecrets:!0,getNativePaths:!0}),A=e.sources.get(n);this.verbose?t.reportJson({key:n,effective:i,source:A}):t.reportJson({key:n,effective:i,source:A,...r})}}else{const r=f.miscUtils.sortMap(e.settings.keys(),e=>e),n=r.reduce((e,t)=>Math.max(e,t.length),0),i={breakLength:1/0,colors:e.get("enableColors"),maxArrayLength:2};if(this.why||this.verbose){const A=r.map(t=>{const r=e.settings.get(t);if(!r)throw new Error(`Assertion failed: This settings ("${t}") should have been registered`);return[t,this.why?e.sources.get(t)||"<default>":r.description]}),o=A.reduce((e,[,t])=>Math.max(e,t.length),0);for(const[r,s]of A)t.reportInfo(null,`${r.padEnd(n," ")} ${s.padEnd(o," ")} ${(0,P.inspect)(e.getSpecial(r,{hideSecrets:!0,getNativePaths:!0}),i)}`)}else for(const A of r)t.reportInfo(null,`${A.padEnd(n," ")} ${(0,P.inspect)(e.getSpecial(A,{hideSecrets:!0,getNativePaths:!0}),i)}`)}})).exitCode()}}J.usage=d.Command.Usage({description:"display the current configuration",details:"\n This command prints the current active configuration settings.\n ",examples:[["Print the active configuration settings","$0 config"]]}),(0,a.gn)([d.Command.Boolean("-v,--verbose",{description:"Print the setting description on top of the regular key/value information"})],J.prototype,"verbose",void 0),(0,a.gn)([d.Command.Boolean("--why",{description:"Print the reason why a setting is set a particular way"})],J.prototype,"why",void 0),(0,a.gn)([d.Command.Boolean("--json",{description:"Format the output as an NDJSON stream"})],J.prototype,"json",void 0),(0,a.gn)([d.Command.Path("config")],J.prototype,"execute",null);var _,q=r(2401),z=r.n(q),W=r(15966);!function(e){e.HIGHEST="highest"}(_||(_={}));const V=new Set(Object.values(_)),X={highest:async(e,t,{resolver:r,fetcher:n,resolveOptions:i,fetchOptions:A})=>{const o=new Map;for(const[t,r]of e.storedResolutions){const n=e.storedDescriptors.get(t);if(void 0===n)throw new Error(`Assertion failed: The descriptor (${t}) should have been registered`);f.miscUtils.getSetWithDefault(o,n.identHash).add(r)}return Array.from(e.storedDescriptors.values(),async n=>{if(t.length&&!z().isMatch(f.structUtils.stringifyIdent(n),t))return null;const A=e.storedResolutions.get(n.descriptorHash);if(void 0===A)throw new Error(`Assertion failed: The resolution (${n.descriptorHash}) should have been registered`);const s=e.originalPackages.get(A);if(void 0===s)return null;if(!r.shouldPersistResolution(s,i))return null;const a=o.get(n.identHash);if(void 0===a)throw new Error(`Assertion failed: The resolutions (${n.identHash}) should have been registered`);if(1===a.size)return null;const c=[...a].map(t=>{const r=e.originalPackages.get(t);if(void 0===r)throw new Error(`Assertion failed: The package (${t}) should have been registered`);return r.reference}),g=await r.getSatisfying(n,c,i),l=null==g?void 0:g[0];if(void 0===l)return null;const u=l.locatorHash,h=e.originalPackages.get(u);if(void 0===h)throw new Error(`Assertion failed: The package (${u}) should have been registered`);return u===A?null:{descriptor:n,currentPackage:s,updatedPackage:h}})}};class Z extends c.BaseCommand{constructor(){super(...arguments),this.patterns=[],this.strategy=_.HIGHEST,this.check=!1,this.json=!1}async execute(){const e=await s.VK.find(this.context.cwd,this.context.plugins),{project:t}=await h.I.find(e,this.context.cwd),r=await g.C.find(e);let n=0;const i=await p.Pk.start({configuration:e,includeFooter:!1,stdout:this.context.stdout,json:this.json},async e=>{n=await async function({strategy:e,project:t,patterns:r,cache:n,report:i}){const{configuration:A}=t,o=new I.$,s=A.makeResolver(),a=A.makeFetcher(),c={cache:n,checksums:t.storedChecksums,fetcher:a,project:t,report:o,skipIntegrityCheck:!0},g={project:t,resolver:s,report:o,fetchOptions:c};return await i.startTimerPromise("Deduplication step",async()=>{const n=X[e],o=await n(t,r,{resolver:s,resolveOptions:g,fetcher:a,fetchOptions:c}),l=p.Pk.progressViaCounter(o.length);i.reportProgress(l);let h,d=0;switch(await Promise.all(o.map(e=>e.then(e=>{if(null===e)return;d++;const{descriptor:r,currentPackage:n,updatedPackage:o}=e;i.reportInfo(u.b.UNNAMED,`${f.structUtils.prettyDescriptor(A,r)} can be deduped from ${f.structUtils.prettyLocator(A,n)} to ${f.structUtils.prettyLocator(A,o)}`),i.reportJson({descriptor:f.structUtils.stringifyDescriptor(r),currentResolution:f.structUtils.stringifyLocator(n),updatedResolution:f.structUtils.stringifyLocator(o)}),t.storedResolutions.set(r.descriptorHash,o.locatorHash)}).finally(()=>l.tick()))),d){case 0:h="No packages";break;case 1:h="One package";break;default:h=d+" packages"}const C=f.formatUtils.pretty(A,e,f.formatUtils.Type.CODE);return i.reportInfo(u.b.UNNAMED,`${h} can be deduped using the ${C} strategy`),d})}({project:t,strategy:this.strategy,patterns:this.patterns,cache:r,report:e})});if(i.hasErrors())return i.exitCode();if(this.check)return n?1:0;return(await p.Pk.start({configuration:e,stdout:this.context.stdout,json:this.json},async e=>{await t.install({cache:r,report:e})})).exitCode()}}Z.schema=W.object().shape({strategy:W.string().test({name:"strategy",message:"${path} must be one of ${strategies}",params:{strategies:[...V].join(", ")},test:e=>V.has(e)})}),Z.usage=d.Command.Usage({description:"deduplicate dependencies with overlapping ranges",details:"\n Duplicates are defined as descriptors with overlapping ranges being resolved and locked to different locators. They are a natural consequence of Yarn's deterministic installs, but they can sometimes pile up and unnecessarily increase the size of your project.\n\n This command dedupes dependencies in the current project using different strategies (only one is implemented at the moment):\n\n - `highest`: Reuses (where possible) the locators with the highest versions. This means that dependencies can only be upgraded, never downgraded. It's also guaranteed that it never takes more than a single pass to dedupe the entire dependency tree.\n\n **Note:** Even though it never produces a wrong dependency tree, this command should be used with caution, as it modifies the dependency tree, which can sometimes cause problems when packages don't strictly follow semver recommendations. Because of this, it is recommended to also review the changes manually.\n\n If set, the `-c,--check` flag will only report the found duplicates, without persisting the modified dependency tree. If changes are found, the command will exit with a non-zero exit code, making it suitable for CI purposes.\n\n This command accepts glob patterns as arguments (if valid Idents and supported by [micromatch](https://github.com/micromatch/micromatch)). Make sure to escape the patterns, to prevent your own shell from trying to expand them.\n\n ### In-depth explanation:\n\n Yarn doesn't deduplicate dependencies by default, otherwise installs wouldn't be deterministic and the lockfile would be useless. What it actually does is that it tries to not duplicate dependencies in the first place.\n\n **Example:** If `foo@^2.3.4` (a dependency of a dependency) has already been resolved to `foo@2.3.4`, running `yarn add foo@*`will cause Yarn to reus