vue-functions
Advanced tools
Comparing version 0.0.6 to 0.0.7
/*! | ||
* vue-functions v0.0.6 | ||
* (c) 2018-present phphe <phphe@outlook.com> (https://github.com/phphe) | ||
* vue-functions v0.0.7 | ||
* (c) 2019-present phphe <phphe@outlook.com> (https://github.com/phphe) | ||
* Released under the MIT License. | ||
@@ -220,3 +220,15 @@ */ | ||
} | ||
function* iterateObjectWithoutDollarDash(obj) { | ||
for (var key in obj) { | ||
var start = key.substr(0, 1); | ||
if (start !== '$' && start !== '_') { | ||
yield { | ||
key: key, | ||
value: obj[key] | ||
}; | ||
} | ||
} | ||
} | ||
exports.updatablePropsEvenUnbound = updatablePropsEvenUnbound; | ||
@@ -226,1 +238,2 @@ exports.isPropTrue = isPropTrue; | ||
exports.doWatch = doWatch; | ||
exports.iterateObjectWithoutDollarDash = iterateObjectWithoutDollarDash; |
/*! | ||
* vue-functions v0.0.6 | ||
* (c) 2018-present phphe <phphe@outlook.com> (https://github.com/phphe) | ||
* vue-functions v0.0.7 | ||
* (c) 2019-present phphe <phphe@outlook.com> (https://github.com/phphe) | ||
* Released under the MIT License. | ||
@@ -216,3 +216,15 @@ */ | ||
} | ||
function* iterateObjectWithoutDollarDash(obj) { | ||
for (var key in obj) { | ||
var start = key.substr(0, 1); | ||
export { updatablePropsEvenUnbound, isPropTrue, watchAsync, doWatch }; | ||
if (start !== '$' && start !== '_') { | ||
yield { | ||
key: key, | ||
value: obj[key] | ||
}; | ||
} | ||
} | ||
} | ||
export { updatablePropsEvenUnbound, isPropTrue, watchAsync, doWatch, iterateObjectWithoutDollarDash }; |
/*! | ||
* vue-functions v0.0.6 | ||
* (c) 2018-present phphe <phphe@outlook.com> (https://github.com/phphe) | ||
* vue-functions v0.0.7 | ||
* (c) 2019-present phphe <phphe@outlook.com> (https://github.com/phphe) | ||
* Released under the MIT License. | ||
@@ -13,3 +13,3 @@ */ | ||
/*! | ||
* helper-js v1.3.0 | ||
* helper-js v1.3.1 | ||
* (c) 2018-present phphe <phphe@outlook.com> (https://github.com/phphe) | ||
@@ -586,3 +586,15 @@ * Released under the MIT License. | ||
} | ||
function* iterateObjectWithoutDollarDash(obj) { | ||
for (var key in obj) { | ||
var start = key.substr(0, 1); | ||
if (start !== '$' && start !== '_') { | ||
yield { | ||
key: key, | ||
value: obj[key] | ||
}; | ||
} | ||
} | ||
} | ||
exports.updatablePropsEvenUnbound = updatablePropsEvenUnbound; | ||
@@ -592,2 +604,3 @@ exports.isPropTrue = isPropTrue; | ||
exports.doWatch = doWatch; | ||
exports.iterateObjectWithoutDollarDash = iterateObjectWithoutDollarDash; | ||
@@ -594,0 +607,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
/*! | ||
* vue-functions v0.0.6 | ||
* (c) 2018-present phphe <phphe@outlook.com> (https://github.com/phphe) | ||
* vue-functions v0.0.7 | ||
* (c) 2019-present phphe <phphe@outlook.com> (https://github.com/phphe) | ||
* Released under the MIT License. | ||
*/ | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.vueFunctions={})}(this,function(t){"use strict";t.updatablePropsEvenUnbound=function(t){var e,n={props:t="function"==typeof t?t():JSON.parse(JSON.stringify(t)),computed:{},watch:{}},r={};if(function(t){return"[object Array]"===Object.prototype.toString.call(t)}(t))e=t;else for(var o in e=[],t)e.push(o),t[o].localName&&(r[o]=t[o].localName,delete t[o].localName);n.data=function(){var t={localValueOfUpdatableProps:{}},n=!0,r=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done);n=!0){var l=a.value;t.localValueOfUpdatableProps[l]=this[l]}}catch(t){r=!0,o=t}finally{try{n||null==c.return||c.return()}finally{if(r)throw o}}return t};var a=!0,c=!1,l=void 0;try{for(var u,i=function(){var t=u.value;n.watch[t]=function(e){this.localValueOfUpdatableProps[t]=e};var e=r[t]||"localProps_".concat(t);n.computed[e]={get:function(){return this.localValueOfUpdatableProps[t]},set:function(e){"value"===t?this.$emit("input",e):this.$emit("update:".concat(t),e),this.localValueOfUpdatableProps[t]=e}}},f=e[Symbol.iterator]();!(a=(u=f.next()).done);a=!0)i()}catch(t){c=!0,l=t}finally{try{a||null==f.return||f.return()}finally{if(c)throw l}}return n},t.isPropTrue=function(t){return""===t||t},t.watchAsync=function(t,e,n,r){var o,a,c=[],l=-1;return f(),u;function u(){c.forEach(function(t){return t()}),c=[]}function i(e,n){var r,o=!0,a=t.$watch(function(){return e.call(t,i)},function(t){r=t,o?o=!1:f()},{immediate:!0,deep:n&&n.deep});return c.push(a),r}function f(){u();var c=e.call(t,i),f=++l;a=o;var p,s=function(e){f===l&&(0===f?r&&r.immediate&&n.call(t,e,a):n.call(t,e,a))};p=c,"[object Promise]"===Object.prototype.toString.call(p)?c.then(s):s(c)}},t.doWatch=function(t,e){var n,r;return function o(){var a=e.call(t,n);r=t.$watch(a,function(t){r(),n=t,o()})}(),function(){return r&&r()}},Object.defineProperty(t,"__esModule",{value:!0})}); | ||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.vueFunctions={})}(this,function(t){"use strict";t.updatablePropsEvenUnbound=function(t){var e,n={props:t="function"==typeof t?t():JSON.parse(JSON.stringify(t)),computed:{},watch:{}},r={};if(function(t){return"[object Array]"===Object.prototype.toString.call(t)}(t))e=t;else for(var o in e=[],t)e.push(o),t[o].localName&&(r[o]=t[o].localName,delete t[o].localName);n.data=function(){var t={localValueOfUpdatableProps:{}},n=!0,r=!1,o=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done);n=!0){var u=a.value;t.localValueOfUpdatableProps[u]=this[u]}}catch(t){r=!0,o=t}finally{try{n||null==l.return||l.return()}finally{if(r)throw o}}return t};var a=!0,l=!1,u=void 0;try{for(var c,i=function(){var t=c.value;n.watch[t]=function(e){this.localValueOfUpdatableProps[t]=e};var e=r[t]||"localProps_".concat(t);n.computed[e]={get:function(){return this.localValueOfUpdatableProps[t]},set:function(e){"value"===t?this.$emit("input",e):this.$emit("update:".concat(t),e),this.localValueOfUpdatableProps[t]=e}}},f=e[Symbol.iterator]();!(a=(c=f.next()).done);a=!0)i()}catch(t){l=!0,u=t}finally{try{a||null==f.return||f.return()}finally{if(l)throw u}}return n},t.isPropTrue=function(t){return""===t||t},t.watchAsync=function(t,e,n,r){var o,a,l=[],u=-1;return f(),c;function c(){l.forEach(function(t){return t()}),l=[]}function i(e,n){var r,o=!0,a=t.$watch(function(){return e.call(t,i)},function(t){r=t,o?o=!1:f()},{immediate:!0,deep:n&&n.deep});return l.push(a),r}function f(){c();var l=e.call(t,i),f=++u;a=o;var p,s=function(e){f===u&&(0===f?r&&r.immediate&&n.call(t,e,a):n.call(t,e,a))};p=l,"[object Promise]"===Object.prototype.toString.call(p)?l.then(s):s(l)}},t.doWatch=function(t,e){var n,r;return function o(){var a=e.call(t,n);r=t.$watch(a,function(t){r(),n=t,o()})}(),function(){return r&&r()}},t.iterateObjectWithoutDollarDash=function*(t){for(var e in t){var n=e.substr(0,1);"$"!==n&&"_"!==n&&(yield{key:e,value:t[e]})}},Object.defineProperty(t,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=vue-functions.min.js.map |
{ | ||
"name": "vue-functions", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "", | ||
@@ -24,5 +24,5 @@ "main": "dist/vue-functions.cjs.js", | ||
"dependencies": { | ||
"helper-js": "^1.3.0" | ||
"helper-js": "^1.3.1" | ||
}, | ||
"license": "MIT" | ||
} |
@@ -136,1 +136,10 @@ import * as hp from 'helper-js' | ||
} | ||
export function* iterateObjectWithoutDollarDash(obj) { | ||
for (const key in obj) { | ||
const start = key.substr(0, 1) | ||
if (start !== '$' && start !== '_') { | ||
yield {key, value: obj[key]} | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
90759
1074
Updatedhelper-js@^1.3.1