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.7.1 to 4.8.0

14

lib/index.js

@@ -10,3 +10,15 @@ export const docTypeError = (type) => new Error(`Doc type error, unsupported type: ${JSON.stringify(type)}`);

}
return `${msg}, ${JSON.stringify(arg)}`;
const serialize = (x) => {
if (Array.isArray(x)) {
return x.map((y) => serialize(y)).join(', ');
}
if (x.toJSON) {
return JSON.stringify(x.toJSON());
}
if (x.spec) {
return JSON.stringify(x.spec);
}
return x.toString();
};
return `${msg}, ${serialize(arg)}`;
}, 'Create prosemirror node from remark failed in parser');

@@ -13,0 +25,0 @@ return new Error(message);

48

package.json
{
"name": "@milkdown/exception",
"version": "4.7.1",
"main": "lib/index.js",
"module": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
"start": "vite",
"watch": "tsc -w",
"test": "jest",
"tsc": "tsc --noEmit",
"build": "tsc"
},
"files": [
"lib"
],
"peerDependencies": {
"@milkdown/core": "*"
},
"dependencies": {
"@types/lodash-es": "^4.17.4",
"lodash-es": "^4.17.21",
"tslib": "^2.2.0"
}
}
"name": "@milkdown/exception",
"version": "4.8.0",
"main": "lib/index.js",
"module": "lib/index.js",
"types": "lib/index.d.ts",
"files": [
"lib"
],
"peerDependencies": {
"@milkdown/core": "*"
},
"dependencies": {
"@types/lodash-es": "^4.17.4",
"lodash-es": "^4.17.21",
"tslib": "^2.2.0"
},
"scripts": {
"start": "vite",
"watch": "tsc -w",
"test": "jest",
"tsc": "tsc --noEmit",
"build": "tsc"
}
}

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