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

vue-autonumeric-directive

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-autonumeric-directive - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

package.json
{
"name": "vue-autonumeric-directive",
"version": "1.1.0",
"version": "1.1.1",
"description": "Vue directive plugin to assure number to be number",

@@ -5,0 +5,0 @@ "main": "dist/vue-autonumeric-directive.common.js",

@@ -55,2 +55,11 @@ /* @flow */

},
update(el, binding: VNodeDirective, vnode: VNode) {
if (el._autoNumericElement.valueOnFocus !== binding.value.bind) { // 通过代码直接修改了binding.value.bind会进入这个逻辑
let targetElement = checkElementType(el, vnode)
let oldValue = getVNodeValue(vnode)
let options = getOptions(binding, outerOptions)
el._autoNumericElement = new AutoNumeric(targetElement, oldValue, options.numricOptions)
}
},
})

@@ -57,0 +66,0 @@ }

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

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