Socket
Socket
Sign inDemoInstall

vue-inbrowser-compiler

Package Overview
Dependencies
Maintainers
3
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-inbrowser-compiler - npm Package Compare versions

Comparing version 4.56.5 to 4.60.0

6

CHANGELOG.md
# Change Log
## 4.60.0
### Patch Changes
- [`762db80e`](https://github.com/vue-styleguidist/vue-styleguidist/commit/762db80e7d8f58a347cfa7d9a92dda53b78acae6) Thanks [@elevatebart](https://github.com/elevatebart)! - fix: expose setup imported variables to template
## 4.56.5

@@ -4,0 +10,0 @@

8

package.json
{
"name": "vue-inbrowser-compiler",
"version": "4.56.5",
"version": "4.60.0",
"description": "compile vue single file components right in your browser",

@@ -30,7 +30,7 @@ "module": "lib/vue-inbrowser-compiler.esm.js",

"@types/buble": "0.20.1",
"@vue/test-utils": "1.3.3",
"@vue/test-utils": "1.3.4",
"@vue/compiler-sfc": "3",
"rollup": "2.79.1",
"tslib": "2.4.1",
"typescript": "4.9.4",
"tslib": "2.5.0",
"typescript": "4.9.5",
"vue": "2.7.14",

@@ -37,0 +37,0 @@ "vue3": "npm:vue@3",

@@ -116,2 +116,23 @@ import { expect, vi } from 'vitest'

})
it('exposes imported values in script setup', () => {
const sut = normalizeSfcComponent(`
<script setup>
import { Icon } from 'vue-icon'
</script>`, (( source: string, opts: any ) => {
const { descriptor } = parse(source, opts)
return descriptor
}) as any)
expect(evalFunction(sut).setup.toString()).toMatchInlineSnapshot(`
"setup(){
const vue_icon$0 = require('vue-icon');const Icon = vue_icon$0.Icon;
return {}
function defineProps(){}
function defineEmits(){}
function defineExpose(){}
}"
`)
})
})

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