Comparing version 0.5.4 to 0.6.0-alpha.1
@@ -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] |
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
11103
207
3