@promptbook/markdown-utils 0.85.0-8 → 0.85.0-9

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
@@ -25,7 +25,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
25
25
  * @generated
26
26
  * @see https://github.com/webgptorg/promptbook
27
27
  */
28
- var PROMPTBOOK_ENGINE_VERSION = '0.85.0-7';
28
+ var PROMPTBOOK_ENGINE_VERSION = '0.85.0-8';
29
29
  /**
30
30
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
31
31
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -2190,18 +2190,16 @@ function assertsTaskSuccessful(executionResult) {
2190
2190
  */
2191
2191
  function createTask(options) {
2192
2192
  var taskType = options.taskType, taskProcessCallback = options.taskProcessCallback;
2193
- var taskId = "".concat(taskType.toLowerCase().substring(0, 4), "-").concat($randomToken(8 /* <- TODO: !!! To global config + Use Base58 to avoid simmilar char conflicts */));
2193
+ var taskId = "".concat(taskType.toLowerCase().substring(0, 4), "-").concat($randomToken(8 /* <- TODO: To global config + Use Base58 to avoid simmilar char conflicts */));
2194
2194
  var partialResultSubject = new BehaviorSubject({});
2195
2195
  var finalResultPromise = /* not await */ taskProcessCallback(function (newOngoingResult) {
2196
2196
  partialResultSubject.next(newOngoingResult);
2197
2197
  });
2198
2198
  finalResultPromise
2199
2199
  .catch(function (error) {
2200
- // console.error('!!!!! Task failed:', error);
2201
2200
  partialResultSubject.error(error);
2202
2201
  })
2203
2202
  .then(function (value) {
2204
- // console.error('!!!!! Task finished:', value);
2205
2203
  if (value) {
2206
2204
  try {
2207
2205
  assertsTaskSuccessful(value);
@@ -2223,9 +2221,7 @@ function createTask(options) {
2223
2221
  return [4 /*yield*/, finalResultPromise];
2224
2222
  case 1:
2225
2223
  finalResult = _b.sent();
2226
- console.error('!!!!! finalResult:', finalResult);
2227
2224
  if (isCrashedOnError) {
2228
- console.error('!!!!! isCrashedOnError:', finalResult);
2229
2225
  assertsTaskSuccessful(finalResult);
2230
2226
  }
2231
2227
  return [2 /*return*/, finalResult];