index.cjs.map 1.8 KB

1
  1. {"version":3,"names":["normalizeESLintConfig","require","analyzeScope","baseParse","LocalClient","WorkerClient","client","exports","parse","code","options","parseForESLint","normalizedOptions","ast","scopeManager","visitorKeys","getVisitorKeys"],"sources":["../src/index.cjs"],"sourcesContent":["const { normalizeESLintConfig } = require(\"./configuration.cjs\");\nconst analyzeScope = require(\"./analyze-scope.cjs\");\nconst baseParse = require(\"./parse.cjs\");\n\nconst { LocalClient, WorkerClient } = require(\"./client.cjs\");\nconst client = new (USE_ESM ? WorkerClient : LocalClient)();\n\nexports.parse = function (code, options = {}) {\n return baseParse(code, normalizeESLintConfig(options), client);\n};\n\nexports.parseForESLint = function (code, options = {}) {\n const normalizedOptions = normalizeESLintConfig(options);\n const ast = baseParse(code, normalizedOptions, client);\n const scopeManager = analyzeScope(ast, normalizedOptions, client);\n\n return { ast, scopeManager, visitorKeys: client.getVisitorKeys() };\n};\n"],"mappings":"AAAA,MAAM;EAAEA;AAAF,IAA4BC,OAAO,CAAC,qBAAD,CAAzC;;AACA,MAAMC,YAAY,GAAGD,OAAO,CAAC,qBAAD,CAA5B;;AACA,MAAME,SAAS,GAAGF,OAAO,CAAC,aAAD,CAAzB;;AAEA,MAAM;EAAEG,WAAF;EAAeC;AAAf,IAAgCJ,OAAO,CAAC,cAAD,CAA7C;;AACA,MAAMK,MAAM,GAAG,IAA8BF,WAA9B,EAAf;;AAEAG,OAAO,CAACC,KAAR,GAAgB,UAAUC,IAAV,EAAgBC,OAAO,GAAG,EAA1B,EAA8B;EAC5C,OAAOP,SAAS,CAACM,IAAD,EAAOT,qBAAqB,CAACU,OAAD,CAA5B,EAAuCJ,MAAvC,CAAhB;AACD,CAFD;;AAIAC,OAAO,CAACI,cAAR,GAAyB,UAAUF,IAAV,EAAgBC,OAAO,GAAG,EAA1B,EAA8B;EACrD,MAAME,iBAAiB,GAAGZ,qBAAqB,CAACU,OAAD,CAA/C;EACA,MAAMG,GAAG,GAAGV,SAAS,CAACM,IAAD,EAAOG,iBAAP,EAA0BN,MAA1B,CAArB;EACA,MAAMQ,YAAY,GAAGZ,YAAY,CAACW,GAAD,EAAMD,iBAAN,EAAyBN,MAAzB,CAAjC;EAEA,OAAO;IAAEO,GAAF;IAAOC,YAAP;IAAqBC,WAAW,EAAET,MAAM,CAACU,cAAP;EAAlC,CAAP;AACD,CAND"}