@dcloudio/uni-cli-shared 3.0.0-alpha-3090920231208001 → 3.0.0-alpha-3090920231212001

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.
@@ -105,8 +105,9 @@ function locToStartAndEnd(source, loc) {
105
105
  return { start, end };
106
106
  }
107
107
  exports.locToStartAndEnd = locToStartAndEnd;
108
- function generateCodeFrame(source, start = 0, end = source.length) {
108
+ function generateCodeFrame(source, start = 0, end) {
109
109
  start = posToNumber(source, start);
110
+ end = end || start;
110
111
  // Split the content into individual lines but capture the newline sequence
111
112
  // that separated each line. This is important because the actual sequence is
112
113
  // needed to properly take into account the full line length for offset
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-alpha-3090920231208001",
3
+ "version": "3.0.0-alpha-3090920231212001",
4
4
  "description": "@dcloudio/uni-cli-shared",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,8 +25,8 @@
25
25
  "@babel/core": "^7.21.3",
26
26
  "@babel/parser": "^7.16.4",
27
27
  "@babel/types": "^7.20.7",
28
- "@dcloudio/uni-i18n": "3.0.0-alpha-3090920231208001",
29
- "@dcloudio/uni-shared": "3.0.0-alpha-3090920231208001",
28
+ "@dcloudio/uni-i18n": "3.0.0-alpha-3090920231212001",
29
+ "@dcloudio/uni-shared": "3.0.0-alpha-3090920231212001",
30
30
  "@intlify/core-base": "9.1.9",
31
31
  "@intlify/shared": "9.1.9",
32
32
  "@intlify/vue-devtools": "9.1.9",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
66
66
  "devDependencies": {
67
- "@dcloudio/uni-uts-v1": "3.0.0-alpha-3090920231208001",
67
+ "@dcloudio/uni-uts-v1": "3.0.0-alpha-3090920231212001",
68
68
  "@types/babel__core": "^7.1.19",
69
69
  "@types/debug": "^4.1.7",
70
70
  "@types/estree": "^0.0.51",