vue-functions
Advanced tools
Comparing version 0.0.3 to 0.0.4
/*! | ||
* vue-functions v0.0.3 | ||
* vue-functions v0.0.4 | ||
* (c) 2018-present phphe <phphe@outlook.com> (https://github.com/phphe) | ||
@@ -126,3 +126,7 @@ * Released under the MIT License. | ||
} | ||
function isPropTrue(value) { | ||
return value === '' || value; | ||
} | ||
exports.updatablePropsEvenUnbound = updatablePropsEvenUnbound; | ||
exports.isPropTrue = isPropTrue; |
/*! | ||
* vue-functions v0.0.3 | ||
* vue-functions v0.0.4 | ||
* (c) 2018-present phphe <phphe@outlook.com> (https://github.com/phphe) | ||
@@ -122,3 +122,6 @@ * Released under the MIT License. | ||
} | ||
function isPropTrue(value) { | ||
return value === '' || value; | ||
} | ||
export { updatablePropsEvenUnbound }; | ||
export { updatablePropsEvenUnbound, isPropTrue }; |
/*! | ||
* vue-functions v0.0.3 | ||
* vue-functions v0.0.4 | ||
* (c) 2018-present phphe <phphe@outlook.com> (https://github.com/phphe) | ||
@@ -505,4 +505,8 @@ * Released under the MIT License. | ||
} | ||
function isPropTrue(value) { | ||
return value === '' || value; | ||
} | ||
exports.updatablePropsEvenUnbound = updatablePropsEvenUnbound; | ||
exports.isPropTrue = isPropTrue; | ||
@@ -509,0 +513,0 @@ Object.defineProperty(exports, '__esModule', { value: true }); |
/*! | ||
* vue-functions v0.0.3 | ||
* vue-functions v0.0.4 | ||
* (c) 2018-present phphe <phphe@outlook.com> (https://github.com/phphe) | ||
* Released under the MIT License. | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.vueFunctions={})}(this,function(e){"use strict";var t;try{t=global}catch(e){t=window}function a(e){return{storage:e,set:function(e,t,a){null==t?this.storage.removeItem(e):this.storage.setItem(e,JSON.stringify({value:t,expired_at:a&&(new Date).getTime()/1e3+60*a}))},get:function(e){var t=this.storage.getItem(e);if(t){if(!(t=JSON.parse(t)).expired_at||t.expired_at>(new Date).getTime())return t.value;this.storage.removeItem(e)}return null},clear:function(){this.storage.clear()}}}a(t.localStorage),a(t.sessionStorage);e.updatablePropsEvenUnbound=function(e){var t,a,r={props:e,computed:{},watch:{}},o={};if(a=e,"[object Array]"===Object.prototype.toString.call(a))t=e;else for(var n in t=[],e)t.push(n),e[n].localName&&(o[n]=e[n].localName,delete e[n].localName);r.data=function(){var e={localValueOfUpdatableProps:{}},a=!0,r=!1,o=void 0;try{for(var n,l=t[Symbol.iterator]();!(a=(n=l.next()).done);a=!0){var i=n.value;e.localValueOfUpdatableProps[i]=this[i]}}catch(e){r=!0,o=e}finally{try{a||null==l.return||l.return()}finally{if(r)throw o}}return e};var l=!0,i=!1,c=void 0;try{for(var u,s=function(){var e=u.value;r.watch[e]=function(t){var a="_ignoreOnce_".concat(e);this[a]?this[a]=!1:this.localValueOfUpdatableProps[e]=t};var t=o[e]||"localProps_".concat(e);r.computed[t]={get:function(){return this.localValueOfUpdatableProps[e]},set:function(t){this["_ignoreOnce_".concat(e)]=!0,"value"===e?this.$emit("input",t):this.$emit("update:".concat(e),t),this.localValueOfUpdatableProps[e]=t}}},f=t[Symbol.iterator]();!(l=(u=f.next()).done);l=!0)s()}catch(e){i=!0,c=e}finally{try{l||null==f.return||f.return()}finally{if(i)throw c}}return r},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.vueFunctions={})}(this,function(e){"use strict";var t;try{t=global}catch(e){t=window}function r(e){return{storage:e,set:function(e,t,r){null==t?this.storage.removeItem(e):this.storage.setItem(e,JSON.stringify({value:t,expired_at:r&&(new Date).getTime()/1e3+60*r}))},get:function(e){var t=this.storage.getItem(e);if(t){if(!(t=JSON.parse(t)).expired_at||t.expired_at>(new Date).getTime())return t.value;this.storage.removeItem(e)}return null},clear:function(){this.storage.clear()}}}r(t.localStorage),r(t.sessionStorage);e.updatablePropsEvenUnbound=function(e){var t,r,a={props:e,computed:{},watch:{}},o={};if(r=e,"[object Array]"===Object.prototype.toString.call(r))t=e;else for(var n in t=[],e)t.push(n),e[n].localName&&(o[n]=e[n].localName,delete e[n].localName);a.data=function(){var e={localValueOfUpdatableProps:{}},r=!0,a=!1,o=void 0;try{for(var n,i=t[Symbol.iterator]();!(r=(n=i.next()).done);r=!0){var l=n.value;e.localValueOfUpdatableProps[l]=this[l]}}catch(e){a=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(a)throw o}}return e};var i=!0,l=!1,u=void 0;try{for(var c,s=function(){var e=c.value;a.watch[e]=function(t){var r="_ignoreOnce_".concat(e);this[r]?this[r]=!1:this.localValueOfUpdatableProps[e]=t};var t=o[e]||"localProps_".concat(e);a.computed[t]={get:function(){return this.localValueOfUpdatableProps[e]},set:function(t){this["_ignoreOnce_".concat(e)]=!0,"value"===e?this.$emit("input",t):this.$emit("update:".concat(e),t),this.localValueOfUpdatableProps[e]=t}}},f=t[Symbol.iterator]();!(i=(c=f.next()).done);i=!0)s()}catch(e){l=!0,u=e}finally{try{i||null==f.return||f.return()}finally{if(l)throw u}}return a},e.isPropTrue=function(e){return""===e||e},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=vue-functions.min.js.map |
{ | ||
"name": "vue-functions", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/vue-functions.cjs.js", |
@@ -58,1 +58,5 @@ import * as hp from 'helper-js' | ||
} | ||
export function isPropTrue(value) { | ||
return value === '' || value | ||
} |
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
72602
729