vue-honeypot
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -1,8 +0,8 @@ | ||
import { openBlock as d, createElementBlock as p, withDirectives as u, createElementVNode as s, vModelText as c } from "vue"; | ||
const f = (e, t) => { | ||
import { openBlock as r, createElementBlock as d, withDirectives as p, createElementVNode as i, vModelText as u } from "vue"; | ||
const c = (e, t) => { | ||
const o = e.__vccOpts || e; | ||
for (const [a, i] of t) | ||
o[a] = i; | ||
for (const [l, a] of t) | ||
o[l] = a; | ||
return o; | ||
}, h = { | ||
}, f = { | ||
data: () => ({ value: "" }), | ||
@@ -17,3 +17,3 @@ methods: { | ||
} | ||
}, m = { style: { | ||
}, h = { style: { | ||
position: "absolute", | ||
@@ -26,3 +26,3 @@ top: 0, | ||
opacity: 0 | ||
} }, v = /* @__PURE__ */ s( | ||
} }, m = /* @__PURE__ */ i( | ||
"span", | ||
@@ -34,9 +34,9 @@ null, | ||
); | ||
function y(e, t, o, a, i, _) { | ||
return d(), p("label", m, [ | ||
v, | ||
u(s( | ||
function v(e, t, o, l, a, y) { | ||
return r(), d("label", h, [ | ||
m, | ||
p(i( | ||
"input", | ||
{ | ||
"onUpdate:modelValue": t[0] || (t[0] = (r) => e.value = r), | ||
"onUpdate:modelValue": t[0] || (t[0] = (s) => e.value = s), | ||
autocomplete: "off", | ||
@@ -50,13 +50,11 @@ tabindex: "-1", | ||
), [ | ||
[c, e.value] | ||
[u, e.value] | ||
]) | ||
]); | ||
} | ||
const l = /* @__PURE__ */ f(h, [["render", y]]), n = (e) => { | ||
n.installed || (n.installed = !0, e.component("VueHoneypot", l)); | ||
}; | ||
l.install = n; | ||
typeof window < "u" && (window.VueHoneypot = l); | ||
const n = /* @__PURE__ */ c(f, [["render", v]]); | ||
n.install = (e) => e.component("VueHoneypot", n); | ||
typeof window < "u" && (window.VueHoneypot = n); | ||
export { | ||
l as default | ||
n as default | ||
}; |
@@ -1,1 +0,1 @@ | ||
var Lib=function(t){"use strict";const r=(e,n)=>{const a=e.__vccOpts||e;for(const[i,s]of n)a[i]=s;return a},d={data:()=>({value:""}),methods:{validate(){if(this.value)throw new Error("Looks like you are a bot. You have filled out the legendary honeypot field!")}}},c={style:{position:"absolute",top:0,left:0,zIndex:-1,width:0,height:0,opacity:0}},p=t.createElementVNode("span",null,"Name",-1);function u(e,n,a,i,s,h){return t.openBlock(),t.createElementBlock("label",c,[p,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=f=>e.value=f),autocomplete:"off",tabindex:"-1",type:"text"},null,512),[[t.vModelText,e.value]])])}const o=r(d,[["render",u]]),l=e=>{l.installed||(l.installed=!0,e.component("VueHoneypot",o))};return o.install=l,typeof window<"u"&&(window.VueHoneypot=o),o}(Vue); | ||
var Lib=function(t){"use strict";const r=(e,n)=>{const l=e.__vccOpts||e;for(const[a,i]of n)l[a]=i;return l},s={data:()=>({value:""}),methods:{validate(){if(this.value)throw new Error("Looks like you are a bot. You have filled out the legendary honeypot field!")}}},d={style:{position:"absolute",top:0,left:0,zIndex:-1,width:0,height:0,opacity:0}},c=t.createElementVNode("span",null,"Name",-1);function p(e,n,l,a,i,f){return t.openBlock(),t.createElementBlock("label",d,[c,t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=u=>e.value=u),autocomplete:"off",tabindex:"-1",type:"text"},null,512),[[t.vModelText,e.value]])])}const o=r(s,[["render",p]]);return o.install=e=>e.component("VueHoneypot",o),typeof window<"u"&&(window.VueHoneypot=o),o}(Vue); |
{ | ||
"name": "vue-honeypot", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "A simple honeypot component for Vue.js.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
9827
59