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

@kubb/react

Package Overview
Dependencies
Maintainers
1
Versions
427
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kubb/react - npm Package Compare versions

Comparing version 1.11.0 to 1.12.0-canary.20231012T112921

3

dist/client/index.d.ts

@@ -42,5 +42,2 @@ import { Import, Export } from '@kubb/core';

unmount(): void;
/**
* Custom for Kubb, // TODO need to be replaced by renderToStringg
*/
output: string;

@@ -47,0 +44,0 @@ /**

51

dist/index.d.ts

@@ -100,8 +100,51 @@ import * as react from 'react';

declare const createNode: (nodeName: ElementNames) => DOMElement;
declare const appendChildNode: (node: DOMElement, childNode: DOMElement) => void;
declare const insertBeforeNode: (node: DOMElement, newChildNode: DOMNode, beforeChildNode: DOMNode) => void;
declare const removeChildNode: (node: DOMElement, removeNode: DOMNode) => void;
declare const setAttribute: (node: DOMElement, key: string, value: DOMNodeAttribute) => void;
declare const createTextNode: (text: string) => TextNode;
declare const setTextNodeValue: (node: TextNode, text: string) => void;
type ReactTemplateOptions = {
debug: boolean;
};
declare class ReactTemplate<Context extends AppContextProps = AppContextProps> {
private readonly options;
private isUnmounted;
private lastOutput;
private lastImports;
private lastExports;
private readonly container;
private readonly rootNode;
readonly id: string;
constructor(rootNode: DOMElement, options?: ReactTemplateOptions);
get output(): string;
get imports(): Import$1[];
get exports(): Export$1[];
resized: () => void;
resolveExitPromise: () => void;
rejectExitPromise: (reason?: Error) => void;
unsubscribeExit: () => void;
onRender: () => void;
render(node: ReactNode, context?: Context): void;
unmount(error?: Error | number | null): void;
}
type Result = {
output: string;
imports: Import$1[];
exports: Export$1[];
};
declare function renderer(node: DOMElement): Result;
declare function squashExportNodes(node: DOMElement): Export$1[];
declare function squashImportNodes(node: DOMElement): Import$1[];
declare function squashTextNodes(node: DOMElement): string;
type RootType<T = unknown> = {
render(children: ReactNode, context?: T): void;
unmount(): void;
/**
* Custom for Kubb, // TODO need to be replaced by renderToStringg
*/
output: string;

@@ -120,2 +163,2 @@ /**

export { App, AppContext, AppContextProps, ArrowFunction, DOMElement, DOMNode, DOMNodeAttribute, ElementNames, Export, Fun, Function, Import, Node, NodeNames, Text, TextNode, createIndent, createRoot, useApp, useFileManager, useIndent, useMeta, usePluginManager };
export { App, AppContext, AppContextProps, ArrowFunction, DOMElement, DOMNode, DOMNodeAttribute, ElementNames, Export, Fun, Function, Import, Node, NodeNames, ReactTemplate, ReactTemplateOptions, Text, TextNode, appendChildNode, createIndent, createNode, createRoot, createTextNode, insertBeforeNode, removeChildNode, renderer, setAttribute, setTextNodeValue, squashExportNodes, squashImportNodes, squashTextNodes, useApp, useFileManager, useIndent, useMeta, usePluginManager };
{
"name": "@kubb/react",
"version": "1.11.0",
"version": "1.12.0-canary.20231012T112921",
"description": "Generator react",

@@ -31,3 +31,2 @@ "keywords": [

"import": "./dist/jsx-runtime.js",
"module": "./dist/jsx-runtime.js",
"require": "./dist/jsx-runtime.cjs",

@@ -39,6 +38,11 @@ "default": "./dist/jsx-runtime.cjs"

"import": "./dist/client/index.js",
"module": "./dist/client/index.js",
"require": "./dist/client/index.cjs",
"default": "./dist/client/index.cjs"
},
"./server": {
"types": "./dist/server/index.d.ts",
"import": "./dist/server/index.js",
"require": "./dist/server/index.cjs",
"default": "./dist/server/index.cjs"
},
"./globals": {

@@ -63,3 +67,3 @@ "types": "./globals.d.ts"

"@kubb/core": "1.11.0",
"@kubb/ts-codegen": "1.11.0"
"@kubb/parser": "1.11.0"
},

@@ -69,8 +73,8 @@ "devDependencies": {

"@types/react-reconciler": "^0.28.5",
"eslint": "^8.51.0",
"react": "^18.2.0",
"react-reconciler": "^0.29.0",
"eslint": "^8.51.0",
"tsup": "^7.2.0",
"@kubb/eslint-config": "1.1.8",
"@kubb/ts-codegen": "1.11.0",
"@kubb/parser": "1.11.0",
"@kubb/ts-config": "0.1.0",

@@ -77,0 +81,0 @@ "@kubb/tsup-config": "1.1.8"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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