@m2c2kit/build-helpers 0.3.21 → 0.3.23

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/dist/index.js +24 -21
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -5620,6 +5620,9 @@ let SourceMap$1 = class SourceMap {
5620
5620
  if (typeof properties.x_google_ignoreList !== 'undefined') {
5621
5621
  this.x_google_ignoreList = properties.x_google_ignoreList;
5622
5622
  }
5623
+ if (typeof properties.debugId !== 'undefined') {
5624
+ this.debugId = properties.debugId;
5625
+ }
5623
5626
  }
5624
5627
 
5625
5628
  toString() {
@@ -22998,27 +23001,6 @@ class Mappings {
22998
23001
  let charInHiresBoundary = false;
22999
23002
 
23000
23003
  while (originalCharIndex < chunk.end) {
23001
- if (this.hires || first || sourcemapLocations.has(originalCharIndex)) {
23002
- const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
23003
-
23004
- if (this.hires === 'boundary') {
23005
- // in hires "boundary", group segments per word boundary than per char
23006
- if (wordRegex.test(original[originalCharIndex])) {
23007
- // for first char in the boundary found, start the boundary by pushing a segment
23008
- if (!charInHiresBoundary) {
23009
- this.rawSegments.push(segment);
23010
- charInHiresBoundary = true;
23011
- }
23012
- } else {
23013
- // for non-word char, end the boundary by pushing a segment
23014
- this.rawSegments.push(segment);
23015
- charInHiresBoundary = false;
23016
- }
23017
- } else {
23018
- this.rawSegments.push(segment);
23019
- }
23020
- }
23021
-
23022
23004
  if (original[originalCharIndex] === '\n') {
23023
23005
  loc.line += 1;
23024
23006
  loc.column = 0;
@@ -23027,6 +23009,27 @@ class Mappings {
23027
23009
  this.generatedCodeColumn = 0;
23028
23010
  first = true;
23029
23011
  } else {
23012
+ if (this.hires || first || sourcemapLocations.has(originalCharIndex)) {
23013
+ const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
23014
+
23015
+ if (this.hires === 'boundary') {
23016
+ // in hires "boundary", group segments per word boundary than per char
23017
+ if (wordRegex.test(original[originalCharIndex])) {
23018
+ // for first char in the boundary found, start the boundary by pushing a segment
23019
+ if (!charInHiresBoundary) {
23020
+ this.rawSegments.push(segment);
23021
+ charInHiresBoundary = true;
23022
+ }
23023
+ } else {
23024
+ // for non-word char, end the boundary by pushing a segment
23025
+ this.rawSegments.push(segment);
23026
+ charInHiresBoundary = false;
23027
+ }
23028
+ } else {
23029
+ this.rawSegments.push(segment);
23030
+ }
23031
+ }
23032
+
23030
23033
  loc.column += 1;
23031
23034
  this.generatedCodeColumn += 1;
23032
23035
  first = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m2c2kit/build-helpers",
3
- "version": "0.3.21",
3
+ "version": "0.3.23",
4
4
  "description": "Utility functions for building m2c2kit apps",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -22,14 +22,14 @@
22
22
  "@types/semver": "7.5.8",
23
23
  "cpy": "10.1.0",
24
24
  "findup-sync": "5.0.0",
25
- "magic-string": "0.30.12",
25
+ "magic-string": "0.30.14",
26
26
  "rimraf": "6.0.1",
27
- "rollup": "4.24.4",
27
+ "rollup": "4.28.0",
28
28
  "rollup-plugin-copy": "3.5.0",
29
29
  "rollup-plugin-dts": "6.1.1",
30
30
  "rollup-plugin-esbuild": "6.1.1",
31
31
  "semver": "7.6.3",
32
- "typescript": "5.6.3"
32
+ "typescript": "5.7.2"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "npm run clean && tsc && rollup -c",