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

vue-functions

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-functions - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

4

dist/vue-functions.cjs.js
/*!
* vue-functions v2.0.5
* vue-functions v2.0.6
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)

@@ -25,3 +25,3 @@ * Homepage: undefined

}
default localName is `localProps_${name}`
default localName is `localProps_${name}`
*/

@@ -28,0 +28,0 @@

/*!
* vue-functions v2.0.5
* vue-functions v2.0.6
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)

@@ -19,3 +19,3 @@ * Homepage: undefined

}
default localName is `localProps_${name}`
default localName is `localProps_${name}`
*/

@@ -22,0 +22,0 @@

/*!
* vue-functions v2.0.5
* vue-functions v2.0.6
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)

@@ -877,3 +877,3 @@ * Homepage: undefined

/*!
* helper-js v1.4.36
* helper-js v2.0.0
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)

@@ -958,3 +958,3 @@ * Homepage: undefined

return arr2;
} // local store
} // 为此库有需要的方法存储信息

@@ -971,3 +971,6 @@ function isObject(v) {

return Object.prototype.toString.call(v) === '[object Promise]';
}
} // detect if argumrnt is null, undefined, empty array, empty string, false, NaN, empty object
// ## 数组
// remove item from array. return removed count
// 从数组删除项. 返回删除计数

@@ -985,5 +988,4 @@

return count;
}
} // remove items from array by sorted indexes. indexes example: [0, 2, 6, 8, 9]
function iterateAll(val) {

@@ -993,12 +995,12 @@ var opt,

info,
_i7,
_Object$keys2,
_i2,
_Object$keys,
key,
_info,
_i8,
_i3,
_info2,
keys,
_i9,
_keys2,
_key2,
_i4,
_keys,
_key,
_info3,

@@ -1059,6 +1061,6 @@ _args = arguments;

_i7 = 0, _Object$keys2 = Object.keys(val);
_i2 = 0, _Object$keys = Object.keys(val);
case 16:
if (!(_i7 < _Object$keys2.length)) {
if (!(_i2 < _Object$keys.length)) {
_context.next = 25;

@@ -1068,3 +1070,3 @@ break;

key = _Object$keys2[_i7];
key = _Object$keys[_i2];
_info = {

@@ -1084,3 +1086,3 @@ value: val[key],

case 22:
_i7++;
_i2++;
_context.next = 16;

@@ -1106,6 +1108,6 @@ break;

_i8 = val.length - 1;
_i3 = val.length - 1;
case 32:
if (!(_i8 >= 0)) {
if (!(_i3 >= 0)) {
_context.next = 40;

@@ -1116,4 +1118,4 @@ break;

_info2 = {
value: val[_i8],
index: _i8
value: val[_i3],
index: _i3
};

@@ -1130,3 +1132,3 @@

case 37:
_i8--;
_i3--;
_context.next = 32;

@@ -1147,6 +1149,6 @@ break;

keys.reverse();
_i9 = 0, _keys2 = keys;
_i4 = 0, _keys = keys;
case 46:
if (!(_i9 < _keys2.length)) {
if (!(_i4 < _keys.length)) {
_context.next = 55;

@@ -1156,6 +1158,6 @@ break;

_key2 = _keys2[_i9];
_key = _keys[_i4];
_info3 = {
value: val[_key2],
key: _key2
value: val[_key],
key: _key
};

@@ -1172,3 +1174,3 @@

case 52:
_i9++;
_i4++;
_context.next = 46;

@@ -1190,3 +1192,3 @@ break;

}, _marked);
} // Deprecated in next version
} // example: objectGet(window, 'document.body.children.0') . source: http://stackoverflow.com/questions/8817394/javascript-get-deep-value-from-object-by-passing-path-to-it-as-string

@@ -1197,10 +1199,10 @@

var _iterator8 = _createForOfIteratorHelper(iterateAll(funcs, {
var _iterator7 = _createForOfIteratorHelper(iterateAll(funcs, {
reverse: true
})),
_step8;
_step7;
try {
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
var func = _step8.value.value;
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
var func = _step7.value.value;
var currentNext = next;

@@ -1210,5 +1212,5 @@ next = wrapFuncWithNext(func, currentNext);

} catch (err) {
_iterator8.e(err);
_iterator7.e(err);
} finally {
_iterator8.f();
_iterator7.f();
}

@@ -1220,4 +1222,4 @@

return function () {
for (var _len5 = arguments.length, args = new Array(_len5), _key7 = 0; _key7 < _len5; _key7++) {
args[_key7] = arguments[_key7];
for (var _len4 = arguments.length, args = new Array(_len4), _key5 = 0; _key5 < _len4; _key5++) {
args[_key5] = arguments[_key5];
}

@@ -1228,8 +1230,7 @@

}
} // promise
} // ## promise
function onDOM(el, name, handler) {
for (var _len6 = arguments.length, args = new Array(_len6 > 3 ? _len6 - 3 : 0), _key8 = 3; _key8 < _len6; _key8++) {
args[_key8 - 3] = arguments[_key8];
for (var _len5 = arguments.length, args = new Array(_len5 > 3 ? _len5 - 3 : 0), _key6 = 3; _key6 < _len5; _key6++) {
args[_key6 - 3] = arguments[_key6];
}

@@ -1239,5 +1240,6 @@

// 所有主流浏览器,除了 IE 8 及更早 IE版本
el.addEventListener.apply(el, [name, handler].concat(args));
el.addEventListener.apply(el, [name, handler].concat(args)); // @ts-ignore
} else if (el.attachEvent) {
// IE 8 及更早 IE 版本
// @ts-ignore
el.attachEvent.apply(el, ["on".concat(name), handler].concat(args));

@@ -1248,4 +1250,4 @@ }

function offDOM(el, name, handler) {
for (var _len7 = arguments.length, args = new Array(_len7 > 3 ? _len7 - 3 : 0), _key9 = 3; _key9 < _len7; _key9++) {
args[_key9 - 3] = arguments[_key9];
for (var _len6 = arguments.length, args = new Array(_len6 > 3 ? _len6 - 3 : 0), _key7 = 3; _key7 < _len6; _key7++) {
args[_key7 - 3] = arguments[_key7];
}

@@ -1255,5 +1257,6 @@

// 所有主流浏览器,除了 IE 8 及更早 IE版本
el.removeEventListener.apply(el, [name, handler].concat(args));
el.removeEventListener.apply(el, [name, handler].concat(args)); // @ts-ignore
} else if (el.detachEvent) {
// IE 8 及更早 IE 版本
// @ts-ignore
el.detachEvent.apply(el, ["on".concat(name), handler].concat(args));

@@ -1271,3 +1274,3 @@ }

}
default localName is `localProps_${name}`
default localName is `localProps_${name}`
*/

@@ -1274,0 +1277,0 @@

/*!
* vue-functions v2.0.5
* vue-functions v2.0.6
* (c) phphe <phphe@outlook.com> (https://github.com/phphe)

@@ -4,0 +4,0 @@ * Homepage: undefined

{
"name": "vue-functions",
"version": "2.0.5",
"version": "2.0.6",
"description": "",

@@ -28,5 +28,5 @@ "main": "dist/vue-functions.cjs.js",

"@babel/runtime": "^7.7.7",
"helper-js": "^1.4.36"
"helper-js": "^2.0.0"
},
"license": "MIT"
}
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