vue-zoomer
Advanced tools
Comparing version 0.3.9 to 0.4.0-beta.1
{ | ||
"name": "vue-zoomer", | ||
"version": "0.3.9", | ||
"version": "0.4.0-beta.1", | ||
"description": "Zoom the image or other thing with mouse or touch", | ||
"main": "dist/vue-zoomer.min.js", | ||
"module": "dist/vue-zoomer.esm.js", | ||
"main": "src/index.js", | ||
"module": "src/index.js", | ||
"scripts": { | ||
"dev-basic": "parcel demo/basic/index.html --port 5100", | ||
"dev-gallery": "parcel demo/gallery/index.html --port 5100", | ||
"clean": "rm -rf .cache && rm -rf dist", | ||
"build-basic": "parcel build demo/basic/index.html --public-url . --out-dir dist/demo --out-file basic.html", | ||
"build-gallery": "parcel build demo/gallery/index.html --public-url . --out-dir dist/demo --out-file gallery.html", | ||
"build-lib": "rollup -c", | ||
"build": "npm run clean && npm run build-basic && npm run build-gallery && npm run build-lib" | ||
"dev": "vite", | ||
"build": "vite build --base .", | ||
"serve": "http-server dist -c-1" | ||
}, | ||
@@ -25,21 +21,13 @@ "keywords": [ | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"vue": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@vue/component-compiler-utils": "^2.6.0", | ||
"lodash.debounce": "^4.0.8", | ||
"lodash.throttle": "^4.1.1", | ||
"parcel-bundler": "^1.12.4", | ||
"rollup": "^1.20.2", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-stylus-compiler": "^1.0.1", | ||
"rollup-plugin-terser": "^5.1.1", | ||
"rollup-plugin-vue": "^5.0.1", | ||
"stylus": "^0.54.5", | ||
"vue": "^2.6.7", | ||
"vue-hot-reload-api": "^2.3.3", | ||
"vue-template-compiler": "^2.6.7" | ||
"@vitejs/plugin-vue": "^1.0.4", | ||
"vite": "^2.0.0-beta.5" | ||
}, | ||
"files": [ | ||
"dist/**/*" | ||
"dist/**/*", | ||
"src/**/*" | ||
] | ||
} |
@@ -1,11 +0,10 @@ | ||
# vue-zoomer | ||
# vue-zoomer @next for Vue 3 | ||
> Zoom the image or other thing with mouse or touch | ||
## Demo | ||
## Usage (Vue 3 Differences) | ||
- [Single Image](https://unpkg.com/vue-zoomer/dist/demo/basic.html) | ||
- [Gallery](https://unpkg.com/vue-zoomer/dist/demo/gallery.html) | ||
Demo (built with [Vite](https://vitejs.dev/) 2): | ||
## Usage | ||
[Gallery](https://unpkg.com/vue-zoomer@next/dist/index.html) | ||
@@ -15,2 +14,21 @@ Install: | ||
```bash | ||
npm install vue-zoomer@next | ||
``` | ||
Import: | ||
```js | ||
import { createApp } from 'vue' | ||
import VueZoomer from 'vue-zoomer' | ||
const app = createApp(App) | ||
app.use(VueZoomer) | ||
app.mount('#app') | ||
``` | ||
## Usage ( Below are Vue 2) | ||
Install: | ||
```bash | ||
npm install vue-zoomer | ||
@@ -17,0 +35,0 @@ ``` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2
2
104
1
1
95188
1
11
397