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 8.0.0-beta.1 to 8.0.0-beta.2

README.md

10

index.cjs.js

@@ -1,2 +0,2 @@

/* celia.js v8.0.0-beta.1 (c) 2018-2020 Jesse Feng Released under the MIT License. */
/* celia.js v8.0.0-beta.2 (c) 2018-2020 Jesse Feng Released under the MIT License. */
'use strict';

@@ -70,2 +70,6 @@

var _transform_js = _interopDefault(require('celia.object/_transform.js'));
var camelize_js = _interopDefault(require('celia.string/camelize.js'));
var capitalize_js = _interopDefault(require('celia.string/capitalize.js'));
var pathJoin_js = _interopDefault(require('celia.string/pathJoin.js'));
var stringFormat_js = _interopDefault(require('celia.string/stringFormat.js'));
var classname = _interopDefault(require('celia.classnames'));

@@ -137,3 +141,7 @@

exports._transform = _transform_js;
exports.camelize = camelize_js;
exports.capitalize = capitalize_js;
exports.pathJoin = pathJoin_js;
exports.stringFormat = stringFormat_js;
exports.className = classname;
exports.classNames = classNames;

@@ -1,2 +0,2 @@

/* celia.js v8.0.0-beta.1 (c) 2018-2020 Jesse Feng Released under the MIT License. */
/* celia.js v8.0.0-beta.2 (c) 2018-2020 Jesse Feng Released under the MIT License. */
export { default as deepFlat } from 'celia.array/es/deepFlat.js';

@@ -64,2 +64,6 @@ export { default as flat } from 'celia.array/es/flat.js';

export { default as _transform } from 'celia.object/es/_transform.js';
export { default as camelize } from 'celia.string/es/camelize.js';
export { default as capitalize } from 'celia.string/es/capitalize.js';
export { default as pathJoin } from 'celia.string/es/pathJoin.js';
export { default as stringFormat } from 'celia.string/es/stringFormat.js';
import classname from 'celia.classnames';

@@ -66,0 +70,0 @@ export { default as className } from 'celia.classnames';

124

index.js

@@ -1,2 +0,2 @@

/* celia.js v8.0.0-beta.1 (c) 2018-2020 Jesse Feng Released under the MIT License. */
/* celia.js v8.0.0-beta.2 (c) 2018-2020 Jesse Feng Released under the MIT License. */
(function (global, factory) {

@@ -20,3 +20,3 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :

function forEach (value, start, end, iterator) {
function iterate (value, start, end, iterator) {
for (; start < end; start++) {

@@ -34,3 +34,3 @@ if (iterator(value[start], start, value) === false) {

function flatten(arr, result, depth) {
forEach(arr, 0, arr.length, function (n) {
iterate(arr, 0, arr.length, function (n) {
if (depth > 0) {

@@ -42,10 +42,8 @@ if (isArrayLike(n)) {

}
} else if (isArrayLike(n)) {
iterate(n, 0, n.length, function (m) {
append(result, m);
});
} else {
if (isArrayLike(n)) {
forEach(n, 0, n.length, function (m) {
append(result, m);
});
} else {
append(result, n);
}
append(result, n);
}

@@ -77,3 +75,3 @@ });

function forEach$1 (value, start, end, iterator) {
function forEach (value, start, end, iterator) {
if (value) {

@@ -93,3 +91,3 @@ var len = value.length;

}
forEach(value, start, end, iterator);
iterate(value, start, end, iterator);
}

@@ -153,5 +151,6 @@ }

function _isInteger (value) {
return isNumber(value) &&
isFinite(value) &&
(value >> 0) === value;
return isNumber(value)
// eslint-disable-next-line no-restricted-globals
&& isFinite(value)
&& (value >> 0) === value;
}

@@ -181,5 +180,5 @@

function isPromiseLike (value) {
return !!value &&
isFunction(value.then) &&
isFunction(value.catch);
return !!value
&& isFunction(value.then)
&& isFunction(value.catch);
}

@@ -236,4 +235,4 @@

function _forNumber (value, iterator) {
for (var i = 0; i < value;i++) {
if(iterator(i+1, i, value) === false) {
for (var i = 0; i < value; i++) {
if (iterator(i + 1, i, value) === false) {
break;

@@ -248,3 +247,3 @@ }

if (isArrayLike(value)) {
forEach(value, 0, value.length, cb);
iterate(value, 0, value.length, cb);
} else if (isNumber(value)) {

@@ -266,3 +265,3 @@ _forNumber(value, cb);

configurable: true,
value: uidCounter
value: uidCounter,
});

@@ -322,3 +321,4 @@ }

var toString$2 = Object.prototype.toString;
var ref$1 = Object.prototype;
var toString$2 = ref$1.toString;

@@ -482,4 +482,4 @@ function toString$3 (value) {

var ref$1 = Object.prototype;
var hasOwnProperty$1 = ref$1.hasOwnProperty;
var ref$2 = Object.prototype;
var hasOwnProperty$1 = ref$2.hasOwnProperty;

@@ -556,2 +556,61 @@ function hasOwn (obj, key) {

var DASH_ALPHA_REGEX = /[-_. ]+([a-z])/g;
var cache = Object.create(null);
function camelize (value) {
if (isString(value)) {
var hit = cache[value];
// eslint-disable-next-line no-return-assign
return hit
|| (cache[value] = value.replace(DASH_ALPHA_REGEX, function (val, letter) { return letter.toUpperCase(); }));
}
return value;
}
var cache$1 = Object.create(null);
function capitalize (value) {
if (isString(value)) {
var hit = cache$1[value];
// eslint-disable-next-line no-return-assign
return hit || (cache$1[value] = value.charAt(0).toUpperCase() + value.slice(1));
}
return value;
}
function pathJoin (basePath) {
var len = arguments.length;
if (!len || isNil(basePath)) {
return '.';
}
var str = '';
// eslint-disable-next-line prefer-rest-params
iterate(arguments, 1, len, function (arg) {
if (arg) {
str += '/';
str += arg;
}
});
if (str) {
basePath = basePath.replace(/\/+$/, '') + str.replace(/\/+/g, '/');
}
return basePath;
}
var BY_KEY = /\{\s*(\w+)\s*\}/g;
function stringFormat (val, arg) {
if (val && !isNil(arg)) {
var regexp = BY_KEY;
val = val.replace(regexp, function (str, k) {
var newVal = arg[k];
return isNil(newVal) ? str : newVal;
});
}
return val;
}
function classnames(arg) {

@@ -562,5 +621,7 @@ if (arg) {

return arg;
} else if (isArrayLike(arg)) {
}
if (isArrayLike(arg)) {
return forArray(arg);
} else if (typeof arg === 'object') {
}
if (typeof arg === 'object') {
return forObject(arg);

@@ -598,2 +659,3 @@ }

classnames.concat = function () {
// eslint-disable-next-line prefer-rest-params
return forArray(arguments);

@@ -607,3 +669,3 @@ };

exports._flatten = flatten;
exports._forEach = forEach;
exports._forEach = iterate;
exports._forNumber = _forNumber;

@@ -622,2 +684,4 @@ exports._forOwn = _forOwn;

exports.assignDeep = deepAssign;
exports.camelize = camelize;
exports.capitalize = capitalize;
exports.className = classnames;

@@ -634,3 +698,3 @@ exports.classNames = classNames;

exports.flattenDeep = deepFlat;
exports.forEach = forEach$1;
exports.forEach = forEach;
exports.forIn = forIn;

@@ -664,2 +728,3 @@ exports.forNumber = forNumber;

exports.noop = noop;
exports.pathJoin = pathJoin;
exports.remove = remove$1;

@@ -669,2 +734,3 @@ exports.removeAt = removeAt$1;

exports.sleep = sleep;
exports.stringFormat = stringFormat;
exports.toString = toString$3;

@@ -671,0 +737,0 @@ exports.transform = transform$1;

@@ -1,2 +0,2 @@

/* celia.js v8.0.0-beta.1 (c) 2018-2020 Jesse Feng Released under the MIT License. */
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((n=n||self).celia={})}(this,(function(n){"use strict";function r(n){return"function"==typeof n}function t(n){return"number"==typeof n}function e(n){return!!n&&t(n.length)&&!r(n)}function o(n,r,t,e){for(;r<t&&!1!==e(n[r],r,n);r++);}function i(n,r){n[n.length]=r}function u(n,r,t){return o(n,0,n.length,(function(n){t>0?e(n)?u(n,r,--t):i(r,n):e(n)?o(n,0,n.length,(function(n){i(r,n)})):i(r,n)})),r}function f(n,r){return n?n.flat?n.flat(r||1):u(n,[],r||1):[]}function c(n){return f(n,1/0)}function a(n,r){return n<0?(t=0)>(e=r+n)?t:e:n;var t,e}function s(n,r){return n.splice(r,1)[0]||null}function l(n,r){var t=n.indexOf(r);return t>-1?s(n,t):null}var v=Array.isArray;var p=Array.isArray;var y=/^([a-z][a-z\d+\-.]*:)?\/\//i;var g=Object.prototype.toString;function _(n){return n instanceof Date}var d=[!1,null,void 0,0,""];function b(n){return t(n)&&isFinite(n)&&n>>0===n}var E=Number.isInteger||b;function h(n){return null==n}function O(n){return null!==n&&"object"==typeof n}var P=Object.prototype.toString;function A(n){return n instanceof RegExp}function j(n){return"string"==typeof n}var m=Object.prototype.hasOwnProperty;function R(n,r){return n.hasOwnProperty(r)}function w(n,r){return m.call(n,r)}function S(n,r){var t=n.hasOwnProperty?R:w;for(var e in n)if(t(n,e)&&!1===r(n[e],e,n))break}function x(n,r){for(var t=0;t<n&&!1!==r(t+1,t,n);t++);return n}function I(n,r){e(n)?o(n,0,n.length,r):t(n)?x(n,r):h(n)||S(n,r)}var N="__CUID__"+Math.random().toString(36).slice(2),C=0;function D(n){var r=n[N];return r||(r=++C,Object.defineProperty(n,N,{configurable:!0,value:C})),r}var F=Array.isArray,L=Object.keys;function k(n,r){if(n===r)return!0;if(O(n)&&O(r)){if(F(n)&&F(r))return n.length===r.length&&n.every((function(n,t){return k(n,r[t])}));if(_(n)&&_(r))return Number(n)===Number(r);if(A(n)&&A(r))return n.toString()===r.toString();var t=L(n),e=L(r);return t.length===e.length&&t.every((function(t){return k(n[t],r[t])}))}return!1}var M=Object.prototype.toString;function H(n,r){if(h(n))return n;S(n,r)}var T=Array.isArray;function U(n){var r=arguments;if(h(n))throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(n),e=1,o=arguments.length;e<o;e++){var i=r[e];H(i,(function(n,r){t[r]=n}))}return t}var $=Object.assign||U;function q(n,r){var t;h(r)||H(r,(function(r,e){O(t=n[e])&&O(r)?q(t,r):n[e]=r}))}function z(n){var r=arguments;if(h(n))throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(n),e=1,o=arguments.length;e<o;e++){var i=r[e];q(t,i)}return t}var B=Array.isArray;function V(n,r){return r?function n(r){var t=r;return B(r)?(t=[],r.forEach((function(r,e){t[e]=n(r)}))):O(r)&&(t={},H(r,(function(r,e){t[e]=n(r)}))),t}(n):function(n){return O(n)?$({},n):n}(n)}var W={PROP_NAME_RE:/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ESCAPE_CHAR_RE:/\\(\\)?/g,IS_DEEP_PROP_RE:/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/},Y=W.PROP_NAME_RE,G=W.ESCAPE_CHAR_RE,J=W.IS_DEEP_PROP_RE;function K(n,r){if(!j(r)||!J.test(r))return n[r];var t;for(Y.lastIndex=0;!h(n)&&(t=Y.exec(r));){var e=t[0],o=t[1],i=t[2],u=t[3];n=n[i?u.replace(G,"$1"):o||e]}return n}var Q=Object.prototype.hasOwnProperty;var X=W.PROP_NAME_RE,Z=W.ESCAPE_CHAR_RE,nn=W.IS_DEEP_PROP_RE;function rn(n,r,t,e){return n(r,(function(n,r,o){return t(e,n,r,o)})),e}function tn(n){if(n){var r=typeof n;if("string"===r||"number"===r)return n;if(e(n))return en(n);if("object"==typeof n)return function(n){var r=[];return H(n,(function(n,t){n&&(r[r.length]=t)})),r.join(" ")}(n)}return""}function en(n){var r=n.length;if(r>0){for(var t=[],e=0;e<r;e++){var o=tn(n[e]);o&&(t[t.length]=o)}return t.join(" ")}return""}tn.concat=function(){return en(arguments)};var on=tn.concat;n._append=i,n._assign=U,n._flatten=u,n._forEach=o,n._forNumber=x,n._forOwn=S,n._get=K,n._isInteger=b,n._ore=W,n._remove=l,n._removeAt=s,n._transIndex=a,n._transform=rn,n.alias=function(n,r){return O(n)?(H(r,(function(r,t){var e=n[t];T(r)?r.forEach((function(r){n[r]=e})):n[r]=e})),n):n},n.assert=function(n,r){if(!n)throw new Error(r)},n.assign=$,n.assignDeep=z,n.className=tn,n.classNames=on,n.cloneLoose=V,n.deepAssign=z,n.deepFlat=c,n.each=I,n.easyHash=function(n){return O(n)?"o"+D(n):(typeof n)[0]+n},n.equalLoose=k,n.flat=f,n.flatten=f,n.flattenDeep=c,n.forEach=function(n,t,e,i){if(n){var u=n.length;r(t)?(i=t,t=0,e=u):r(e)?(i=e,e=u,t=a(t,u)):(t=a(t,u),e=a(e,u)),o(n,t,e,i)}},n.forIn=function(n,r){if(h(n))return n;for(var t in n)if(!1===r(n[t],t,n))break},n.forNumber=function(n,r){if(h(n))return n;x(n,r)},n.forOwn=H,n.get=function(n,r,t){var e=h(n)?void 0:K(n,r);return void 0===e?t:e},n.hasOwn=function(n,r){return Q.call(n,r)},n.isAbsoluteURL=function(n){return y.test(n)},n.isArrayLike=e,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===g.call(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=_,n.isFalsy=function(n){return-1!==d.indexOf(n)||!n},n.isFunction=r,n.isInteger=E,n.isLeapYear=function(n){return n%4==0&&n%100!=0||n%400==0},n.isNil=h,n.isNumber=t,n.isObject=O,n.isPlainObject=function(n){return!!n&&"[object Object]"===P.call(n)},n.isPromiseLike=function(n){return!!n&&r(n.then)&&r(n.catch)},n.isRegExp=A,n.isString=j,n.isUndefined=function(n){return void 0===n},n.isValidDate=function(n){return _(n)&&"Invalid Date"!==n.toString()},n.isWindow=function(n){return!!n&&n===n.window},n.looseClone=V,n.looseEqual=k,n.map=function(n,r){var t=[];return I(n,(function(n,e){!h(n=r(n,e))&&i(t,n)})),t},n.noop=function(){},n.remove=function(n,r){return v(n)?l(n,r):null},n.removeAt=function(n,r){return p(n)?s(n,r):null},n.set=function(n,r,t){var e,o=n;if(h(o))return n;if(!j(r)||!nn.test(r))return o[r]=t,n;var i,u=[],f=0;for(X.lastIndex=0;e=X.exec(r);){var c=e[0],a=e[1],s=e[2],l=e[3],v=void 0;s?h(v=o[i=l.replace(Z,"$1")])&&(v=o[i]={}):a?h(v=o[i=a])&&(v=o[a]=[]):h(v=o[i=c])&&(v=o[c]={}),o=v,u[f++]=v}return(o=u[f-2])[i]=t,n},n.sleep=function(n){return new Promise((function(r){setTimeout(r,n)}))},n.toString=function(n){return M.call(n)},n.transform=function(n,r,t){return rn(H,n,r,t)},n.uid=D,Object.defineProperty(n,"__esModule",{value:!0})}));
/* celia.js v8.0.0-beta.2 (c) 2018-2020 Jesse Feng Released under the MIT License. */
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((n=n||self).celia={})}(this,(function(n){"use strict";function r(n){return"function"==typeof n}function t(n){return"number"==typeof n}function e(n){return!!n&&t(n.length)&&!r(n)}function o(n,r,t,e){for(;r<t&&!1!==e(n[r],r,n);r++);}function i(n,r){n[n.length]=r}function u(n,r,t){return o(n,0,n.length,(function(n){t>0?e(n)?u(n,r,--t):i(r,n):e(n)?o(n,0,n.length,(function(n){i(r,n)})):i(r,n)})),r}function f(n,r){return n?n.flat?n.flat(r||1):u(n,[],r||1):[]}function c(n){return f(n,1/0)}function a(n,r){return n<0?(t=0)>(e=r+n)?t:e:n;var t,e}function s(n,r){return n.splice(r,1)[0]||null}function l(n,r){var t=n.indexOf(r);return t>-1?s(n,t):null}var v=Array.isArray;var p=Array.isArray;var g=/^([a-z][a-z\d+\-.]*:)?\/\//i;var y=Object.prototype.toString;function _(n){return n instanceof Date}var d=[!1,null,void 0,0,""];function b(n){return t(n)&&isFinite(n)&&n>>0===n}var h=Number.isInteger||b;function E(n){return null==n}function O(n){return null!==n&&"object"==typeof n}var A=Object.prototype.toString;function P(n){return n instanceof RegExp}function j(n){return"string"==typeof n}var m=Object.prototype.hasOwnProperty;function R(n,r){return n.hasOwnProperty(r)}function w(n,r){return m.call(n,r)}function S(n,r){var t=n.hasOwnProperty?R:w;for(var e in n)if(t(n,e)&&!1===r(n[e],e,n))break}function x(n,r){for(var t=0;t<n&&!1!==r(t+1,t,n);t++);return n}function C(n,r){e(n)?o(n,0,n.length,r):t(n)?x(n,r):E(n)||S(n,r)}var I="__CUID__"+Math.random().toString(36).slice(2),N=0;function D(n){var r=n[I];return r||(r=++N,Object.defineProperty(n,I,{configurable:!0,value:N})),r}var F=Array.isArray,L=Object.keys;function k(n,r){if(n===r)return!0;if(O(n)&&O(r)){if(F(n)&&F(r))return n.length===r.length&&n.every((function(n,t){return k(n,r[t])}));if(_(n)&&_(r))return Number(n)===Number(r);if(P(n)&&P(r))return n.toString()===r.toString();var t=L(n),e=L(r);return t.length===e.length&&t.every((function(t){return k(n[t],r[t])}))}return!1}var z=Object.prototype.toString;function M(n,r){if(E(n))return n;S(n,r)}var U=Array.isArray;function H(n){var r=arguments;if(E(n))throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(n),e=1,o=arguments.length;e<o;e++){var i=r[e];M(i,(function(n,r){t[r]=n}))}return t}var $=Object.assign||H;function T(n,r){var t;E(r)||M(r,(function(r,e){O(t=n[e])&&O(r)?T(t,r):n[e]=r}))}function q(n){var r=arguments;if(E(n))throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(n),e=1,o=arguments.length;e<o;e++){var i=r[e];T(t,i)}return t}var B=Array.isArray;function J(n,r){return r?function n(r){var t=r;return B(r)?(t=[],r.forEach((function(r,e){t[e]=n(r)}))):O(r)&&(t={},M(r,(function(r,e){t[e]=n(r)}))),t}(n):function(n){return O(n)?$({},n):n}(n)}var V={PROP_NAME_RE:/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ESCAPE_CHAR_RE:/\\(\\)?/g,IS_DEEP_PROP_RE:/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/},W=V.PROP_NAME_RE,Y=V.ESCAPE_CHAR_RE,G=V.IS_DEEP_PROP_RE;function K(n,r){if(!j(r)||!G.test(r))return n[r];var t;for(W.lastIndex=0;!E(n)&&(t=W.exec(r));){var e=t[0],o=t[1],i=t[2],u=t[3];n=n[i?u.replace(Y,"$1"):o||e]}return n}var Q=Object.prototype.hasOwnProperty;var X=V.PROP_NAME_RE,Z=V.ESCAPE_CHAR_RE,nn=V.IS_DEEP_PROP_RE;function rn(n,r,t,e){return n(r,(function(n,r,o){return t(e,n,r,o)})),e}var tn=/[-_. ]+([a-z])/g,en=Object.create(null);var on=Object.create(null);var un=/\{\s*(\w+)\s*\}/g;function fn(n){if(n){var r=typeof n;if("string"===r||"number"===r)return n;if(e(n))return cn(n);if("object"==typeof n)return function(n){var r=[];return M(n,(function(n,t){n&&(r[r.length]=t)})),r.join(" ")}(n)}return""}function cn(n){var r=n.length;if(r>0){for(var t=[],e=0;e<r;e++){var o=fn(n[e]);o&&(t[t.length]=o)}return t.join(" ")}return""}fn.concat=function(){return cn(arguments)};var an=fn.concat;n._append=i,n._assign=H,n._flatten=u,n._forEach=o,n._forNumber=x,n._forOwn=S,n._get=K,n._isInteger=b,n._ore=V,n._remove=l,n._removeAt=s,n._transIndex=a,n._transform=rn,n.alias=function(n,r){return O(n)?(M(r,(function(r,t){var e=n[t];U(r)?r.forEach((function(r){n[r]=e})):n[r]=e})),n):n},n.assert=function(n,r){if(!n)throw new Error(r)},n.assign=$,n.assignDeep=q,n.camelize=function(n){return j(n)?en[n]||(en[n]=n.replace(tn,(function(n,r){return r.toUpperCase()}))):n},n.capitalize=function(n){return j(n)?on[n]||(on[n]=n.charAt(0).toUpperCase()+n.slice(1)):n},n.className=fn,n.classNames=an,n.cloneLoose=J,n.deepAssign=q,n.deepFlat=c,n.each=C,n.easyHash=function(n){return O(n)?"o"+D(n):(typeof n)[0]+n},n.equalLoose=k,n.flat=f,n.flatten=f,n.flattenDeep=c,n.forEach=function(n,t,e,i){if(n){var u=n.length;r(t)?(i=t,t=0,e=u):r(e)?(i=e,e=u,t=a(t,u)):(t=a(t,u),e=a(e,u)),o(n,t,e,i)}},n.forIn=function(n,r){if(E(n))return n;for(var t in n)if(!1===r(n[t],t,n))break},n.forNumber=function(n,r){if(E(n))return n;x(n,r)},n.forOwn=M,n.get=function(n,r,t){var e=E(n)?void 0:K(n,r);return void 0===e?t:e},n.hasOwn=function(n,r){return Q.call(n,r)},n.isAbsoluteURL=function(n){return g.test(n)},n.isArrayLike=e,n.isAsyncFunction=function(n){return"[object AsyncFunction]"===y.call(n)},n.isBoolean=function(n){return"boolean"==typeof n},n.isDate=_,n.isFalsy=function(n){return-1!==d.indexOf(n)||!n},n.isFunction=r,n.isInteger=h,n.isLeapYear=function(n){return n%4==0&&n%100!=0||n%400==0},n.isNil=E,n.isNumber=t,n.isObject=O,n.isPlainObject=function(n){return!!n&&"[object Object]"===A.call(n)},n.isPromiseLike=function(n){return!!n&&r(n.then)&&r(n.catch)},n.isRegExp=P,n.isString=j,n.isUndefined=function(n){return void 0===n},n.isValidDate=function(n){return _(n)&&"Invalid Date"!==n.toString()},n.isWindow=function(n){return!!n&&n===n.window},n.looseClone=J,n.looseEqual=k,n.map=function(n,r){var t=[];return C(n,(function(n,e){!E(n=r(n,e))&&i(t,n)})),t},n.noop=function(){},n.pathJoin=function(n){var r=arguments.length;if(!r||E(n))return".";var t="";return o(arguments,1,r,(function(n){n&&(t+="/",t+=n)})),t&&(n=n.replace(/\/+$/,"")+t.replace(/\/+/g,"/")),n},n.remove=function(n,r){return v(n)?l(n,r):null},n.removeAt=function(n,r){return p(n)?s(n,r):null},n.set=function(n,r,t){var e,o=n;if(E(o))return n;if(!j(r)||!nn.test(r))return o[r]=t,n;var i,u=[],f=0;for(X.lastIndex=0;e=X.exec(r);){var c=e[0],a=e[1],s=e[2],l=e[3],v=void 0;s?E(v=o[i=l.replace(Z,"$1")])&&(v=o[i]={}):a?E(v=o[i=a])&&(v=o[a]=[]):E(v=o[i=c])&&(v=o[c]={}),o=v,u[f++]=v}return(o=u[f-2])[i]=t,n},n.sleep=function(n){return new Promise((function(r){setTimeout(r,n)}))},n.stringFormat=function(n,r){if(n&&!E(r)){var t=un;n=n.replace(t,(function(n,t){var e=r[t];return E(e)?n:e}))}return n},n.toString=function(n){return z.call(n)},n.transform=function(n,r,t){return rn(M,n,r,t)},n.uid=D,Object.defineProperty(n,"__esModule",{value:!0})}));
{
"name": "celia",
"version": "8.0.0-beta.1",
"version": "8.0.0-beta.2",
"description": "A modern JavaScript utility library delivering modularity, performance, and extras.",

@@ -48,6 +48,10 @@ "main": "index.cjs.js",

"dependencies": {
"celia.array": "^1.0.2",
"celia.array": "^1.0.3",
"celia.classnames": "^1.0.2",
"celia.is": "^1.0.1",
"celia.object": "^2.0.2"
"celia.lang": "^1.0.0",
"celia.number": "^1.0.0",
"celia.object": "^2.0.3",
"celia.string": "^1.0.0"
}
}
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