@promptbook/javascript 0.112.0-12 → 0.112.0-15
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 +15 -15
- package/esm/index.es.js.map +1 -1
- package/esm/src/cli/cli-commands/coder/{find-fresh-emoji-tag.d.ts → find-fresh-emoji-tags.d.ts} +1 -1
- package/esm/src/cli/cli-commands/coder.d.ts +1 -1
- package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +1 -1
- package/esm/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +1 -0
- package/esm/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +51 -2
- package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +2 -2
- package/esm/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +2 -2
- package/esm/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +14 -1
- package/esm/src/execution/createPipelineExecutor/30-executeFormatSubvalues.d.ts +1 -1
- package/esm/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
- package/esm/src/llm-providers/deepseek/deepseek-models.d.ts +1 -1
- package/esm/src/llm-providers/google/google-models.d.ts +1 -1
- package/esm/src/llm-providers/openai/openai-models.d.ts +1 -1
- package/esm/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +1 -2
- package/esm/src/scrapers/document/DocumentScraper.d.ts +1 -2
- package/esm/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +1 -2
- package/esm/src/scripting/javascript/postprocessing-functions.d.ts +1 -1
- package/esm/src/utils/parameters/mapAvailableToExpectedParameters.d.ts +1 -2
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +27 -27
- package/umd/index.umd.js.map +1 -1
- package/umd/src/cli/cli-commands/coder/{find-fresh-emoji-tag.d.ts → find-fresh-emoji-tags.d.ts} +1 -1
- package/umd/src/cli/cli-commands/coder.d.ts +1 -1
- package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +1 -1
- package/umd/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +1 -0
- package/umd/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +51 -2
- package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +2 -2
- package/umd/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +2 -2
- package/umd/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +14 -1
- package/umd/src/execution/createPipelineExecutor/30-executeFormatSubvalues.d.ts +1 -1
- package/umd/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
- package/umd/src/llm-providers/deepseek/deepseek-models.d.ts +1 -1
- package/umd/src/llm-providers/google/google-models.d.ts +1 -1
- package/umd/src/llm-providers/openai/openai-models.d.ts +1 -1
- package/umd/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +1 -2
- package/umd/src/scrapers/document/DocumentScraper.d.ts +1 -2
- package/umd/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +1 -2
- package/umd/src/scripting/javascript/postprocessing-functions.d.ts +1 -1
- package/umd/src/utils/parameters/mapAvailableToExpectedParameters.d.ts +1 -2
- package/umd/src/version.d.ts +1 -1
|
@@ -3,7 +3,7 @@ import type { number_usd } from '../../types/typeAliases';
|
|
|
3
3
|
/**
|
|
4
4
|
* List of available Anthropic Claude models with pricing
|
|
5
5
|
*
|
|
6
|
-
* Note: Synced with official API docs at
|
|
6
|
+
* Note: Synced with official API docs at 2026-03-22
|
|
7
7
|
*
|
|
8
8
|
* @see https://docs.anthropic.com/en/docs/models-overview
|
|
9
9
|
* @public exported from `@promptbook/anthropic-claude`
|
|
@@ -3,7 +3,7 @@ import type { number_usd } from '../../types/typeAliases';
|
|
|
3
3
|
/**
|
|
4
4
|
* List of available Deepseek models with descriptions
|
|
5
5
|
*
|
|
6
|
-
* Note: Synced with official API docs at
|
|
6
|
+
* Note: Synced with official API docs at 2026-03-22
|
|
7
7
|
*
|
|
8
8
|
* @see https://www.deepseek.com/models
|
|
9
9
|
* @public exported from `@promptbook/deepseek`
|
|
@@ -3,7 +3,7 @@ import type { number_usd } from '../../types/typeAliases';
|
|
|
3
3
|
/**
|
|
4
4
|
* List of available Google models with descriptions
|
|
5
5
|
*
|
|
6
|
-
* Note: Synced with official API docs at
|
|
6
|
+
* Note: Synced with official API docs at 2026-03-22
|
|
7
7
|
*
|
|
8
8
|
* @see https://ai.google.dev/models/gemini
|
|
9
9
|
* @public exported from `@promptbook/google`
|
|
@@ -2,7 +2,7 @@ import type { AvailableModel } from '../../execution/AvailableModel';
|
|
|
2
2
|
/**
|
|
3
3
|
* List of available OpenAI models with pricing
|
|
4
4
|
*
|
|
5
|
-
* Note: Synced with official API docs at
|
|
5
|
+
* Note: Synced with official API docs at 2026-03-22
|
|
6
6
|
*
|
|
7
7
|
* @see https://platform.openai.com/docs/models/
|
|
8
8
|
* @see https://openai.com/api/pricing/
|
|
@@ -3,8 +3,7 @@ import type { KnowledgePiecePreparedJson } from '../../pipeline/PipelineJson/Kno
|
|
|
3
3
|
import type { PrepareAndScrapeOptions } from '../../prepare/PrepareAndScrapeOptions';
|
|
4
4
|
import type { Converter } from '../_common/Converter';
|
|
5
5
|
import type { ScraperAndConverterMetadata } from '../_common/register/ScraperAndConverterMetadata';
|
|
6
|
-
import type { Scraper } from '../_common/Scraper';
|
|
7
|
-
import type { ScraperSourceHandler } from '../_common/Scraper';
|
|
6
|
+
import type { Scraper, ScraperSourceHandler } from '../_common/Scraper';
|
|
8
7
|
import type { ScraperIntermediateSource } from '../_common/ScraperIntermediateSource';
|
|
9
8
|
/**
|
|
10
9
|
* Scraper of @@ files
|
|
@@ -3,8 +3,7 @@ import type { ExecutionTools } from '../../execution/ExecutionTools';
|
|
|
3
3
|
import type { PrepareAndScrapeOptions } from '../../prepare/PrepareAndScrapeOptions';
|
|
4
4
|
import type { Converter } from '../_common/Converter';
|
|
5
5
|
import type { ScraperAndConverterMetadata } from '../_common/register/ScraperAndConverterMetadata';
|
|
6
|
-
import type { Scraper } from '../_common/Scraper';
|
|
7
|
-
import type { ScraperSourceHandler } from '../_common/Scraper';
|
|
6
|
+
import type { Scraper, ScraperSourceHandler } from '../_common/Scraper';
|
|
8
7
|
import type { ScraperIntermediateSource } from '../_common/ScraperIntermediateSource';
|
|
9
8
|
/**
|
|
10
9
|
* Scraper of .docx and .odt files
|
|
@@ -3,8 +3,7 @@ import type { ExecutionTools } from '../../execution/ExecutionTools';
|
|
|
3
3
|
import type { PrepareAndScrapeOptions } from '../../prepare/PrepareAndScrapeOptions';
|
|
4
4
|
import type { Converter } from '../_common/Converter';
|
|
5
5
|
import type { ScraperAndConverterMetadata } from '../_common/register/ScraperAndConverterMetadata';
|
|
6
|
-
import type { Scraper } from '../_common/Scraper';
|
|
7
|
-
import type { ScraperSourceHandler } from '../_common/Scraper';
|
|
6
|
+
import type { Scraper, ScraperSourceHandler } from '../_common/Scraper';
|
|
8
7
|
import type { ScraperIntermediateSource } from '../_common/ScraperIntermediateSource';
|
|
9
8
|
/**
|
|
10
9
|
* Scraper for old document files (like .doc and .rtf)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import spaceTrim from 'spacetrim';
|
|
1
|
+
import { spaceTrim } from 'spacetrim';
|
|
2
2
|
import { extractBlock } from '../../postprocessing/utils/extractBlock';
|
|
3
3
|
import { prettifyMarkdown } from '../../utils/markdown/prettifyMarkdown';
|
|
4
4
|
import { trimCodeBlock } from '../../utils/markdown/trimCodeBlock';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { string_parameter_name } from '../../types/typeAliases';
|
|
2
|
-
import type { string_parameter_value } from '../../types/typeAliases';
|
|
1
|
+
import type { string_parameter_name, string_parameter_value } from '../../types/typeAliases';
|
|
3
2
|
/**
|
|
4
3
|
* Options for mapping available parameters to expected parameters in a pipeline task.
|
|
5
4
|
*/
|
package/esm/src/version.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.112.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.112.0-14`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/javascript",
|
|
3
|
-
"version": "0.112.0-
|
|
3
|
+
"version": "0.112.0-15",
|
|
4
4
|
"description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"module": "./esm/index.es.js",
|
|
98
98
|
"typings": "./esm/typings/src/_packages/javascript.index.d.ts",
|
|
99
99
|
"peerDependencies": {
|
|
100
|
-
"@promptbook/core": "0.112.0-
|
|
100
|
+
"@promptbook/core": "0.112.0-15"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
103
|
"crypto": "1.0.1",
|
package/umd/index.umd.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('spacetrim'), require('path'), require('crypto'), require('crypto-js'), require('crypto-js/enc-hex')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', 'spacetrim', 'path', 'crypto', 'crypto-js', 'crypto-js/enc-hex'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["promptbook-javascript"] = {}, global.
|
|
5
|
-
})(this, (function (exports,
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["promptbook-javascript"] = {}, global._spaceTrim, null, global.crypto));
|
|
5
|
+
})(this, (function (exports, _spaceTrim, path, crypto) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _spaceTrim__default = /*#__PURE__*/_interopDefaultLegacy(_spaceTrim);
|
|
10
10
|
|
|
11
11
|
// ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten
|
|
12
12
|
/**
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* @generated
|
|
23
23
|
* @see https://github.com/webgptorg/promptbook
|
|
24
24
|
*/
|
|
25
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
25
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-15';
|
|
26
26
|
/**
|
|
27
27
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
28
28
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
* @public exported from `@promptbook/utils`
|
|
38
38
|
* @see https://github.com/hejny/spacetrim#usage
|
|
39
39
|
*/
|
|
40
|
-
const spaceTrim =
|
|
40
|
+
const spaceTrim = _spaceTrim.spaceTrim;
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* @private util of `@promptbook/color`
|
|
@@ -1076,7 +1076,7 @@
|
|
|
1076
1076
|
function getErrorReportUrl(error) {
|
|
1077
1077
|
const report = {
|
|
1078
1078
|
title: `🐜 Error report from ${NAME}`,
|
|
1079
|
-
body:
|
|
1079
|
+
body: _spaceTrim.spaceTrim((block) => `
|
|
1080
1080
|
|
|
1081
1081
|
|
|
1082
1082
|
\`${error.name || 'Error'}\` has occurred in the [${NAME}], please look into it @${ADMIN_GITHUB_NAME}.
|
|
@@ -1119,7 +1119,7 @@
|
|
|
1119
1119
|
*/
|
|
1120
1120
|
class UnexpectedError extends Error {
|
|
1121
1121
|
constructor(message) {
|
|
1122
|
-
super(
|
|
1122
|
+
super(_spaceTrim.spaceTrim((block) => `
|
|
1123
1123
|
${block(message)}
|
|
1124
1124
|
|
|
1125
1125
|
Note: This error should not happen.
|
|
@@ -1145,7 +1145,7 @@
|
|
|
1145
1145
|
constructor(whatWasThrown) {
|
|
1146
1146
|
const tag = `[🤮]`;
|
|
1147
1147
|
console.error(tag, whatWasThrown);
|
|
1148
|
-
super(
|
|
1148
|
+
super(_spaceTrim.spaceTrim(`
|
|
1149
1149
|
Non-Error object was thrown
|
|
1150
1150
|
|
|
1151
1151
|
Note: Look for ${tag} in the console for more details
|
|
@@ -1234,7 +1234,7 @@
|
|
|
1234
1234
|
}
|
|
1235
1235
|
else if (typeof value === 'object') {
|
|
1236
1236
|
if (value instanceof Date) {
|
|
1237
|
-
throw new UnexpectedError(
|
|
1237
|
+
throw new UnexpectedError(_spaceTrim.spaceTrim((block) => `
|
|
1238
1238
|
\`${name}\` is Date
|
|
1239
1239
|
|
|
1240
1240
|
Use \`string_date_iso8601\` instead
|
|
@@ -1253,7 +1253,7 @@
|
|
|
1253
1253
|
throw new UnexpectedError(`${name} is RegExp`);
|
|
1254
1254
|
}
|
|
1255
1255
|
else if (value instanceof Error) {
|
|
1256
|
-
throw new UnexpectedError(
|
|
1256
|
+
throw new UnexpectedError(_spaceTrim.spaceTrim((block) => `
|
|
1257
1257
|
\`${name}\` is unserialized Error
|
|
1258
1258
|
|
|
1259
1259
|
Use function \`serializeError\`
|
|
@@ -1276,7 +1276,7 @@
|
|
|
1276
1276
|
}
|
|
1277
1277
|
catch (error) {
|
|
1278
1278
|
assertsError(error);
|
|
1279
|
-
throw new UnexpectedError(
|
|
1279
|
+
throw new UnexpectedError(_spaceTrim.spaceTrim((block) => `
|
|
1280
1280
|
\`${name}\` is not serializable
|
|
1281
1281
|
|
|
1282
1282
|
${block(error.stack || error.message)}
|
|
@@ -1308,7 +1308,7 @@
|
|
|
1308
1308
|
}
|
|
1309
1309
|
}
|
|
1310
1310
|
else {
|
|
1311
|
-
throw new UnexpectedError(
|
|
1311
|
+
throw new UnexpectedError(_spaceTrim.spaceTrim((block) => `
|
|
1312
1312
|
\`${name}\` is unknown type
|
|
1313
1313
|
|
|
1314
1314
|
Additional message for \`${name}\`:
|
|
@@ -2165,7 +2165,7 @@
|
|
|
2165
2165
|
let trimmedText = text;
|
|
2166
2166
|
// Remove leading and trailing spaces and newlines
|
|
2167
2167
|
if (isTrimmed) {
|
|
2168
|
-
trimmedText =
|
|
2168
|
+
trimmedText = _spaceTrim.spaceTrim(trimmedText);
|
|
2169
2169
|
}
|
|
2170
2170
|
let processedText = trimmedText;
|
|
2171
2171
|
// Check for markdown code block
|
|
@@ -2184,7 +2184,7 @@
|
|
|
2184
2184
|
// Remove the introduce sentence and quotes by replacing it with an empty string
|
|
2185
2185
|
processedText = processedText.replace(introduceSentenceRegex, '');
|
|
2186
2186
|
}
|
|
2187
|
-
processedText =
|
|
2187
|
+
processedText = _spaceTrim.spaceTrim(processedText);
|
|
2188
2188
|
// Check again for code block after removing introduce sentence
|
|
2189
2189
|
const codeBlockMatch2 = processedText.match(codeBlockRegex);
|
|
2190
2190
|
if (codeBlockMatch2 && codeBlockMatch2[1] !== undefined) {
|
|
@@ -2321,7 +2321,7 @@
|
|
|
2321
2321
|
function extractOneBlockFromMarkdown(markdown) {
|
|
2322
2322
|
const codeBlocks = extractAllBlocksFromMarkdown(markdown);
|
|
2323
2323
|
if (codeBlocks.length !== 1) {
|
|
2324
|
-
throw new ParseError(
|
|
2324
|
+
throw new ParseError(_spaceTrim.spaceTrim((block) => `
|
|
2325
2325
|
There should be exactly 1 code block in task section, found ${codeBlocks.length} code blocks
|
|
2326
2326
|
|
|
2327
2327
|
${block(codeBlocks.map((block, i) => `Block ${i + 1}:\n${block.content}`).join('\n\n\n'))}
|
|
@@ -2374,13 +2374,13 @@
|
|
|
2374
2374
|
* @public exported from `@promptbook/markdown-utils`
|
|
2375
2375
|
*/
|
|
2376
2376
|
function trimCodeBlock(value) {
|
|
2377
|
-
value =
|
|
2377
|
+
value = _spaceTrim.spaceTrim(value);
|
|
2378
2378
|
if (!/^```[a-z]*(.*)```$/is.test(value)) {
|
|
2379
2379
|
return value;
|
|
2380
2380
|
}
|
|
2381
2381
|
value = value.replace(/^```[a-z]*/i, '');
|
|
2382
2382
|
value = value.replace(/```$/i, '');
|
|
2383
|
-
value =
|
|
2383
|
+
value = _spaceTrim.spaceTrim(value);
|
|
2384
2384
|
return value;
|
|
2385
2385
|
}
|
|
2386
2386
|
|
|
@@ -2393,9 +2393,9 @@
|
|
|
2393
2393
|
* @public exported from `@promptbook/markdown-utils`
|
|
2394
2394
|
*/
|
|
2395
2395
|
function trimEndOfCodeBlock(value) {
|
|
2396
|
-
value =
|
|
2396
|
+
value = _spaceTrim.spaceTrim(value);
|
|
2397
2397
|
value = value.replace(/```$/g, '');
|
|
2398
|
-
value =
|
|
2398
|
+
value = _spaceTrim.spaceTrim(value);
|
|
2399
2399
|
return value;
|
|
2400
2400
|
}
|
|
2401
2401
|
|
|
@@ -2442,7 +2442,7 @@
|
|
|
2442
2442
|
}
|
|
2443
2443
|
// Note: [💎]
|
|
2444
2444
|
// Note: Using direct eval, following variables are in same scope as eval call so they are accessible from inside the evaluated script:
|
|
2445
|
-
const spaceTrim = (_) =>
|
|
2445
|
+
const spaceTrim = (_) => _spaceTrim__default["default"](_);
|
|
2446
2446
|
$preserve(spaceTrim);
|
|
2447
2447
|
const removeQuotes$1 = removeQuotes;
|
|
2448
2448
|
$preserve(removeQuotes$1);
|
|
@@ -2533,7 +2533,7 @@
|
|
|
2533
2533
|
.join('\n');
|
|
2534
2534
|
// script = templateParameters(script, parameters);
|
|
2535
2535
|
// <- TODO: [🧠][🥳] Should be this is one of two variants how to use parameters in script
|
|
2536
|
-
const statementToEvaluate =
|
|
2536
|
+
const statementToEvaluate = _spaceTrim__default["default"]((block) => `
|
|
2537
2537
|
|
|
2538
2538
|
// Build-in functions:
|
|
2539
2539
|
${block(buildinFunctionsStatement)}
|
|
@@ -2548,7 +2548,7 @@
|
|
|
2548
2548
|
(async ()=>{ ${script} })()
|
|
2549
2549
|
`);
|
|
2550
2550
|
if (this.options.isVerbose) {
|
|
2551
|
-
console.info(
|
|
2551
|
+
console.info(_spaceTrim__default["default"]((block) => `
|
|
2552
2552
|
🚀 Evaluating ${scriptLanguage} script:
|
|
2553
2553
|
|
|
2554
2554
|
${block(statementToEvaluate)}`));
|
|
@@ -2557,7 +2557,7 @@
|
|
|
2557
2557
|
try {
|
|
2558
2558
|
result = await eval(statementToEvaluate);
|
|
2559
2559
|
if (this.options.isVerbose) {
|
|
2560
|
-
console.info(
|
|
2560
|
+
console.info(_spaceTrim__default["default"]((block) => `
|
|
2561
2561
|
🚀 Script evaluated successfully, result:
|
|
2562
2562
|
${block(valueToString(result))}
|
|
2563
2563
|
`));
|
|
@@ -2576,7 +2576,7 @@
|
|
|
2576
2576
|
To: [PipelineExecutionError: Parameter `{thing}` is not defined],
|
|
2577
2577
|
*/
|
|
2578
2578
|
if (!statementToEvaluate.includes(undefinedName + '(')) {
|
|
2579
|
-
throw new PipelineExecutionError(
|
|
2579
|
+
throw new PipelineExecutionError(_spaceTrim__default["default"]((block) => `
|
|
2580
2580
|
|
|
2581
2581
|
Parameter \`{${undefinedName}}\` is not defined
|
|
2582
2582
|
|
|
@@ -2598,7 +2598,7 @@
|
|
|
2598
2598
|
`));
|
|
2599
2599
|
}
|
|
2600
2600
|
else {
|
|
2601
|
-
throw new PipelineExecutionError(
|
|
2601
|
+
throw new PipelineExecutionError(_spaceTrim__default["default"]((block) => `
|
|
2602
2602
|
Function ${undefinedName}() is not defined
|
|
2603
2603
|
|
|
2604
2604
|
- Make sure that the function is one of built-in functions
|
|
@@ -2648,7 +2648,7 @@
|
|
|
2648
2648
|
* @public exported from `@promptbook/javascript`
|
|
2649
2649
|
*/
|
|
2650
2650
|
const POSTPROCESSING_FUNCTIONS = {
|
|
2651
|
-
spaceTrim:
|
|
2651
|
+
spaceTrim: _spaceTrim.spaceTrim,
|
|
2652
2652
|
removeQuotes,
|
|
2653
2653
|
unwrapResult,
|
|
2654
2654
|
trimEndOfCodeBlock,
|
|
@@ -2728,7 +2728,7 @@
|
|
|
2728
2728
|
}
|
|
2729
2729
|
catch (error) {
|
|
2730
2730
|
assertsError(error);
|
|
2731
|
-
throw new ParseError(
|
|
2731
|
+
throw new ParseError(_spaceTrim.spaceTrim((block) => `
|
|
2732
2732
|
Can not extract variables from the script
|
|
2733
2733
|
${block(error.stack || error.message)}
|
|
2734
2734
|
|