New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

inferno-shared

Package Overview
Dependencies
Maintainers
5
Versions
182
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 1.4.2-alpha.9a8a49c6 to 1.5.0-alpha.2f6639f8

3

dist-es/index.d.ts
export declare const NO_OP = "$NO_OP";
export declare const ERROR_MSG = "a runtime error occured! Use Inferno in development environment to find the error.";
export declare const isBrowser: Document;
export declare const isBrowser: boolean;
export declare function toArray(children: any): any[];

@@ -11,3 +11,2 @@ export declare const isArray: (arg: any) => arg is any[];

export declare function isFunction(obj: any): boolean;
export declare function isAttrAnEvent(attr: string): boolean;
export declare function isString(obj: any): boolean;

@@ -14,0 +13,0 @@ export declare function isNumber(obj: any): boolean;

export const NO_OP = '$NO_OP';
export const ERROR_MSG = 'a runtime error occured! Use Inferno in development environment to find the error.';
export const isBrowser = typeof window !== 'undefined' && window.document;
// This should be boolean and not reference to window.document
export const isBrowser = !!(typeof window !== 'undefined' && window.document);
export function toArray(children) {

@@ -26,5 +27,2 @@ return isArray(children) ? children : (children ? [children] : children);

}
export function isAttrAnEvent(attr) {
return attr[0] === 'o' && attr[1] === 'n';
}
export function isString(obj) {

@@ -31,0 +29,0 @@ return typeof obj === 'string';

export declare const NO_OP = "$NO_OP";
export declare const ERROR_MSG = "a runtime error occured! Use Inferno in development environment to find the error.";
export declare const isBrowser: Document;
export declare const isBrowser: boolean;
export declare function toArray(children: any): any[];

@@ -11,3 +11,2 @@ export declare const isArray: (arg: any) => arg is any[];

export declare function isFunction(obj: any): boolean;
export declare function isAttrAnEvent(attr: string): boolean;
export declare function isString(obj: any): boolean;

@@ -14,0 +13,0 @@ export declare function isNumber(obj: any): boolean;

@@ -5,3 +5,4 @@ "use strict";

exports.ERROR_MSG = 'a runtime error occured! Use Inferno in development environment to find the error.';
exports.isBrowser = typeof window !== 'undefined' && window.document;
// This should be boolean and not reference to window.document
exports.isBrowser = !!(typeof window !== 'undefined' && window.document);
function toArray(children) {

@@ -35,6 +36,2 @@ return exports.isArray(children) ? children : (children ? [children] : children);

exports.isFunction = isFunction;
function isAttrAnEvent(attr) {
return attr[0] === 'o' && attr[1] === 'n';
}
exports.isAttrAnEvent = isAttrAnEvent;
function isString(obj) {

@@ -41,0 +38,0 @@ return typeof obj === 'string';

/*!
* Inferno.Shared v1.4.1
* Inferno.Shared v1.5.0
* (c) 2017 Dominic Gannaway'

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

var ERROR_MSG = 'a runtime error occured! Use Inferno in development environment to find the error.';
var isBrowser = typeof window !== 'undefined' && window.document;
// This should be boolean and not reference to window.document
var isBrowser = !!(typeof window !== 'undefined' && window.document);
function toArray(children) {

@@ -40,5 +41,2 @@ return isArray(children) ? children : (children ? [children] : children);

}
function isAttrAnEvent(attr) {
return attr[0] === 'o' && attr[1] === 'n';
}
function isString(obj) {

@@ -109,3 +107,2 @@ return typeof obj === 'string';

exports.isFunction = isFunction;
exports.isAttrAnEvent = isAttrAnEvent;
exports.isString = isString;

@@ -112,0 +109,0 @@ exports.isNumber = isNumber;

@@ -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||{},n.Inferno.Shared=n.Inferno.Shared||{}))})(this,(function(n){"use strict";function r(n){return O(n)?n:n?[n]:n}function e(n){return!y(n.prototype)&&!y(n.prototype.render)}function t(n){var r=typeof n;return"string"===r||"number"===r}function o(n){return y(n)||d(n)}function i(n){return d(n)||n===!1||p(n)||y(n)}function u(n){return"function"==typeof n}function f(n){return"o"===n[0]&&"n"===n[1]}function s(n){return"string"==typeof n}function c(n){return"number"==typeof n}function d(n){return null===n}function p(n){return n===!0}function y(n){return void 0===n}function a(n){return"object"==typeof n}function l(n){throw n||(n=w),new Error("Inferno Error: "+n)}function m(n){console.warn(n)}function h(n,r){var e,t={};if(n)for(e in n)t[e]=n[e];if(r)for(e in r)t[e]=r[e];return t}function v(){this.listeners=[]}var w="a runtime error occured! Use Inferno in development environment to find the error.",b="undefined"!=typeof window&&window.document,O=Array.isArray;v.prototype.addListener=function(n){this.listeners.push(n)},v.prototype.trigger=function(){for(var n=this.listeners,r=0,e=n.length;r<e;r++)n[r]()},n.NO_OP="$NO_OP",n.ERROR_MSG=w,n.isBrowser=b,n.toArray=r,n.isArray=O,n.isStatefulComponent=e,n.isStringOrNumber=t,n.isNullOrUndef=o,n.isInvalid=i,n.isFunction=u,n.isAttrAnEvent=f,n.isString=s,n.isNumber=c,n.isNull=d,n.isTrue=p,n.isUndefined=y,n.isObject=a,n.throwError=l,n.warning=m,n.combineFrom=h,n.Lifecycle=v,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.Inferno=n.Inferno||{},n.Inferno.Shared=n.Inferno.Shared||{}))})(this,(function(n){"use strict";function r(n){return v(n)?n:n?[n]:n}function e(n){return!p(n.prototype)&&!p(n.prototype.render)}function t(n){var r=typeof n;return"string"===r||"number"===r}function o(n){return p(n)||c(n)}function i(n){return c(n)||n===!1||d(n)||p(n)}function u(n){return"function"==typeof n}function f(n){return"string"==typeof n}function s(n){return"number"==typeof n}function c(n){return null===n}function d(n){return n===!0}function p(n){return void 0===n}function y(n){return"object"==typeof n}function a(n){throw n||(n=w),new Error("Inferno Error: "+n)}function l(n){console.warn(n)}function m(n,r){var e,t={};if(n)for(e in n)t[e]=n[e];if(r)for(e in r)t[e]=r[e];return t}function h(){this.listeners=[]}var w="a runtime error occured! Use Inferno in development environment to find the error.",b=!("undefined"==typeof window||!window.document),v=Array.isArray;h.prototype.addListener=function(n){this.listeners.push(n)},h.prototype.trigger=function(){for(var n=this.listeners,r=0,e=n.length;r<e;r++)n[r]()},n.NO_OP="$NO_OP",n.ERROR_MSG=w,n.isBrowser=b,n.toArray=r,n.isArray=v,n.isStatefulComponent=e,n.isStringOrNumber=t,n.isNullOrUndef=o,n.isInvalid=i,n.isFunction=u,n.isString=f,n.isNumber=s,n.isNull=c,n.isTrue=d,n.isUndefined=p,n.isObject=y,n.throwError=a,n.warning=l,n.combineFrom=m,n.Lifecycle=h,Object.defineProperty(n,"__esModule",{value:!0})}));
{
"name": "inferno-shared",
"version": "1.4.2-alpha.9a8a49c6",
"version": "1.5.0-alpha.2f6639f8",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Helpers functions for Inferno",

export const NO_OP = '$NO_OP';
export const ERROR_MSG = 'a runtime error occured! Use Inferno in development environment to find the error.';
export const isBrowser = typeof window !== 'undefined' && window.document;
// This should be boolean and not reference to window.document
export const isBrowser = !!(typeof window !== 'undefined' && window.document);

@@ -36,6 +37,2 @@ export function toArray(children): any[] {

export function isAttrAnEvent(attr: string): boolean {
return attr[0] === 'o' && attr[1] === 'n';
}
export function isString(obj: any): boolean {

@@ -42,0 +39,0 @@ return typeof obj === 'string';

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