vue-component-meta 1.8.19 → 1.8.20

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/out/index.js +1 -2
  2. package/package.json +4 -4
package/out/index.js CHANGED
@@ -336,7 +336,6 @@ ${vue_component_type_helpers_1.code}
336
336
  exports.baseCreate = baseCreate;
337
337
  function createSchemaResolvers(typeChecker, symbolNode, { rawType, schema: options, noDeclarations }, ts, core) {
338
338
  const visited = new Set();
339
- ;
340
339
  function shouldIgnore(subtype) {
341
340
  const name = typeChecker.typeToString(subtype);
342
341
  if (name === 'any') {
@@ -541,7 +540,7 @@ function readVueComponentDefaultProps(vueSourceFile, printer, ts, vueCompilerOpt
541
540
  return result;
542
541
  function scriptSetupWorker() {
543
542
  const descriptor = vueSourceFile.sfc;
544
- const scriptSetupRanges = descriptor.scriptSetupAst ? vue.parseScriptSetupRanges(ts, descriptor.scriptSetupAst, vueCompilerOptions) : undefined;
543
+ const scriptSetupRanges = descriptor.scriptSetup ? vue.parseScriptSetupRanges(ts, descriptor.scriptSetup.ast, vueCompilerOptions) : undefined;
545
544
  if (descriptor.scriptSetup && scriptSetupRanges?.props.withDefaults?.arg) {
546
545
  const defaultsText = descriptor.scriptSetup.content.substring(scriptSetupRanges.props.withDefaults.arg.start, scriptSetupRanges.props.withDefaults.arg.end);
547
546
  const ast = ts.createSourceFile('/tmp.' + descriptor.scriptSetup.lang, '(' + defaultsText + ')', ts.ScriptTarget.Latest);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-component-meta",
3
- "version": "1.8.19",
3
+ "version": "1.8.20",
4
4
  "main": "out/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -14,9 +14,9 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@volar/typescript": "~1.10.4",
17
- "@vue/language-core": "1.8.19",
17
+ "@vue/language-core": "1.8.20",
18
18
  "typesafe-path": "^0.2.2",
19
- "vue-component-type-helpers": "1.8.19"
19
+ "vue-component-type-helpers": "1.8.20"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "typescript": "*"
@@ -26,5 +26,5 @@
26
26
  "optional": true
27
27
  }
28
28
  },
29
- "gitHead": "2e17f3c9cfa827c71e1ed07331730b3ee2596b76"
29
+ "gitHead": "c5f0a7f2bec182880504e250fb3c8615a21ebd1e"
30
30
  }