@tsslint/core 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +15 -2
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -4,7 +4,20 @@ exports.applyTextChanges = exports.combineCodeFixes = exports.createLinter = voi
4
4
  const ErrorStackParser = require("error-stack-parser");
5
5
  function createLinter(ctx, config, withStack) {
6
6
  if (withStack) {
7
- require('source-map-support').install();
7
+ require('source-map-support').install({
8
+ retrieveFile(path) {
9
+ // monkey-fix, refs: https://github.com/typescript-eslint/typescript-eslint/issues/9352
10
+ if (path.replace(/\\/g, '/').includes('/@typescript-eslint/eslint-plugin/dist/rules/') && path.endsWith('.js.map')) {
11
+ return JSON.stringify({
12
+ version: 3,
13
+ sources: [],
14
+ sourcesContent: [],
15
+ mappings: '',
16
+ names: [],
17
+ });
18
+ }
19
+ },
20
+ });
8
21
  }
9
22
  const ts = ctx.typescript;
10
23
  const fileFixes = new Map();
@@ -134,7 +147,7 @@ function createLinter(ctx, config, withStack) {
134
147
  file: stackFile,
135
148
  start: pos,
136
149
  length: 0,
137
- messageText: ' at ' + stack.functionName,
150
+ messageText: 'at ' + stack.functionName,
138
151
  });
139
152
  }
140
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsslint/core",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -16,7 +16,7 @@
16
16
  "source-map-support": "^0.5.21"
17
17
  },
18
18
  "devDependencies": {
19
- "@tsslint/config": "1.0.4"
19
+ "@tsslint/config": "1.0.5"
20
20
  },
21
- "gitHead": "97aa785e584757ed01f65a5bd838c468b0240788"
21
+ "gitHead": "ee85483f0611f1005a3f49599575d1a7069c401a"
22
22
  }