crossnote 0.9.43 → 0.9.44

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.
package/out/cli/index.cjs CHANGED
@@ -32143,6 +32143,9 @@ function normalizeNotebookConfig(config) {
32143
32143
  }
32144
32144
  return config;
32145
32145
  }
32146
+ function parseNotebookPath(notebookPath) {
32147
+ return /^[A-Za-z]:[\\/]/.test(notebookPath) ? import_vscode_uri.URI.file(notebookPath) : import_vscode_uri.URI.parse(notebookPath);
32148
+ }
32146
32149
  var Notebook = class _Notebook {
32147
32150
  constructor() {
32148
32151
  /**
@@ -32254,7 +32257,7 @@ var Notebook = class _Notebook {
32254
32257
  config = {},
32255
32258
  fs: fs23
32256
32259
  }) {
32257
- const uri = import_vscode_uri.URI.parse(notebookPath);
32260
+ const uri = parseNotebookPath(notebookPath);
32258
32261
  if (!path15.isAbsolute(uri.fsPath) || uri.path.startsWith("/./")) {
32259
32262
  throw new Error(
32260
32263
  `\`notebookPath\`: "${notebookPath}" must be an absolute path`