🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@milkdown/exception

Package Overview
Dependencies
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@milkdown/exception - npm Package Compare versions

Comparing version
7.21.2
to
7.21.3
+1
-1
lib/index.js.map

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

{"version":3,"file":"index.js","names":[],"sources":["../src/code.ts","../src/error.ts","../src/index.ts"],"sourcesContent":["export enum ErrorCode {\n docTypeError = 'docTypeError',\n contextNotFound = 'contextNotFound',\n timerNotFound = 'timerNotFound',\n ctxCallOutOfScope = 'ctxCallOutOfScope',\n createNodeInParserFail = 'createNodeInParserFail',\n stackOverFlow = 'stackOverFlow',\n parserMatchError = 'parserMatchError',\n serializerMatchError = 'serializerMatchError',\n getAtomFromSchemaFail = 'getAtomFromSchemaFail',\n expectDomTypeError = 'expectDomTypeError',\n callCommandBeforeEditorView = 'callCommandBeforeEditorView',\n missingRootElement = 'missingRootElement',\n missingNodeInSchema = 'missingNodeInSchema',\n missingMarkInSchema = 'missingMarkInSchema',\n\n // collab plugin\n ctxNotBind = 'ctxNotBind',\n missingYjsDoc = 'missingYjsDoc',\n\n // AI plugin\n aiProviderError = 'aiProviderError',\n aiBuildContextError = 'aiBuildContextError',\n}\n","import type { ErrorCode } from './code'\n\nexport class MilkdownError extends Error {\n public readonly code: ErrorCode\n public override cause?: unknown\n constructor(code: ErrorCode, message: string, options?: { cause?: unknown }) {\n super(message, options)\n this.name = 'MilkdownError'\n this.code = code\n if (options?.cause !== undefined) {\n this.cause = options.cause\n }\n }\n}\n","import { ErrorCode } from './code'\nimport { MilkdownError } from './error'\n\nexport { ErrorCode } from './code'\nexport { MilkdownError } from './error'\n\nconst functionReplacer = (_: string, value: unknown) =>\n typeof value === 'function' ? '[Function]' : value\n\nconst stringify = (x: unknown): string => JSON.stringify(x, functionReplacer)\n\nexport function docTypeError(type: unknown) {\n return new MilkdownError(\n ErrorCode.docTypeError,\n `Doc type error, unsupported type: ${stringify(type)}`\n )\n}\n\nexport function contextNotFound(name: string) {\n return new MilkdownError(\n ErrorCode.contextNotFound,\n `Context \"${name}\" not found, do you forget to inject it?`\n )\n}\n\nexport function timerNotFound(name: string) {\n return new MilkdownError(\n ErrorCode.timerNotFound,\n `Timer \"${name}\" not found, do you forget to record it?`\n )\n}\n\nexport function ctxCallOutOfScope() {\n return new MilkdownError(\n ErrorCode.ctxCallOutOfScope,\n 'Should not call a context out of the plugin.'\n )\n}\n\nexport function createNodeInParserFail(\n nodeType: object,\n attrs?: unknown,\n content?: unknown[]\n) {\n const nodeTypeName = 'name' in nodeType ? nodeType.name : nodeType\n const heading = `Cannot create node for ${nodeTypeName}`\n const serialize = (x: unknown): string => {\n if (x == null) return 'null'\n\n if (Array.isArray(x)) {\n return `[${x.map(serialize).join(', ')}]`\n }\n\n if (typeof x === 'object') {\n if ('toJSON' in x && typeof (x as any).toJSON === 'function') {\n return JSON.stringify((x as any).toJSON())\n }\n\n if ('spec' in x) {\n return JSON.stringify((x as any).spec)\n }\n\n return JSON.stringify(x)\n }\n\n if (\n typeof x === 'string' ||\n typeof x === 'number' ||\n typeof x === 'boolean'\n ) {\n return JSON.stringify(x)\n }\n\n if (typeof x === 'function') {\n return `[Function: ${(x as Function).name || 'anonymous'}]`\n }\n\n try {\n return String(x)\n } catch {\n return '[Unserializable]'\n }\n }\n\n const headingMessage = ['[Description]', heading] as const\n const attrsMessage = ['[Attributes]', attrs] as const\n const contentMessage = [\n '[Content]',\n (content ?? []).map((node) => {\n if (!node) return 'null'\n\n if (typeof node === 'object' && 'type' in node) {\n return `${node}`\n }\n\n return serialize(node)\n }),\n ] as const\n\n const messages = [headingMessage, attrsMessage, contentMessage].reduce(\n (acc, [title, value]) => {\n const message = `${title}: ${serialize(value)}.`\n return acc.concat(message)\n },\n [] as string[]\n )\n\n return new MilkdownError(\n ErrorCode.createNodeInParserFail,\n messages.join('\\n')\n )\n}\n\nexport function stackOverFlow() {\n return new MilkdownError(\n ErrorCode.stackOverFlow,\n 'Stack over flow, cannot pop on an empty stack.'\n )\n}\n\nexport function parserMatchError(node: unknown) {\n return new MilkdownError(\n ErrorCode.parserMatchError,\n `Cannot match target parser for node: ${stringify(node)}.`\n )\n}\n\nexport function serializerMatchError(node: unknown) {\n return new MilkdownError(\n ErrorCode.serializerMatchError,\n `Cannot match target serializer for node: ${stringify(node)}.`\n )\n}\n\nexport function getAtomFromSchemaFail(type: 'mark' | 'node', name: string) {\n return new MilkdownError(\n ErrorCode.getAtomFromSchemaFail,\n `Cannot get ${type}: ${name} from schema.`\n )\n}\n\nexport function expectDomTypeError(node: unknown) {\n return new MilkdownError(\n ErrorCode.expectDomTypeError,\n `Expect to be a dom, but get: ${stringify(node)}.`\n )\n}\n\nexport function callCommandBeforeEditorView() {\n return new MilkdownError(\n ErrorCode.callCommandBeforeEditorView,\n \"You're trying to call a command before editor view initialized, make sure to get commandManager from ctx after editor view has been initialized\"\n )\n}\n\nexport function missingRootElement() {\n return new MilkdownError(\n ErrorCode.missingRootElement,\n 'Missing root element, milkdown cannot find root element of the editor.'\n )\n}\n\nexport function missingNodeInSchema(name: string) {\n return new MilkdownError(\n ErrorCode.missingNodeInSchema,\n `Missing node in schema, milkdown cannot find \"${name}\" in schema.`\n )\n}\n\nexport function missingMarkInSchema(name: string) {\n return new MilkdownError(\n ErrorCode.missingMarkInSchema,\n `Missing mark in schema, milkdown cannot find \"${name}\" in schema.`\n )\n}\n\nexport function ctxNotBind() {\n return new MilkdownError(\n ErrorCode.ctxNotBind,\n 'Context not bind, please make sure the plugin has been initialized.'\n )\n}\n\nexport function missingYjsDoc() {\n return new MilkdownError(\n ErrorCode.missingYjsDoc,\n 'Missing yjs doc, please make sure you have bind one.'\n )\n}\n\nfunction safeStringify(value: unknown): string {\n try {\n return stringify(value)\n } catch {\n return '[Unserializable]'\n }\n}\n\nexport function aiProviderError(cause: unknown) {\n const message = cause instanceof Error ? cause.message : safeStringify(cause)\n return new MilkdownError(\n ErrorCode.aiProviderError,\n `AI provider error: ${message}`,\n { cause }\n )\n}\n\nexport function aiBuildContextError(cause: unknown) {\n const message = cause instanceof Error ? cause.message : safeStringify(cause)\n return new MilkdownError(\n ErrorCode.aiBuildContextError,\n `AI buildContext failed: ${message}`,\n { cause }\n )\n}\n"],"mappings":";AAAA,IAAY,YAAL,yBAAA,WAAA;CACL,UAAA,kBAAe;CACf,UAAA,qBAAkB;CAClB,UAAA,mBAAgB;CAChB,UAAA,uBAAoB;CACpB,UAAA,4BAAyB;CACzB,UAAA,mBAAgB;CAChB,UAAA,sBAAmB;CACnB,UAAA,0BAAuB;CACvB,UAAA,2BAAwB;CACxB,UAAA,wBAAqB;CACrB,UAAA,iCAA8B;CAC9B,UAAA,wBAAqB;CACrB,UAAA,yBAAsB;CACtB,UAAA,yBAAsB;CAGtB,UAAA,gBAAa;CACb,UAAA,mBAAgB;CAGhB,UAAA,qBAAkB;CAClB,UAAA,yBAAsB;;KACvB;;;ACrBD,IAAa,gBAAb,cAAmC,MAAM;CAGvC,YAAY,MAAiB,SAAiB,SAA+B;EAC3E,MAAM,SAAS,QAAQ;EACvB,KAAK,OAAO;EACZ,KAAK,OAAO;EACZ,IAAI,SAAS,UAAU,KAAA,GACrB,KAAK,QAAQ,QAAQ;;;;;ACJ3B,IAAM,oBAAoB,GAAW,UACnC,OAAO,UAAU,aAAa,eAAe;AAE/C,IAAM,aAAa,MAAuB,KAAK,UAAU,GAAG,iBAAiB;AAE7E,SAAgB,aAAa,MAAe;CAC1C,OAAO,IAAI,cACT,UAAU,cACV,qCAAqC,UAAU,KAAK,GACrD;;AAGH,SAAgB,gBAAgB,MAAc;CAC5C,OAAO,IAAI,cACT,UAAU,iBACV,YAAY,KAAK,0CAClB;;AAGH,SAAgB,cAAc,MAAc;CAC1C,OAAO,IAAI,cACT,UAAU,eACV,UAAU,KAAK,0CAChB;;AAGH,SAAgB,oBAAoB;CAClC,OAAO,IAAI,cACT,UA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U,kBACV,wCAAwC,UAAU,KAAK,CAAC,GACzD;;AAGH,SAAgB,qBAAqB,MAAe;CAClD,OAAO,IAAI,cACT,UAAU,sBACV,4CAA4C,UAAU,KAAK,CAAC,GAC7D;;AAGH,SAAgB,sBAAsB,MAAuB,MAAc;CACzE,OAAO,IAAI,cACT,UAAU,uBACV,cAAc,KAAK,IAAI,KAAK,eAC7B;;AAGH,SAAgB,mBAAmB,MAAe;CAChD,OAAO,IAAI,cACT,UAAU,oBACV,gCAAgC,UAAU,KAAK,CAAC,GACjD;;AAGH,SAAgB,8BAA8B;CAC5C,OAAO,IAAI,cACT,UAAU,6BACV,kJACD;;AAGH,SAAgB,qBAAqB;CACnC,OAAO,IAAI,cACT,UAAU,oBACV,yEACD;;AAGH,SAAgB,oBAAoB,MAAc;CAChD,OAAO,IAAI,cACT,UAAU,qBACV,iDAAiD,KAAK,cACvD;;AAGH,SAAgB,oBAAoB,MAAc;CAChD,OAAO,IAAI,cACT,UAAU,qBACV,iDAAiD,KAAK,cACvD;;AAGH,SAAgB,aAAa;CAC3B,OAAO,IAAI,cACT,UAAU,YACV,sEACD;;AAGH,SAAgB,gBAAgB;CAC9B,OAAO,IAAI,cACT,UAAU,eACV,uDACD;;AAGH,SAAS,cAAc,OAAwB;CAC7C,IAAI;EACF,OAAO,UAAU,MAAM;SACjB;EACN,OAAO;;;AAIX,SAAgB,gBAAgB,OAAgB;CAC9C,MAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,cAAc,MAAM;CAC7E,OAAO,IAAI,cACT,UAAU,iBACV,sBAAsB,WACtB,EAAE,OAAO,CACV;;AAGH,SAAgB,oBAAoB,OAAgB;CAClD,MAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,cAAc,MAAM;CAC7E,OAAO,IAAI,cACT,UAAU,qBACV,2BAA2B,WAC3B,EAAE,OAAO,CACV"}
{"version":3,"file":"index.js","names":[],"sources":["../src/code.ts","../src/error.ts","../src/index.ts"],"sourcesContent":["export enum ErrorCode {\n docTypeError = 'docTypeError',\n contextNotFound = 'contextNotFound',\n timerNotFound = 'timerNotFound',\n ctxCallOutOfScope = 'ctxCallOutOfScope',\n createNodeInParserFail = 'createNodeInParserFail',\n stackOverFlow = 'stackOverFlow',\n parserMatchError = 'parserMatchError',\n serializerMatchError = 'serializerMatchError',\n getAtomFromSchemaFail = 'getAtomFromSchemaFail',\n expectDomTypeError = 'expectDomTypeError',\n callCommandBeforeEditorView = 'callCommandBeforeEditorView',\n missingRootElement = 'missingRootElement',\n missingNodeInSchema = 'missingNodeInSchema',\n missingMarkInSchema = 'missingMarkInSchema',\n\n // collab plugin\n ctxNotBind = 'ctxNotBind',\n missingYjsDoc = 'missingYjsDoc',\n\n // AI plugin\n aiProviderError = 'aiProviderError',\n aiBuildContextError = 'aiBuildContextError',\n}\n","import type { ErrorCode } from './code'\n\nexport class MilkdownError extends Error {\n public readonly code: ErrorCode\n public override cause?: unknown\n constructor(code: ErrorCode, message: string, options?: { cause?: unknown }) {\n super(message, options)\n this.name = 'MilkdownError'\n this.code = code\n if (options?.cause !== undefined) {\n this.cause = options.cause\n }\n }\n}\n","import { ErrorCode } from './code'\nimport { MilkdownError } from './error'\n\nexport { ErrorCode } from './code'\nexport { MilkdownError } from './error'\n\nconst functionReplacer = (_: string, value: unknown) =>\n typeof value === 'function' ? '[Function]' : value\n\nconst stringify = (x: unknown): string => JSON.stringify(x, functionReplacer)\n\nexport function docTypeError(type: unknown) {\n return new MilkdownError(\n ErrorCode.docTypeError,\n `Doc type error, unsupported type: ${stringify(type)}`\n )\n}\n\nexport function contextNotFound(name: string) {\n return new MilkdownError(\n ErrorCode.contextNotFound,\n `Context \"${name}\" not found, do you forget to inject it?`\n )\n}\n\nexport function timerNotFound(name: string) {\n return new MilkdownError(\n ErrorCode.timerNotFound,\n `Timer \"${name}\" not found, do you forget to record it?`\n )\n}\n\nexport function ctxCallOutOfScope() {\n return new MilkdownError(\n ErrorCode.ctxCallOutOfScope,\n 'Should not call a context out of the plugin.'\n )\n}\n\nexport function createNodeInParserFail(\n nodeType: object,\n attrs?: unknown,\n content?: unknown[]\n) {\n const nodeTypeName = 'name' in nodeType ? nodeType.name : nodeType\n const heading = `Cannot create node for ${nodeTypeName}`\n const serialize = (x: unknown): string => {\n if (x == null) return 'null'\n\n if (Array.isArray(x)) {\n return `[${x.map(serialize).join(', ')}]`\n }\n\n if (typeof x === 'object') {\n if ('toJSON' in x && typeof (x as any).toJSON === 'function') {\n return JSON.stringify((x as any).toJSON())\n }\n\n if ('spec' in x) {\n return JSON.stringify((x as any).spec)\n }\n\n return JSON.stringify(x)\n }\n\n if (\n typeof x === 'string' ||\n typeof x === 'number' ||\n typeof x === 'boolean'\n ) {\n return JSON.stringify(x)\n }\n\n if (typeof x === 'function') {\n return `[Function: ${(x as Function).name || 'anonymous'}]`\n }\n\n try {\n return String(x)\n } catch {\n return '[Unserializable]'\n }\n }\n\n const headingMessage = ['[Description]', heading] as const\n const attrsMessage = ['[Attributes]', attrs] as const\n const contentMessage = [\n '[Content]',\n (content ?? []).map((node) => {\n if (!node) return 'null'\n\n if (typeof node === 'object' && 'type' in node) {\n return `${node}`\n }\n\n return serialize(node)\n }),\n ] as const\n\n const messages = [headingMessage, attrsMessage, contentMessage].reduce(\n (acc, [title, value]) => {\n const message = `${title}: ${serialize(value)}.`\n return acc.concat(message)\n },\n [] as string[]\n )\n\n return new MilkdownError(\n ErrorCode.createNodeInParserFail,\n messages.join('\\n')\n )\n}\n\nexport function stackOverFlow() {\n return new MilkdownError(\n ErrorCode.stackOverFlow,\n 'Stack over flow, cannot pop on an empty stack.'\n )\n}\n\nexport function parserMatchError(node: unknown) {\n return new MilkdownError(\n ErrorCode.parserMatchError,\n `Cannot match target parser for node: ${stringify(node)}.`\n )\n}\n\nexport function serializerMatchError(node: unknown) {\n return new MilkdownError(\n ErrorCode.serializerMatchError,\n `Cannot match target serializer for node: ${stringify(node)}.`\n )\n}\n\nexport function getAtomFromSchemaFail(type: 'mark' | 'node', name: string) {\n return new MilkdownError(\n ErrorCode.getAtomFromSchemaFail,\n `Cannot get ${type}: ${name} from schema.`\n )\n}\n\nexport function expectDomTypeError(node: unknown) {\n return new MilkdownError(\n ErrorCode.expectDomTypeError,\n `Expect to be a dom, but get: ${stringify(node)}.`\n )\n}\n\nexport function callCommandBeforeEditorView() {\n return new MilkdownError(\n ErrorCode.callCommandBeforeEditorView,\n \"You're trying to call a command before editor view initialized, make sure to get commandManager from ctx after editor view has been initialized\"\n )\n}\n\nexport function missingRootElement() {\n return new MilkdownError(\n ErrorCode.missingRootElement,\n 'Missing root element, milkdown cannot find root element of the editor.'\n )\n}\n\nexport function missingNodeInSchema(name: string) {\n return new MilkdownError(\n ErrorCode.missingNodeInSchema,\n `Missing node in schema, milkdown cannot find \"${name}\" in schema.`\n )\n}\n\nexport function missingMarkInSchema(name: string) {\n return new MilkdownError(\n ErrorCode.missingMarkInSchema,\n `Missing mark in schema, milkdown cannot find \"${name}\" in schema.`\n )\n}\n\nexport function ctxNotBind() {\n return new MilkdownError(\n ErrorCode.ctxNotBind,\n 'Context not bind, please make sure the plugin has been initialized.'\n )\n}\n\nexport function missingYjsDoc() {\n return new MilkdownError(\n ErrorCode.missingYjsDoc,\n 'Missing yjs doc, please make sure you have bind one.'\n )\n}\n\nfunction safeStringify(value: unknown): string {\n try {\n return stringify(value)\n } catch {\n return '[Unserializable]'\n }\n}\n\nexport function aiProviderError(cause: unknown) {\n const message = cause instanceof Error ? cause.message : safeStringify(cause)\n return new MilkdownError(\n ErrorCode.aiProviderError,\n `AI provider error: ${message}`,\n { cause }\n )\n}\n\nexport function aiBuildContextError(cause: unknown) {\n const message = cause instanceof Error ? cause.message : safeStringify(cause)\n return new MilkdownError(\n ErrorCode.aiBuildContextError,\n `AI buildContext failed: ${message}`,\n { cause }\n )\n}\n"],"mappings":";AAAA,IAAY,YAAL,yBAAA,WAAA;CACL,UAAA,kBAAA;CACA,UAAA,qBAAA;CACA,UAAA,mBAAA;CACA,UAAA,uBAAA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OAAO,IAAI,cACT,UAAU,oBACV,gCAAgC,UAAU,IAAI,EAAE,EAClD;AACF;AAEA,SAAgB,8BAA8B;CAC5C,OAAO,IAAI,cACT,UAAU,6BACV,iJACF;AACF;AAEA,SAAgB,qBAAqB;CACnC,OAAO,IAAI,cACT,UAAU,oBACV,wEACF;AACF;AAEA,SAAgB,oBAAoB,MAAc;CAChD,OAAO,IAAI,cACT,UAAU,qBACV,iDAAiD,KAAK,aACxD;AACF;AAEA,SAAgB,oBAAoB,MAAc;CAChD,OAAO,IAAI,cACT,UAAU,qBACV,iDAAiD,KAAK,aACxD;AACF;AAEA,SAAgB,aAAa;CAC3B,OAAO,IAAI,cACT,UAAU,YACV,qEACF;AACF;AAEA,SAAgB,gBAAgB;CAC9B,OAAO,IAAI,cACT,UAAU,eACV,sDACF;AACF;AAEA,SAAS,cAAc,OAAwB;CAC7C,IAAI;EACF,OAAO,UAAU,KAAK;CACxB,QAAQ;EACN,OAAO;CACT;AACF;AAEA,SAAgB,gBAAgB,OAAgB;CAC9C,MAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,cAAc,KAAK;CAC5E,OAAO,IAAI,cACT,UAAU,iBACV,sBAAsB,WACtB,EAAE,MAAM,CACV;AACF;AAEA,SAAgB,oBAAoB,OAAgB;CAClD,MAAM,UAAU,iBAAiB,QAAQ,MAAM,UAAU,cAAc,KAAK;CAC5E,OAAO,IAAI,cACT,UAAU,qBACV,2BAA2B,WAC3B,EAAE,MAAM,CACV;AACF"}
{
"name": "@milkdown/exception",
"version": "7.21.2",
"version": "7.21.3",
"license": "MIT",

@@ -5,0 +5,0 @@ "repository": {