Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vssue

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vssue - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

dist/vssue.js

17

package.json
{
"name": "vssue",
"version": "0.3.1",
"version": "0.4.0",
"description": "A vue-powered issue-based comment plugin",
"license": "MIT",
"main": "dist/vssue.common.js",
"module": "dist/vssue.esm.js",
"browser": "dist/vssue.common.js",
"main": "dist/vssue.js",
"module": "dist/vssue.js",
"unpkg": "dist/vssue.github.min.js",

@@ -35,3 +34,3 @@ "types": "types/index.d.ts",

"dependencies": {
"@vssue/utils": "^0.3.1",
"@vssue/utils": "^0.4.0",
"github-markdown-css": "^2.10.0",

@@ -42,5 +41,5 @@ "vue": "^2.5.21",

"optionalDependencies": {
"@vssue/api-bitbucket-v2": "^0.3.1",
"@vssue/api-github-v3": "^0.3.1",
"@vssue/api-gitlab-v4": "^0.3.1"
"@vssue/api-bitbucket-v2": "^0.4.0",
"@vssue/api-github-v3": "^0.4.0",
"@vssue/api-gitlab-v4": "^0.4.0"
},

@@ -80,3 +79,3 @@ "devDependencies": {

},
"gitHead": "813ee621b7958d398f66cb2128bf083ed31b4496"
"gitHead": "1140d0da6e180055d97600b5060b44f29417ab53"
}

@@ -10,15 +10,42 @@ import { Vssue } from 'vssue'

installed: false,
install (Vue, options?: Partial<Vssue.Options>) {
if (Vue.prototype.$vssue) {
if (this.installed) {
return false
}
this.installed = true
const store: Vssue.GlobalStore = new Vue({
data: {
options,
Vue.component('Vssue', {
functional: true,
props: {
title: {
type: String,
required: false,
default: undefined,
},
issueId: {
type: [Number, String],
required: false,
default: undefined,
},
options: {
type: Object,
required: false,
default: undefined,
},
},
render (h, { data, props }) {
return h(VssueComponent, {
...data,
props: {
title: props.title,
issueId: props.issueId,
options: Object.assign({}, options, props.options),
},
})
},
})
Vue.prototype.$vssue = store
Vue.component('Vssue', VssueComponent)
},

@@ -25,0 +52,0 @@

@@ -6,3 +6,3 @@ import { Vue, Component, Watch } from 'vue-property-decorator'

@Component
class VssueStore extends Vue implements Vssue.LocalStore {
class VssueStore extends Vue implements Vssue.Store {
get version () {

@@ -74,3 +74,2 @@ return <string>process.env.VUE_APP_VERSION

this.$on('logout', this.handleLogout)
this.$on('post-comment', this.postComment)
}

@@ -142,2 +141,3 @@

issueId: issueId,
query: this.query,
}),

@@ -240,4 +240,2 @@ ])

// refresh comments after creation
await this.getComments()
return comment

@@ -244,0 +242,0 @@ } catch (e) {

@@ -21,2 +21,3 @@ import Vue, { PluginObject } from 'vue'

readonly version: string
installed: boolean
VssueComponent: Vssue.Component

@@ -27,7 +28,3 @@ }

export interface GlobalStore extends Vue {
options: Partial<Vssue.Options>
}
export interface LocalStore extends Vue {
export interface Store extends Vue {
readonly version: string

@@ -69,8 +66,2 @@ options: Vssue.Options

declare module 'vue/types/vue' {
export interface Vue {
$vssue?: Vssue.GlobalStore
}
}
export default Vssue

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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