v-transform 2.3.2 → 2.3.3

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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "vt": "src/index.js"
5
5
  },
6
6
  "type": "module",
7
- "version": "2.3.2",
7
+ "version": "2.3.3",
8
8
  "main": "index.js",
9
9
  "scripts": {
10
10
  "clean": "npx rimraf test",
package/src/calibrator.js CHANGED
@@ -139,11 +139,8 @@ export async function calibrateTsData(data, name, types, pk) {
139
139
  )
140
140
  }
141
141
 
142
- const extra = {
143
- typeSign,
144
- types: sourceText,
145
- isNativeMap: !Array.isArray(data),
146
- }
142
+ types = sourceText.split(/.*@vt-types-end.*/i)[0]
143
+ const extra = { typeSign, types, isNativeMap: !Array.isArray(data) }
147
144
  return { data: cleanData, extra }
148
145
  }
149
146