@teamscale/javascript-instrumenter 0.0.1-beta.52 → 0.0.1-beta.53

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.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamscale/javascript-instrumenter",
3
- "version": "0.0.1-beta.52",
3
+ "version": "0.0.1-beta.53",
4
4
  "description": "JavaScript coverage instrumenter with coverage forwarding to a collector process",
5
5
  "main": "dist/src/main.js",
6
6
  "bin": "dist/src/main.js",
@@ -7,7 +7,6 @@ exports.SourceMapFileReference = exports.TaskResult = exports.InstrumentationTas
7
7
  const typescript_optional_1 = require("typescript-optional");
8
8
  const commons_1 = require("@cqse/commons");
9
9
  const micromatch_1 = __importDefault(require("micromatch"));
10
- const path_1 = __importDefault(require("path"));
11
10
  /**
12
11
  * An abstract source map type.
13
12
  */
@@ -135,10 +134,10 @@ function normalizeGlobPattern(pattern) {
135
134
  return removeTrailingCurrentWorkingDir(pattern);
136
135
  }
137
136
  function normalizePath(toNormalize) {
138
- return removeTrailingCurrentWorkingDir(toNormalize);
137
+ return removeTrailingCurrentWorkingDir(toNormalize.replace(/\\/g, '/'));
139
138
  }
140
139
  function removeTrailingCurrentWorkingDir(removeFrom) {
141
- return removePrefix('webpack:///', removePrefix('.' + path_1.default.sep, removeFrom));
140
+ return removePrefix('webpack:///', removePrefix('./', removeFrom));
142
141
  }
143
142
  function removePrefix(prefix, removeFrom) {
144
143
  if (removeFrom.startsWith(prefix)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamscale/javascript-instrumenter",
3
- "version": "0.0.1-beta.52",
3
+ "version": "0.0.1-beta.53",
4
4
  "description": "JavaScript coverage instrumenter with coverage forwarding to a collector process",
5
5
  "main": "dist/src/main.js",
6
6
  "bin": "dist/src/main.js",