@vue-vine/eslint-parser 0.2.2 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -4285,7 +4285,7 @@ function parseFilter(code, locationCalculator, parserOptions) {
4285
4285
  function loadParser(parser) {
4286
4286
  if (parser !== "espree") {
4287
4287
  const __require = createRequire(
4288
- _url.fileURLToPath.call(void 0, import.meta.url)
4288
+ typeof __filename ? __filename : fileURLToPath2(import.meta.url)
4289
4289
  );
4290
4290
  return __require(parser);
4291
4291
  }
package/dist/index.mjs CHANGED
@@ -3879,7 +3879,6 @@ function replaceTokens(templateMeta, node, newTokens) {
3879
3879
  var import_first = __toESM(require_first());
3880
3880
  var import_last2 = __toESM(require_last());
3881
3881
  var import_sortedIndexBy = __toESM(require_sortedIndexBy());
3882
- import { fileURLToPath as fileURLToPath2 } from "node:url";
3883
3882
 
3884
3883
  // src/common/fix-locations.ts
3885
3884
  function fixLocations(result, locationCalculator) {
@@ -4285,7 +4284,7 @@ function parseFilter(code, locationCalculator, parserOptions) {
4285
4284
  function loadParser(parser) {
4286
4285
  if (parser !== "espree") {
4287
4286
  const __require = createRequire(
4288
- fileURLToPath2(import.meta.url)
4287
+ typeof __filename ? __filename : fileURLToPath(import.meta.url)
4289
4288
  );
4290
4289
  return __require(parser);
4291
4290
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-vine/eslint-parser",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "ESLint parser for Vue Vine",
5
5
  "author": "ShenQingchuan",
6
6
  "license": "MIT",
@@ -11,7 +11,6 @@
11
11
  "exports": {
12
12
  ".": {
13
13
  "dev": "./src/index.ts",
14
- "node": "./dist/index.js",
15
14
  "import": "./dist/index.mjs",
16
15
  "require": "./dist/index.js"
17
16
  },