Socket
Socket
Sign inDemoInstall

@jupyter/ydoc

Package Overview
Dependencies
Maintainers
7
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jupyter/ydoc - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

19

lib/ynotebook.js

@@ -87,2 +87,21 @@ /* -----------------------------------------------------------------------------

}
if (metaEvent.keysChanged.has('metadata')) {
// Handle metadata change when adding/removing the YMap
const change = metaEvent.changes.keys.get('metadata');
if ((change === null || change === void 0 ? void 0 : change.action) === 'add' && !change.oldValue) {
const metadataChange = new Map();
for (const key of Object.keys(this.metadata)) {
metadataChange.set(key, {
action: 'add',
oldValue: undefined
});
this._metadataChanged.emit({
key,
type: 'add',
newValue: this.getMetadata(key)
});
}
this._changed.emit({ metadataChange });
}
}
if (metaEvent.keysChanged.has('nbformat')) {

@@ -89,0 +108,0 @@ const change = metaEvent.changes.keys.get('nbformat');

2

package.json
{
"name": "@jupyter/ydoc",
"version": "0.3.0",
"version": "0.3.1",
"type": "module",

@@ -5,0 +5,0 @@ "description": "Jupyter document structures for collaborative editing using YJS",

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