bare-script 3.3.0 → 3.3.2
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/include/args.mds +0 -12
- package/lib/include/forms.mds +0 -12
- package/lib/include/pager.mds +0 -12
- package/lib/include/unittest.mds +0 -12
- package/lib/include/unittestMock.mds +0 -12
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.2",
|
|
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.28",
|
|
35
35
|
"jsdoc": "~4.0"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/lib/include/args.mds
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Licensed under the MIT License
|
|
2
|
-
# https://github.com/craigahobbs/markdown-up/blob/main/LICENSE
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
# Include sentinel
|
|
6
|
-
if systemGlobalGet('argsSentinel'):
|
|
7
|
-
return
|
|
8
|
-
endif
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
systemLog('MarkdownUp - args.mds: args.mds is now args.bare - please update before 2025-06-01')
|
|
12
|
-
include 'args.bare'
|
package/lib/include/forms.mds
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Licensed under the MIT License
|
|
2
|
-
# https://github.com/craigahobbs/markdown-up/blob/main/LICENSE
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
# Include sentinel
|
|
6
|
-
if systemGlobalGet('formsSentinel'):
|
|
7
|
-
return
|
|
8
|
-
endif
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
systemLog('MarkdownUp - forms.mds: forms.mds is now forms.bare - please update before 2025-06-01')
|
|
12
|
-
include 'forms.bare'
|
package/lib/include/pager.mds
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Licensed under the MIT License
|
|
2
|
-
# https://github.com/craigahobbs/markdown-up/blob/main/LICENSE
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
# Include sentinel
|
|
6
|
-
if systemGlobalGet('pagerSentinel'):
|
|
7
|
-
return
|
|
8
|
-
endif
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
systemLog('MarkdownUp - pager.mds: pager.mds is now pager.bare - please update before 2025-06-01')
|
|
12
|
-
include 'pager.bare'
|
package/lib/include/unittest.mds
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Licensed under the MIT License
|
|
2
|
-
# https://github.com/craigahobbs/markdown-up/blob/main/LICENSE
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
# Include sentinel
|
|
6
|
-
if systemGlobalGet('unittestSentinel'):
|
|
7
|
-
return
|
|
8
|
-
endif
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
systemLog('MarkdownUp - unittest.mds: unittest.mds is now unittest.bare - please update before 2025-06-01')
|
|
12
|
-
include 'unittest.bare'
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
# Licensed under the MIT License
|
|
2
|
-
# https://github.com/craigahobbs/markdown-up/blob/main/LICENSE
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
# Include sentinel
|
|
6
|
-
if systemGlobalGet('unittestMockSentinel'):
|
|
7
|
-
return
|
|
8
|
-
endif
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
systemLog('MarkdownUp - unittestMock.mds: unittestMock.mds is now unittestMock.bare - please update before 2025-06-01')
|
|
12
|
-
include 'unittestMock.bare'
|