/* Socket Lib - Built with esbuild */
var g=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var f=(t,n)=>{for(var e in n)g(t,e,{get:n[e],enumerable:!0})},l=(t,n,e,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of u(n))!m.call(t,i)&&i!==e&&g(t,i,{get:()=>n[i],enumerable:!(r=c(n,i))||r.enumerable});return t};var d=t=>l(g({},"__esModule",{value:!0}),t);var A={};f(A,{getRepoUrlDetails:()=>h,gitHubTagRefUrl:()=>b,gitHubTgzUrl:()=>k,isGitHubTgzSpec:()=>y,isGitHubUrlSpec:()=>S});module.exports=d(A);var o=require("../objects"),p=require("../strings");let s;function a(){return s===void 0&&(s=require("../external/npm-package-arg")),s}function h(t=""){const n=t.replace(/^.+github.com\//,"").split("/"),e=n[0]||"",r=n.length>1&&n[1]?.slice(0,-4)||"";return{user:e,project:r}}function b(t,n,e){return`https://api.github.com/repos/${t}/${n}/git/ref/tags/${e}`}function k(t,n,e){return`https://github.com/${t}/${n}/archive/${e}.tar.gz`}function y(t,n){let e;(0,o.isObjectObject)(t)?e=t:e=a()(t,n);const r=e;return r.type==="remote"&&!!r.saveSpec?.endsWith(".tar.gz")}function S(t,n){let e;(0,o.isObjectObject)(t)?e=t:e=a()(t,n);const r=e;return r.type==="git"&&r.hosted?.domain==="github.com"&&(0,p.isNonEmptyString)(r.gitCommittish)}0&&(module.exports={getRepoUrlDetails,gitHubTagRefUrl,gitHubTgzUrl,isGitHubTgzSpec,isGitHubUrlSpec});
//# sourceMappingURL=specs.js.map
