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

@likec4/generators

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@likec4/generators - npm Package Compare versions

Comparing version 0.6.3 to 0.8.0

dist/__mocks__/data.d.ts

1

dist/d2/generate-d2.d.ts
import type { ComputedView } from '@likec4/core/types';
export declare function generateD2<V extends ComputedView>({ nodes, edges }: V): string;
//# sourceMappingURL=generate-d2.d.ts.map

2

dist/d2/generate-d2.js

@@ -37,3 +37,3 @@ import { CompositeGeneratorNode, NL, joinToNode, toString } from 'langium';

.append('label: "', label, '"', NL)
.append('shape: ', shape, NL)
.appendIf(shape !== 'rectangle', 'shape: ', shape, NL)
.appendIf(node.children.length > 0, NL, joinToNode(nodes.filter(n => n.parent === node.id), n => printNode(n, fqnName))),

@@ -40,0 +40,0 @@ indentation: 2

export * from './generate-d2';
//# sourceMappingURL=index.d.ts.map
export { generateReact } from './react/generate-react';
export { generateD2 } from './d2/generate-d2';
export { generateViewsDataTs } from './views-data-ts/generate-views-data';
//# sourceMappingURL=index.d.ts.map
import type { DiagramView } from '@likec4/core/types';
export declare function generateReact(views: DiagramView[]): string;
//# sourceMappingURL=generate-react.d.ts.map

@@ -27,3 +27,2 @@ import JSON5 from 'json5';

import { EmbeddedDiagram } from '@likec4/diagrams'
import '@likec4/diagrams/dist/index.css'
`.append(NL, NL);

@@ -47,8 +46,8 @@ if (components.length == 0) {

export type LikeC4ViewsData = typeof LikeC4ViewsData
export type ViewId = keyof LikeC4ViewsData
export function isViewId(value: unknown): value is ViewId {
export type LikeC4ViewId = keyof LikeC4ViewsData
export function isLikeC4ViewId(value: unknown): value is LikeC4ViewId {
return typeof value === 'string' && value in LikeC4ViewsData
}
export type LikeC4ViewProps = Omit<EmbeddedDiagramProps<LikeC4ViewsData, ViewId>, 'views'>;
export type LikeC4ViewProps = Omit<EmbeddedDiagramProps<LikeC4ViewsData, LikeC4ViewId>, 'views'>;
export function LikeC4View(props: LikeC4ViewProps) {

@@ -58,3 +57,3 @@ return <EmbeddedDiagram views={LikeC4ViewsData} {...props}/>

type LikeC4ViewsProps = Omit<EmbeddedDiagramProps<LikeC4ViewsData, ViewId>, 'views' | 'viewId'>
type LikeC4ViewsProps = Omit<EmbeddedDiagramProps<LikeC4ViewsData, LikeC4ViewId>, 'views' | 'viewId'>
export const LikeC4Views = {

@@ -61,0 +60,0 @@ `

export * from './generate-react';
//# sourceMappingURL=index.d.ts.map
import type { DiagramView } from '@likec4/core/types';
export declare function generateViewsDataTs(views: DiagramView[]): string;
//# sourceMappingURL=generate-views-data.d.ts.map

@@ -27,4 +27,4 @@ import JSON5 from 'json5';

export type LikeC4ViewsData = typeof LikeC4ViewsData
export type ViewId = keyof LikeC4ViewsData
export function isViewId(value: unknown): value is ViewId {
export type LikeC4ViewId = keyof LikeC4ViewsData
export function isLikeC4ViewId(value: unknown): value is LikeC4ViewId {
return typeof value === 'string' && value in LikeC4ViewsData

@@ -31,0 +31,0 @@ }

export * from './generate-views-data';
//# sourceMappingURL=index.d.ts.map
{
"name": "@likec4/generators",
"version": "0.6.3",
"version": "0.8.0",
"license": "MIT",
"bugs": "https://github.com/likec4/likec4/issues",
"homepage": "https://like-c4.dev",
"homepage": "https://likec4.dev",
"author": "Denis Davydkov <denis@davydkov.com>",
"files": [
"dist"
"dist",
"!**/*.map"
],

@@ -17,2 +18,3 @@ "repository": {

"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",

@@ -26,14 +28,6 @@ "type": "module",

"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
}
"types": "./dist/index.d.ts"
},
"scripts": {
"compile": "tsc --emitDeclarationOnly",
"build:release": "tsc -p tsconfig.esm.json",
"compile": "tsc --noEmit",
"build": "tsc",

@@ -47,6 +41,6 @@ "dev": "tsc --watch",

"dependencies": {
"@likec4/core": "0.6.3",
"@likec4/core": "0.7.0",
"json5": "^2.2.3",
"langium": "^1.1.0",
"rambdax": "^9.1.0"
"langium": "^1.2.0",
"rambdax": "^9.1.1"
},

@@ -56,13 +50,4 @@ "devDependencies": {

"typescript": "^5.0.4",
"vite": "^4.2.2",
"vitest": "^0.30.1"
},
"module": "./dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
"vitest": "^0.31.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