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.4.0 to 5.5.0

hasOwn.js

2

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

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

/*!
* celia.js v5.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng

@@ -192,3 +192,3 @@ * Released under the MIT License.

function isObject (value) {
return !isNil(value) && typeof value === 'object';
return value !== null && typeof value === 'object';
}

@@ -225,2 +225,7 @@

var hasOwnProperty = Object.prototype.hasOwnProperty;
function hasOwn (obj, key) {
return hasOwnProperty.call(obj, key);
}
var toString = Object.prototype.toString;

@@ -252,4 +257,10 @@

function isPlainObject (value) {
return !isNil(value) && toString$1(value) === '[object Object]';
}
function isPromiseLike (value) {
return !!value && isFunction(value.then);
return !!value &&
isFunction(value.then) &&
isFunction(value.catch);
}

@@ -456,2 +467,3 @@

getUid: getUid,
hasOwn: hasOwn,
isArrayLike: isArrayLike,

@@ -466,2 +478,3 @@ isAsyncFunction: isAsyncFunction,

isObject: isObject,
isPlainObject: isPlainObject,
isPromiseLike: isPromiseLike,

@@ -468,0 +481,0 @@ isRegExp: isRegExp,

/*!
* celia.js v5.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng

@@ -190,3 +190,3 @@ * Released under the MIT License.

function isObject (value) {
return !isNil(value) && typeof value === 'object';
return value !== null && typeof value === 'object';
}

@@ -223,2 +223,7 @@

var hasOwnProperty = Object.prototype.hasOwnProperty;
function hasOwn (obj, key) {
return hasOwnProperty.call(obj, key);
}
var toString = Object.prototype.toString;

@@ -250,4 +255,10 @@

function isPlainObject (value) {
return !isNil(value) && toString$1(value) === '[object Object]';
}
function isPromiseLike (value) {
return !!value && isFunction(value.then);
return !!value &&
isFunction(value.then) &&
isFunction(value.catch);
}

@@ -454,2 +465,3 @@

getUid: getUid,
hasOwn: hasOwn,
isArrayLike: isArrayLike,

@@ -464,2 +476,3 @@ isAsyncFunction: isAsyncFunction,

isObject: isObject,
isPlainObject: isPlainObject,
isPromiseLike: isPromiseLike,

@@ -466,0 +479,0 @@ isRegExp: isRegExp,

/*!
* celia.js v5.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng

@@ -196,3 +196,3 @@ * Released under the MIT License.

function isObject (value) {
return !isNil(value) && typeof value === 'object';
return value !== null && typeof value === 'object';
}

@@ -229,2 +229,7 @@

var hasOwnProperty = Object.prototype.hasOwnProperty;
function hasOwn (obj, key) {
return hasOwnProperty.call(obj, key);
}
var toString = Object.prototype.toString;

@@ -256,4 +261,10 @@

function isPlainObject (value) {
return !isNil(value) && toString$1(value) === '[object Object]';
}
function isPromiseLike (value) {
return !!value && isFunction(value.then);
return !!value &&
isFunction(value.then) &&
isFunction(value.catch);
}

@@ -460,2 +471,3 @@

getUid: getUid,
hasOwn: hasOwn,
isArrayLike: isArrayLike,

@@ -470,2 +482,3 @@ isAsyncFunction: isAsyncFunction,

isObject: isObject,
isPlainObject: isPlainObject,
isPromiseLike: isPromiseLike,

@@ -472,0 +485,0 @@ isRegExp: isRegExp,

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

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

/*!
* celia.js v5.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng

@@ -66,3 +66,3 @@ * Released under the MIT License.

function isObject (value) {
return !isNil(value) && typeof value === 'object';
return value !== null && typeof value === 'object';
}

@@ -69,0 +69,0 @@

/*!
* celia.js v5.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng

@@ -70,3 +70,3 @@ * Released under the MIT License.

function isObject (value) {
return !isNil(value) && typeof value === 'object';
return value !== null && typeof value === 'object';
}

@@ -73,0 +73,0 @@

/*!
* celia.js v5.4.0
* celia.js v5.5.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(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();
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 null!==n&&"object"==typeof n}function f(n,t,r){return u(n)&&e(n,t,r)}var d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/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(l,"$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.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng

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

function isNil (value) {
/* eslint eqeqeq: 0 */
return value == null;
}
function isObject (value) {
return !isNil(value) && typeof value === 'object';
return value !== null && typeof value === 'object';
}

@@ -88,2 +83,7 @@

function isNil (value) {
/* eslint eqeqeq: 0 */
return value == null;
}
function stringify(obj, sep, eq) {

@@ -90,0 +90,0 @@ if ( sep === void 0 ) sep = '&';

/*!
* celia.js v5.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng

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

function isNil (value) {
/* eslint eqeqeq: 0 */
return value == null;
}
function isObject (value) {
return !isNil(value) && typeof value === 'object';
return value !== null && typeof value === 'object';
}

@@ -92,2 +87,7 @@

function isNil (value) {
/* eslint eqeqeq: 0 */
return value == null;
}
function stringify(obj, sep, eq) {

@@ -94,0 +94,0 @@ if ( sep === void 0 ) sep = '&';

/*!
* celia.js v5.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
var n,e;n=this,e=function(){"use strict";function f(n,e){return n[n.length]=e,n}function u(n){return decodeURIComponent(n.replace(/\+/g," "))}var c=/([^=?&]+)=?([^&]*)/g,a=Array.isArray;function o(n){return null==n}function i(n,e,r){return function(n){return!o(n)&&"object"==typeof n}(n)&&function(t,n,e){!function(n,e,r,t){var o=function(n,e){return e?n.bind(e):n}(r,t);for(var i in e)if(!1===n(o,e[i],i))break}(function(n,e,r){return t.hasOwnProperty(r)&&n(e,r,t)},t,n,e)}(n,e,r)}return{parse:function(n){var e={};if(function(n){return"string"==typeof n}(n))for(var r;r=c.exec(n);){var t=r[1];if(r[0]!==t){var o=r[2],i=e[t];void 0===i?e[t]=u(o):a(i)?f(i,u(o)):e[t]=[i,u(o)]}}return e},prefix:function(n,e){return n?(e||"?")+n:n},stringify:function(n,e,r){void 0===e&&(e="&"),void 0===r&&(r="=");var t=[];return i(n,function(n,e){n||!o(n)&&!isNaN(n)||(n=""),f(t,encodeURIComponent(e)+r+encodeURIComponent(n))}),t.length?t.join(e):""}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(n=n||self).celia=e();
var n,e;n=this,e=function(){"use strict";function f(n,e){return n[n.length]=e,n}function u(n){return decodeURIComponent(n.replace(/\+/g," "))}var c=/([^=?&]+)=?([^&]*)/g,a=Array.isArray;return{parse:function(n){var e={};if(function(n){return"string"==typeof n}(n))for(var r;r=c.exec(n);){var t=r[1];if(r[0]!==t){var o=r[2],i=e[t];void 0===i?e[t]=u(o):a(i)?f(i,u(o)):e[t]=[i,u(o)]}}return e},prefix:function(n,e){return n?(e||"?")+n:n},stringify:function(n,e,r){void 0===e&&(e="&"),void 0===r&&(r="=");var t=[];return function(n,e,r){(function(n){return null!==n&&"object"==typeof n})(n)&&function(t,n,e){!function(n,e,r,t){var o=function(n,e){return e?n.bind(e):n}(r,t);for(var i in e)if(!1===n(o,e[i],i))break}(function(n,e,r){return t.hasOwnProperty(r)&&n(e,r,t)},t,n,e)}(n,e,r)}(n,function(n,e){n||!function(n){return null==n}(n)&&!isNaN(n)||(n=""),f(t,encodeURIComponent(e)+r+encodeURIComponent(n))}),t.length?t.join(e):""}}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(n=n||self).celia=e();
/*!
* celia.js v5.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.4.0
* celia.js v5.5.0
* (c) 2018-2019 Jesse Feng

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

@@ -11,2 +11,3 @@ import aop from './aop.js';

import getUid from './getUid.js';
import hasOwn from './hasOwn.js';
import isArrayLike from './isArrayLike.js';

@@ -21,2 +22,3 @@ import isAsyncFunction from './isAsyncFunction.js';

import isObject from './isObject.js';
import isPlainObject from './isPlainObject.js';
import isPromiseLike from './isPromiseLike.js';

@@ -45,2 +47,3 @@ import isRegExp from './isRegExp.js';

getUid,
hasOwn,
isArrayLike,

@@ -55,2 +58,3 @@ isAsyncFunction,

isObject,
isPlainObject,
isPromiseLike,

@@ -57,0 +61,0 @@ isRegExp,

@@ -1,5 +0,3 @@

import isNil from './isNil';
export default function (value) {
return !isNil(value) && typeof value === 'object';
return value !== null && typeof value === 'object';
};
import isFunction from './isFunction';
export default function (value) {
return !!value && isFunction(value.then);
return !!value &&
isFunction(value.then) &&
isFunction(value.catch);
}
{
"name": "celia",
"version": "5.4.0",
"version": "5.5.0",
"description": "A modern JavaScript utility library delivering modularity, performance, & extras.",

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

@@ -80,2 +80,3 @@ # celia

- getUid
- hasOwn
- isArrayLike

@@ -90,2 +91,3 @@ - isAsyncFunction

- isObject
- isPlainObject
- isPromiseLike

@@ -92,0 +94,0 @@ - isRegExp

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