@m2c2kit/build-helpers 0.3.22 → 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 +21 -21
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -23001,27 +23001,6 @@ class Mappings {
23001
23001
  let charInHiresBoundary = false;
23002
23002
 
23003
23003
  while (originalCharIndex < chunk.end) {
23004
- if (this.hires || first || sourcemapLocations.has(originalCharIndex)) {
23005
- const segment = [this.generatedCodeColumn, sourceIndex, loc.line, loc.column];
23006
-
23007
- if (this.hires === 'boundary') {
23008
- // in hires "boundary", group segments per word boundary than per char
23009
- if (wordRegex.test(original[originalCharIndex])) {
23010
- // for first char in the boundary found, start the boundary by pushing a segment
23011
- if (!charInHiresBoundary) {
23012
- this.rawSegments.push(segment);
23013
- charInHiresBoundary = true;
23014
- }
23015
- } else {
23016
- // for non-word char, end the boundary by pushing a segment
23017
- this.rawSegments.push(segment);
23018
- charInHiresBoundary = false;
23019
- }
23020
- } else {
23021
- this.rawSegments.push(segment);
23022
- }
23023
- }
23024
-
23025
23004
  if (original[originalCharIndex] === '\n') {
23026
23005
  loc.line += 1;
23027
23006
  loc.column = 0;
@@ -23030,6 +23009,27 @@ class Mappings {
23030
23009
  this.generatedCodeColumn = 0;
23031
23010
  first = true;
23032
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
+
23033
23033
  loc.column += 1;
23034
23034
  this.generatedCodeColumn += 1;
23035
23035
  first = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m2c2kit/build-helpers",
3
- "version": "0.3.22",
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.13",
25
+ "magic-string": "0.30.14",
26
26
  "rimraf": "6.0.1",
27
- "rollup": "4.27.3",
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",