Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vue-macros/api

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue-macros/api - npm Package Compare versions

Comparing version 0.5.1 to 0.6.0

7

./dist/index.js

@@ -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 @@ }

2

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc