New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vue-macros/volar

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue-macros/volar - npm Package Compare versions

Comparing version 0.9.6 to 0.9.7

9

dist/define-props-refs.js

@@ -19,12 +19,11 @@ // src/define-props-refs.ts

};
var REGEX = /(const\s*{.*?)((,\s*)?withDefaults)(.*?})/;
function rewriteImports(file) {
const idx = file.content.indexOf(
`const { defineProps, defineEmits, defineSlots, defineModel, defineOptions, withDefaults } = await import('vue');
`
const idx = file.content.findIndex(
(s) => typeof s === "string" && REGEX.test(s)
);
if (idx === -1)
return;
file.content[idx] = `const { defineProps, defineEmits, defineSlots, defineModel, defineOptions } = await import('vue');
`;
file.content[idx] = file.content[idx].replace(REGEX, "$1$4");
}
module.exports = plugin;
{
"name": "@vue-macros/volar",
"version": "0.9.6",
"version": "0.9.7",
"packageManager": "pnpm@8.3.1",

@@ -5,0 +5,0 @@ "description": "Volar plugin for Vue Macros.",

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