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

intact-vue

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

intact-vue - npm Package Compare versions

Comparing version 0.2.18 to 0.2.19

4

dist/intact.vue.js

@@ -654,3 +654,3 @@ (function (global, factory) {

this.parentVNode = this.vNode.parentVNode = this._prevActiveInstance.vNode;
this.parentVNode = this.vNode.parentVNode = this._prevActiveInstance && this._prevActiveInstance.vNode;
this.$el = _Intact.prototype.init.call(this, null, this.vNode);

@@ -682,3 +682,3 @@ this._vnode = {};

this.vNode = vNode;
this.parentVNode = this.vNode.parentVNode = this._prevActiveInstance.vNode;
this.parentVNode = this.vNode.parentVNode = this._prevActiveInstance && this._prevActiveInstance.vNode;
_Intact.prototype.update.call(this, lastVNode, vNode);

@@ -685,0 +685,0 @@

@@ -1,1 +0,1 @@

(function(t,e){typeof exports==="object"&&typeof module!=="undefined"?module.exports=e(require("vue"),require("intact/dist/intact")):typeof define==="function"&&define.amd?define(["vue","intact/dist/intact"],e):t.Intact=e(t.Vue,t.Intact)})(this,function(t,e){"use strict";t=t&&t.hasOwnProperty("default")?t["default"]:t;e=e&&e.hasOwnProperty("default")?e["default"]:e;var r=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var n=function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}};var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){t[n]=r[n]}}}return t};var o=function(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof e)}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}});if(e)Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e};var a=function(t,e){var r={};for(var n in t){if(e.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(t,n))continue;r[n]=t[n]}return r};var s=function(t,e){if(!t){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e&&(typeof e==="object"||typeof e==="function")?e:t};var u=e.Vdt.miss.h;var f=t.prototype.__patch__;var l=e.utils;var c=l.get;var p=l.set;function v(t){if(Array.isArray(t)){var e=[];t.forEach(function(t){e.push(d(t))});return e}return d(t)}function d(t){if(t==null)return t;var e=typeof t==="undefined"?"undefined":r(t);if(e==="string"||e==="number")return t;if(t.type)return t;if(j(t)){var n=t.componentOptions;return u(n.Ctor,h(t),null,null,t.key,t.ref)}if(t.text!==undefined){return t.text}return u(m,{vueVNode:t},null,g(t))}function h(t){var e=t.componentOptions;var r=t.data;var n=r.attrs;var i=e.Ctor.propTypes;var o={};if(n){for(var a in n){if(~["staticClass","class","style","staticStyle"].indexOf(a))continue;var s=n[a];if(i&&i[a]===Boolean&&s===""){s=true}o[a]=s}}o.className=g(t);o.style=I(t);if(t.key){o.key=t.key}var u=r.scopedSlots;if(u){var f=function t(e){o[e]=function(){return v(u[e].apply(this,arguments))}};for(var l in u){f(l)}}var c=r.model;if(c){o.value=c.value;o["v-model"]=c.expression}else if(r.directives){var p=r.directives;for(var d=0;d<p.length;d++){var h=p[d];if(h.name==="model"){o.value=h.value;o["v-model"]=h.expression;break}}}b(t,o);for(var _ in e.listeners){if(_==="input"){o["ev-$change:value"]=function(t,r){e.listeners.input(r)}}else{o["ev-"+_]=e.listeners[_]}}var m=t.slots||k(e.children);var A=y(m),O=A.children,N=A._blocks;o.children=O;if(o._blocks){Object.assign(o._blocks,N)}else{o._blocks=N}return o}function y(t){var e=t.default,r=a(t,["default"]);var n=void 0;if(r){n={};var i=function t(e){n[e]=function(){return v(r[e])}};for(var o in r){i(o)}}return{children:v(e),_blocks:n}}function _(t){function e(e){return t(e)}e.options={functional:true,render:function e(r,n){var o=n.parent.$data;var a=i({_context:{data:{get:function t(e){if(e!=null){return c(o,e)}else{return o}},set:function t(e,r){p(o,e,r)}}}},h({componentOptions:{Ctor:t,listeners:n.listeners},data:n.data,slots:n.slots()}));var s=t(a,true);if(Array.isArray(s)){throw new Error("Array children does not be supported.")}var u={};var f={attrs:u};for(var l in s.props){if(~["children","_context","className","style"].indexOf(l))continue;u[l]=s.props[l]}if(s.props.className){f.staticClass=s.props.className}if(s.props.style){f.staticStyle=s.props.style}return r(s.tag,f,s.props.children)}};e.cid="IntactFunctionalComponent";return e}var m=function(){function t(){n(this,t)}t.prototype.init=function t(e,r){this.destroyed=true;this._addProps(r);return f(null,r.props.vueVNode,false,false,this.parentDom)};t.prototype.update=function t(e,r){this._addProps(r);return f(e.props.vueVNode,r.props.vueVNode,false,false,this.parentDom)};t.prototype.destroy=function t(e){f(e.props.vueVNode,null)};t.prototype._addProps=function t(e){this.vdt={vNode:e};var r=e.props;var n=r.vueVNode;for(var i in r){if(i==="vueVNode")continue;if(!n.data)n.data={};var o=n.data;var a=r[i];if(i.substr(0,3)==="ev-"){if(!o.on)o.on={};o.on[i.substr(3)]=a}else{if(!o.attrs)o.attrs={};o.attrs[i]=a}}};return t}();function b(t,e){var r=t.data.ref;if(r){var n=t.context.$refs;var i=void 0;e.ref=function(e){if(e){i=e;if(t.data.refInFor){if(!Array.isArray(n)){n[r]=[i]}else if(n[r].indexOf(i)<0){n[r].push(i)}}else{n[r]=i}}else{if(Array.isArray(n[r])){var o=n[r].indexOf(i);if(~o){n[r].splice(o,1)}}else{n[r]=i=undefined}}}}}function g(t){var e=void 0;var r=t.data;if(r){if(r.staticClass){e=r.staticClass}if(r.class){if(!e){e=A(r.class)}else{e+=" "+A(r.class)}}}return e}function A(t){if(t==null)return"";if(Array.isArray(t)){return O(t)}if((typeof t==="undefined"?"undefined":r(t))==="object"){return N(t)}if(typeof t==="string"){return t}return""}function O(t){var e="";var r=void 0;for(var n=0;n<t.length;n++){if((r=A(t[n]))!=null&&r!==""){if(e)e+=" ";e+=r}}return e}function N(t){var e="";for(var r in t){if(t[r]){if(e)e+=" ";e+=r}}return e}function I(t){var e=void 0;var r=t.data;if(r){e=V(r.style);if(r.staticStyle){return Object.assign(r.staticStyle,e)}}return e}function V(t){if(!t)return t;if(Array.isArray(t)){return x(t)}if(typeof t==="string"){return C(t)}return t}function x(t){var e={};for(var r=0;r<t.length;r++){if(t[r]){Object.assign(e,t[r])}}return e}var $=Object.create(null);function C(t){var e=$[t];if(e)return e;var r={};var n=/;(?![^(]*\))/g;var i=/:(.+)/;t.split(n).forEach(function(t){if(t){var e=t.split(i);e.length>1&&(r[e[0].trim()]=e[1].trim())}});$[t]=r;return r}function j(t){var e=t.data;return e&&(e=e.hook)&&(e=e.init)&&t.componentOptions.Ctor.cid==="IntactVue"}function k(t){var e={};if(!t){return e}for(var r=0,n=t.length;r<n;r++){var i=t[r];var o=i.data;if(o&&o.attrs&&o.attrs.slot){delete o.attrs.slot}if(o&&o.slot!=null){var a=o.slot;var s=e[a]||(e[a]=[]);if(i.tag==="template"){s.push.apply(s,i.children||[])}else{s.push(i)}}else{(e.default||(e.default=[])).push(i)}}for(var u in e){if(e[u].every(w)){delete e[u]}}return e}function w(t){return t.isComment&&!t.asyncFactory||t.text===" "}var Q=t.prototype;var P=Q.init;var S=Q.$nextTick;var E=Q._updateFromParent;var T={};var M=void 0;var F=false;var q=function(t){o(e,t);function e(r){n(this,e);var i=r&&r._parentVnode;if(i){var o=d(i);var a=s(this,t.call(this,o.props));r.mounted=[a.mount];r._renderChildren=true;a.$options=r;a.$vnode=i;a._isVue=true;a.vNode=o;o.children=a}else{var a=s(this,t.call(this,r))}a._prevActiveInstance=T;T=a;return s(a)}e.prototype.init=function e(r,n){var i=this;var e=function e(){var o=t.prototype.init.call(i,r,n);T=i._prevActiveInstance;i._prevActiveInstance=null;return o};if(!this._isVue)return e();var o=F;if(!n){F=true}if(!F){M=this.mountedQueue}var a=e();F=o;return a};e.prototype.update=function e(r,n,i){var o=this;var e=function e(){o._prevActiveInstance=T;T=o;var a=t.prototype.update.call(o,r,n,i);T=o._prevActiveInstance;o._prevActiveInstance=null;return a};if(!this._isVue)return e();var a=F;if(!n&&!i&&this._updateCount===0){F=true}if(!F){M=this.mountedQueue}var s=e();F=a;return s};e.prototype.$mount=function e(r,n){this.__initMountedQueue();this.parentVNode=this.vNode.parentVNode=this._prevActiveInstance.vNode;this.$el=t.prototype.init.call(this,null,this.vNode);this._vnode={};var i=this.$options;var o=i._refElm;if(o){i._parentElm.replaceChild(this.$el,o)}else{i._parentElm.appendChild(this.$el)}this.__triggerMountedQueue();T=this._prevActiveInstance;this._prevActiveInstance=null};e.prototype.$forceUpdate=function e(){this.__initMountedQueue();this._prevActiveInstance=T;T=this;var r=d(this.$vnode);var n=this.vNode;r.children=this;this.vNode=r;this.parentVNode=this.vNode.parentVNode=this._prevActiveInstance.vNode;t.prototype.update.call(this,n,r);this.$options._renderChildren=true;var i=n.ref;var o=r.ref;if(i!==o){if(i){i(null)}if(o){o(this)}}this.__triggerMountedQueue();T=this._prevActiveInstance;this._prevActiveInstance=null};e.prototype.$destroy=function t(){this.destroy()};e.prototype.__initMountedQueue=function e(){this._shouldTrigger=false;if(!M){this._shouldTrigger=true;if(!this.mountedQueue){t.prototype._initMountedQueue.call(this)}M=this.mountedQueue}else{this.mountedQueue=M}};e.prototype.__triggerMountedQueue=function e(){if(this._shouldTrigger){t.prototype._triggerMountedQueue.call(this);M=null;this._shouldTrigger=false}};e.prototype.$on=function t(){};e.prototype.$off=function t(){};return e}(e);q.cid="IntactVue";q.options=Object.assign({},t.options);q.functionalWrapper=_;q.normalize=v;q.prototype.$nextTick=S;q.prototype._updateFromParent=E;return q});
(function(t,e){typeof exports==="object"&&typeof module!=="undefined"?module.exports=e(require("vue"),require("intact/dist/intact")):typeof define==="function"&&define.amd?define(["vue","intact/dist/intact"],e):t.Intact=e(t.Vue,t.Intact)})(this,function(t,e){"use strict";t=t&&t.hasOwnProperty("default")?t["default"]:t;e=e&&e.hasOwnProperty("default")?e["default"]:e;var r=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var n=function(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}};var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r){if(Object.prototype.hasOwnProperty.call(r,n)){t[n]=r[n]}}}return t};var o=function(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof e)}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}});if(e)Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e};var a=function(t,e){var r={};for(var n in t){if(e.indexOf(n)>=0)continue;if(!Object.prototype.hasOwnProperty.call(t,n))continue;r[n]=t[n]}return r};var s=function(t,e){if(!t){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e&&(typeof e==="object"||typeof e==="function")?e:t};var u=e.Vdt.miss.h;var f=t.prototype.__patch__;var l=e.utils;var c=l.get;var p=l.set;function v(t){if(Array.isArray(t)){var e=[];t.forEach(function(t){e.push(d(t))});return e}return d(t)}function d(t){if(t==null)return t;var e=typeof t==="undefined"?"undefined":r(t);if(e==="string"||e==="number")return t;if(t.type)return t;if(j(t)){var n=t.componentOptions;return u(n.Ctor,h(t),null,null,t.key,t.ref)}if(t.text!==undefined){return t.text}return u(m,{vueVNode:t},null,g(t))}function h(t){var e=t.componentOptions;var r=t.data;var n=r.attrs;var i=e.Ctor.propTypes;var o={};if(n){for(var a in n){if(~["staticClass","class","style","staticStyle"].indexOf(a))continue;var s=n[a];if(i&&i[a]===Boolean&&s===""){s=true}o[a]=s}}o.className=g(t);o.style=I(t);if(t.key){o.key=t.key}var u=r.scopedSlots;if(u){var f=function t(e){o[e]=function(){return v(u[e].apply(this,arguments))}};for(var l in u){f(l)}}var c=r.model;if(c){o.value=c.value;o["v-model"]=c.expression}else if(r.directives){var p=r.directives;for(var d=0;d<p.length;d++){var h=p[d];if(h.name==="model"){o.value=h.value;o["v-model"]=h.expression;break}}}b(t,o);for(var _ in e.listeners){if(_==="input"){o["ev-$change:value"]=function(t,r){e.listeners.input(r)}}else{o["ev-"+_]=e.listeners[_]}}var m=t.slots||k(e.children);var A=y(m),O=A.children,N=A._blocks;o.children=O;if(o._blocks){Object.assign(o._blocks,N)}else{o._blocks=N}return o}function y(t){var e=t.default,r=a(t,["default"]);var n=void 0;if(r){n={};var i=function t(e){n[e]=function(){return v(r[e])}};for(var o in r){i(o)}}return{children:v(e),_blocks:n}}function _(t){function e(e){return t(e)}e.options={functional:true,render:function e(r,n){var o=n.parent.$data;var a=i({_context:{data:{get:function t(e){if(e!=null){return c(o,e)}else{return o}},set:function t(e,r){p(o,e,r)}}}},h({componentOptions:{Ctor:t,listeners:n.listeners},data:n.data,slots:n.slots()}));var s=t(a,true);if(Array.isArray(s)){throw new Error("Array children does not be supported.")}var u={};var f={attrs:u};for(var l in s.props){if(~["children","_context","className","style"].indexOf(l))continue;u[l]=s.props[l]}if(s.props.className){f.staticClass=s.props.className}if(s.props.style){f.staticStyle=s.props.style}return r(s.tag,f,s.props.children)}};e.cid="IntactFunctionalComponent";return e}var m=function(){function t(){n(this,t)}t.prototype.init=function t(e,r){this.destroyed=true;this._addProps(r);return f(null,r.props.vueVNode,false,false,this.parentDom)};t.prototype.update=function t(e,r){this._addProps(r);return f(e.props.vueVNode,r.props.vueVNode,false,false,this.parentDom)};t.prototype.destroy=function t(e){f(e.props.vueVNode,null)};t.prototype._addProps=function t(e){this.vdt={vNode:e};var r=e.props;var n=r.vueVNode;for(var i in r){if(i==="vueVNode")continue;if(!n.data)n.data={};var o=n.data;var a=r[i];if(i.substr(0,3)==="ev-"){if(!o.on)o.on={};o.on[i.substr(3)]=a}else{if(!o.attrs)o.attrs={};o.attrs[i]=a}}};return t}();function b(t,e){var r=t.data.ref;if(r){var n=t.context.$refs;var i=void 0;e.ref=function(e){if(e){i=e;if(t.data.refInFor){if(!Array.isArray(n)){n[r]=[i]}else if(n[r].indexOf(i)<0){n[r].push(i)}}else{n[r]=i}}else{if(Array.isArray(n[r])){var o=n[r].indexOf(i);if(~o){n[r].splice(o,1)}}else{n[r]=i=undefined}}}}}function g(t){var e=void 0;var r=t.data;if(r){if(r.staticClass){e=r.staticClass}if(r.class){if(!e){e=A(r.class)}else{e+=" "+A(r.class)}}}return e}function A(t){if(t==null)return"";if(Array.isArray(t)){return O(t)}if((typeof t==="undefined"?"undefined":r(t))==="object"){return N(t)}if(typeof t==="string"){return t}return""}function O(t){var e="";var r=void 0;for(var n=0;n<t.length;n++){if((r=A(t[n]))!=null&&r!==""){if(e)e+=" ";e+=r}}return e}function N(t){var e="";for(var r in t){if(t[r]){if(e)e+=" ";e+=r}}return e}function I(t){var e=void 0;var r=t.data;if(r){e=V(r.style);if(r.staticStyle){return Object.assign(r.staticStyle,e)}}return e}function V(t){if(!t)return t;if(Array.isArray(t)){return x(t)}if(typeof t==="string"){return C(t)}return t}function x(t){var e={};for(var r=0;r<t.length;r++){if(t[r]){Object.assign(e,t[r])}}return e}var $=Object.create(null);function C(t){var e=$[t];if(e)return e;var r={};var n=/;(?![^(]*\))/g;var i=/:(.+)/;t.split(n).forEach(function(t){if(t){var e=t.split(i);e.length>1&&(r[e[0].trim()]=e[1].trim())}});$[t]=r;return r}function j(t){var e=t.data;return e&&(e=e.hook)&&(e=e.init)&&t.componentOptions.Ctor.cid==="IntactVue"}function k(t){var e={};if(!t){return e}for(var r=0,n=t.length;r<n;r++){var i=t[r];var o=i.data;if(o&&o.attrs&&o.attrs.slot){delete o.attrs.slot}if(o&&o.slot!=null){var a=o.slot;var s=e[a]||(e[a]=[]);if(i.tag==="template"){s.push.apply(s,i.children||[])}else{s.push(i)}}else{(e.default||(e.default=[])).push(i)}}for(var u in e){if(e[u].every(w)){delete e[u]}}return e}function w(t){return t.isComment&&!t.asyncFactory||t.text===" "}var Q=t.prototype;var P=Q.init;var S=Q.$nextTick;var E=Q._updateFromParent;var T={};var M=void 0;var F=false;var q=function(t){o(e,t);function e(r){n(this,e);var i=r&&r._parentVnode;if(i){var o=d(i);var a=s(this,t.call(this,o.props));r.mounted=[a.mount];r._renderChildren=true;a.$options=r;a.$vnode=i;a._isVue=true;a.vNode=o;o.children=a}else{var a=s(this,t.call(this,r))}a._prevActiveInstance=T;T=a;return s(a)}e.prototype.init=function e(r,n){var i=this;var e=function e(){var o=t.prototype.init.call(i,r,n);T=i._prevActiveInstance;i._prevActiveInstance=null;return o};if(!this._isVue)return e();var o=F;if(!n){F=true}if(!F){M=this.mountedQueue}var a=e();F=o;return a};e.prototype.update=function e(r,n,i){var o=this;var e=function e(){o._prevActiveInstance=T;T=o;var a=t.prototype.update.call(o,r,n,i);T=o._prevActiveInstance;o._prevActiveInstance=null;return a};if(!this._isVue)return e();var a=F;if(!n&&!i&&this._updateCount===0){F=true}if(!F){M=this.mountedQueue}var s=e();F=a;return s};e.prototype.$mount=function e(r,n){this.__initMountedQueue();this.parentVNode=this.vNode.parentVNode=this._prevActiveInstance&&this._prevActiveInstance.vNode;this.$el=t.prototype.init.call(this,null,this.vNode);this._vnode={};var i=this.$options;var o=i._refElm;if(o){i._parentElm.replaceChild(this.$el,o)}else{i._parentElm.appendChild(this.$el)}this.__triggerMountedQueue();T=this._prevActiveInstance;this._prevActiveInstance=null};e.prototype.$forceUpdate=function e(){this.__initMountedQueue();this._prevActiveInstance=T;T=this;var r=d(this.$vnode);var n=this.vNode;r.children=this;this.vNode=r;this.parentVNode=this.vNode.parentVNode=this._prevActiveInstance&&this._prevActiveInstance.vNode;t.prototype.update.call(this,n,r);this.$options._renderChildren=true;var i=n.ref;var o=r.ref;if(i!==o){if(i){i(null)}if(o){o(this)}}this.__triggerMountedQueue();T=this._prevActiveInstance;this._prevActiveInstance=null};e.prototype.$destroy=function t(){this.destroy()};e.prototype.__initMountedQueue=function e(){this._shouldTrigger=false;if(!M){this._shouldTrigger=true;if(!this.mountedQueue){t.prototype._initMountedQueue.call(this)}M=this.mountedQueue}else{this.mountedQueue=M}};e.prototype.__triggerMountedQueue=function e(){if(this._shouldTrigger){t.prototype._triggerMountedQueue.call(this);M=null;this._shouldTrigger=false}};e.prototype.$on=function t(){};e.prototype.$off=function t(){};return e}(e);q.cid="IntactVue";q.options=Object.assign({},t.options);q.functionalWrapper=_;q.normalize=v;q.prototype.$nextTick=S;q.prototype._updateFromParent=E;return q});
{
"name": "intact-vue",
"version": "0.2.18",
"version": "0.2.19",
"description": "A compatibility layer for running intact component in vue",

@@ -5,0 +5,0 @@ "main": "dist/intact.vue.js",

@@ -107,3 +107,3 @@ import Vue from 'vue';

this.parentVNode = this.vNode.parentVNode = this._prevActiveInstance.vNode;
this.parentVNode = this.vNode.parentVNode = this._prevActiveInstance && this._prevActiveInstance.vNode;
this.$el = super.init(null, this.vNode);

@@ -135,3 +135,3 @@ this._vnode = {};

this.vNode = vNode;
this.parentVNode = this.vNode.parentVNode = this._prevActiveInstance.vNode;
this.parentVNode = this.vNode.parentVNode = this._prevActiveInstance && this._prevActiveInstance.vNode;
super.update(lastVNode, vNode);

@@ -138,0 +138,0 @@

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