ember-eslint-parser
Advanced tools
Comparing version 0.5.7 to 0.5.8
{ | ||
"name": "ember-eslint-parser", | ||
"version": "0.5.7", | ||
"version": "0.5.8", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -12,5 +12,8 @@ const ContentTag = require('content-tag'); | ||
try { | ||
const path = require.resolve('@typescript-eslint/parser'); | ||
const parserPath = require.resolve('@typescript-eslint/parser'); | ||
// eslint-disable-next-line n/no-unpublished-require | ||
TypescriptScope = require('@typescript-eslint/scope-manager', { paths: [path] }); | ||
const scopeManagerPath = require.resolve('@typescript-eslint/scope-manager', { | ||
paths: [parserPath], | ||
}); | ||
TypescriptScope = require(scopeManagerPath); | ||
} catch { | ||
@@ -17,0 +20,0 @@ // not available |
@@ -8,5 +8,6 @@ const fs = require('node:fs'); | ||
try { | ||
const tsPath = require.resolve('@typescript-eslint/parser'); | ||
const parserPath = require.resolve('@typescript-eslint/parser'); | ||
// eslint-disable-next-line n/no-unpublished-require | ||
const ts = require('typescript', { paths: [tsPath] }); | ||
const tsPath = require.resolve('typescript', { paths: [parserPath] }); | ||
const ts = require(tsPath); | ||
typescriptParser = require('@typescript-eslint/parser'); | ||
@@ -13,0 +14,0 @@ patchTs = function patchTs() { |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
35035
971
2