Socket
Socket
Sign inDemoInstall

mermaid

Package Overview
Dependencies
55
Maintainers
4
Versions
224
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.4.2-rc.1 to 9.4.2-rc.2

dist/diagrams/flowchart/elk/flowchart-elk-definition.d.ts

4

dist/config.type.d.ts

@@ -218,3 +218,3 @@ import DOMPurify from 'dompurify';

}
export type PieDiagramConfig = BaseDiagramConfig;
export declare type PieDiagramConfig = BaseDiagramConfig;
export interface ErDiagramConfig extends BaseDiagramConfig {

@@ -372,3 +372,3 @@ titleTopMargin?: number;

}
export type FontCalculator = () => Partial<FontConfig>;
export declare type FontCalculator = () => Partial<FontConfig>;
export {};

@@ -37,6 +37,6 @@ import { MermaidConfig } from '../config.type';

}
export type DiagramDetector = (text: string, config?: MermaidConfig) => boolean;
export type DiagramLoader = () => Promise<{
export declare type DiagramDetector = (text: string, config?: MermaidConfig) => boolean;
export declare type DiagramLoader = () => Promise<{
id: string;
diagram: DiagramDefinition;
}>;
import type { DetailedError } from './utils';
export type ParseErrorFunction = (err: string | DetailedError | unknown, hash?: any) => void;
export declare type ParseErrorFunction = (err: string | DetailedError | unknown, hash?: any) => void;
export declare class Diagram {

@@ -4,0 +4,0 @@ txt: string;

@@ -78,3 +78,3 @@ export function parseDirective(statement: any, context: any, type: any): void;

/**
* Parse a string as a moment duration.
* Parse a string into the args for `dayjs.add()`.
*

@@ -84,2 +84,5 @@ * The string have to be compound by a value and a shorthand duration unit. For example `5d`

*
* Please be aware that 1 day may be 23 or 25 hours, if the user lives in an area
* that has daylight savings time (or even 23.5/24.5 hours in Lord Howe Island!)
*
* Shorthand unit supported are:

@@ -96,6 +99,5 @@ *

* @param {string} str - A string representing the duration.
* @returns {moment.Duration} A moment duration, including an invalid moment for invalid input
* string.
* @returns {[value: number, unit: dayjs.ManipulateType]} Arguments to pass to `dayjs.add()`
*/
declare function parseDuration(str: string): moment.Duration;
import moment from "moment-mini";
declare function parseDuration(str: string): [value: number, unit: dayjs.ManipulateType];
import dayjs from "dayjs";

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

export type LogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal';
export declare type LogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal';
export declare const LEVELS: Record<LogLevel, number>;

@@ -3,0 +3,0 @@ export declare const log: Record<keyof typeof LEVELS, typeof console.log>;

@@ -8,3 +8,3 @@ import type { ParseErrorFunction } from './Diagram';

}
export type D3Element = any;
export declare type D3Element = any;
/**

@@ -11,0 +11,0 @@ * @param text - The mermaid diagram definition.

{
"name": "mermaid",
"version": "9.4.2-rc.1",
"version": "9.4.2-rc.2",
"description": "Markdown-ish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.",

@@ -60,3 +60,4 @@ "main": "./dist/mermaid.min.js",

"d3": "^7.4.0",
"dagre-d3-es": "7.0.8",
"dagre-d3-es": "7.0.9",
"dayjs": "^1.11.7",
"dompurify": "2.4.3",

@@ -66,3 +67,2 @@ "elkjs": "^0.8.2",

"lodash-es": "^4.17.21",
"moment-mini": "^2.29.4",
"non-layered-tidy-tree-layout": "^2.0.2",

@@ -69,0 +69,0 @@ "stylis": "^4.1.2",

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 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 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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc