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

@kablamo/kerosene-test

Package Overview
Dependencies
Maintainers
6
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kablamo/kerosene-test - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

8

.dist/react/createStubComponent.d.ts
import * as React from "react";
export default function createStubComponent<Props extends {} = {
[prop: string]: unknown;
}, RenderProps extends any[] = any[]>(displayName: string, functional?: false): React.ComponentClass<Props>;
}, RenderProps extends readonly any[] = any[]>(displayName: string, functional?: false): React.ComponentClass<Props>;
export default function createStubComponent<Props extends {} = {
[prop: string]: unknown;
}, RenderProps extends any[] = any[]>(displayName: string, functional: true): React.FunctionComponent<Props>;
}, RenderProps extends readonly any[] = any[]>(displayName: string, functional: true): React.FunctionComponent<Props>;
export default function createStubComponent<Props extends {} = {
[prop: string]: unknown;
}, RenderProps extends any[] = any[]>(displayName: string, functional: false | undefined, getRenderProps: () => RenderProps, transformRenderPropResult?: (result: (props: any) => React.ReactNode) => React.ReactNode): React.ComponentClass<Props & {
}, RenderProps extends readonly any[] = any[]>(displayName: string, functional: false | undefined, getRenderProps: (props: Omit<Props, "children">) => RenderProps, transformRenderPropResult?: (result: (props: any) => React.ReactNode) => React.ReactNode): React.ComponentClass<Props & {
children: (...args: RenderProps) => React.ReactNode;

@@ -15,4 +15,4 @@ }>;

[prop: string]: unknown;
}, RenderProps extends any[] = any[]>(displayName: string, functional: true, getRenderProps: () => RenderProps, transformRenderPropResult?: (result: (props: any) => React.ReactNode) => React.ReactNode): React.FunctionComponent<Props & {
}, RenderProps extends readonly any[] = any[]>(displayName: string, functional: true, getRenderProps: (props: Omit<Props, "children">) => RenderProps, transformRenderPropResult?: (result: (props: any) => React.ReactNode) => React.ReactNode): React.FunctionComponent<Props & {
children: (...args: RenderProps) => React.ReactNode;
}>;

@@ -24,3 +24,3 @@ "use strict";

return Object.assign(({ children, ...props }) => (React.createElement("div", Object.assign({ __displayName__: displayName }, props), typeof children === "function"
? transformRenderPropResult(children(...getRenderProps()))
? transformRenderPropResult(children(...getRenderProps(props)))
: children)), { displayName });

@@ -32,3 +32,3 @@ }

return (React.createElement("div", Object.assign({ __displayName__: displayName }, props), typeof children === "function"
? transformRenderPropResult(children(...getRenderProps()))
? transformRenderPropResult(children(...getRenderProps(props)))
: children));

@@ -35,0 +35,0 @@ }

{
"name": "@kablamo/kerosene-test",
"version": "0.0.4",
"version": "0.0.5",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

Sorry, the diff of this file is not supported yet

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