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

jeefo

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jeefo - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

do_ping.sh

10

build.js
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
* File Name : build.js
* Created at : 2016-09-01
* Updated at : 2016-09-01
* Updated at : 2016-09-02
* Author : jeefo

@@ -20,3 +20,3 @@ * Purpose :

var header = "/*\n jeefo v__VERSION__\n (c) 2016 jeefo <je3f0o@gmail.com>. https://github.com/je3f0o/jeefo\n License: MIT\n*/\n".
var header = "/*\n jeefo v__VERSION__\n Copyright (c) 2016 jeefo <je3f0o@gmail.com>, https://github.com/je3f0o/jeefo\n License: MIT\n*/\n".
replace("__VERSION__", VERSION);

@@ -27,3 +27,3 @@

var universal_module_definition = function (scope, factory) {
var universal_module_definition = function (factory) {
// jshint strict:false

@@ -33,6 +33,6 @@ if (typeof exports === "object") {

} else {
scope.LIBRARY_NAME = factory();
window.LIBRARY_NAME = factory();
}
}.toString().replace("LIBRARY_NAME", LIBRARY_NAME);
var compiled_source = '(MODULE(this, function () { "use strict";\n\n__SOURCE__\nreturn {\n__EXPORTS__\n};\n\n}));'.
var compiled_source = '(MODULE(function () { "use strict";\n\n__SOURCE__\nreturn {\n__EXPORTS__\n};\n\n}));'.
replace("MODULE", universal_module_definition);

@@ -39,0 +39,0 @@

/*
jeefo v0.0.2
(c) 2016 jeefo <je3f0o@gmail.com>. https://github.com/je3f0o/jeefo
jeefo v0.0.4
Copyright (c) 2016 jeefo <je3f0o@gmail.com>, https://github.com/je3f0o/jeefo
License: MIT
*/
(function (scope, factory) {
(function (factory) {
// jshint strict:false

@@ -11,5 +11,5 @@ if (typeof exports === "object") {

} else {
scope.jeefo = factory();
window.jeefo = factory();
}
}(this, function () { "use strict";
}(function () { "use strict";

@@ -19,3 +19,3 @@ /* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.

* Created at : 2016-09-01
* Updated at : 2016-09-02
* Updated at : 2016-11-14
* Author : jeefo

@@ -26,12 +26,12 @@ * Purpose :

var toString = ({}).toString,
_Object = Object,
_Array = Array,
_null = null,
_undefined,
var NULL = null,
ARRAY = Array,
OBJECT = Object,
slice = [].slice,
to_string = ({}).toString,
TEMP,
UNDEFINED,
to_array = function (args, index) {
// do not miss we are using call method.
// it is just wrapper method for slice.call
return [].slice.call(args, index);
return slice.call(args, index);
},

@@ -46,11 +46,11 @@

is_undefined = function (value) {
return value === _undefined;
return value === UNDEFINED;
},
is_defined = function (value) {
return value !== _undefined;
return value !== UNDEFINED;
},
is_null = function (value) {
return value === null;
return value === NULL;
},

@@ -63,3 +63,3 @@

is_array = _Array.isArray,
is_array = ARRAY.isArray,

@@ -71,7 +71,7 @@ is_object = function (value) {

is_date = function (value) {
return toString.call(value) === "[object Date]";
return to_string.call(value) === "[object Date]";
},
is_regex = function (value) {
return toString.call(value) === "[object RegExp]";
return to_string.call(value) === "[object RegExp]";
},

@@ -84,18 +84,9 @@

assign = function () {
return _Object.assign.apply(_null, to_array(arguments));
return OBJECT.assign.apply(NULL, arguments);
},
map = function () {
/*
* few characters long, but maybe faster
*
var o = _Object.create(_null);
for (var i = 0, args = arguments, i_length = args.length; i < i_length; ++i) {
assign(o, args[i]);
}
return o;
*/
return to_array(arguments).reduce(function (o, arg) {
return assign(o, arg);
}, _Object.create(_null));
var args = to_array(arguments);
args.unshift(OBJECT.create(NULL));
return assign.apply(NULL, args);
},

@@ -128,5 +119,5 @@

/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
* File Name : topological_sort.js
* Created at : 2016-09-01
* Updated at : 2016-09-01
* File Name : prototype_extends.js
* Created at : 2016-11-14
* Updated at : 2016-11-14
* Author : jeefo

@@ -137,9 +128,46 @@ * Purpose :

var p = _Array.prototype;
if (is_undefined(p.exists)) {
p.exists = function (value) {
return this.indexOf(value) >= 0;
TEMP = ARRAY.prototype;
if (is_undefined(TEMP.last)) {
TEMP.last = function () {
return this[this.length - 1];
};
}
if (is_undefined(TEMP.exists)) {
TEMP.exists = TEMP.includes || function (value, index) {
return this.indexOf(value, index) >= 0;
};
}
if (is_undefined(TEMP.remove)) {
TEMP.remove = function (value) {
var index = this.indexOf(value);
if (index >= 0) {
return this.splice(index, 1);
}
};
}
if (is_undefined(TEMP.until)) {
TEMP.until = function (iterator_callback, result_callback) {
for (var i = 0, self = this, i_length = self.length, value; i < i_length; ++i) {
value = self[i];
if (iterator_callback(value, i, self)) {
return result_callback(value, i, self);
}
}
};
}
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
* File Name : topological_sort.js
* Created at : 2016-09-01
* Updated at : 2016-11-14
* Author : jeefo
* Purpose :
* Description :
_._._._._._._._._._._._._._._._._._._._._.*/
var topological_sort = function (_name, callback) {

@@ -180,3 +208,3 @@ var sorted = [], // sorted list of IDs ( returned value )

* Created at : 2016-09-01
* Updated at : 2016-09-01
* Updated at : 2016-11-14
* Author : jeefo

@@ -192,3 +220,3 @@ * Purpose :

var secure_property = function (object, key, value) {
_Object.defineProperty(object, key, {
OBJECT.defineProperty(object, key, {
value : value,

@@ -248,3 +276,3 @@ writable : false,

pending = _undefined;
pending = UNDEFINED;
}

@@ -700,3 +728,3 @@ },

return {
version : "0.0.2",
version : "0.0.4",
is_undefined : is_undefined,

@@ -703,0 +731,0 @@ is_defined : is_defined,

/*
jeefo v0.0.2
(c) 2016 jeefo <je3f0o@gmail.com>. https://github.com/je3f0o/jeefo
jeefo v0.0.4
Copyright (c) 2016 jeefo <je3f0o@gmail.com>, https://github.com/je3f0o/jeefo
License: MIT
*/
!function(n,e){"object"==typeof exports?module.exports=e():n.jeefo=e()}(this,function(){"use strict";var n={}.toString,e=Object,r=Array,t=null,i,o=function(n,e){return[].slice.call(n,e)},u=function(n){return function(e){return typeof e===n}},s=function(n){return n===i},c=function(n){return n!==i},f=function(n){return null===n},a=u("number"),l=u("string"),v=u("boolean"),p=u("function"),d=r.isArray,h=function(n){return!f(n)&&"object"==typeof n},_=function(e){return"[object Date]"===n.call(e)},m=function(e){return"[object RegExp]"===n.call(e)},y=function(n){return/^\-?\d+$/.test(n)},g=function(){return e.assign.apply(t,o(arguments))},j=function(){return o(arguments).reduce(function(n,e){return g(n,e)},e.create(t))},b=/{\s*([^{}]+)\s*}/g,w=/{\s*(\d+)\s*}/g,x=function(n,e){var r;return h(e)&&!d(e)?r=b:(e=o(arguments,1),r=w),n.replace(r,function(n,r){r=r.trim();var t=e[r];return p(t)?t()||"":c(t)?t:n})},E=r.prototype;s(E.exists)&&(E.exists=function(n){return this.indexOf(n)>=0});var $=function(n,e){var r=[],t={};return function n(i,o){o=o||[],o.push(i),t[i]=!0;var u=e(i);u.forEach(function(e){if(o.exists(e))throw new Error('Circular dependency "'+e+'" is required by "'+i+'": '+o.join(" -> "));t[e]||n(e,o.concat())}),r.exists(i)||r.push(i)}(n),r},k="pending...",q="resolved",O="rejected",A=function(n,r,t){e.defineProperty(n,r,{value:t,writable:!1,configurable:!1})},D=function(){},I=function(n){return n instanceof D},C=function(n,e,r){var t=g(new D,{value:r,status:e});return A(t,"then",n),t},G=function(n,e){return I(n)?n:{then:function(e){e.call(this,n)},promise:e}},M=function(){var n=[],e,r=function(n,e,r){return n.value=r,n.status=e,G(r,n)};return j({resolve:function(t){if(n){e=r(this.promise,q,t);for(var o=0,u=n.length;o<u;++o)e.then(n[o][0]);n=i}},reject:function(n){},promise:C(function(r,t){var i=M();r=r||function(n){return n};var o=function(n){i.resolve(r.call(e.promise,n))};return n?n.push([o,t]):e.then(o),i.promise},k)})},P=function(n){return I(n)?n:C(function(e){e(n)},q,n)},R=j({defer:M,when:P,all:function(n){var e=0,r=M();return n.forEach(function(t,i){I(t)&&(e+=1,t.then(function(t){n[i]=t,0===--e&&r.resolve(n)}))}),0===e&&r.resolve(n),r.promise},is_promise:I}),S=function(n,e){var r=R.defer(),t=-1,i=n.length;return function o(){t+=1,t<i?e.call(n,n[t],t,o):r.resolve()}(),r.promise},z=function(){var n=function(n,e,r){var t=n[e];R.is_promise(t)?t.then(function(t){n[e]=t,r.callback(t)}):r.callback(n[e])},e=function(n,e,r){return e.map(function(e){if(e in r)return r[e];if(e in n)return n[e];throw new Error("OMG")})},r=function(n,r,t){var i=[],o=[],u=e(n,r,t);return u.forEach(function(n,e){R.is_promise(n)&&(i.push(r[e]),o.push(n))}),{names:i,values:u,promises:o}},t=function(n,e,r,t,i){var o=r.fn.apply(null,t);r.is_constructor&&(o=new o),R.is_promise(o)?o.then(function(r){n[e]=r,i()}):(n[e]=o,i())},i=function(){this.results=j(),this.definitions=j()};return i.prototype=j({register:function(n,e){if(this.definitions[n])throw new Error("Duplicated provider `0` detected.".replace(0,n));this.definitions[n]=j(e)},resolve:function(e,i){var o=this.results,u=this.definitions,s=i.values||j(),c=i.definitions;if(e in s)return n(s,e,i);if(e in o)return n(o,e,i);var f=$(e,function(n){var e=c&&c[n]||u[n];if(e)return e.dependencies;throw new Error("Injector `0` definition is not found: ".replace(0,n))});S(f,function(n,e,i){var f,a;if(c&&c[n]?(f=s,a=c[n]):u[n]&&(f=o,a=u[n]),n in f)return i();var l=r(o,a.dependencies,s);t(f,n,a,l.values,i)}).then(function(){var n=s[e]||o[e];i.callback(n)})},resolve_sync:function(n,e,r){var t=this,i=t.results,o=t.definitions;r=r||{};var u=r.values||j(),s=r.definitions;if(e in u)return u[e];if(e in i)return i[e];var c;s&&s[e]?c=u:o[e]&&(c=i);var f=$(e,function(n){var e=s&&s[n]||o[n];if(e)return e.dependencies;throw new Error("Injector `0` definition is not found: ".replace(0,n))}),a=o[f.pop()];f.forEach(function(e){e in u||e in i||t.resolve_sync(n,e)});var l=a.dependencies.map(function(n){return n in u?u[n]:i[n]});return c[e]=a.fn.apply(n,l)}}),function(){return new i}}(),B=function(n){return function(e,r,t,i){return s(i)&&(i=!0),p(r)&&(t=r,r=[]),n.call(this,e,{fn:t,dependencies:r,resolve_once:i})}},F=function(){var n=z(),e=function(n,e,r,t){e.register(r,t),e.resolve_sync(n,r)},r=function(n,e){var r=e.results,t=e.definitions;return r.$injector=j({register:function(n,r){return e.register.call(e,n,r)},resolve:function(){return e.resolve.apply(e,arguments)},resolve_sync:function(r,t){return e.resolve_sync(n,r,t)},has:function(n){return n in t}}),r.$injector},t=function(n,e,r,t){var i=t.dependencies.map(function(r){return e.resolve_sync(n,r)});A(n,r,t.fn.apply(n,i))},i=B(function(e,r){var i=n.resolve_sync(this,this.name);i.protos[e]=r,t(this,i.injector,e,r)}),o=function(o,u){var s=j();return e(s,n,o,{dependencies:u.concat(),fn:function(){var n=z(),e=n.results,i=j(),c,f,a,l,v;0===u.length&&n.register("$q",{fn:function(){return R},dependencies:[],resolve_once:!0}),n.name=o;var p=r(s,n);for(p.name=o,n.register("$injector",{fn:function(){return p},dependencies:[]}),c=0;a=arguments[c++];){l=a.injector,g(n.definitions,l.definitions);for(f in l.results)l.definitions[f].resolve_once?e[f]=l.results[f]:e[f]=n.resolve_sync(s,f);g(i,a.protos)}for(v in i)t(s,n,v,i[v]);return j({name:o,protos:i,requires:u,injector:n,instance:s})}}),A(s,"name",o),A(s,"extend",i),s};return function(e,r){return d(r)?o(e,r):n.resolve_sync(null,e).instance}}();return{version:"0.0.2",is_undefined:s,is_defined:c,is_null:f,is_number:a,is_string:l,is_function:p,is_boolean:v,is_array:d,is_object:h,is_date:_,is_regex:m,is_digit:y,map:j,assign:g,sprintf:x,module:F}});
!function(n){"object"==typeof exports?module.exports=n():window.jeefo=n()}(function(){"use strict";var n=null,e=Array,r=Object,t=[].slice,i={}.toString,o,u,s=function(n,e){return t.call(n,e)},c=function(n){return function(e){return typeof e===n}},f=function(n){return n===u},a=function(n){return n!==u},l=function(e){return e===n},v=c("number"),p=c("string"),d=c("boolean"),h=c("function"),m=e.isArray,_=function(n){return!l(n)&&"object"==typeof n},y=function(n){return"[object Date]"===i.call(n)},g=function(n){return"[object RegExp]"===i.call(n)},j=function(n){return/^\-?\d+$/.test(n)},w=function(){return r.assign.apply(n,arguments)},b=function(){var e=s(arguments);return e.unshift(r.create(n)),w.apply(n,e)},x=/{\s*([^{}]+)\s*}/g,E=/{\s*(\d+)\s*}/g,$=function(n,e){var r;return _(e)&&!m(e)?r=x:(e=s(arguments,1),r=E),n.replace(r,function(n,r){r=r.trim();var t=e[r];return h(t)?t()||"":a(t)?t:n})};o=e.prototype,f(o.last)&&(o.last=function(){return this[this.length-1]}),f(o.exists)&&(o.exists=o.includes||function(n,e){return this.indexOf(n,e)>=0}),f(o.remove)&&(o.remove=function(n){var e=this.indexOf(n);if(e>=0)return this.splice(e,1)}),f(o.until)&&(o.until=function(n,e){for(var r=0,t=this,i=t.length,o;r<i;++r)if(o=t[r],n(o,r,t))return e(o,r,t)});var O=function(n,e){var r=[],t={};return function n(i,o){o=o||[],o.push(i),t[i]=!0;var u=e(i);u.forEach(function(e){if(o.exists(e))throw new Error('Circular dependency "'+e+'" is required by "'+i+'": '+o.join(" -> "));t[e]||n(e,o.concat())}),r.exists(i)||r.push(i)}(n),r},k="pending...",q="resolved",A="rejected",D=function(n,e,t){r.defineProperty(n,e,{value:t,writable:!1,configurable:!1})},I=function(){},C=function(n){return n instanceof I},G=function(n,e,r){var t=w(new I,{value:r,status:e});return D(t,"then",n),t},M=function(n,e){return C(n)?n:{then:function(e){e.call(this,n)},promise:e}},P=function(){var n=[],e,r=function(n,e,r){return n.value=r,n.status=e,M(r,n)};return b({resolve:function(t){if(n){e=r(this.promise,q,t);for(var i=0,o=n.length;i<o;++i)e.then(n[i][0]);n=u}},reject:function(n){},promise:G(function(r,t){var i=P();r=r||function(n){return n};var o=function(n){i.resolve(r.call(e.promise,n))};return n?n.push([o,t]):e.then(o),i.promise},k)})},R=function(n){return C(n)?n:G(function(e){e(n)},q,n)},S=b({defer:P,when:R,all:function(n){var e=0,r=P();return n.forEach(function(t,i){C(t)&&(e+=1,t.then(function(t){n[i]=t,0===--e&&r.resolve(n)}))}),0===e&&r.resolve(n),r.promise},is_promise:C}),z=function(n,e){var r=S.defer(),t=-1,i=n.length;return function o(){t+=1,t<i?e.call(n,n[t],t,o):r.resolve()}(),r.promise},B=function(){var n=function(n,e,r){var t=n[e];S.is_promise(t)?t.then(function(t){n[e]=t,r.callback(t)}):r.callback(n[e])},e=function(n,e,r){return e.map(function(e){if(e in r)return r[e];if(e in n)return n[e];throw new Error("OMG")})},r=function(n,r,t){var i=[],o=[],u=e(n,r,t);return u.forEach(function(n,e){S.is_promise(n)&&(i.push(r[e]),o.push(n))}),{names:i,values:u,promises:o}},t=function(n,e,r,t,i){var o=r.fn.apply(null,t);r.is_constructor&&(o=new o),S.is_promise(o)?o.then(function(r){n[e]=r,i()}):(n[e]=o,i())},i=function(){this.results=b(),this.definitions=b()};return i.prototype=b({register:function(n,e){if(this.definitions[n])throw new Error("Duplicated provider `0` detected.".replace(0,n));this.definitions[n]=b(e)},resolve:function(e,i){var o=this.results,u=this.definitions,s=i.values||b(),c=i.definitions;if(e in s)return n(s,e,i);if(e in o)return n(o,e,i);var f=O(e,function(n){var e=c&&c[n]||u[n];if(e)return e.dependencies;throw new Error("Injector `0` definition is not found: ".replace(0,n))});z(f,function(n,e,i){var f,a;if(c&&c[n]?(f=s,a=c[n]):u[n]&&(f=o,a=u[n]),n in f)return i();var l=r(o,a.dependencies,s);t(f,n,a,l.values,i)}).then(function(){var n=s[e]||o[e];i.callback(n)})},resolve_sync:function(n,e,r){var t=this,i=t.results,o=t.definitions;r=r||{};var u=r.values||b(),s=r.definitions;if(e in u)return u[e];if(e in i)return i[e];var c;s&&s[e]?c=u:o[e]&&(c=i);var f=O(e,function(n){var e=s&&s[n]||o[n];if(e)return e.dependencies;throw new Error("Injector `0` definition is not found: ".replace(0,n))}),a=o[f.pop()];f.forEach(function(e){e in u||e in i||t.resolve_sync(n,e)});var l=a.dependencies.map(function(n){return n in u?u[n]:i[n]});return c[e]=a.fn.apply(n,l)}}),function(){return new i}}(),F=function(n){return function(e,r,t,i){return f(i)&&(i=!0),h(r)&&(t=r,r=[]),n.call(this,e,{fn:t,dependencies:r,resolve_once:i})}},H=function(){var n=B(),e=function(n,e,r,t){e.register(r,t),e.resolve_sync(n,r)},r=function(n,e){var r=e.results,t=e.definitions;return r.$injector=b({register:function(n,r){return e.register.call(e,n,r)},resolve:function(){return e.resolve.apply(e,arguments)},resolve_sync:function(r,t){return e.resolve_sync(n,r,t)},has:function(n){return n in t}}),r.$injector},t=function(n,e,r,t){var i=t.dependencies.map(function(r){return e.resolve_sync(n,r)});D(n,r,t.fn.apply(n,i))},i=F(function(e,r){var i=n.resolve_sync(this,this.name);i.protos[e]=r,t(this,i.injector,e,r)}),o=function(o,u){var s=b();return e(s,n,o,{dependencies:u.concat(),fn:function(){var n=B(),e=n.results,i=b(),c,f,a,l,v;0===u.length&&n.register("$q",{fn:function(){return S},dependencies:[],resolve_once:!0}),n.name=o;var p=r(s,n);for(p.name=o,n.register("$injector",{fn:function(){return p},dependencies:[]}),c=0;a=arguments[c++];){l=a.injector,w(n.definitions,l.definitions);for(f in l.results)l.definitions[f].resolve_once?e[f]=l.results[f]:e[f]=n.resolve_sync(s,f);w(i,a.protos)}for(v in i)t(s,n,v,i[v]);return b({name:o,protos:i,requires:u,injector:n,instance:s})}}),D(s,"name",o),D(s,"extend",i),s};return function(e,r){return m(r)?o(e,r):n.resolve_sync(null,e).instance}}();return{version:"0.0.4",is_undefined:f,is_defined:a,is_null:l,is_number:v,is_string:p,is_function:h,is_boolean:d,is_array:m,is_object:_,is_date:y,is_regex:g,is_digit:j,map:b,assign:w,sprintf:$,module:H}});
{
"name": "jeefo",
"version": "0.0.3",
"version": "0.0.4",
"description": "jeefo library",

@@ -5,0 +5,0 @@ "author": "jeefo",

[
"source/utils.js",
"source/prototype_extends.js",
"source/topological_sort.js",

@@ -4,0 +5,0 @@ "source/promise.js",

/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
* File Name : promise.js
* Created at : 2016-09-01
* Updated at : 2016-09-01
* Updated at : 2016-11-14
* Author : jeefo

@@ -15,7 +15,7 @@ * Purpose :

var utils = require("./utils");
var _Object = Object,
var utils = require("./utils");
var OBJECT = Object,
assign = utils.assign,
map = utils.map,
_undefined;
map = utils.map,
UNDEFINED;

@@ -29,3 +29,3 @@ //ignore:end

var secure_property = function (object, key, value) {
_Object.defineProperty(object, key, {
OBJECT.defineProperty(object, key, {
value : value,

@@ -85,3 +85,3 @@ writable : false,

pending = _undefined;
pending = UNDEFINED;
}

@@ -88,0 +88,0 @@ },

/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
* File Name : topological_sort.js
* Created at : 2016-09-01
* Updated at : 2016-09-01
* Updated at : 2016-11-14
* Author : jeefo

@@ -17,15 +17,6 @@ * Purpose :

var utils = require("./utils");
var _Array = Array,
is_undefined = utils.is_undefined;
require("./prototype_extends.js");
//ignore:end
var p = _Array.prototype;
if (is_undefined(p.exists)) {
p.exists = function (value) {
return this.indexOf(value) >= 0;
};
}
var topological_sort = function (_name, callback) {

@@ -32,0 +23,0 @@ var sorted = [], // sorted list of IDs ( returned value )

/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
* File Name : utils.js
* Created at : 2016-09-01
* Updated at : 2016-09-02
* Updated at : 2016-11-14
* Author : jeefo

@@ -30,16 +30,16 @@ * Purpose :

/* exported to_array, _Object */
/* exported to_array, TEMP */
//ignore:end
var toString = ({}).toString,
_Object = Object,
_Array = Array,
_null = null,
_undefined,
var NULL = null,
ARRAY = Array,
OBJECT = Object,
slice = [].slice,
to_string = ({}).toString,
TEMP,
UNDEFINED,
to_array = function (args, index) {
// do not miss we are using call method.
// it is just wrapper method for slice.call
return [].slice.call(args, index);
return slice.call(args, index);
},

@@ -54,11 +54,11 @@

is_undefined = function (value) {
return value === _undefined;
return value === UNDEFINED;
},
is_defined = function (value) {
return value !== _undefined;
return value !== UNDEFINED;
},
is_null = function (value) {
return value === null;
return value === NULL;
},

@@ -71,3 +71,3 @@

is_array = _Array.isArray,
is_array = ARRAY.isArray,

@@ -79,7 +79,7 @@ is_object = function (value) {

is_date = function (value) {
return toString.call(value) === "[object Date]";
return to_string.call(value) === "[object Date]";
},
is_regex = function (value) {
return toString.call(value) === "[object RegExp]";
return to_string.call(value) === "[object RegExp]";
},

@@ -92,18 +92,9 @@

assign = function () {
return _Object.assign.apply(_null, to_array(arguments));
return OBJECT.assign.apply(NULL, arguments);
},
map = function () {
/*
* few characters long, but maybe faster
*
var o = _Object.create(_null);
for (var i = 0, args = arguments, i_length = args.length; i < i_length; ++i) {
assign(o, args[i]);
}
return o;
*/
return to_array(arguments).reduce(function (o, arg) {
return assign(o, arg);
}, _Object.create(_null));
var args = to_array(arguments);
args.unshift(OBJECT.create(NULL));
return assign.apply(NULL, args);
},

@@ -110,0 +101,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