Comparing version 5.3.1 to 5.4.0
import msie from './browser/msie.js'; | ||
import os from './browser/os.js'; | ||
export default { | ||
msie | ||
msie, | ||
os | ||
}; |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -17,6 +17,38 @@ * Released under the MIT License. | ||
function os (userAgent) { | ||
userAgent = userAgent || ''; | ||
var os = {}; | ||
os.webkit = userAgent.match(/WebKit\/([\d.]+)/); | ||
os.android = userAgent.match(/(Android)\s+([\d.]+)/) || userAgent.match(/Silk-Accelerated/); | ||
os.androidICS = os.android && userAgent.match(/(Android)\s4/); | ||
os.ipad = userAgent.match(/(iPad).*OS\s([\d_]+)/); | ||
os.iphone = !os.ipad && userAgent.match(/(iPhone\sOS)\s([\d_]+)/); | ||
os.ios7 = (os.ipad || os.iphone) && (userAgent.match(/7_/) || userAgent.match(/8_/)); | ||
os.webos = userAgent.match(/(webOS|hpwOS)[\s/]([\d.]+)/); | ||
os.touchpad = os.webos && userAgent.match(/TouchPad/); | ||
os.ios = os.ipad || os.iphone; | ||
os.playbook = userAgent.match(/PlayBook/); | ||
os.blackberry10 = userAgent.match(/BB10/); | ||
os.blackberry = os.playbook || os.blackberry10 || userAgent.match(/BlackBerry/); | ||
os.chrome = userAgent.match(/Chrome/); | ||
os.opera = userAgent.match(/Opera/); | ||
os.safari = userAgent.match(/Safari\/([\d.]+)/); | ||
os.fennec = userAgent.match(/fennec/i) || userAgent.match(/Firefox/); | ||
var ie = userAgent.match(/MSIE\s([\d.]+)/) || userAgent.match(/(?:trident)(?:.*rv:([\w.]+))?/i); | ||
if (ie) { | ||
os.ie = parseFloat(ie[1]); | ||
} | ||
os.ieTouch = os.ie && userAgent.toLowerCase().match(/touch/i); | ||
os.tizen = userAgent.match(/Tizen/i); | ||
os.kindle = userAgent.match(/Silk-Accelerated/); | ||
os.wechat = userAgent.match(/MicroMessenger/i); | ||
return os; | ||
} | ||
var browser = { | ||
msie: msie | ||
msie: msie, | ||
os: os | ||
}; | ||
module.exports = browser; |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -21,4 +21,36 @@ * Released under the MIT License. | ||
function os (userAgent) { | ||
userAgent = userAgent || ''; | ||
var os = {}; | ||
os.webkit = userAgent.match(/WebKit\/([\d.]+)/); | ||
os.android = userAgent.match(/(Android)\s+([\d.]+)/) || userAgent.match(/Silk-Accelerated/); | ||
os.androidICS = os.android && userAgent.match(/(Android)\s4/); | ||
os.ipad = userAgent.match(/(iPad).*OS\s([\d_]+)/); | ||
os.iphone = !os.ipad && userAgent.match(/(iPhone\sOS)\s([\d_]+)/); | ||
os.ios7 = (os.ipad || os.iphone) && (userAgent.match(/7_/) || userAgent.match(/8_/)); | ||
os.webos = userAgent.match(/(webOS|hpwOS)[\s/]([\d.]+)/); | ||
os.touchpad = os.webos && userAgent.match(/TouchPad/); | ||
os.ios = os.ipad || os.iphone; | ||
os.playbook = userAgent.match(/PlayBook/); | ||
os.blackberry10 = userAgent.match(/BB10/); | ||
os.blackberry = os.playbook || os.blackberry10 || userAgent.match(/BlackBerry/); | ||
os.chrome = userAgent.match(/Chrome/); | ||
os.opera = userAgent.match(/Opera/); | ||
os.safari = userAgent.match(/Safari\/([\d.]+)/); | ||
os.fennec = userAgent.match(/fennec/i) || userAgent.match(/Firefox/); | ||
var ie = userAgent.match(/MSIE\s([\d.]+)/) || userAgent.match(/(?:trident)(?:.*rv:([\w.]+))?/i); | ||
if (ie) { | ||
os.ie = parseFloat(ie[1]); | ||
} | ||
os.ieTouch = os.ie && userAgent.toLowerCase().match(/touch/i); | ||
os.tizen = userAgent.match(/Tizen/i); | ||
os.kindle = userAgent.match(/Silk-Accelerated/); | ||
os.wechat = userAgent.match(/MicroMessenger/i); | ||
return os; | ||
} | ||
var browser = { | ||
msie: msie | ||
msie: msie, | ||
os: os | ||
}; | ||
@@ -25,0 +57,0 @@ |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
* Released under the MIT License. | ||
*/ | ||
var e,t;e=this,t=function(){"use strict";var e={objectobject:7,objectundefined:6};return{msie:function(){return document.documentMode||e[typeof document.all+typeof XMLHttpRequest]}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).celia=t(); | ||
var e,t;e=this,t=function(){"use strict";var e={objectobject:7,objectundefined:6};return{msie:function(){return document.documentMode||e[typeof document.all+typeof XMLHttpRequest]},os:function(e){e=e||"";var t={};t.webkit=e.match(/WebKit\/([\d.]+)/),t.android=e.match(/(Android)\s+([\d.]+)/)||e.match(/Silk-Accelerated/),t.androidICS=t.android&&e.match(/(Android)\s4/),t.ipad=e.match(/(iPad).*OS\s([\d_]+)/),t.iphone=!t.ipad&&e.match(/(iPhone\sOS)\s([\d_]+)/),t.ios7=(t.ipad||t.iphone)&&(e.match(/7_/)||e.match(/8_/)),t.webos=e.match(/(webOS|hpwOS)[\s/]([\d.]+)/),t.touchpad=t.webos&&e.match(/TouchPad/),t.ios=t.ipad||t.iphone,t.playbook=e.match(/PlayBook/),t.blackberry10=e.match(/BB10/),t.blackberry=t.playbook||t.blackberry10||e.match(/BlackBerry/),t.chrome=e.match(/Chrome/),t.opera=e.match(/Opera/),t.safari=e.match(/Safari\/([\d.]+)/),t.fennec=e.match(/fennec/i)||e.match(/Firefox/);var a=e.match(/MSIE\s([\d.]+)/)||e.match(/(?:trident)(?:.*rv:([\w.]+))?/i);return a&&(t.ie=parseFloat(a[1])),t.ieTouch=t.ie&&e.toLowerCase().match(/touch/i),t.tizen=e.match(/Tizen/i),t.kindle=e.match(/Silk-Accelerated/),t.wechat=e.match(/MicroMessenger/i),t}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).celia=t(); |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -52,4 +52,36 @@ * Released under the MIT License. | ||
function os (userAgent) { | ||
userAgent = userAgent || ''; | ||
var os = {}; | ||
os.webkit = userAgent.match(/WebKit\/([\d.]+)/); | ||
os.android = userAgent.match(/(Android)\s+([\d.]+)/) || userAgent.match(/Silk-Accelerated/); | ||
os.androidICS = os.android && userAgent.match(/(Android)\s4/); | ||
os.ipad = userAgent.match(/(iPad).*OS\s([\d_]+)/); | ||
os.iphone = !os.ipad && userAgent.match(/(iPhone\sOS)\s([\d_]+)/); | ||
os.ios7 = (os.ipad || os.iphone) && (userAgent.match(/7_/) || userAgent.match(/8_/)); | ||
os.webos = userAgent.match(/(webOS|hpwOS)[\s/]([\d.]+)/); | ||
os.touchpad = os.webos && userAgent.match(/TouchPad/); | ||
os.ios = os.ipad || os.iphone; | ||
os.playbook = userAgent.match(/PlayBook/); | ||
os.blackberry10 = userAgent.match(/BB10/); | ||
os.blackberry = os.playbook || os.blackberry10 || userAgent.match(/BlackBerry/); | ||
os.chrome = userAgent.match(/Chrome/); | ||
os.opera = userAgent.match(/Opera/); | ||
os.safari = userAgent.match(/Safari\/([\d.]+)/); | ||
os.fennec = userAgent.match(/fennec/i) || userAgent.match(/Firefox/); | ||
var ie = userAgent.match(/MSIE\s([\d.]+)/) || userAgent.match(/(?:trident)(?:.*rv:([\w.]+))?/i); | ||
if (ie) { | ||
os.ie = parseFloat(ie[1]); | ||
} | ||
os.ieTouch = os.ie && userAgent.toLowerCase().match(/touch/i); | ||
os.tizen = userAgent.match(/Tizen/i); | ||
os.kindle = userAgent.match(/Silk-Accelerated/); | ||
os.wechat = userAgent.match(/MicroMessenger/i); | ||
return os; | ||
} | ||
var browser = { | ||
msie: msie | ||
msie: msie, | ||
os: os | ||
}; | ||
@@ -67,2 +99,21 @@ | ||
function debounce (fn, wait) { | ||
var timeout = null; | ||
function cancel() { | ||
if (timeout !== null) { | ||
clearTimeout(timeout); | ||
timeout = null; | ||
} | ||
} | ||
function debounce() { | ||
cancel(); | ||
timeout = setTimeout(fn, wait); | ||
} | ||
debounce.cancel = cancel; | ||
return debounce; | ||
} | ||
function isNil (value) { | ||
@@ -193,15 +244,9 @@ /* eslint eqeqeq: 0 */ | ||
var isInteger = Number.isInteger; | ||
if (!isInteger) { | ||
isInteger = function (value) { | ||
return isNumber(value) && | ||
isFinite(value) && | ||
(value >> 0) === value; | ||
}; | ||
function _isInteger (value) { | ||
return isNumber(value) && | ||
isFinite(value) && | ||
(value >> 0) === value; | ||
} | ||
function isInteger$1 (value) { | ||
return isInteger(value); | ||
} | ||
var isInteger = Number.isInteger || _isInteger; | ||
@@ -257,3 +302,3 @@ function isPromiseLike (value) { | ||
var assign = Object.assign || function (target) { | ||
function _assign (target) { | ||
if (isNil(target)) { | ||
@@ -267,3 +312,3 @@ throw new TypeError('Cannot convert undefined or null to object'); | ||
forOwn$1(nextSource, function (nextVal, nextKey) { | ||
forOwn(nextSource, function (nextVal, nextKey) { | ||
to[nextKey] = nextVal; | ||
@@ -274,4 +319,6 @@ }); | ||
return to; | ||
}; | ||
} | ||
var assign = Object.assign || _assign; | ||
function forIn (value, iterator, context) { | ||
@@ -405,2 +452,3 @@ _for( | ||
camelCase: camelCase, | ||
debounce: debounce, | ||
each: each, | ||
@@ -417,3 +465,3 @@ forEach: forEach$1, | ||
isFunction: isFunction, | ||
isInteger: isInteger$1, | ||
isInteger: isInteger, | ||
isNil: isNil, | ||
@@ -420,0 +468,0 @@ isNumber: isNumber, |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -50,4 +50,36 @@ * Released under the MIT License. | ||
function os (userAgent) { | ||
userAgent = userAgent || ''; | ||
var os = {}; | ||
os.webkit = userAgent.match(/WebKit\/([\d.]+)/); | ||
os.android = userAgent.match(/(Android)\s+([\d.]+)/) || userAgent.match(/Silk-Accelerated/); | ||
os.androidICS = os.android && userAgent.match(/(Android)\s4/); | ||
os.ipad = userAgent.match(/(iPad).*OS\s([\d_]+)/); | ||
os.iphone = !os.ipad && userAgent.match(/(iPhone\sOS)\s([\d_]+)/); | ||
os.ios7 = (os.ipad || os.iphone) && (userAgent.match(/7_/) || userAgent.match(/8_/)); | ||
os.webos = userAgent.match(/(webOS|hpwOS)[\s/]([\d.]+)/); | ||
os.touchpad = os.webos && userAgent.match(/TouchPad/); | ||
os.ios = os.ipad || os.iphone; | ||
os.playbook = userAgent.match(/PlayBook/); | ||
os.blackberry10 = userAgent.match(/BB10/); | ||
os.blackberry = os.playbook || os.blackberry10 || userAgent.match(/BlackBerry/); | ||
os.chrome = userAgent.match(/Chrome/); | ||
os.opera = userAgent.match(/Opera/); | ||
os.safari = userAgent.match(/Safari\/([\d.]+)/); | ||
os.fennec = userAgent.match(/fennec/i) || userAgent.match(/Firefox/); | ||
var ie = userAgent.match(/MSIE\s([\d.]+)/) || userAgent.match(/(?:trident)(?:.*rv:([\w.]+))?/i); | ||
if (ie) { | ||
os.ie = parseFloat(ie[1]); | ||
} | ||
os.ieTouch = os.ie && userAgent.toLowerCase().match(/touch/i); | ||
os.tizen = userAgent.match(/Tizen/i); | ||
os.kindle = userAgent.match(/Silk-Accelerated/); | ||
os.wechat = userAgent.match(/MicroMessenger/i); | ||
return os; | ||
} | ||
var browser = { | ||
msie: msie | ||
msie: msie, | ||
os: os | ||
}; | ||
@@ -65,2 +97,21 @@ | ||
function debounce (fn, wait) { | ||
var timeout = null; | ||
function cancel() { | ||
if (timeout !== null) { | ||
clearTimeout(timeout); | ||
timeout = null; | ||
} | ||
} | ||
function debounce() { | ||
cancel(); | ||
timeout = setTimeout(fn, wait); | ||
} | ||
debounce.cancel = cancel; | ||
return debounce; | ||
} | ||
function isNil (value) { | ||
@@ -191,15 +242,9 @@ /* eslint eqeqeq: 0 */ | ||
var isInteger = Number.isInteger; | ||
if (!isInteger) { | ||
isInteger = function (value) { | ||
return isNumber(value) && | ||
isFinite(value) && | ||
(value >> 0) === value; | ||
}; | ||
function _isInteger (value) { | ||
return isNumber(value) && | ||
isFinite(value) && | ||
(value >> 0) === value; | ||
} | ||
function isInteger$1 (value) { | ||
return isInteger(value); | ||
} | ||
var isInteger = Number.isInteger || _isInteger; | ||
@@ -255,3 +300,3 @@ function isPromiseLike (value) { | ||
var assign = Object.assign || function (target) { | ||
function _assign (target) { | ||
if (isNil(target)) { | ||
@@ -265,3 +310,3 @@ throw new TypeError('Cannot convert undefined or null to object'); | ||
forOwn$1(nextSource, function (nextVal, nextKey) { | ||
forOwn(nextSource, function (nextVal, nextKey) { | ||
to[nextKey] = nextVal; | ||
@@ -272,4 +317,6 @@ }); | ||
return to; | ||
}; | ||
} | ||
var assign = Object.assign || _assign; | ||
function forIn (value, iterator, context) { | ||
@@ -403,2 +450,3 @@ _for( | ||
camelCase: camelCase, | ||
debounce: debounce, | ||
each: each, | ||
@@ -415,3 +463,3 @@ forEach: forEach$1, | ||
isFunction: isFunction, | ||
isInteger: isInteger$1, | ||
isInteger: isInteger, | ||
isNil: isNil, | ||
@@ -418,0 +466,0 @@ isNumber: isNumber, |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -56,4 +56,36 @@ * Released under the MIT License. | ||
function os (userAgent) { | ||
userAgent = userAgent || ''; | ||
var os = {}; | ||
os.webkit = userAgent.match(/WebKit\/([\d.]+)/); | ||
os.android = userAgent.match(/(Android)\s+([\d.]+)/) || userAgent.match(/Silk-Accelerated/); | ||
os.androidICS = os.android && userAgent.match(/(Android)\s4/); | ||
os.ipad = userAgent.match(/(iPad).*OS\s([\d_]+)/); | ||
os.iphone = !os.ipad && userAgent.match(/(iPhone\sOS)\s([\d_]+)/); | ||
os.ios7 = (os.ipad || os.iphone) && (userAgent.match(/7_/) || userAgent.match(/8_/)); | ||
os.webos = userAgent.match(/(webOS|hpwOS)[\s/]([\d.]+)/); | ||
os.touchpad = os.webos && userAgent.match(/TouchPad/); | ||
os.ios = os.ipad || os.iphone; | ||
os.playbook = userAgent.match(/PlayBook/); | ||
os.blackberry10 = userAgent.match(/BB10/); | ||
os.blackberry = os.playbook || os.blackberry10 || userAgent.match(/BlackBerry/); | ||
os.chrome = userAgent.match(/Chrome/); | ||
os.opera = userAgent.match(/Opera/); | ||
os.safari = userAgent.match(/Safari\/([\d.]+)/); | ||
os.fennec = userAgent.match(/fennec/i) || userAgent.match(/Firefox/); | ||
var ie = userAgent.match(/MSIE\s([\d.]+)/) || userAgent.match(/(?:trident)(?:.*rv:([\w.]+))?/i); | ||
if (ie) { | ||
os.ie = parseFloat(ie[1]); | ||
} | ||
os.ieTouch = os.ie && userAgent.toLowerCase().match(/touch/i); | ||
os.tizen = userAgent.match(/Tizen/i); | ||
os.kindle = userAgent.match(/Silk-Accelerated/); | ||
os.wechat = userAgent.match(/MicroMessenger/i); | ||
return os; | ||
} | ||
var browser = { | ||
msie: msie | ||
msie: msie, | ||
os: os | ||
}; | ||
@@ -71,2 +103,21 @@ | ||
function debounce (fn, wait) { | ||
var timeout = null; | ||
function cancel() { | ||
if (timeout !== null) { | ||
clearTimeout(timeout); | ||
timeout = null; | ||
} | ||
} | ||
function debounce() { | ||
cancel(); | ||
timeout = setTimeout(fn, wait); | ||
} | ||
debounce.cancel = cancel; | ||
return debounce; | ||
} | ||
function isNil (value) { | ||
@@ -197,15 +248,9 @@ /* eslint eqeqeq: 0 */ | ||
var isInteger = Number.isInteger; | ||
if (!isInteger) { | ||
isInteger = function (value) { | ||
return isNumber(value) && | ||
isFinite(value) && | ||
(value >> 0) === value; | ||
}; | ||
function _isInteger (value) { | ||
return isNumber(value) && | ||
isFinite(value) && | ||
(value >> 0) === value; | ||
} | ||
function isInteger$1 (value) { | ||
return isInteger(value); | ||
} | ||
var isInteger = Number.isInteger || _isInteger; | ||
@@ -261,3 +306,3 @@ function isPromiseLike (value) { | ||
var assign = Object.assign || function (target) { | ||
function _assign (target) { | ||
if (isNil(target)) { | ||
@@ -271,3 +316,3 @@ throw new TypeError('Cannot convert undefined or null to object'); | ||
forOwn$1(nextSource, function (nextVal, nextKey) { | ||
forOwn(nextSource, function (nextVal, nextKey) { | ||
to[nextKey] = nextVal; | ||
@@ -278,4 +323,6 @@ }); | ||
return to; | ||
}; | ||
} | ||
var assign = Object.assign || _assign; | ||
function forIn (value, iterator, context) { | ||
@@ -409,2 +456,3 @@ _for( | ||
camelCase: camelCase, | ||
debounce: debounce, | ||
each: each, | ||
@@ -421,3 +469,3 @@ forEach: forEach$1, | ||
isFunction: isFunction, | ||
isInteger: isInteger$1, | ||
isInteger: isInteger, | ||
isNil: isNil, | ||
@@ -424,0 +472,0 @@ isNumber: isNumber, |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
* Released under the MIT License. | ||
*/ | ||
var n,t;n=this,t=function(){"use strict";var n={after:function(n,t,e){var r=n[t];n[t]=function(){r.apply(this,arguments),e.call(this)}},around:function(n,t,e){var r=n[t];n[t]=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return e.call(this,r,n)}},before:function(n,t,e){var r=n[t];n[t]=function(){e.call(this),r.apply(this,arguments)}}},t={objectobject:7,objectundefined:6};var e={msie:function(){return document.documentMode||t[typeof document.all+typeof XMLHttpRequest]}},r=/-([a-z])/g,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g;function s(n){return null==n}function o(n){return"function"==typeof n}function i(n){return"number"==typeof n}function u(n){return!s(n)&&i(n.length)&&!o(n)}function p(n,t){return t?n.bind(t):n}function c(n,t,e,r,o){for(var i=p(r,o),u=t,c=void 0;!1!==c&&u<e;u++)c=i(n[u],u,n)}function l(n,t,e){c(n,0,n.length,t,e)}function d(n,t,e,r){var o=p(e,r);for(var i in t)if(!1===n(o,t[i],i))break}function v(r,n,t){d(function(n,t,e){return r.hasOwnProperty(e)&&n(t,e,r)},r,n,t)}function b(n,t,e){for(var r=p(t,e),o=0,i=void 0;!1!==i&&o<n;o++)i=r(o,o,o)}function g(n,t,e){n&&(u(n)?l(n,t,e):i(n)?b(n,t,e):v(n,t,e))}function m(n,t,e){return n&&b(n,t,e)}function y(n){return!s(n)&&"object"==typeof n}function h(n,t,e){return y(n)&&v(n,t,e)}function j(n){return void 0===n}function w(n,t,e){for(var r;!s(n)&&(r=f.exec(t));){var o=r[0],i=r[1],u=r[2],c=r[3];n=n[u?c.replace(a,"$1"):i||o]}return j(n)?e:n}var x="celia_uid_"+(1e9*Math.random()>>>0),A=0;var N=Object.prototype.toString;function O(n){return N.call(n)}var C=Number.isInteger;function E(n){return"string"==typeof n}function R(n,t){return n[n.length]=t,n}function F(n,t,e,r){var o=[],i=p(e,r);return n(t,function(n,t){s(n=i(n,t))||R(o,n)}),o}C||(C=function(n){return i(n)&&isFinite(n)&&n>>0===n});var I={forNumber:m,map:function(n,t,e){return F(m,n,t,e)}};var U={assign:Object.assign||function(n){if(s(n))throw new TypeError("Cannot convert undefined or null to object");var e=Object(n);return c(arguments,1,arguments.length,function(n){h(n,function(n,t){e[t]=n})}),e},forIn:function(n,t,e){return y(n)&&function(r,n,t){d(function(n,t,e){return n(t,e,r)},r,n,t)}(n,t,e)},forOwn:h,get:w,map:function(n,t,e){return F(h,n,t,e)}};function L(n){return decodeURIComponent(n.replace(/\+/g," "))}var S=/([^=?&]+)=?([^&]*)/g,k=Array.isArray;var z={parse:function(n){var t={};if(E(n))for(var e;e=S.exec(n);){var r=e[1];if(e[0]!==r){var o=e[2],i=t[r];j(i)?t[r]=L(o):k(i)?R(i,L(o)):t[r]=[i,L(o)]}}return t},prefix:function(n,t){return n?(t||"?")+n:n},stringify:function(n,t,e){void 0===t&&(t="&"),void 0===e&&(e="=");var r=[];return h(n,function(n,t){n||!s(n)&&!isNaN(n)||(n=""),R(r,encodeURIComponent(t)+e+encodeURIComponent(n))}),r.length?r.join(t):""}};var D={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){D["[object "+n+"]"]=n.toLowerCase()});var M={isAbsolute:function(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)},join:function(n){var t=arguments.length;s(n)?1<t&&(n=""):n=n.replace(/\/+$/,"");var e="";return c(arguments,1,t,function(n){n&&(e+="/",e+=n)}),e&&(n+=e.replace(/\/+/g,"/")),n}};return{aop:n,browser:e,camelCase:function(n){return n.replace(r,function(n,t){return t.toUpperCase()})},each:g,forEach:function(n,t,e){return n&&l(n,t,e)},forNumber:m,forOwn:h,get:w,getUid:function(n){return n[x]||(n[x]=++A)},isArrayLike:u,isAsyncFunction:function(n){return"[object AsyncFunction]"===O(n)},isBoolean:function(n){return"boolean"==typeof n},isDate:function(n){return"[object Date]"===O(n)},isFunction:o,isInteger:function(n){return C(n)},isNil:s,isNumber:i,isObject:y,isPromiseLike:function(n){return!!n&&o(n.then)},isRegExp:function(n){return n instanceof RegExp},isString:E,isUndefined:j,isWindow:function(n){return n&&n===n.window},map:function(n,t,e){return F(g,n,t,e)},number:I,object:U,qs:z,sleep:function(t){return new Promise(function(n){setTimeout(n,t)})},type:function(n){return s(n)?n+"":y(n)||o(n)?D[O(n)]||"object":typeof n},url:M}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).celia=t(); | ||
var n,t;n=this,t=function(){"use strict";var n={after:function(n,t,e){var r=n[t];n[t]=function(){r.apply(this,arguments),e.call(this)}},around:function(n,t,e){var r=n[t];n[t]=function(){for(var n=[],t=arguments.length;t--;)n[t]=arguments[t];return e.call(this,r,n)}},before:function(n,t,e){var r=n[t];n[t]=function(){e.call(this),r.apply(this,arguments)}}},t={objectobject:7,objectundefined:6};var e={msie:function(){return document.documentMode||t[typeof document.all+typeof XMLHttpRequest]},os:function(n){n=n||"";var t={};t.webkit=n.match(/WebKit\/([\d.]+)/),t.android=n.match(/(Android)\s+([\d.]+)/)||n.match(/Silk-Accelerated/),t.androidICS=t.android&&n.match(/(Android)\s4/),t.ipad=n.match(/(iPad).*OS\s([\d_]+)/),t.iphone=!t.ipad&&n.match(/(iPhone\sOS)\s([\d_]+)/),t.ios7=(t.ipad||t.iphone)&&(n.match(/7_/)||n.match(/8_/)),t.webos=n.match(/(webOS|hpwOS)[\s/]([\d.]+)/),t.touchpad=t.webos&&n.match(/TouchPad/),t.ios=t.ipad||t.iphone,t.playbook=n.match(/PlayBook/),t.blackberry10=n.match(/BB10/),t.blackberry=t.playbook||t.blackberry10||n.match(/BlackBerry/),t.chrome=n.match(/Chrome/),t.opera=n.match(/Opera/),t.safari=n.match(/Safari\/([\d.]+)/),t.fennec=n.match(/fennec/i)||n.match(/Firefox/);var e=n.match(/MSIE\s([\d.]+)/)||n.match(/(?:trident)(?:.*rv:([\w.]+))?/i);return e&&(t.ie=parseFloat(e[1])),t.ieTouch=t.ie&&n.toLowerCase().match(/touch/i),t.tizen=n.match(/Tizen/i),t.kindle=n.match(/Silk-Accelerated/),t.wechat=n.match(/MicroMessenger/i),t}},r=/-([a-z])/g,a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,f=/\\(\\)?/g;function s(n){return null==n}function o(n){return"function"==typeof n}function i(n){return"number"==typeof n}function c(n){return!s(n)&&i(n.length)&&!o(n)}function d(n,t){return t?n.bind(t):n}function u(n,t,e,r,o){for(var i=d(r,o),c=t,u=void 0;!1!==u&&c<e;c++)u=i(n[c],c,n)}function l(n,t,e){u(n,0,n.length,t,e)}function p(n,t,e,r){var o=d(e,r);for(var i in t)if(!1===n(o,t[i],i))break}function h(r,n,t){p(function(n,t,e){return r.hasOwnProperty(e)&&n(t,e,r)},r,n,t)}function m(n,t,e){for(var r=d(t,e),o=0,i=void 0;!1!==i&&o<n;o++)i=r(o,o,o)}function b(n,t,e){n&&(c(n)?l(n,t,e):i(n)?m(n,t,e):h(n,t,e))}function v(n,t,e){return n&&m(n,t,e)}function y(n){return!s(n)&&"object"==typeof n}function g(n,t,e){return y(n)&&h(n,t,e)}function w(n){return void 0===n}function j(n,t,e){for(var r;!s(n)&&(r=a.exec(t));){var o=r[0],i=r[1],c=r[2],u=r[3];n=n[c?u.replace(f,"$1"):i||o]}return w(n)?e:n}var k="celia_uid_"+(1e9*Math.random()>>>0),O=0;var S=Object.prototype.toString;function A(n){return S.call(n)}var C=Number.isInteger||function(n){return i(n)&&isFinite(n)&&n>>0===n};function x(n){return"string"==typeof n}function E(n,t){return n[n.length]=t,n}function F(n,t,e,r){var o=[],i=d(e,r);return n(t,function(n,t){s(n=i(n,t))||E(o,n)}),o}var I={forNumber:v,map:function(n,t,e){return F(v,n,t,e)}};var N={assign:Object.assign||function(n){if(s(n))throw new TypeError("Cannot convert undefined or null to object");var e=Object(n);return u(arguments,1,arguments.length,function(n){h(n,function(n,t){e[t]=n})}),e},forIn:function(n,t,e){return y(n)&&function(r,n,t){p(function(n,t,e){return n(t,e,r)},r,n,t)}(n,t,e)},forOwn:g,get:j,map:function(n,t,e){return F(g,n,t,e)}};function B(n){return decodeURIComponent(n.replace(/\+/g," "))}var P=/([^=?&]+)=?([^&]*)/g,R=Array.isArray;var T={parse:function(n){var t={};if(x(n))for(var e;e=P.exec(n);){var r=e[1];if(e[0]!==r){var o=e[2],i=t[r];w(i)?t[r]=B(o):R(i)?E(i,B(o)):t[r]=[i,B(o)]}}return t},prefix:function(n,t){return n?(t||"?")+n:n},stringify:function(n,t,e){void 0===t&&(t="&"),void 0===e&&(e="=");var r=[];return g(n,function(n,t){n||!s(n)&&!isNaN(n)||(n=""),E(r,encodeURIComponent(t)+e+encodeURIComponent(n))}),r.length?r.join(t):""}};var M={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){M["[object "+n+"]"]=n.toLowerCase()});var U={isAbsolute:function(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)},join:function(n){var t=arguments.length;s(n)?1<t&&(n=""):n=n.replace(/\/+$/,"");var e="";return u(arguments,1,t,function(n){n&&(e+="/",e+=n)}),e&&(n+=e.replace(/\/+/g,"/")),n}};return{aop:n,browser:e,camelCase:function(n){return n.replace(r,function(n,t){return t.toUpperCase()})},debounce:function(n,t){var e=null;function r(){null!==e&&(clearTimeout(e),e=null)}function o(){r(),e=setTimeout(n,t)}return o.cancel=r,o},each:b,forEach:function(n,t,e){return n&&l(n,t,e)},forNumber:v,forOwn:g,get:j,getUid:function(n){return n[k]||(n[k]=++O)},isArrayLike:c,isAsyncFunction:function(n){return"[object AsyncFunction]"===A(n)},isBoolean:function(n){return"boolean"==typeof n},isDate:function(n){return"[object Date]"===A(n)},isFunction:o,isInteger:C,isNil:s,isNumber:i,isObject:y,isPromiseLike:function(n){return!!n&&o(n.then)},isRegExp:function(n){return n instanceof RegExp},isString:x,isUndefined:w,isWindow:function(n){return n&&n===n.window},map:function(n,t,e){return F(b,n,t,e)},number:I,object:N,qs:T,sleep:function(t){return new Promise(function(n){setTimeout(n,t)})},type:function(n){return s(n)?n+"":y(n)||o(n)?M[A(n)]||"object":typeof n},url:U}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).celia=t(); |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -39,11 +39,3 @@ * Released under the MIT License. | ||
function isObject (value) { | ||
return !isNil(value) && typeof value === 'object'; | ||
} | ||
function forOwn$1 (value, iterator, context) { | ||
return isObject(value) && forOwn(value, iterator, context); | ||
} | ||
var assign = Object.assign || function (target) { | ||
function _assign (target) { | ||
if (isNil(target)) { | ||
@@ -57,3 +49,3 @@ throw new TypeError('Cannot convert undefined or null to object'); | ||
forOwn$1(nextSource, function (nextVal, nextKey) { | ||
forOwn(nextSource, function (nextVal, nextKey) { | ||
to[nextKey] = nextVal; | ||
@@ -64,4 +56,6 @@ }); | ||
return to; | ||
}; | ||
} | ||
var assign = Object.assign || _assign; | ||
function forIn (value, iterator, context) { | ||
@@ -74,2 +68,6 @@ _for( | ||
function isObject (value) { | ||
return !isNil(value) && typeof value === 'object'; | ||
} | ||
function forIn$1 (value, iterator, context) { | ||
@@ -79,2 +77,6 @@ return isObject(value) && forIn(value, iterator, context); | ||
function forOwn$1 (value, iterator, context) { | ||
return isObject(value) && forOwn(value, iterator, context); | ||
} | ||
function isUndefined (value) { | ||
@@ -81,0 +83,0 @@ return typeof value === 'undefined'; |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -43,11 +43,3 @@ * Released under the MIT License. | ||
function isObject (value) { | ||
return !isNil(value) && typeof value === 'object'; | ||
} | ||
function forOwn$1 (value, iterator, context) { | ||
return isObject(value) && forOwn(value, iterator, context); | ||
} | ||
var assign = Object.assign || function (target) { | ||
function _assign (target) { | ||
if (isNil(target)) { | ||
@@ -61,3 +53,3 @@ throw new TypeError('Cannot convert undefined or null to object'); | ||
forOwn$1(nextSource, function (nextVal, nextKey) { | ||
forOwn(nextSource, function (nextVal, nextKey) { | ||
to[nextKey] = nextVal; | ||
@@ -68,4 +60,6 @@ }); | ||
return to; | ||
}; | ||
} | ||
var assign = Object.assign || _assign; | ||
function forIn (value, iterator, context) { | ||
@@ -78,2 +72,6 @@ _for( | ||
function isObject (value) { | ||
return !isNil(value) && typeof value === 'object'; | ||
} | ||
function forIn$1 (value, iterator, context) { | ||
@@ -83,2 +81,6 @@ return isObject(value) && forIn(value, iterator, context); | ||
function forOwn$1 (value, iterator, context) { | ||
return isObject(value) && forOwn(value, iterator, context); | ||
} | ||
function isUndefined (value) { | ||
@@ -85,0 +87,0 @@ return typeof value === 'undefined'; |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
* Released under the MIT License. | ||
*/ | ||
var n,t;n=this,t=function(){"use strict";function c(n){return null==n}function a(n,t){return t?n.bind(t):n}function o(n,t,r,e){var o=a(r,e);for(var u in t)if(!1===n(o,t[u],u))break}function e(n){return!c(n)&&"object"==typeof n}function u(n,t,r){return e(n)&&function(e,n,t){o(function(n,t,r){return e.hasOwnProperty(r)&&n(t,r,e)},e,n,t)}(n,t,r)}var n=Object.assign||function(n){if(c(n))throw new TypeError("Cannot convert undefined or null to object");var r=Object(n);return function(n,t,r,e,o){for(var u=a(e,o),f=t,i=void 0;!1!==i&&f<r;f++)i=u(n[f],f,n)}(arguments,1,arguments.length,function(n){u(n,function(n,t){r[t]=n})}),r};var d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v=/\\(\\)?/g;return{assign:n,forIn:function(n,t,r){return e(n)&&function(e,n,t){o(function(n,t,r){return n(t,r,e)},e,n,t)}(n,t,r)},forOwn:u,get:function(n,t,r){for(var e;!c(n)&&(e=d.exec(t));){var o=e[0],u=e[1],f=e[2],i=e[3];n=n[f?i.replace(v,"$1"):u||o]}return function(n){return void 0===n}(n)?r:n},map:function(n,t,r){return function(n,t,r,e){var o=[],u=a(r,e);return n(t,function(n,t){c(n=u(n,t))||function(n,t){n[n.length]=t}(o,n)}),o}(u,n,t,r)}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).celia=t(); | ||
var n,t;n=this,t=function(){"use strict";function c(n){return null==n}function a(n,t){return t?n.bind(t):n}function o(n,t,r,e){var o=a(r,e);for(var u in t)if(!1===n(o,t[u],u))break}function e(e,n,t){o(function(n,t,r){return e.hasOwnProperty(r)&&n(t,r,e)},e,n,t)}var n=Object.assign||function(n){if(c(n))throw new TypeError("Cannot convert undefined or null to object");var r=Object(n);return function(n,t,r,e,o){for(var u=a(e,o),f=t,i=void 0;!1!==i&&f<r;f++)i=u(n[f],f,n)}(arguments,1,arguments.length,function(n){e(n,function(n,t){r[t]=n})}),r};function u(n){return!c(n)&&"object"==typeof n}function f(n,t,r){return u(n)&&e(n,t,r)}var d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v=/\\(\\)?/g;return{assign:n,forIn:function(n,t,r){return u(n)&&function(e,n,t){o(function(n,t,r){return n(t,r,e)},e,n,t)}(n,t,r)},forOwn:f,get:function(n,t,r){for(var e;!c(n)&&(e=d.exec(t));){var o=e[0],u=e[1],f=e[2],i=e[3];n=n[f?i.replace(v,"$1"):u||o]}return function(n){return void 0===n}(n)?r:n},map:function(n,t,r){return function(n,t,r,e){var o=[],u=a(r,e);return n(t,function(n,t){c(n=u(n,t))||function(n,t){n[n.length]=t}(o,n)}),o}(f,n,t,r)}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).celia=t(); |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
/*! | ||
* celia.js v5.3.1 | ||
* celia.js v5.4.0 | ||
* (c) 2018-2019 Jesse Feng | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
import aop from './aop.js'; | ||
import browser from './browser.js'; | ||
import camelCase from './camelCase.js'; | ||
import debounce from './debounce.js'; | ||
import each from './each.js'; | ||
@@ -35,2 +36,3 @@ import forEach from './forEach.js'; | ||
camelCase, | ||
debounce, | ||
each, | ||
@@ -37,0 +39,0 @@ forEach, |
@@ -1,15 +0,3 @@ | ||
import isNumber from './isNumber'; | ||
import _isInteger from './_internal/_isInteger'; | ||
let { isInteger } = Number; | ||
if (!isInteger) { | ||
isInteger = function (value) { | ||
return isNumber(value) && | ||
isFinite(value) && | ||
(value >> 0) === value; | ||
}; | ||
} | ||
export default function (value) { | ||
return isInteger(value); | ||
} | ||
export default Number.isInteger || _isInteger; |
@@ -0,21 +1,3 @@ | ||
import _assign from '../_internal/_object/_assign'; | ||
import isNil from '../isNil'; | ||
import forSlice from '../_internal/_array/_forSlice'; | ||
import forOwn from '../forOwn'; | ||
export default Object.assign || function (target) { | ||
if (isNil(target)) { | ||
throw new TypeError('Cannot convert undefined or null to object'); | ||
} | ||
let to = Object(target); | ||
forSlice(arguments, 1, arguments.length, (nextSource) => { | ||
forOwn(nextSource, (nextVal, nextKey) => { | ||
to[nextKey] = nextVal; | ||
}); | ||
}); | ||
return to; | ||
}; | ||
export default Object.assign || _assign; |
{ | ||
"name": "celia", | ||
"version": "5.3.1", | ||
"version": "5.4.0", | ||
"description": "A modern JavaScript utility library delivering modularity, performance, & extras.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/celia.c.js", |
@@ -27,2 +27,5 @@ # celia | ||
<script src="https://cdn.jsdelivr.net/npm/celia/dist/celia.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/celia/dist/aop.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/celia/dist/browser.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/celia/dist/object.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/celia/dist/qs.min.js"></script> | ||
@@ -71,2 +74,3 @@ <script src="https://cdn.jsdelivr.net/npm/celia/dist/url.min.js"></script> | ||
- camelCase | ||
- debounce | ||
- each | ||
@@ -99,2 +103,3 @@ - forEach | ||
- browser/msie | ||
- browser/os | ||
- number/forNumber | ||
@@ -101,0 +106,0 @@ - number/map |
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
87021
92
2523
116