Socket
Socket
Sign inDemoInstall

vue-demi

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-demi - npm Package Compare versions

Comparing version 0.5.4 to 0.6.0-alpha.1

scripts/utils.js

2

lib/index.iife.js

@@ -34,3 +34,3 @@ ;(function (window) {

} else {
console.error('[vue-demi] Vue version ' + Vue.version + ' unsupported.')
console.error('[vue-demi] Vue version ' + Vue.version + ' is unsupported.')
}

@@ -37,0 +37,0 @@ } else {

@@ -16,3 +16,6 @@ import Vue from 'vue'

/**VCA-EXPORTS**/
export * from '@vue/composition-api'
/**VCA-EXPORTS**/
export {

@@ -19,0 +22,0 @@ Vue,

{
"name": "vue-demi",
"version": "0.5.4",
"version": "0.6.0-alpha.1",
"main": "lib/index.cjs.js",

@@ -9,4 +9,6 @@ "typings": "lib/index.d.ts",

"jsdelivr": "lib/index.iife.js",
"funding": "https://github.com/sponsors/antfu",
"repository": "https://github.com/antfu/vue-demi.git",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"sideEffects": false,
"license": "MIT",

@@ -28,3 +30,8 @@ "scripts": {

"vue-demi-switch": "bin/vue-demi-switch.js"
},
"devDependencies": {
"@vue/composition-api": "^1.0.0-beta.25",
"vue2": "^2.6.12",
"vue": "^3.0.5"
}
}

@@ -1,15 +0,7 @@

const switchVersion = require('./switch')
const { switchVersion, loadModule } = require('./utils')
function loadModule(name) {
try {
return require(name)
} catch (e) {
return undefined
}
}
const Vue = loadModule('vue')
if (!Vue || typeof Vue.version !== 'string') {
console.warn('[vue-demi] Vue is not detected in the dependencies. Please install Vue first.')
console.warn('[vue-demi] Vue is not found. Please run "npm install vue" to install.')
}

@@ -16,0 +8,0 @@ else if (Vue.version.startsWith('2.')) {

@@ -1,2 +0,2 @@

const switchVersion = require('./switch')
const { switchVersion } = require('./utils')

@@ -3,0 +3,0 @@ const version = process.argv[2]

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