Comparing version 1.0.1 to 2.0.0
{ | ||
"name": "vue-cusdis", | ||
"version": "1.0.1", | ||
"license": "MIT", | ||
"version": "2.0.0", | ||
"files": [ | ||
"dist" | ||
"dist/*.js" | ||
], | ||
"main": "./dist/vue-cusdis.umd.js", | ||
"module": "./dist/vue-cusdis.es.js", | ||
"exports": { | ||
".": { | ||
"import": "./dist/vue-cusdis.es.js", | ||
"require": "./dist/vue-cusdis.umd.js" | ||
} | ||
}, | ||
"main": "dist/VueCusdis.umd.js", | ||
"module": "dist/VueCusdis.es.js", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vue-tsc --noEmit && vite build", | ||
"serve": "vite preview" | ||
"build": "rm -rf dist && npm run build:3 && npm run build:2", | ||
"serve": "vite preview", | ||
"build:3": "vite build --config vite.library.config.js --emptyOutDir false", | ||
"build:2": "vite build --config vite.library.vue2.config.js --emptyOutDir false", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"dependencies": { | ||
"cusdis": "^1.1.0", | ||
"vue": "^3.0.5" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^14.14.41", | ||
"@vitejs/plugin-vue": "^1.2.1", | ||
"@vitejs/plugin-vue": "^1.2.2", | ||
"@vue/compiler-sfc": "^3.0.5", | ||
"typescript": "^4.1.3", | ||
"vite": "^2.1.5", | ||
"vue-tsc": "^0.0.24" | ||
"vite": "^2.2.3", | ||
"vue": "^3.0.5", | ||
"vue-router": "^4.0.6" | ||
}, | ||
"release": { | ||
"branches": [ | ||
"main" | ||
] | ||
} | ||
} |
@@ -1,44 +0,67 @@ | ||
# Vue Cusdis SDK | ||
React Cusdis: https://github.com/Cusdis/sdk/tree/master/packages/react-cusdis | ||
# vue-cusdis | ||
```console | ||
npm i @evillt/vue-cusdis | ||
``` | ||
$ npm i vue-cusdis | ||
``` | ||
## Usage | ||
```ts | ||
import { defineComponent } from 'vue' | ||
import { VueCusdis } from 'vue-cusdis' | ||
```html | ||
<template> | ||
<vue-cusdis | ||
:attrs="{ | ||
host: 'https://cusdis.com', | ||
appId: 'APP_ID', | ||
pageId: 'PAGE_ID', | ||
pageTitle: 'PAGE_TITLE', | ||
pageUrl: 'PAGE_URL' | ||
}" | ||
></vue-cusdis> | ||
</template> | ||
export default defineComponent({ | ||
name: 'App', | ||
components: { VueCusdis }, | ||
data() { | ||
return { | ||
attrs: { | ||
host: 'https://cusdis.com', | ||
appId: 'APP_ID', | ||
pageId: 'PAGE_ID', | ||
pageTitle: 'PAGE_TITLE', | ||
pageUrl: 'PAGE_URL' | ||
} | ||
} | ||
<script> | ||
// For Vue 3 | ||
import VueCusdis from '@evillt/vue-cusdis' | ||
// For Vue 2 | ||
import VueCusdis from '@evillt/vue-cusdis/dist/vue2.es' | ||
export default { | ||
components: { VueCusdis }, | ||
} | ||
template: `<vue-cusdis :attrs="attrs">` | ||
}) | ||
</script> | ||
``` | ||
## props | ||
### attrs | ||
- Type: `Object` | ||
Cusdis SDK attributes: https://cusdis.com/doc#/advanced/sdk | ||
### lang | ||
- Type: `String` | ||
For i18n, Available languages: https://cusdis.com/doc#/advanced/i18n | ||
## BREAKING CHANGES | ||
In `v2.0.0`, we rename the filename for vue2 version. Just make this change: | ||
```diff | ||
- import VueCusdis from '@evillt/vue-cusdis/dist/V2.es' | ||
+ import VueCusdis from '@evillt/vue-cusdis/dist/vue2.es' | ||
``` | ||
### props | ||
We thought `V2.es` was misleading. | ||
#### attrs | ||
## Contributors | ||
Cusdis SDK attributs: https://cusdis.com/doc#/advanced/sdk | ||
- [Frost Ming](https://github.com/frostming) | ||
# License | ||
## License | ||
MIT | ||
# Contributor | ||
[@frostming](https://github.com/frostming) |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
8670
0
5
6
28
68
1
- Removedcusdis@^1.1.0
- Removedvue@^3.0.5
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/parser@7.26.9(transitive)
- Removed@babel/types@7.26.9(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@vue/compiler-core@3.5.13(transitive)
- Removed@vue/compiler-dom@3.5.13(transitive)
- Removed@vue/compiler-sfc@3.5.13(transitive)
- Removed@vue/compiler-ssr@3.5.13(transitive)
- Removed@vue/reactivity@3.5.13(transitive)
- Removed@vue/runtime-core@3.5.13(transitive)
- Removed@vue/runtime-dom@3.5.13(transitive)
- Removed@vue/server-renderer@3.5.13(transitive)
- Removed@vue/shared@3.5.13(transitive)
- Removedcsstype@3.1.3(transitive)
- Removedcusdis@1.1.1(transitive)
- Removedentities@4.5.0(transitive)
- Removedestree-walker@2.0.2(transitive)
- Removedmagic-string@0.30.17(transitive)
- Removednanoid@3.3.8(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpostcss@8.5.3(transitive)
- Removedsource-map-js@1.2.1(transitive)
- Removedvue@3.5.13(transitive)