@vue.ts/tsx-auto-props 1.0.0-beta.5 → 1.0.0-beta.6

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2022 Ray <https://github.com/so1ve>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Ray <https://github.com/so1ve>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/astro.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CpKD5F5B.js";
1
+ import { t as Options } from "./types-B166_Ghm.js";
2
2
 
3
3
  //#region src/astro.d.ts
4
4
  declare const _default: (options: Options) => {
package/dist/astro.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./src-B1zORQTI.js";
2
- import { vite_default } from "./vite-Cp2KufJW.js";
1
+ import "./src-BLupzsnk.js";
2
+ import { t as vite_default } from "./vite-C3xQUpBi.js";
3
3
 
4
4
  //#region src/astro.ts
5
5
  var astro_default = (options) => ({
@@ -0,0 +1,24 @@
1
+ //#region rolldown:runtime
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
+ key = keys[i];
11
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
+ get: ((k) => from[k]).bind(null, key),
13
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
+ });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ value: mod,
20
+ enumerable: true
21
+ }) : target, mod));
22
+
23
+ //#endregion
24
+ export { };
package/dist/esbuild.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CpKD5F5B.js";
1
+ import { t as Options } from "./types-B166_Ghm.js";
2
2
  import * as esbuild0 from "esbuild";
3
3
 
4
4
  //#region src/esbuild.d.ts
package/dist/esbuild.js CHANGED
@@ -1,4 +1,4 @@
1
- import { unpluginFactory } from "./src-B1zORQTI.js";
1
+ import { r as unpluginFactory } from "./src-BLupzsnk.js";
2
2
  import { createEsbuildPlugin } from "unplugin";
3
3
 
4
4
  //#region src/esbuild.ts
package/dist/farm.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CpKD5F5B.js";
1
+ import { t as Options } from "./types-B166_Ghm.js";
2
2
  import * as _farmfe_core0 from "@farmfe/core";
3
3
 
4
4
  //#region src/farm.d.ts
package/dist/farm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { unpluginFactory } from "./src-B1zORQTI.js";
1
+ import { r as unpluginFactory } from "./src-BLupzsnk.js";
2
2
  import { createFarmPlugin } from "unplugin";
3
3
 
4
4
  //#region src/farm.ts
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CpKD5F5B.js";
1
+ import { t as Options } from "./types-B166_Ghm.js";
2
2
  import * as unplugin0 from "unplugin";
3
3
  import { UnpluginFactory } from "unplugin";
4
4
 
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { src_default, unplugin, unpluginFactory } from "./src-B1zORQTI.js";
1
+ import { n as unplugin, r as unpluginFactory, t as src_default } from "./src-BLupzsnk.js";
2
2
 
3
3
  export { src_default as default, unplugin, unpluginFactory };
package/dist/nuxt.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CpKD5F5B.js";
1
+ import { t as Options } from "./types-B166_Ghm.js";
2
2
  import * as _nuxt_schema0 from "@nuxt/schema";
3
3
 
4
4
  //#region src/nuxt.d.ts
package/dist/nuxt.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./src-B1zORQTI.js";
2
- import { vite_default } from "./vite-Cp2KufJW.js";
3
- import { webpack_default } from "./webpack-BeA7aikW.js";
1
+ import "./src-BLupzsnk.js";
2
+ import { t as vite_default } from "./vite-C3xQUpBi.js";
3
+ import { t as webpack_default } from "./webpack-StSlOWc4.js";
4
4
  import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
5
5
 
6
6
  //#region src/nuxt.ts
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CpKD5F5B.js";
1
+ import { t as Options } from "./types-B166_Ghm.js";
2
2
  import * as rolldown0 from "rolldown";
3
3
 
4
4
  //#region src/rolldown.d.ts
package/dist/rolldown.js CHANGED
@@ -1,4 +1,4 @@
1
- import { unpluginFactory } from "./src-B1zORQTI.js";
1
+ import { r as unpluginFactory } from "./src-BLupzsnk.js";
2
2
  import { createRolldownPlugin } from "unplugin";
3
3
 
4
4
  //#region src/rolldown.ts
package/dist/rollup.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CpKD5F5B.js";
1
+ import { t as Options } from "./types-B166_Ghm.js";
2
2
  import * as rollup0 from "rollup";
3
3
 
4
4
  //#region src/rollup.d.ts
package/dist/rollup.js CHANGED
@@ -1,4 +1,4 @@
1
- import { unpluginFactory } from "./src-B1zORQTI.js";
1
+ import { r as unpluginFactory } from "./src-BLupzsnk.js";
2
2
  import { createRollupPlugin } from "unplugin";
3
3
 
4
4
  //#region src/rollup.ts
package/dist/rspack.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CpKD5F5B.js";
1
+ import { t as Options } from "./types-B166_Ghm.js";
2
2
 
3
3
  //#region src/rspack.d.ts
4
4
  declare const _default: (options?: Options | undefined) => RspackPluginInstance;
package/dist/rspack.js CHANGED
@@ -1,4 +1,4 @@
1
- import { unpluginFactory } from "./src-B1zORQTI.js";
1
+ import { r as unpluginFactory } from "./src-BLupzsnk.js";
2
2
  import { createRspackPlugin } from "unplugin";
3
3
 
4
4
  //#region src/rspack.ts
@@ -45,8 +45,7 @@ function transform(code, id) {
45
45
  language.traverseAst(ast, (node) => {
46
46
  if (!ts.isCallExpression(node)) return;
47
47
  const identifier = node.expression;
48
- const symbol = typeChecker.getSymbolAtLocation(identifier);
49
- if (symbol?.declarations?.some((d) => ts.isImportSpecifier(d) && (d.propertyName ?? d.name)?.text === DEFINE_COMPONENT)) {
48
+ if (typeChecker.getSymbolAtLocation(identifier)?.declarations?.some((d) => ts.isImportSpecifier(d) && (d.propertyName ?? d.name)?.text === DEFINE_COMPONENT)) {
50
49
  const arg = node.arguments[0];
51
50
  let setupFn;
52
51
  if (ts.isObjectLiteralExpression(arg)) {
@@ -80,8 +79,7 @@ const unpluginFactory = (options = {}) => {
80
79
  return {
81
80
  name: "@vue.ts/tsx-auto-props",
82
81
  buildStart() {
83
- const resolvedOptions$1 = resolveOptions(options);
84
- ensureLanguage(resolvedOptions$1.tsconfigPath);
82
+ ensureLanguage(resolveOptions(options).tsconfigPath);
85
83
  },
86
84
  transform(code, id) {
87
85
  if (!filter(id)) return;
@@ -93,4 +91,4 @@ const unplugin = /* @__PURE__ */ createUnplugin(unpluginFactory);
93
91
  var src_default = unplugin;
94
92
 
95
93
  //#endregion
96
- export { src_default, unplugin, unpluginFactory };
94
+ export { unplugin as n, unpluginFactory as r, src_default as t };
@@ -12,4 +12,4 @@ interface Options extends BaseOptions {
12
12
  }
13
13
  type ResolvedOptions = Required<Options>;
14
14
  //#endregion
15
- export { Options, ResolvedOptions };
15
+ export { ResolvedOptions as n, Options as t };
package/dist/types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { Options, ResolvedOptions } from "./types-CpKD5F5B.js";
1
+ import { n as ResolvedOptions, t as Options } from "./types-B166_Ghm.js";
2
2
  export { Options, ResolvedOptions };
package/dist/types.js CHANGED
@@ -0,0 +1 @@
1
+ export { };
@@ -1,8 +1,8 @@
1
- import { unpluginFactory } from "./src-B1zORQTI.js";
1
+ import { r as unpluginFactory } from "./src-BLupzsnk.js";
2
2
  import { createVitePlugin } from "unplugin";
3
3
 
4
4
  //#region src/vite.ts
5
5
  var vite_default = createVitePlugin(unpluginFactory);
6
6
 
7
7
  //#endregion
8
- export { vite_default };
8
+ export { vite_default as t };
package/dist/vite.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CpKD5F5B.js";
1
+ import { t as Options } from "./types-B166_Ghm.js";
2
2
  import * as vite0 from "vite";
3
3
 
4
4
  //#region src/vite.d.ts
package/dist/vite.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./src-B1zORQTI.js";
2
- import { vite_default } from "./vite-Cp2KufJW.js";
1
+ import "./src-BLupzsnk.js";
2
+ import { t as vite_default } from "./vite-C3xQUpBi.js";
3
3
 
4
4
  export { vite_default as default };
@@ -1,8 +1,8 @@
1
- import { unpluginFactory } from "./src-B1zORQTI.js";
1
+ import { r as unpluginFactory } from "./src-BLupzsnk.js";
2
2
  import { createWebpackPlugin } from "unplugin";
3
3
 
4
4
  //#region src/webpack.ts
5
5
  var webpack_default = createWebpackPlugin(unpluginFactory);
6
6
 
7
7
  //#endregion
8
- export { webpack_default };
8
+ export { webpack_default as t };
package/dist/webpack.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./types-CpKD5F5B.js";
1
+ import { t as Options } from "./types-B166_Ghm.js";
2
2
  import * as webpack0 from "webpack";
3
3
 
4
4
  //#region src/webpack.d.ts
package/dist/webpack.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./src-B1zORQTI.js";
2
- import { webpack_default } from "./webpack-BeA7aikW.js";
1
+ import "./src-BLupzsnk.js";
2
+ import { t as webpack_default } from "./webpack-StSlOWc4.js";
3
3
 
4
4
  export { webpack_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue.ts/tsx-auto-props",
3
- "version": "1.0.0-beta.5",
3
+ "version": "1.0.0-beta.6",
4
4
  "author": "Ray <i@mk1.io> (@so1ve)",
5
5
  "type": "module",
6
6
  "description": "Automatically add props definition for Vue 3 TSX.",
@@ -62,28 +62,28 @@
62
62
  "access": "public"
63
63
  },
64
64
  "dependencies": {
65
- "@nuxt/kit": "^4.0.2",
66
- "magic-string": "^0.30.17",
67
- "unplugin": "^2.3.5",
68
- "@vue.ts/language": "1.0.0-beta.5",
69
- "@vue.ts/shared": "1.0.0-beta.5"
65
+ "@nuxt/kit": "^4.2.0",
66
+ "magic-string": "^0.30.21",
67
+ "unplugin": "^2.3.10",
68
+ "@vue.ts/language": "1.0.0-beta.6",
69
+ "@vue.ts/shared": "1.0.0-beta.6"
70
70
  },
71
71
  "devDependencies": {
72
- "@nuxt/schema": "^4.0.2",
72
+ "@nuxt/schema": "^4.2.0",
73
73
  "rolldown": "1.0.0-beta.27",
74
- "rollup": "^4.46.2",
75
- "vite": "^7.0.4",
76
- "webpack": "^5.101.0"
74
+ "rollup": "^4.52.5",
75
+ "vite": "^7.1.12",
76
+ "webpack": "^5.102.1"
77
77
  },
78
78
  "peerDependencies": {
79
- "@farmfe/core": ">=1.7.10",
80
- "@nuxt/kit": "^4.0.2",
81
- "@nuxt/schema": "^4.0.2",
79
+ "@farmfe/core": ">=1.7.11",
80
+ "@nuxt/kit": "^4.2.0",
81
+ "@nuxt/schema": "^4.2.0",
82
82
  "esbuild": "*",
83
83
  "rolldown": "*",
84
- "rollup": "^4.46.2",
85
- "vite": ">=7.0.6",
86
- "webpack": "^5.101.0"
84
+ "rollup": "^4.52.5",
85
+ "vite": ">=7.1.12",
86
+ "webpack": "^5.102.1"
87
87
  },
88
88
  "peerDependenciesMeta": {
89
89
  "@farmfe/core": {