@jupyter/docprovider 2.1.2 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/ydrive.js +3 -1
  2. package/package.json +1 -1
package/lib/ydrive.js CHANGED
@@ -90,7 +90,9 @@ export class YDrive extends Drive {
90
90
  super.get(localPath, { ...options, content: false }),
91
91
  provider.ready
92
92
  ]);
93
- return model;
93
+ // The server doesn't return a model with a format when content is false,
94
+ // so set it back.
95
+ return { ...model, format: options.format };
94
96
  }
95
97
  }
96
98
  return super.get(localPath, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupyter/docprovider",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "JupyterLab - Document Provider",
5
5
  "homepage": "https://github.com/jupyterlab/jupyter-collaboration",
6
6
  "bugs": {