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
7
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 3.0.16 to 3.0.17

67

dist/index.cjs.dev.js

@@ -8,2 +8,3 @@ 'use strict';

var Vue = require('vue');
var intactShared = require('intact-shared');

@@ -14,20 +15,2 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

function isNullOrUndefined(o) {
return o === null || o === undefined;
}
var toString = Object.prototype.toString;
var isArray = Array.isArray || function (arr) {
return toString.call(arr) === '[object Array]';
};
function isStringOrNumber(o) {
var type = typeof o;
return type === 'string' || type === 'number';
}
var hasOwn = Object.prototype.hasOwnProperty;
var EMPTY_OBJ = {};
{
Object.freeze(EMPTY_OBJ);
}
var noop = function () { };
var _textVNode = Vue__default["default"].prototype._v('');

@@ -175,7 +158,7 @@ var VueVNode = _textVNode.constructor;

function normalize(vnode) {
if (isNullOrUndefined(vnode))
if (intactShared.isNullOrUndefined(vnode))
return vnode;
if (isBoolean(vnode))
return String(vnode);
if (isStringOrNumber(vnode) || isIntactVNode(vnode))
if (intactShared.isStringOrNumber(vnode) || isIntactVNode(vnode))
return vnode;

@@ -201,6 +184,6 @@ if (vnode.text !== undefined) {

var loop = function (vnodes) {
if (isArray(vnodes)) {
if (intactShared.isArray(vnodes)) {
var ret_1 = [];
vnodes.forEach(function (vnode) {
if (isArray(vnode)) {
if (intactShared.isArray(vnode)) {
ret_1.push.apply(ret_1, loop(vnode));

@@ -217,3 +200,3 @@ }

var ret = loop(vnodes);
if (isArray(ret)) {
if (intactShared.isArray(ret)) {
var l = ret.length;

@@ -236,3 +219,3 @@ return l === 0 ? undefined : l === 1 ? ret[0] : ret;

var camelizedKey = camelize(key);
if (hasOwn.call(propTypes, camelizedKey)) {
if (intactShared.hasOwn.call(propTypes, camelizedKey)) {
value = normalizeBoolean(propTypes, key, camelizedKey, value);

@@ -305,3 +288,3 @@ key = camelizedKey;

// value contains Boolean
isArray(tmp) && tmp.indexOf(Boolean) > -1 ||
intactShared.isArray(tmp) && tmp.indexOf(Boolean) > -1 ||
(tmp = tmp.type) && (

@@ -311,3 +294,3 @@ // value.type is Boolean

// value.type contains Boolean
isArray(tmp) && tmp.indexOf(Boolean) > -1))) &&
intactShared.isArray(tmp) && tmp.indexOf(Boolean) > -1))) &&
(value === '' || value === key)) {

@@ -323,3 +306,3 @@ value = true;

var value = listeners[key];
var cb = isArray(value) ?
var cb = intactShared.isArray(value) ?
function (v) {

@@ -409,3 +392,3 @@ value.forEach(function (value) { return value(v); });

if (data.refInFor) {
if (!isArray(value)) {
if (!intactShared.isArray(value)) {
refs[ref] = [i];

@@ -422,3 +405,3 @@ }

else {
if (isArray(value)) {
if (intactShared.isArray(value)) {
var index = value.indexOf(i);

@@ -448,6 +431,6 @@ if (~index) {

function normalizeKey(data, vnode, props) {
if (!isNullOrUndefined(data.key)) {
if (!intactShared.isNullOrUndefined(data.key)) {
props.key = data.key;
}
else if (!isNullOrUndefined(vnode.key)) {
else if (!intactShared.isNullOrUndefined(vnode.key)) {
props.key = vnode.key;

@@ -503,5 +486,5 @@ }

function stringifyClass(className) {
if (isNullOrUndefined(className))
if (intactShared.isNullOrUndefined(className))
return '';
if (isArray(className)) {
if (intactShared.isArray(className)) {
return stringifyArray(className);

@@ -560,3 +543,3 @@ }

function getStyleBinding(style) {
if (isArray(style)) {
if (intactShared.isArray(style)) {
return toObject(style);

@@ -609,3 +592,3 @@ }

var vNode = Component(_props, true);
if (isArray(vNode)) {
if (intactShared.isArray(vNode)) {
return vNode.map(function (vNode) { return toVueVNode(h, vNode, props); });

@@ -622,3 +605,3 @@ }

var __props = { attrs: attrs };
var vNodeProps = vNode.props || EMPTY_OBJ;
var vNodeProps = vNode.props || intactShared.EMPTY_OBJ;
for (var key in vNodeProps) {

@@ -638,7 +621,7 @@ if (~['children', '_context', 'className', 'style', 'ref', 'key'].indexOf(key))

}
if (!isNullOrUndefined(vNode.key)) {
if (!intactShared.isNullOrUndefined(vNode.key)) {
__props.key = vNode.key;
}
var children = vNodeProps.children;
if (children && !isArray(children)) {
if (children && !intactShared.isArray(children)) {
children = [children];

@@ -780,3 +763,3 @@ }

get: function () { return null; },
set: noop,
set: intactShared.noop,
});

@@ -789,3 +772,3 @@ return subTree;

get: function () { return true; },
set: noop
set: intactShared.noop
});

@@ -881,4 +864,4 @@ // (this.$options as any)._renderChildren = true;

// mock api
prototype.$on = noop;
prototype.$off = noop;
prototype.$on = intactShared.noop;
prototype.$off = intactShared.noop;
function createStack() {

@@ -885,0 +868,0 @@ var stack = [];

@@ -8,2 +8,3 @@ 'use strict';

var Vue = require('vue');
var intactShared = require('intact-shared');

@@ -14,17 +15,2 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

function isNullOrUndefined(o) {
return o === null || o === undefined;
}
var toString = Object.prototype.toString;
var isArray = Array.isArray || function (arr) {
return toString.call(arr) === '[object Array]';
};
function isStringOrNumber(o) {
var type = typeof o;
return type === 'string' || type === 'number';
}
var hasOwn = Object.prototype.hasOwnProperty;
var EMPTY_OBJ = {};
var noop = function () { };
var _textVNode = Vue__default["default"].prototype._v('');

@@ -172,7 +158,7 @@ var VueVNode = _textVNode.constructor;

function normalize(vnode) {
if (isNullOrUndefined(vnode))
if (intactShared.isNullOrUndefined(vnode))
return vnode;
if (isBoolean(vnode))
return String(vnode);
if (isStringOrNumber(vnode) || isIntactVNode(vnode))
if (intactShared.isStringOrNumber(vnode) || isIntactVNode(vnode))
return vnode;

@@ -198,6 +184,6 @@ if (vnode.text !== undefined) {

var loop = function (vnodes) {
if (isArray(vnodes)) {
if (intactShared.isArray(vnodes)) {
var ret_1 = [];
vnodes.forEach(function (vnode) {
if (isArray(vnode)) {
if (intactShared.isArray(vnode)) {
ret_1.push.apply(ret_1, loop(vnode));

@@ -214,3 +200,3 @@ }

var ret = loop(vnodes);
if (isArray(ret)) {
if (intactShared.isArray(ret)) {
var l = ret.length;

@@ -233,3 +219,3 @@ return l === 0 ? undefined : l === 1 ? ret[0] : ret;

var camelizedKey = camelize(key);
if (hasOwn.call(propTypes, camelizedKey)) {
if (intactShared.hasOwn.call(propTypes, camelizedKey)) {
value = normalizeBoolean(propTypes, key, camelizedKey, value);

@@ -302,3 +288,3 @@ key = camelizedKey;

// value contains Boolean
isArray(tmp) && tmp.indexOf(Boolean) > -1 ||
intactShared.isArray(tmp) && tmp.indexOf(Boolean) > -1 ||
(tmp = tmp.type) && (

@@ -308,3 +294,3 @@ // value.type is Boolean

// value.type contains Boolean
isArray(tmp) && tmp.indexOf(Boolean) > -1))) &&
intactShared.isArray(tmp) && tmp.indexOf(Boolean) > -1))) &&
(value === '' || value === key)) {

@@ -320,3 +306,3 @@ value = true;

var value = listeners[key];
var cb = isArray(value) ?
var cb = intactShared.isArray(value) ?
function (v) {

@@ -406,3 +392,3 @@ value.forEach(function (value) { return value(v); });

if (data.refInFor) {
if (!isArray(value)) {
if (!intactShared.isArray(value)) {
refs[ref] = [i];

@@ -419,3 +405,3 @@ }

else {
if (isArray(value)) {
if (intactShared.isArray(value)) {
var index = value.indexOf(i);

@@ -445,6 +431,6 @@ if (~index) {

function normalizeKey(data, vnode, props) {
if (!isNullOrUndefined(data.key)) {
if (!intactShared.isNullOrUndefined(data.key)) {
props.key = data.key;
}
else if (!isNullOrUndefined(vnode.key)) {
else if (!intactShared.isNullOrUndefined(vnode.key)) {
props.key = vnode.key;

@@ -500,5 +486,5 @@ }

function stringifyClass(className) {
if (isNullOrUndefined(className))
if (intactShared.isNullOrUndefined(className))
return '';
if (isArray(className)) {
if (intactShared.isArray(className)) {
return stringifyArray(className);

@@ -557,3 +543,3 @@ }

function getStyleBinding(style) {
if (isArray(style)) {
if (intactShared.isArray(style)) {
return toObject(style);

@@ -606,3 +592,3 @@ }

var vNode = Component(_props, true);
if (isArray(vNode)) {
if (intactShared.isArray(vNode)) {
return vNode.map(function (vNode) { return toVueVNode(h, vNode, props); });

@@ -619,3 +605,3 @@ }

var __props = { attrs: attrs };
var vNodeProps = vNode.props || EMPTY_OBJ;
var vNodeProps = vNode.props || intactShared.EMPTY_OBJ;
for (var key in vNodeProps) {

@@ -635,7 +621,7 @@ if (~['children', '_context', 'className', 'style', 'ref', 'key'].indexOf(key))

}
if (!isNullOrUndefined(vNode.key)) {
if (!intactShared.isNullOrUndefined(vNode.key)) {
__props.key = vNode.key;
}
var children = vNodeProps.children;
if (children && !isArray(children)) {
if (children && !intactShared.isArray(children)) {
children = [children];

@@ -771,3 +757,3 @@ }

get: function () { return null; },
set: noop,
set: intactShared.noop,
});

@@ -780,3 +766,3 @@ return subTree;

get: function () { return true; },
set: noop
set: intactShared.noop
});

@@ -872,4 +858,4 @@ // (this.$options as any)._renderChildren = true;

// mock api
prototype.$on = noop;
prototype.$off = noop;
prototype.$on = intactShared.noop;
prototype.$off = intactShared.noop;
function createStack() {

@@ -876,0 +862,0 @@ var stack = [];

@@ -5,21 +5,4 @@ import { __assign, __extends } from 'tslib';

import Vue from 'vue';
import { isArray, isNullOrUndefined, isStringOrNumber, hasOwn, EMPTY_OBJ, noop } from 'intact-shared';
function isNullOrUndefined(o) {
return o === null || o === undefined;
}
var toString = Object.prototype.toString;
var isArray = Array.isArray || function (arr) {
return toString.call(arr) === '[object Array]';
};
function isStringOrNumber(o) {
var type = typeof o;
return type === 'string' || type === 'number';
}
var hasOwn = Object.prototype.hasOwnProperty;
var EMPTY_OBJ = {};
if (process.env.NODE_ENV !== 'production') {
Object.freeze(EMPTY_OBJ);
}
var noop = function () { };
var _textVNode = Vue.prototype._v('');

@@ -26,0 +9,0 @@ var VueVNode = _textVNode.constructor;

{
"name": "intact-vue",
"version": "3.0.16",
"version": "3.0.17",
"description": "A compatibility layer for running intact component in vue2.0",

@@ -33,5 +33,6 @@ "main": "index.js",

"dependencies": {
"intact": "^3.0.16",
"intact": "^3.0.17",
"intact-shared": "^3.0.17",
"tslib": "^2.3.1"
}
}

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 too big to display

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