@promptbook/node 0.74.0-4 → 0.74.0-5

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/esm/index.es.js CHANGED
@@ -26,7 +26,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
26
26
  *
27
27
  * @see https://github.com/webgptorg/promptbook
28
28
  */
29
- var PROMPTBOOK_ENGINE_VERSION = '0.74.0-3';
29
+ var PROMPTBOOK_ENGINE_VERSION = '0.74.0-4';
30
30
  /**
31
31
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
32
32
  */
@@ -1522,7 +1522,7 @@ function isValidPipelineUrl(url) {
1522
1522
  if (!url.startsWith('https://')) {
1523
1523
  return false;
1524
1524
  }
1525
- if (!url.endsWith('.ptbk.md')) {
1525
+ if (!(url.endsWith('.book.md') || url.endsWith('.book') || url.endsWith('.ptbk.md') || url.endsWith('.ptbk'))) {
1526
1526
  return false;
1527
1527
  }
1528
1528
  if (url.includes('#')) {