bare-script 3.3.0 → 3.3.1
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/lib/runtime.js +1 -1
- package/lib/runtimeAsync.js +1 -1
- package/package.json +2 -2
package/lib/runtime.js
CHANGED
|
@@ -47,7 +47,7 @@ function executeScriptHelper(statements, options, locals) {
|
|
|
47
47
|
const [statementKey] = Object.keys(statement);
|
|
48
48
|
|
|
49
49
|
// Increment the statement counter
|
|
50
|
-
options.statementCount
|
|
50
|
+
options.statementCount = (options.statementCount ?? 0) + 1;
|
|
51
51
|
const maxStatements = options.maxStatements ?? defaultMaxStatements;
|
|
52
52
|
if (maxStatements > 0 && options.statementCount > maxStatements) {
|
|
53
53
|
throw new BareScriptRuntimeError(`Exceeded maximum script statements (${maxStatements})`);
|
package/lib/runtimeAsync.js
CHANGED
|
@@ -52,7 +52,7 @@ async function executeScriptHelperAsync(statements, options, locals) {
|
|
|
52
52
|
const [statementKey] = Object.keys(statement);
|
|
53
53
|
|
|
54
54
|
// Increment the statement counter
|
|
55
|
-
options.statementCount
|
|
55
|
+
options.statementCount = (options.statementCount ?? 0) + 1;
|
|
56
56
|
const maxStatements = options.maxStatements ?? defaultMaxStatements;
|
|
57
57
|
if (maxStatements > 0 && options.statementCount > maxStatements) {
|
|
58
58
|
throw new BareScriptRuntimeError(`Exceeded maximum script statements (${maxStatements})`);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "bare-script",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.1",
|
|
5
5
|
"description": "BareScript; a lightweight scripting and expression language",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"expression",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"c8": "~10.1",
|
|
34
|
-
"eslint": "~9.
|
|
34
|
+
"eslint": "~9.23",
|
|
35
35
|
"jsdoc": "~4.0"
|
|
36
36
|
}
|
|
37
37
|
}
|