New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-cusdis

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-cusdis - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0

dist/vue2.es.js

40

package.json
{
"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)
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