Socket
Socket
Sign inDemoInstall

vue-demi

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-demi - npm Package Compare versions

Comparing version 0.13.7 to 0.13.8

21

lib/v2.7/index.d.ts
import Vue from 'vue'
import type { PluginFunction, PluginObject, VueConstructor, VNode, VNodeDirective } from 'vue'
import type { PluginFunction, PluginObject, VueConstructor, Directive, InjectionKey } from 'vue'

@@ -23,19 +23,2 @@ declare const isVue2: boolean

// #region createApp polyfill
export type DirectiveModifiers = Record<string, boolean>
export interface DirectiveBinding<V> extends Readonly<VNodeDirective> {
readonly modifiers: DirectiveModifiers
readonly value: V
readonly oldValue: V | null
}
export type DirectiveHook<T = any, Prev = VNode | null, V = any> = (el: T, binding: DirectiveBinding<V>, vnode: VNode, prevVNode: Prev) => void
export interface ObjectDirective<T = any, V = any> {
bind?: DirectiveHook<T, any, V>
inserted?: DirectiveHook<T, any, V>
update?: DirectiveHook<T, any, V>
componentUpdated?: DirectiveHook<T, any, V>
unbind?: DirectiveHook<T, any, V>
}
export type FunctionDirective<T = any, V = any> = DirectiveHook<T, any, V>
export type Directive<T = any, V = any> = ObjectDirective<T, V> | FunctionDirective<T, V>
export interface InjectionKey<T> extends Symbol {}
export interface App<T = any> {

@@ -48,3 +31,3 @@ config: VueConstructor['config']

directive(name: string, directive: Directive): this
provide<T>(key: InjectionKey<T> | symbol | string, value: T): this
provide<T>(key: InjectionKey<T> | string, value: T): this
mount: Vue['$mount']

@@ -51,0 +34,0 @@ unmount: Vue['$destroy']

2

package.json
{
"name": "vue-demi",
"version": "0.13.7",
"version": "0.13.8",
"engines": {

@@ -5,0 +5,0 @@ "node": ">=12"

@@ -217,2 +217,4 @@ <p align="center">

- [vue-rough-notation](https://github.com/Leecason/vue-rough-notation) - RoughNotation wrapper component for Vue 2 and 3.
- [vue-request](https://github.com/AttoJS/vue-request) - Vue composition API for data fetching, supports SWR, polling, error retry, cache request, pagination, etc.
- [vue3-lazyload](https://github.com/murongg/vue3-lazyload) - A vue3.x image lazyload plugin.
- [vue-codemirror6](https://github.com/logue/vue-codemirror6) - CodeMirror6 component for Vue2 and 3.

@@ -219,0 +221,0 @@ > open a PR to add your library ;)

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