@vue-macros/api
Advanced tools
Comparing version 0.5.1 to 0.6.0
@@ -167,3 +167,8 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
} | ||
function toRuntimeTypeString(types) { | ||
function toRuntimeTypeString(types, isProduction) { | ||
if (isProduction) { | ||
types = types.filter((t) => t === "Boolean" || t === "Function"); | ||
} | ||
if (types.length === 0) | ||
return void 0; | ||
return types.length > 1 ? `[${types.join(", ")}]` : types[0]; | ||
@@ -170,0 +175,0 @@ } |
@@ -181,4 +181,4 @@ import { MagicString, SFC } from '@vue-macros/common'; | ||
declare function attachNodeLoc(node: Node, newNode: Node): void; | ||
declare function toRuntimeTypeString(types: string[]): string; | ||
declare function toRuntimeTypeString(types: string[], isProduction?: boolean): string | undefined; | ||
export { ASTDefinition, AnalyzeResult, DefaultsASTRaw, DefineEmitsStatement, DefinePropsStatement, DefinitionKind, Emits, EmitsBase, Props, PropsBase, RuntimePropDefinition, TSEmits, TSExports, TSFile, TSProps, TSPropsMethod, TSPropsProperty, TSResolvedType, analyzeSFC, attachNodeLoc, handleTSEmitsDefinition, handleTSPropsDefinition, inferRuntimeType, toRuntimeTypeString }; |
@@ -167,3 +167,8 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
} | ||
function toRuntimeTypeString(types) { | ||
function toRuntimeTypeString(types, isProduction) { | ||
if (isProduction) { | ||
types = types.filter((t) => t === "Boolean" || t === "Function"); | ||
} | ||
if (types.length === 0) | ||
return void 0; | ||
return types.length > 1 ? `[${types.join(", ")}]` : types[0]; | ||
@@ -170,0 +175,0 @@ } |
import * as vite from 'vite'; | ||
import { ModuleNode } from 'vite'; | ||
import { PluginContext } from 'rollup'; | ||
import { ResolveTSFileIdImpl } from './ts.js'; | ||
import { PluginContext } from 'rollup'; | ||
import '@babel/types'; | ||
@@ -6,0 +6,0 @@ |
{ | ||
"name": "@vue-macros/api", | ||
"version": "0.5.1", | ||
"packageManager": "pnpm@7.30.3", | ||
"version": "0.6.0", | ||
"packageManager": "pnpm@8.3.1", | ||
"description": "General API for Vue Macros.", | ||
@@ -42,7 +42,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@babel/types": "^7.21.3", | ||
"@vue-macros/common": "~1.2.0" | ||
"@babel/types": "^7.21.4", | ||
"@vue-macros/common": "~1.3.0" | ||
}, | ||
"devDependencies": { | ||
"rollup": "^3.20.2" | ||
"rollup": "^3.21.0" | ||
}, | ||
@@ -49,0 +49,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
121012
3578
+ Added@vue-macros/common@1.3.3(transitive)
- Removed@vue-macros/common@1.2.0(transitive)
Updated@babel/types@^7.21.4
Updated@vue-macros/common@~1.3.0