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

celia

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

celia - npm Package Compare versions

Comparing version 5.6.0 to 5.6.1

2

dist/aop.c.js
/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -288,6 +288,4 @@ * Released under the MIT License.

function looseEqual(a, b) {
if (a !== b) {
if (!a || !b) { // null or undefined
return false;
} else if (isArray(a) && isArray(b)) { // 判断是否是数组
if (isObject(a) && isObject(b)) {
if (isArray(a) && isArray(b)) { // 判断是否是数组
return a.length === b.length && a.every(function (e, i) {

@@ -300,3 +298,3 @@ return looseEqual(e, b[i]);

return a.toString() === b.toString();
} else if (isObject(a) && isObject(b)) { // 对象
} else { // 对象
var keysA = Object.keys(a);

@@ -307,8 +305,5 @@ var keysB = Object.keys(b);

});
} else {
return String(a) === String(b);
}
}
return true;
return a === b;
}

@@ -315,0 +310,0 @@

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -286,6 +286,4 @@ * Released under the MIT License.

function looseEqual(a, b) {
if (a !== b) {
if (!a || !b) { // null or undefined
return false;
} else if (isArray(a) && isArray(b)) { // 判断是否是数组
if (isObject(a) && isObject(b)) {
if (isArray(a) && isArray(b)) { // 判断是否是数组
return a.length === b.length && a.every(function (e, i) {

@@ -298,3 +296,3 @@ return looseEqual(e, b[i]);

return a.toString() === b.toString();
} else if (isObject(a) && isObject(b)) { // 对象
} else { // 对象
var keysA = Object.keys(a);

@@ -305,8 +303,5 @@ var keysB = Object.keys(b);

});
} else {
return String(a) === String(b);
}
}
return true;
return a === b;
}

@@ -313,0 +308,0 @@

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -292,6 +292,4 @@ * Released under the MIT License.

function looseEqual(a, b) {
if (a !== b) {
if (!a || !b) { // null or undefined
return false;
} else if (isArray(a) && isArray(b)) { // 判断是否是数组
if (isObject(a) && isObject(b)) {
if (isArray(a) && isArray(b)) { // 判断是否是数组
return a.length === b.length && a.every(function (e, i) {

@@ -304,3 +302,3 @@ return looseEqual(e, b[i]);

return a.toString() === b.toString();
} else if (isObject(a) && isObject(b)) { // 对象
} else { // 对象
var keysA = Object.keys(a);

@@ -311,8 +309,5 @@ var keysB = Object.keys(b);

});
} else {
return String(a) === String(b);
}
}
return true;
return a === b;
}

@@ -319,0 +314,0 @@

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (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]},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 c(n){return"string"==typeof n}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 l(n,t){return t?n.bind(t):n}function d(n,t,e,r,o){for(var i=l(r,o),c=t,u=void 0;!1!==u&&c<e;c++)u=i(n[c],c,n)}function h(n,t,e){d(n,0,n.length,t,e)}function p(n,t,e,r){var o=l(e,r);for(var i in t)if(!1===n(o,t[i],i))break}function m(r,n,t){p(function(n,t,e){return r.hasOwnProperty(e)&&n(t,e,r)},r,n,t)}function b(n,t,e){for(var r=l(t,e),o=0,i=void 0;!1!==i&&o<n;o++)i=r(o,o,o)}function v(n,t,e){n&&(u(n)?h(n,t,e):i(n)?b(n,t,e):m(n,t,e))}function y(n,t,e){return n&&b(n,t,e)}function g(n){return null!==n&&"object"==typeof n}function j(n,t,e){return g(n)&&m(n,t,e)}function w(n){return void 0===n}function O(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 S="celia_uid_"+(1e9*Math.random()>>>0),k=0;var A=Object.prototype.hasOwnProperty;var C=Object.prototype.toString;function x(n){return C.call(n)}function E(n){return n instanceof Date}var P=Number.isInteger||function(n){return i(n)&&isFinite(n)&&n>>0===n};function F(n){return n instanceof RegExp}var I=Array.isArray;function N(n,t){return n[n.length]=t,n}function B(n,t,e,r){var o=[],i=l(e,r);return n(t,function(n,t){s(n=i(n,t))||N(o,n)}),o}var R={forNumber:y,map:function(n,t,e){return B(y,n,t,e)}};var T={assign:Object.assign||function(n){if(s(n))throw new TypeError("Cannot convert undefined or null to object");var e=Object(n);return d(arguments,1,arguments.length,function(n){m(n,function(n,t){e[t]=n})}),e},forIn:function(n,t,e){return g(n)&&function(r,n,t){p(function(n,t,e){return n(t,e,r)},r,n,t)}(n,t,e)},forOwn:j,get:O,map:function(n,t,e){return B(j,n,t,e)}};function _(n){return decodeURIComponent(n.replace(/\+/g," "))}var M=/([^=?&]+)=?([^&]*)/g,U=Array.isArray;var z={parse:function(n){var t={};if(c(n))for(var e;e=M.exec(n);){var r=e[1];if(e[0]!==r){var o=e[2],i=t[r];w(i)?t[r]=_(o):U(i)?N(i,_(o)):t[r]=[i,_(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 j(n,function(n,t){n||!s(n)&&!isNaN(n)||(n=""),N(r,encodeURIComponent(t)+e+encodeURIComponent(n))}),r.length?r.join(t):""}};var L={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){L["[object "+n+"]"]=n.toLowerCase()});var q={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 d(arguments,1,t,function(n){n&&(e+="/",e+=n)}),e&&(n+=e.replace(/\/+/g,"/")),n}};return{aop:n,browser:e,camelCase:function(n){return c(n)?n.replace(r,function(n,t){return t.toUpperCase()}):n},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:v,forEach:function(n,t,e){return n&&h(n,t,e)},forNumber:y,forOwn:j,get:O,getUid:function(n){return n[S]||(n[S]=++k)},hasOwn:function(n,t){return A.call(n,t)},isArrayLike:u,isAsyncFunction:function(n){return"[object AsyncFunction]"===x(n)},isBoolean:function(n){return"boolean"==typeof n},isDate:E,isFunction:o,isInteger:P,isNil:s,isNumber:i,isObject:g,isPlainObject:function(n){return!s(n)&&"[object Object]"===x(n)},isPromiseLike:function(n){return!!n&&o(n.then)&&o(n.catch)},isRegExp:F,isString:c,isUndefined:w,isWindow:function(n){return n&&n===n.window},looseEqual:function e(t,r){if(t===r)return!0;if(t&&r){if(I(t)&&I(r))return t.length===r.length&&t.every(function(n,t){return e(n,r[t])});if(E(t)&&E(r))return+t==+r;if(F(t)&&F(r))return t.toString()===r.toString();if(g(t)&&g(r)){var n=Object.keys(t),o=Object.keys(r);return n.length===o.length&&n.every(function(n){return e(t[n],r[n])})}return String(t)===String(r)}return!1},map:function(n,t,e){return B(v,n,t,e)},noop:function(){},number:R,object:T,qs:z,sleep:function(t){return new Promise(function(n){setTimeout(n,t)})},type:function(n){return s(n)?n+"":g(n)||o(n)?L[x(n)]||"object":typeof n},url:q}},"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 c(n){return"string"==typeof n}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 l(n,t){return t?n.bind(t):n}function d(n,t,e,r,o){for(var i=l(r,o),c=t,u=void 0;!1!==u&&c<e;c++)u=i(n[c],c,n)}function h(n,t,e){d(n,0,n.length,t,e)}function p(n,t,e,r){var o=l(e,r);for(var i in t)if(!1===n(o,t[i],i))break}function m(r,n,t){p(function(n,t,e){return r.hasOwnProperty(e)&&n(t,e,r)},r,n,t)}function b(n,t,e){for(var r=l(t,e),o=0,i=void 0;!1!==i&&o<n;o++)i=r(o,o,o)}function v(n,t,e){n&&(u(n)?h(n,t,e):i(n)?b(n,t,e):m(n,t,e))}function y(n,t,e){return n&&b(n,t,e)}function g(n){return null!==n&&"object"==typeof n}function j(n,t,e){return g(n)&&m(n,t,e)}function w(n){return void 0===n}function O(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),S=0;var A=Object.prototype.hasOwnProperty;var C=Object.prototype.toString;function x(n){return C.call(n)}function E(n){return n instanceof Date}var P=Number.isInteger||function(n){return i(n)&&isFinite(n)&&n>>0===n};function F(n){return n instanceof RegExp}var I=Array.isArray;function N(n,t){return n[n.length]=t,n}function B(n,t,e,r){var o=[],i=l(e,r);return n(t,function(n,t){s(n=i(n,t))||N(o,n)}),o}var R={forNumber:y,map:function(n,t,e){return B(y,n,t,e)}};var T={assign:Object.assign||function(n){if(s(n))throw new TypeError("Cannot convert undefined or null to object");var e=Object(n);return d(arguments,1,arguments.length,function(n){m(n,function(n,t){e[t]=n})}),e},forIn:function(n,t,e){return g(n)&&function(r,n,t){p(function(n,t,e){return n(t,e,r)},r,n,t)}(n,t,e)},forOwn:j,get:O,map:function(n,t,e){return B(j,n,t,e)}};function _(n){return decodeURIComponent(n.replace(/\+/g," "))}var M=/([^=?&]+)=?([^&]*)/g,U=Array.isArray;var z={parse:function(n){var t={};if(c(n))for(var e;e=M.exec(n);){var r=e[1];if(e[0]!==r){var o=e[2],i=t[r];w(i)?t[r]=_(o):U(i)?N(i,_(o)):t[r]=[i,_(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 j(n,function(n,t){n||!s(n)&&!isNaN(n)||(n=""),N(r,encodeURIComponent(t)+e+encodeURIComponent(n))}),r.length?r.join(t):""}};var L={};"Boolean,Number,String,Function,AsyncFunction,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){L["[object "+n+"]"]=n.toLowerCase()});var q={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 d(arguments,1,t,function(n){n&&(e+="/",e+=n)}),e&&(n+=e.replace(/\/+/g,"/")),n}};return{aop:n,browser:e,camelCase:function(n){return c(n)?n.replace(r,function(n,t){return t.toUpperCase()}):n},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:v,forEach:function(n,t,e){return n&&h(n,t,e)},forNumber:y,forOwn:j,get:O,getUid:function(n){return n[k]||(n[k]=++S)},hasOwn:function(n,t){return A.call(n,t)},isArrayLike:u,isAsyncFunction:function(n){return"[object AsyncFunction]"===x(n)},isBoolean:function(n){return"boolean"==typeof n},isDate:E,isFunction:o,isInteger:P,isNil:s,isNumber:i,isObject:g,isPlainObject:function(n){return!s(n)&&"[object Object]"===x(n)},isPromiseLike:function(n){return!!n&&o(n.then)&&o(n.catch)},isRegExp:F,isString:c,isUndefined:w,isWindow:function(n){return n&&n===n.window},looseEqual:function e(t,r){if(g(t)&&g(r)){if(I(t)&&I(r))return t.length===r.length&&t.every(function(n,t){return e(n,r[t])});if(E(t)&&E(r))return+t==+r;if(F(t)&&F(r))return t.toString()===r.toString();var n=Object.keys(t),o=Object.keys(r);return n.length===o.length&&n.every(function(n){return e(t[n],r[n])})}return t===r},map:function(n,t,e){return B(v,n,t,e)},noop:function(){},number:R,object:T,qs:z,sleep:function(t){return new Promise(function(n){setTimeout(n,t)})},type:function(n){return s(n)?n+"":g(n)||o(n)?L[x(n)]||"object":typeof n},url:q}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).celia=t();
/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

/*!
* celia.js v5.6.0
* celia.js v5.6.1
* (c) 2018-2019 Jesse Feng

@@ -4,0 +4,0 @@ * Released under the MIT License.

@@ -7,6 +7,4 @@ import isObject from './isObject';

export default function looseEqual(a, b) {
if (a !== b) {
if (!a || !b) { // null or undefined
return false;
} else if (isArray(a) && isArray(b)) { // 判断是否是数组
if (isObject(a) && isObject(b)) {
if (isArray(a) && isArray(b)) { // 判断是否是数组
return a.length === b.length && a.every((e, i) => {

@@ -19,3 +17,3 @@ return looseEqual(e, b[i]);

return a.toString() === b.toString();
} else if (isObject(a) && isObject(b)) { // 对象
} else { // 对象
const keysA = Object.keys(a);

@@ -26,8 +24,5 @@ const keysB = Object.keys(b);

});
} else {
return String(a) === String(b);
}
}
return true;
return a === b;
}
{
"name": "celia",
"version": "5.6.0",
"version": "5.6.1",
"description": "A modern JavaScript utility library delivering modularity, performance, & extras.",

@@ -5,0 +5,0 @@ "main": "./dist/celia.c.js",

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