var W=Object.create;var l=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var A=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty;var D=(e,n)=>{for(var s in n)l(e,s,{get:n[s],enumerable:!0})},g=(e,n,s,t)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of A(n))!O.call(e,i)&&i!==s&&l(e,i,{get:()=>n[i],enumerable:!(t=b(n,i))||t.enumerable});return e};var y=(e,n,s)=>(s=e!=null?W(x(e)):{},g(n||!e||!e.__esModule?l(s,"default",{value:e,enumerable:!0}):s,e)),m=e=>g(l({},"__esModule",{value:!0}),e);var C={};D(C,{lint:()=>j,ruleType:()=>U});module.exports=m(C);var M=require("semver"),F=e=>typeof e=="object"&&e.hasOwnProperty("exceptions");var P=(e,n,s)=>{let d=!0,c=0,V=[],f=[];for(let p in e[n]){if(F(s)&&s.exceptions.includes(p))continue;let r=e[n][p];r.startsWith("^",0)||r.startsWith("~",0)||r.startsWith(">",0)||r.startsWith("<",0)||r.indexOf("*")!==-1?(d=!1,f.push(p)):V.push(p),c+=1}return{onlyAbsoluteVersionDetected:d,dependenciesChecked:c,dependenciesWithAbsoluteVersion:V,dependenciesWithoutAbsoluteVersion:f}},R=(e,n,s)=>{let{onlyAbsoluteVersionDetected:t,dependenciesChecked:i,dependenciesWithAbsoluteVersion:d,dependenciesWithoutAbsoluteVersion:c}=P(e,n,s);return{onlyAbsoluteVersionsDetected:i>0?t:!1,dependenciesWithAbsoluteVersion:d,dependenciesWithoutAbsoluteVersion:c}};var o=y(require("chalk")),h=y(require("log-symbols"));var a=class{constructor(n,s,t,i){this.lintId=n,this.severity=s,this.node=t,this.lintMessage=i}toString(){let n=this.severity==="error"?h.default.error:h.default.warning,s=o.default.cyan.bold(this.lintId),t=o.default.magenta.bold(this.node),i=this.severity==="error"?o.default.red.bold(this.lintMessage):o.default.yellow(this.lintMessage);return`${n} ${s} - node: ${t} - ${i}`}};var v="no-absolute-version-dependencies",u="dependencies",U="optionalObject",j=(e,n,s)=>{let t=R(e,u,s);return e.hasOwnProperty(u)&&t.onlyAbsoluteVersionsDetected?new a(v,n,u,`You are using an invalid version range. Please do not use absolute versions. Invalid ${u} include: ${t.dependenciesWithAbsoluteVersion.join(", ")}`):null};0&&(module.exports={lint,ruleType});
