datagrok-tools 4.14.20 → 4.14.21

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.
@@ -204,7 +204,7 @@ function getScriptInputs(script, comment = '#') {
204
204
  const regex = new RegExp(`${comment}\\s*input:\\s?([a-z_]+)(?:<[^>]*>)?\\s+(\\w+)(?:[^{\\n]*{[^}\\n]*})?`, 'g');
205
205
  const inputs = [];
206
206
  for (const match of script.matchAll(regex)) {
207
- const isOptional = /isOptional\s*:\s*true/.test(match[0]);
207
+ const isOptional = /isOptional\s*:\s*true/.test(match[0]) || /optional\s*:\s*true/.test(match[0]);
208
208
  const type = dgToTsTypeMap[match[1]] || 'any';
209
209
  const name = match[2];
210
210
  inputs.push({
@@ -10,7 +10,7 @@
10
10
  "@datagrok-libraries/utils": "^4.5.7"
11
11
  },
12
12
  "devDependencies": {
13
- "datagrok-tools": "^4.14.19",
13
+ "datagrok-tools": "^4.14.20",
14
14
  "webpack": "^5.95.0",
15
15
  "webpack-cli": "^5.1.4"
16
16
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datagrok-tools",
3
- "version": "4.14.20",
3
+ "version": "4.14.21",
4
4
  "description": "Utility to upload and publish packages to Datagrok",
5
5
  "homepage": "https://github.com/datagrok-ai/public/tree/master/tools#readme",
6
6
  "dependencies": {