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.1.0 to 5.1.1

2

dist/browser.c.js
/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng

@@ -8,2 +8,15 @@ * Released under the MIT License.

var versions = {
objectobject: 7, // IE7-8
objectundefined: 6 // IE6
};
var msie = (function (doc) {
return doc.documentMode || versions[typeof doc.all + typeof XMLHttpRequest];
})(document || {});
var browser = {
msie: msie
};
var DASH_ALPHA_REGEX = /-([a-z])/g;

@@ -182,2 +195,104 @@

function map$2 (elems, callback, context) {
return map(forNumber$1, elems, callback, context);
}
var number = {
forNumber: forNumber$1,
map: map$2
};
var assign = Object.assign || function (target) {
if (isNil(target)) {
throw new TypeError('Cannot convert undefined or null to object');
}
var to = Object(target);
forSlice(arguments, 1, arguments.length, function (nextSource) {
forOwn$1(nextSource, function (nextVal, nextKey) {
to[nextKey] = nextVal;
});
});
return to;
};
function forIn (value, iterator, context) {
_for(
function (cb, val, key) { return cb(val, key, value) === false; },
value, iterator, context
);
}
function forIn$1 (value, iterator, context) {
return isObject(value) && forIn(value, iterator, context);
}
function map$3 (elems, callback, context) {
return map(forOwn$1, elems, callback, context);
}
var object = {
assign: assign,
forIn: forIn$1,
forOwn: forOwn$1,
map: map$3
};
function decode(input) {
return decodeURIComponent(input.replace(/\+/g, ' '));
}
var rParser = /([^=?&]+)=?([^&]*)/g;
var isArray = Array.isArray;
function parse (query) {
var result = {};
if (isString(query)) {
var part;
while ((part = rParser.exec(query))) {
var key = part[1];
if (part[0] !== key) {
var value = part[2];
var last = result[key];
// 没有相同的key值
if (isUndefined(last)) {
result[key] = decode(value);
} else if (isArray(last)) { // 继续追加
append(last, decode(value));
} else { // 已存在key
result[key] = [last, decode(value)];
}
}
}
}
return result;
}
function prefix (str, prefix) {
return str ? (prefix || '?') + str : str;
}
function stringify(obj, sep, eq) {
if ( sep === void 0 ) sep = '&';
if ( eq === void 0 ) eq = '=';
var arr = [];
forOwn$1(obj, function (value, key) {
if (!value && (isNil(value) || isNaN(value))) {
value = '';
}
append(arr, encodeURIComponent(key) + eq + encodeURIComponent(value));
});
return arr.length ? arr.join(sep) : '';
}
var qs = {
parse: parse,
prefix: prefix,
stringify: stringify
};
function sleep (ms) {

@@ -201,3 +316,33 @@ return new Promise(function (resolve) {

function isAbsolute (url) {
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
}
function join (baseURL) {
var len = arguments.length;
if (!isNil(baseURL)) {
baseURL = baseURL.replace(/\/+$/, '');
} else if (len > 1) {
baseURL = '';
}
var str = '';
forSlice(arguments, 1, len, function (arg) {
if (arg) {
str += '/';
str += arg;
}
});
if (str) {
baseURL += str.replace(/\/+/g, '/');
}
return baseURL;
}
var url = {
isAbsolute: isAbsolute,
join: join
};
var index = {
browser: browser,
camelCase: camelCase,

@@ -224,6 +369,10 @@ each: each,

map: map$1,
number: number,
object: object,
qs: qs,
sleep: sleep,
type: type
type: type,
url: url
};
module.exports = index;
/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
var versions = {
objectobject: 7, // IE7-8
objectundefined: 6 // IE6
};
var msie = (function (doc) {
return doc.documentMode || versions[typeof doc.all + typeof XMLHttpRequest];
})(document || {});
var browser = {
msie: msie
};
var DASH_ALPHA_REGEX = /-([a-z])/g;

@@ -179,2 +192,104 @@

function map$2 (elems, callback, context) {
return map(forNumber$1, elems, callback, context);
}
var number = {
forNumber: forNumber$1,
map: map$2
};
var assign = Object.assign || function (target) {
if (isNil(target)) {
throw new TypeError('Cannot convert undefined or null to object');
}
var to = Object(target);
forSlice(arguments, 1, arguments.length, function (nextSource) {
forOwn$1(nextSource, function (nextVal, nextKey) {
to[nextKey] = nextVal;
});
});
return to;
};
function forIn (value, iterator, context) {
_for(
function (cb, val, key) { return cb(val, key, value) === false; },
value, iterator, context
);
}
function forIn$1 (value, iterator, context) {
return isObject(value) && forIn(value, iterator, context);
}
function map$3 (elems, callback, context) {
return map(forOwn$1, elems, callback, context);
}
var object = {
assign: assign,
forIn: forIn$1,
forOwn: forOwn$1,
map: map$3
};
function decode(input) {
return decodeURIComponent(input.replace(/\+/g, ' '));
}
var rParser = /([^=?&]+)=?([^&]*)/g;
var isArray = Array.isArray;
function parse (query) {
var result = {};
if (isString(query)) {
var part;
while ((part = rParser.exec(query))) {
var key = part[1];
if (part[0] !== key) {
var value = part[2];
var last = result[key];
// 没有相同的key值
if (isUndefined(last)) {
result[key] = decode(value);
} else if (isArray(last)) { // 继续追加
append(last, decode(value));
} else { // 已存在key
result[key] = [last, decode(value)];
}
}
}
}
return result;
}
function prefix (str, prefix) {
return str ? (prefix || '?') + str : str;
}
function stringify(obj, sep, eq) {
if ( sep === void 0 ) sep = '&';
if ( eq === void 0 ) eq = '=';
var arr = [];
forOwn$1(obj, function (value, key) {
if (!value && (isNil(value) || isNaN(value))) {
value = '';
}
append(arr, encodeURIComponent(key) + eq + encodeURIComponent(value));
});
return arr.length ? arr.join(sep) : '';
}
var qs = {
parse: parse,
prefix: prefix,
stringify: stringify
};
function sleep (ms) {

@@ -198,3 +313,33 @@ return new Promise(function (resolve) {

function isAbsolute (url) {
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
}
function join (baseURL) {
var len = arguments.length;
if (!isNil(baseURL)) {
baseURL = baseURL.replace(/\/+$/, '');
} else if (len > 1) {
baseURL = '';
}
var str = '';
forSlice(arguments, 1, len, function (arg) {
if (arg) {
str += '/';
str += arg;
}
});
if (str) {
baseURL += str.replace(/\/+/g, '/');
}
return baseURL;
}
var url = {
isAbsolute: isAbsolute,
join: join
};
var index = {
browser: browser,
camelCase: camelCase,

@@ -221,6 +366,10 @@ each: each,

map: map$1,
number: number,
object: object,
qs: qs,
sleep: sleep,
type: type
type: type,
url: url
};
export default index;
/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng

@@ -12,2 +12,15 @@ * Released under the MIT License.

var versions = {
objectobject: 7, // IE7-8
objectundefined: 6 // IE6
};
var msie = (function (doc) {
return doc.documentMode || versions[typeof doc.all + typeof XMLHttpRequest];
})(document || {});
var browser = {
msie: msie
};
var DASH_ALPHA_REGEX = /-([a-z])/g;

@@ -186,2 +199,104 @@

function map$2 (elems, callback, context) {
return map(forNumber$1, elems, callback, context);
}
var number = {
forNumber: forNumber$1,
map: map$2
};
var assign = Object.assign || function (target) {
if (isNil(target)) {
throw new TypeError('Cannot convert undefined or null to object');
}
var to = Object(target);
forSlice(arguments, 1, arguments.length, function (nextSource) {
forOwn$1(nextSource, function (nextVal, nextKey) {
to[nextKey] = nextVal;
});
});
return to;
};
function forIn (value, iterator, context) {
_for(
function (cb, val, key) { return cb(val, key, value) === false; },
value, iterator, context
);
}
function forIn$1 (value, iterator, context) {
return isObject(value) && forIn(value, iterator, context);
}
function map$3 (elems, callback, context) {
return map(forOwn$1, elems, callback, context);
}
var object = {
assign: assign,
forIn: forIn$1,
forOwn: forOwn$1,
map: map$3
};
function decode(input) {
return decodeURIComponent(input.replace(/\+/g, ' '));
}
var rParser = /([^=?&]+)=?([^&]*)/g;
var isArray = Array.isArray;
function parse (query) {
var result = {};
if (isString(query)) {
var part;
while ((part = rParser.exec(query))) {
var key = part[1];
if (part[0] !== key) {
var value = part[2];
var last = result[key];
// 没有相同的key值
if (isUndefined(last)) {
result[key] = decode(value);
} else if (isArray(last)) { // 继续追加
append(last, decode(value));
} else { // 已存在key
result[key] = [last, decode(value)];
}
}
}
}
return result;
}
function prefix (str, prefix) {
return str ? (prefix || '?') + str : str;
}
function stringify(obj, sep, eq) {
if ( sep === void 0 ) sep = '&';
if ( eq === void 0 ) eq = '=';
var arr = [];
forOwn$1(obj, function (value, key) {
if (!value && (isNil(value) || isNaN(value))) {
value = '';
}
append(arr, encodeURIComponent(key) + eq + encodeURIComponent(value));
});
return arr.length ? arr.join(sep) : '';
}
var qs = {
parse: parse,
prefix: prefix,
stringify: stringify
};
function sleep (ms) {

@@ -205,3 +320,33 @@ return new Promise(function (resolve) {

function isAbsolute (url) {
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
}
function join (baseURL) {
var len = arguments.length;
if (!isNil(baseURL)) {
baseURL = baseURL.replace(/\/+$/, '');
} else if (len > 1) {
baseURL = '';
}
var str = '';
forSlice(arguments, 1, len, function (arg) {
if (arg) {
str += '/';
str += arg;
}
});
if (str) {
baseURL += str.replace(/\/+/g, '/');
}
return baseURL;
}
var url = {
isAbsolute: isAbsolute,
join: join
};
var index = {
browser: browser,
camelCase: camelCase,

@@ -228,4 +373,8 @@ each: each,

map: map$1,
number: number,
object: object,
qs: qs,
sleep: sleep,
type: type
type: type,
url: url
};

@@ -232,0 +381,0 @@

/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng
* Released under the MIT License.
*/
var n,t;n=this,t=function(){"use strict";var t=/-([a-z])/g;function f(n){return null==n}function e(n){return"function"==typeof n}function r(n){return"number"==typeof n}function o(n){return!f(n)&&r(n.length)&&!e(n)}function a(n,t){return t?n.bind(t):n}function i(n,t,e){!function(n,t,e,r,o){for(var i=a(r,o),u=t,c=void 0;!1!==c&&u<e;u++)c=i(n[u],u,n)}(n,0,n.length,t,e)}function u(r,n,t){!function(n,t,e,r){var o=a(e,r);for(var i in t)if(n(o,t[i],i))break}(function(n,t,e){return r.hasOwnProperty(e)&&!1===n(t,e,r)},r,n,t)}function c(n,t,e){for(var r=a(t,e),o=0,i=void 0;!1!==i&&o<n;o++)i=r(o,o,o)}function s(n,t,e){n&&(o(n)?i(n,t,e):r(n)?c(n,t,e):u(n,t,e))}function p(n){return!f(n)&&"object"==typeof n}function l(n){return void 0===n}var d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,b=/\\(\\)?/g;var y="celia_uid_"+(1e9*Math.random()>>>0),v=0;var g=Object.prototype.toString;function m(n){return g.call(n)}var h={};return"Boolean,Number,String,Function,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){h["[object "+n+"]"]=n.toLowerCase()}),{camelCase:function(n){return n.replace(t,function(n,t){return t.toUpperCase()})},each:s,forEach:function(n,t,e){return n&&i(n,t,e)},forNumber:function(n,t,e){return n&&c(n,t,e)},forOwn:function(n,t,e){return p(n)&&u(n,t,e)},get:function(n,t,e){for(var r;!f(n)&&(r=d.exec(t));){var o=r[0],i=r[1],u=r[2],c=r[3];n=n[u?c.replace(b,"$1"):i||o]}return l(n)?e:n},getUid:function(n){return n[y]||(n[y]=++v)},isArrayLike:o,isAsyncFunction:function(n){return"[object AsyncFunction]"===m(n)},isBoolean:function(n){return"boolean"==typeof n},isDate:function(n){return"[object Date]"===m(n)},isFunction:e,isNil:f,isNumber:r,isObject:p,isPromiseLike:function(n){return!!n&&e(n.then)},isRegExp:function(n){return"[object RegExp]"===m(n)},isString:function(n){return"string"==typeof n},isUndefined:l,isWindow:function(n){return n&&n===n.window},map:function(n,t,e){return function(n,t,e,r){var o=[],i=a(e,r);return n(t,function(n,t){f(n=i(n,t))||function(n,t){n[n.length]=t}(o,n)}),o}(s,n,t,e)},sleep:function(t){return new Promise(function(n){setTimeout(n,t)})},type:function(n){return f(n)?n+"":p(n)||e(n)?h[m(n)]||"object":typeof n}}},"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,t={objectobject:7,objectundefined:6},e={msie:(n=document||{}).documentMode||t[typeof n.all+typeof XMLHttpRequest]},r=/-([a-z])/g;function f(n){return null==n}function o(n){return"function"==typeof n}function i(n){return"number"==typeof n}function u(n){return!f(n)&&i(n.length)&&!o(n)}function a(n,t){return t?n.bind(t):n}function c(n,t,e,r,o){for(var i=a(r,o),u=t,c=void 0;!1!==c&&u<e;u++)c=i(n[u],u,n)}function s(n,t,e){c(n,0,n.length,t,e)}function p(n,t,e,r){var o=a(e,r);for(var i in t)if(n(o,t[i],i))break}function d(r,n,t){p(function(n,t,e){return r.hasOwnProperty(e)&&!1===n(t,e,r)},r,n,t)}function l(n,t,e){for(var r=a(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)?s(n,t,e):i(n)?l(n,t,e):d(n,t,e))}function b(n,t,e){return n&&l(n,t,e)}function g(n){return!f(n)&&"object"==typeof n}function m(n,t,e){return g(n)&&d(n,t,e)}function y(n){return void 0===n}var j=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g;var w="celia_uid_"+(1e9*Math.random()>>>0),x=0;var O=Object.prototype.toString;function A(n){return O.call(n)}function C(n){return"string"==typeof n}function E(n,t){return n[n.length]=t,n}function N(n,t,e,r){var o=[],i=a(e,r);return n(t,function(n,t){f(n=i(n,t))||E(o,n)}),o}var R={forNumber:b,map:function(n,t,e){return N(b,n,t,e)}};var U={assign:Object.assign||function(n){if(f(n))throw new TypeError("Cannot convert undefined or null to object");var e=Object(n);return c(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!1===n(t,e,r)},r,n,t)}(n,t,e)},forOwn:m,map:function(n,t,e){return N(m,n,t,e)}};function F(n){return decodeURIComponent(n.replace(/\+/g," "))}var I=/([^=?&]+)=?([^&]*)/g,L=Array.isArray;var S={parse:function(n){var t={};if(C(n))for(var e;e=I.exec(n);){var r=e[1];if(e[0]!==r){var o=e[2],i=t[r];y(i)?t[r]=F(o):L(i)?E(i,F(o)):t[r]=[i,F(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 m(n,function(n,t){n||!f(n)&&!isNaN(n)||(n=""),E(r,encodeURIComponent(t)+e+encodeURIComponent(n))}),r.length?r.join(t):""}};var k={};"Boolean,Number,String,Function,Array,Date,RegExp,Object,Error,Symbol".split(",").forEach(function(n){k["[object "+n+"]"]=n.toLowerCase()});var z={isAbsolute:function(n){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)},join:function(n){var t=arguments.length;f(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{browser:e,camelCase:function(n){return n.replace(r,function(n,t){return t.toUpperCase()})},each:v,forEach:function(n,t,e){return n&&s(n,t,e)},forNumber:b,forOwn:m,get:function(n,t,e){for(var r;!f(n)&&(r=j.exec(t));){var o=r[0],i=r[1],u=r[2],c=r[3];n=n[u?c.replace(h,"$1"):i||o]}return y(n)?e:n},getUid:function(n){return n[w]||(n[w]=++x)},isArrayLike:u,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,isNil:f,isNumber:i,isObject:g,isPromiseLike:function(n){return!!n&&o(n.then)},isRegExp:function(n){return"[object RegExp]"===A(n)},isString:C,isUndefined:y,isWindow:function(n){return n&&n===n.window},map:function(n,t,e){return N(v,n,t,e)},number:R,object:U,qs:S,sleep:function(t){return new Promise(function(n){setTimeout(n,t)})},type:function(n){return f(n)?n+"":g(n)||o(n)?k[A(n)]||"object":typeof n},url:z}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).celia=t();
/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng

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

/*!
* celia.js v5.1.0
* celia.js v5.1.1
* (c) 2018-2019 Jesse Feng

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

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

import browser from './browser.js';
import camelCase from './camelCase.js';

@@ -22,5 +23,10 @@ import each from './each.js';

import map from './map.js';
import number from './number.js';
import object from './object.js';
import qs from './qs.js';
import sleep from './sleep.js';
import type from './type.js';
import url from './url.js';
export default {
browser,
camelCase,

@@ -47,4 +53,8 @@ each,

map,
number,
object,
qs,
sleep,
type
type,
url
};
{
"name": "celia",
"version": "5.1.0",
"version": "5.1.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