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

inferno-shared

Package Overview
Dependencies
Maintainers
0
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inferno-shared - npm Package Compare versions

Comparing version 5.6.1 to 5.6.3

74

dist/index.cjs.js
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var NO_OP = '$NO_OP';

@@ -10,73 +8,73 @@ var ERROR_MSG = 'a runtime error occured! Use Inferno in development environment to find the error.';

function isStringOrNumber(o) {
var type = typeof o;
return type === 'string' || type === 'number';
var type = typeof o;
return type === 'string' || type === 'number';
}
function isNullOrUndef(o) {
return isUndefined(o) || isNull(o);
return isUndefined(o) || isNull(o);
}
function isInvalid(o) {
return isNull(o) || o === false || isTrue(o) || isUndefined(o);
return isNull(o) || o === false || isTrue(o) || isUndefined(o);
}
function isFunction(o) {
return typeof o === 'function';
return typeof o === 'function';
}
function isString(o) {
return typeof o === 'string';
return typeof o === 'string';
}
function isNumber(o) {
return typeof o === 'number';
return typeof o === 'number';
}
function isNull(o) {
return o === null;
return o === null;
}
function isTrue(o) {
return o === true;
return o === true;
}
function isUndefined(o) {
return o === void 0;
return o === void 0;
}
function isObject(o) {
return typeof o === 'object';
return typeof o === 'object';
}
function throwError(message) {
if (!message) {
message = ERROR_MSG;
}
throw new Error(("Inferno Error: " + message));
if (!message) {
message = ERROR_MSG;
}
throw new Error("Inferno Error: " + message);
}
function warning(message) {
// tslint:disable-next-line:no-console
console.error(message);
// tslint:disable-next-line:no-console
console.error(message);
}
function combineFrom(first, second) {
var out = {};
if (first) {
for (var key in first) {
out[key] = first[key];
}
var out = {};
if (first) {
for (var key in first) {
out[key] = first[key];
}
if (second) {
for (var key$1 in second) {
out[key$1] = second[key$1];
}
}
if (second) {
for (var _key in second) {
out[_key] = second[_key];
}
return out;
}
return out;
}
exports.ERROR_MSG = ERROR_MSG;
exports.NO_OP = NO_OP;
exports.ERROR_MSG = ERROR_MSG;
exports.combineFrom = combineFrom;
exports.isArray = isArray;
exports.isBrowser = isBrowser;
exports.isArray = isArray;
exports.isStringOrNumber = isStringOrNumber;
exports.isFunction = isFunction;
exports.isInvalid = isInvalid;
exports.isNull = isNull;
exports.isNullOrUndef = isNullOrUndef;
exports.isInvalid = isInvalid;
exports.isFunction = isFunction;
exports.isNumber = isNumber;
exports.isObject = isObject;
exports.isString = isString;
exports.isNumber = isNumber;
exports.isNull = isNull;
exports.isStringOrNumber = isStringOrNumber;
exports.isTrue = isTrue;
exports.isUndefined = isUndefined;
exports.isObject = isObject;
exports.throwError = throwError;
exports.warning = warning;
exports.combineFrom = combineFrom;

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

"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r="$NO_OP",n="a runtime error occured! Use Inferno in development environment to find the error.",e=!("undefined"==typeof window||!window.document),t=Array.isArray;function o(r){var n=typeof r;return"string"===n||"number"===n}function i(r){return d(r)||c(r)}function u(r){return c(r)||!1===r||x(r)||d(r)}function s(r){return"function"==typeof r}function f(r){return"string"==typeof r}function p(r){return"number"==typeof r}function c(r){return null===r}function x(r){return!0===r}function d(r){return void 0===r}function a(r){return"object"==typeof r}function l(r){throw r||(r=n),new Error("Inferno Error: "+r)}function m(r){console.error(r)}function v(r,n){var e={};if(r)for(var t in r)e[t]=r[t];if(n)for(var o in n)e[o]=n[o];return e}exports.NO_OP=r,exports.ERROR_MSG=n,exports.isBrowser=e,exports.isArray=t,exports.isStringOrNumber=o,exports.isNullOrUndef=i,exports.isInvalid=u,exports.isFunction=s,exports.isString=f,exports.isNumber=p,exports.isNull=c,exports.isTrue=x,exports.isUndefined=d,exports.isObject=a,exports.throwError=l,exports.warning=m,exports.combineFrom=v;
"use strict";var r="$NO_OP",n="a runtime error occured! Use Inferno in development environment to find the error.",e=!("undefined"===typeof window||!window.document),t=Array.isArray;function o(r){var n=typeof r;return"string"===n||"number"===n}function i(r){return d(r)||c(r)}function u(r){return c(r)||!1===r||x(r)||d(r)}function s(r){return"function"===typeof r}function f(r){return"string"===typeof r}function p(r){return"number"===typeof r}function c(r){return null===r}function x(r){return!0===r}function d(r){return void 0===r}function a(r){return"object"===typeof r}function m(r){throw r||(r=n),new Error("Inferno Error: "+r)}function l(r){console.error(r)}function v(r,n){var e={};if(r)for(var t in r)e[t]=r[t];if(n)for(var o in n)e[o]=n[o];return e}exports.ERROR_MSG=n,exports.NO_OP=r,exports.combineFrom=v,exports.isArray=t,exports.isBrowser=e,exports.isFunction=s,exports.isInvalid=u,exports.isNull=c,exports.isNullOrUndef=i,exports.isNumber=p,exports.isObject=a,exports.isString=f,exports.isStringOrNumber=o,exports.isTrue=x,exports.isUndefined=d,exports.throwError=m,exports.warning=l;

@@ -6,57 +6,57 @@ var NO_OP = '$NO_OP';

function isStringOrNumber(o) {
var type = typeof o;
return type === 'string' || type === 'number';
var type = typeof o;
return type === 'string' || type === 'number';
}
function isNullOrUndef(o) {
return isUndefined(o) || isNull(o);
return isUndefined(o) || isNull(o);
}
function isInvalid(o) {
return isNull(o) || o === false || isTrue(o) || isUndefined(o);
return isNull(o) || o === false || isTrue(o) || isUndefined(o);
}
function isFunction(o) {
return typeof o === 'function';
return typeof o === 'function';
}
function isString(o) {
return typeof o === 'string';
return typeof o === 'string';
}
function isNumber(o) {
return typeof o === 'number';
return typeof o === 'number';
}
function isNull(o) {
return o === null;
return o === null;
}
function isTrue(o) {
return o === true;
return o === true;
}
function isUndefined(o) {
return o === void 0;
return o === void 0;
}
function isObject(o) {
return typeof o === 'object';
return typeof o === 'object';
}
function throwError(message) {
if (!message) {
message = ERROR_MSG;
}
throw new Error(("Inferno Error: " + message));
if (!message) {
message = ERROR_MSG;
}
throw new Error("Inferno Error: " + message);
}
function warning(message) {
// tslint:disable-next-line:no-console
console.error(message);
// tslint:disable-next-line:no-console
console.error(message);
}
function combineFrom(first, second) {
var out = {};
if (first) {
for (var key in first) {
out[key] = first[key];
}
var out = {};
if (first) {
for (var key in first) {
out[key] = first[key];
}
if (second) {
for (var key$1 in second) {
out[key$1] = second[key$1];
}
}
if (second) {
for (var _key in second) {
out[_key] = second[_key];
}
return out;
}
return out;
}
export { NO_OP, ERROR_MSG, isBrowser, isArray, isStringOrNumber, isNullOrUndef, isInvalid, isFunction, isString, isNumber, isNull, isTrue, isUndefined, isObject, throwError, warning, combineFrom };
export { ERROR_MSG, NO_OP, combineFrom, isArray, isBrowser, isFunction, isInvalid, isNull, isNullOrUndef, isNumber, isObject, isString, isStringOrNumber, isTrue, isUndefined, throwError, warning };

@@ -6,57 +6,57 @@ var NO_OP = '$NO_OP';

function isStringOrNumber(o) {
var type = typeof o;
return type === 'string' || type === 'number';
var type = typeof o;
return type === 'string' || type === 'number';
}
function isNullOrUndef(o) {
return isUndefined(o) || isNull(o);
return isUndefined(o) || isNull(o);
}
function isInvalid(o) {
return isNull(o) || o === false || isTrue(o) || isUndefined(o);
return isNull(o) || o === false || isTrue(o) || isUndefined(o);
}
function isFunction(o) {
return typeof o === 'function';
return typeof o === 'function';
}
function isString(o) {
return typeof o === 'string';
return typeof o === 'string';
}
function isNumber(o) {
return typeof o === 'number';
return typeof o === 'number';
}
function isNull(o) {
return o === null;
return o === null;
}
function isTrue(o) {
return o === true;
return o === true;
}
function isUndefined(o) {
return o === void 0;
return o === void 0;
}
function isObject(o) {
return typeof o === 'object';
return typeof o === 'object';
}
function throwError(message) {
if (!message) {
message = ERROR_MSG;
}
throw new Error(("Inferno Error: " + message));
if (!message) {
message = ERROR_MSG;
}
throw new Error("Inferno Error: " + message);
}
function warning(message) {
// tslint:disable-next-line:no-console
console.error(message);
// tslint:disable-next-line:no-console
console.error(message);
}
function combineFrom(first, second) {
var out = {};
if (first) {
for (var key in first) {
out[key] = first[key];
}
var out = {};
if (first) {
for (var key in first) {
out[key] = first[key];
}
if (second) {
for (var key$1 in second) {
out[key$1] = second[key$1];
}
}
if (second) {
for (var _key in second) {
out[_key] = second[_key];
}
return out;
}
return out;
}
export { NO_OP, ERROR_MSG, isBrowser, isArray, isStringOrNumber, isNullOrUndef, isInvalid, isFunction, isString, isNumber, isNull, isTrue, isUndefined, isObject, throwError, warning, combineFrom };
export { ERROR_MSG, NO_OP, combineFrom, isArray, isBrowser, isFunction, isInvalid, isNull, isNullOrUndef, isNumber, isObject, isString, isStringOrNumber, isTrue, isUndefined, throwError, warning };

@@ -6,57 +6,57 @@ const NO_OP = '$NO_OP';

function isStringOrNumber(o) {
const type = typeof o;
return type === 'string' || type === 'number';
const type = typeof o;
return type === 'string' || type === 'number';
}
function isNullOrUndef(o) {
return isUndefined(o) || isNull(o);
return isUndefined(o) || isNull(o);
}
function isInvalid(o) {
return isNull(o) || o === false || isTrue(o) || isUndefined(o);
return isNull(o) || o === false || isTrue(o) || isUndefined(o);
}
function isFunction(o) {
return typeof o === 'function';
return typeof o === 'function';
}
function isString(o) {
return typeof o === 'string';
return typeof o === 'string';
}
function isNumber(o) {
return typeof o === 'number';
return typeof o === 'number';
}
function isNull(o) {
return o === null;
return o === null;
}
function isTrue(o) {
return o === true;
return o === true;
}
function isUndefined(o) {
return o === void 0;
return o === void 0;
}
function isObject(o) {
return typeof o === 'object';
return typeof o === 'object';
}
function throwError(message) {
if (!message) {
message = ERROR_MSG;
}
throw new Error(`Inferno Error: ${message}`);
if (!message) {
message = ERROR_MSG;
}
throw new Error(`Inferno Error: ${message}`);
}
function warning(message) {
// tslint:disable-next-line:no-console
console.error(message);
// tslint:disable-next-line:no-console
console.error(message);
}
function combineFrom(first, second) {
const out = {};
if (first) {
for (const key in first) {
out[key] = first[key];
}
const out = {};
if (first) {
for (const key in first) {
out[key] = first[key];
}
if (second) {
for (const key in second) {
out[key] = second[key];
}
}
if (second) {
for (const key in second) {
out[key] = second[key];
}
return out;
}
return out;
}
export { NO_OP, ERROR_MSG, isBrowser, isArray, isStringOrNumber, isNullOrUndef, isInvalid, isFunction, isString, isNumber, isNull, isTrue, isUndefined, isObject, throwError, warning, combineFrom };
export { ERROR_MSG, NO_OP, combineFrom, isArray, isBrowser, isFunction, isInvalid, isNull, isNullOrUndef, isNumber, isObject, isString, isStringOrNumber, isTrue, isUndefined, throwError, warning };
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.Inferno = global.Inferno || {})));
}(this, (function (exports) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Inferno = global.Inferno || {}));
})(this, (function (exports) { 'use strict';
var NO_OP = '$NO_OP';
var ERROR_MSG = 'a runtime error occured! Use Inferno in development environment to find the error.';
var isBrowser = !!(typeof window !== 'undefined' && window.document);
var isArray = Array.isArray;
function isStringOrNumber(o) {
var NO_OP = '$NO_OP';
var ERROR_MSG = 'a runtime error occured! Use Inferno in development environment to find the error.';
var isBrowser = !!(typeof window !== 'undefined' && window.document);
var isArray = Array.isArray;
function isStringOrNumber(o) {
var type = typeof o;
return type === 'string' || type === 'number';
}
function isNullOrUndef(o) {
}
function isNullOrUndef(o) {
return isUndefined(o) || isNull(o);
}
function isInvalid(o) {
}
function isInvalid(o) {
return isNull(o) || o === false || isTrue(o) || isUndefined(o);
}
function isFunction(o) {
}
function isFunction(o) {
return typeof o === 'function';
}
function isString(o) {
}
function isString(o) {
return typeof o === 'string';
}
function isNumber(o) {
}
function isNumber(o) {
return typeof o === 'number';
}
function isNull(o) {
}
function isNull(o) {
return o === null;
}
function isTrue(o) {
}
function isTrue(o) {
return o === true;
}
function isUndefined(o) {
}
function isUndefined(o) {
return o === void 0;
}
function isObject(o) {
}
function isObject(o) {
return typeof o === 'object';
}
function throwError(message) {
}
function throwError(message) {
if (!message) {
message = ERROR_MSG;
message = ERROR_MSG;
}
throw new Error(("Inferno Error: " + message));
}
function warning(message) {
throw new Error("Inferno Error: " + message);
}
function warning(message) {
// tslint:disable-next-line:no-console
console.error(message);
}
function combineFrom(first, second) {
}
function combineFrom(first, second) {
var out = {};
if (first) {
for (var key in first) {
out[key] = first[key];
}
for (var key in first) {
out[key] = first[key];
}
}
if (second) {
for (var key$1 in second) {
out[key$1] = second[key$1];
}
for (var _key in second) {
out[_key] = second[_key];
}
}
return out;
}
}
exports.NO_OP = NO_OP;
exports.ERROR_MSG = ERROR_MSG;
exports.isBrowser = isBrowser;
exports.isArray = isArray;
exports.isStringOrNumber = isStringOrNumber;
exports.isNullOrUndef = isNullOrUndef;
exports.isInvalid = isInvalid;
exports.isFunction = isFunction;
exports.isString = isString;
exports.isNumber = isNumber;
exports.isNull = isNull;
exports.isTrue = isTrue;
exports.isUndefined = isUndefined;
exports.isObject = isObject;
exports.throwError = throwError;
exports.warning = warning;
exports.combineFrom = combineFrom;
exports.ERROR_MSG = ERROR_MSG;
exports.NO_OP = NO_OP;
exports.combineFrom = combineFrom;
exports.isArray = isArray;
exports.isBrowser = isBrowser;
exports.isFunction = isFunction;
exports.isInvalid = isInvalid;
exports.isNull = isNull;
exports.isNullOrUndef = isNullOrUndef;
exports.isNumber = isNumber;
exports.isObject = isObject;
exports.isString = isString;
exports.isStringOrNumber = isStringOrNumber;
exports.isTrue = isTrue;
exports.isUndefined = isUndefined;
exports.throwError = throwError;
exports.warning = warning;
Object.defineProperty(exports, '__esModule', { value: true });
})));
}));

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

!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n.Inferno=n.Inferno||{})}(this,function(n){"use strict";var r="a runtime error occured! Use Inferno in development environment to find the error.",e=!("undefined"==typeof window||!window.document),o=Array.isArray;function t(n){return null===n}function i(n){return!0===n}function u(n){return void 0===n}n.NO_OP="$NO_OP",n.ERROR_MSG=r,n.isBrowser=e,n.isArray=o,n.isStringOrNumber=function(n){var r=typeof n;return"string"===r||"number"===r},n.isNullOrUndef=function(n){return u(n)||t(n)},n.isInvalid=function(n){return t(n)||!1===n||i(n)||u(n)},n.isFunction=function(n){return"function"==typeof n},n.isString=function(n){return"string"==typeof n},n.isNumber=function(n){return"number"==typeof n},n.isNull=t,n.isTrue=i,n.isUndefined=u,n.isObject=function(n){return"object"==typeof n},n.throwError=function(n){throw n||(n=r),new Error("Inferno Error: "+n)},n.warning=function(n){console.error(n)},n.combineFrom=function(n,r){var e={};if(n)for(var o in n)e[o]=n[o];if(r)for(var t in r)e[t]=r[t];return e},Object.defineProperty(n,"__esModule",{value:!0})});
!function(n,r){"object"===typeof exports&&"undefined"!==typeof module?r(exports):"function"===typeof define&&define.amd?define(["exports"],r):r((n="undefined"!==typeof globalThis?globalThis:n||self).Inferno=n.Inferno||{})}(this,(function(n){"use strict";var r="a runtime error occured! Use Inferno in development environment to find the error.",e=!("undefined"===typeof window||!window.document),o=Array.isArray;function i(n){return null===n}function t(n){return!0===n}function f(n){return void 0===n}n.ERROR_MSG=r,n.NO_OP="$NO_OP",n.combineFrom=function(n,r){var e={};if(n)for(var o in n)e[o]=n[o];if(r)for(var i in r)e[i]=r[i];return e},n.isArray=o,n.isBrowser=e,n.isFunction=function(n){return"function"===typeof n},n.isInvalid=function(n){return i(n)||!1===n||t(n)||f(n)},n.isNull=i,n.isNullOrUndef=function(n){return f(n)||i(n)},n.isNumber=function(n){return"number"===typeof n},n.isObject=function(n){return"object"===typeof n},n.isString=function(n){return"string"===typeof n},n.isStringOrNumber=function(n){var r=typeof n;return"string"===r||"number"===r},n.isTrue=t,n.isUndefined=f,n.throwError=function(n){throw n||(n=r),new Error("Inferno Error: "+n)},n.warning=function(n){console.error(n)}}));
{
"name": "inferno-shared",
"version": "5.6.1",
"version": "5.6.3",
"license": "MIT",

@@ -26,3 +26,3 @@ "description": "Helpers functions for Inferno",

},
"gitHead": "83ac9ffd4ebe9cd38c8a05e40bbbf3ab6b4ecae8"
"gitHead": "27d21a45676f357dda8a30b5104c92e6d29c5656"
}
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