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

@milkdown/exception

Package Overview
Dependencies
Maintainers
1
Versions
96
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 4.6.9 to 4.7.0

CHANGELOG.md

11

lib/index.d.ts

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

export declare const docTypeError: <T>(type: T) => TypeError;
export declare const docTypeError: (type: unknown) => Error;
export declare const contextNotFound: () => Error;
export declare const timerNotFound: () => Error;
export declare const ctxCallOutOfScope: () => Error;
export declare const createNodeInParserFail: (...args: unknown[]) => Error;
export declare const stackOverFlow: () => Error;
export declare const parserMatchError: (node: unknown) => Error;
export declare const serializerMatchError: (node: unknown) => Error;
export declare const getAtomFromSchemaFail: (type: 'mark' | 'node', name: string) => Error;
export declare const expectDomTypeError: (node: unknown) => Error;
//# sourceMappingURL=index.d.ts.map

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

export const docTypeError = (type) => new TypeError(`Doc type error, unsupported type: ${type}`);
export const docTypeError = (type) => new Error(`Doc type error, unsupported type: ${JSON.stringify(type)}`);
export const contextNotFound = () => new Error('Context not found, do you forget to inject it?');
export const timerNotFound = () => new Error('Timer not found, do you forget to record it?');
export const ctxCallOutOfScope = () => new Error('Should not call a context out of the plugin.');
export const createNodeInParserFail = (...args) => {
const message = args.reduce((msg, arg) => {
if (!arg) {
return msg;
}
return `${msg}, ${JSON.stringify(arg)}`;
}, 'Create prosemirror node from remark failed in parser');
return new Error(message);
};
export const stackOverFlow = () => new Error('Stack over flow, cannot pop on an empty stack.');
export const parserMatchError = (node) => new Error(`Cannot match target parser for node: ${JSON.stringify(node)}.`);
export const serializerMatchError = (node) => new Error(`Cannot match target serializer for node: ${JSON.stringify(node)}.`);
export const getAtomFromSchemaFail = (type, name) => new Error(`Cannot get ${type}: ${name} from schema.`);
export const expectDomTypeError = (node) => new Error(`Expect to be a dom, but get: ${JSON.stringify(node)}.`);
//# sourceMappingURL=index.js.map

2

package.json
{
"name": "@milkdown/exception",
"version": "4.6.9",
"version": "4.7.0",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "module": "lib/index.js",

Sorry, the diff of this file is not supported yet

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