datagrok-tools 4.13.28 → 4.13.30
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/CHANGELOG.md +13 -0
- package/bin/grok.js +5 -1
- package/bin/utils/utils.js +4 -4
- package/package-template/package.json +8 -8
- package/package-template/src/package-test.ts +0 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/bin/grok.js
CHANGED
|
@@ -21,7 +21,11 @@ const commands = {
|
|
|
21
21
|
const command = argv['_'][0];
|
|
22
22
|
if (command in commands) {
|
|
23
23
|
try {
|
|
24
|
-
if
|
|
24
|
+
if(argv["help"]){
|
|
25
|
+
console.log(help[command]);
|
|
26
|
+
exitWithCode(1);
|
|
27
|
+
}
|
|
28
|
+
else if (!commands[command](argv)) {
|
|
25
29
|
console.log(help[command]);
|
|
26
30
|
exitWithCode(1);
|
|
27
31
|
}
|
package/bin/utils/utils.js
CHANGED
|
@@ -255,10 +255,10 @@ var dgToTsTypeMap = exports.dgToTsTypeMap = {
|
|
|
255
255
|
var propertyTypes = exports.propertyTypes = ['bool', 'int', 'double', 'string', 'datetime', 'object', 'column', 'dataframe', 'bitset', 'cell', 'string_list', 'map'];
|
|
256
256
|
var headerTags = exports.headerTags = ['name', 'description', 'help-url', 'input', 'output', 'tags', 'sample', 'language', 'returns', 'test', 'sidebar', 'condition', 'top-menu', 'environment', 'require', 'editor-for', 'schedule', 'reference', 'editor', 'meta'];
|
|
257
257
|
var fileParamRegex = exports.fileParamRegex = {
|
|
258
|
-
py: new RegExp("
|
|
259
|
-
ts: new RegExp("
|
|
260
|
-
js: new RegExp("
|
|
261
|
-
sql: new RegExp("
|
|
258
|
+
py: new RegExp("^#\\s*((?:".concat(headerTags.join('|'), ")[^:]*): *([^\\s\\[\\{]+) ?([^\\s\\[\\{]+)?[^\\n]*$")),
|
|
259
|
+
ts: new RegExp("^//\\s*((?:".concat(headerTags.join('|'), ")[^:]*): *([^\\s\\[\\{]+) ?([^\\s\\[\\{]+)?[^\\n]*$")),
|
|
260
|
+
js: new RegExp("^//\\s*((?:".concat(headerTags.join('|'), ")[^:]*): *([^\\s\\[\\{]+) ?([^\\s\\[\\{]+)?[^\\n]*$")),
|
|
261
|
+
sql: new RegExp("^--\\s*((?:".concat(headerTags.join('|'), ")[^:]*): *([^\\s\\[\\{]+) ?([^\\s\\[\\{]+)?[^\\n]*$"))
|
|
262
262
|
};
|
|
263
263
|
var nameAnnRegex = exports.nameAnnRegex = /\/\/\s*(name[^:]*): ([^\n\r\[\{]+)/;
|
|
264
264
|
var nameRegex = exports.nameRegex = /(?:|static|export\s+function|export\s+async\s+function)\s+([a-zA-Z_][a-zA-Z0-9_$]*)\s*\((.*?)\).*/;
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
"version": "0.0.1",
|
|
5
5
|
"description": "",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"datagrok-api": "
|
|
8
|
-
"cash-dom": "
|
|
9
|
-
"dayjs": "
|
|
10
|
-
"@datagrok-libraries/utils": "
|
|
7
|
+
"datagrok-api": "^1.21.3",
|
|
8
|
+
"cash-dom": "^8.1.5",
|
|
9
|
+
"dayjs": "^1.11.13",
|
|
10
|
+
"@datagrok-libraries/utils": "^4.3.6"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"datagrok-tools": "
|
|
14
|
-
"webpack": "
|
|
15
|
-
"webpack-cli": "
|
|
13
|
+
"datagrok-tools": "^4.13.29",
|
|
14
|
+
"webpack": "^5.95.0",
|
|
15
|
+
"webpack-cli": "^5.1.4"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"link-all": "grok link",
|
|
@@ -27,4 +27,4 @@
|
|
|
27
27
|
"canView": [
|
|
28
28
|
"All users"
|
|
29
29
|
]
|
|
30
|
-
}
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datagrok-tools",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.30",
|
|
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": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"@babel/traverse": "^7.23.7",
|
|
10
10
|
"archiver": "^4.0.2",
|
|
11
11
|
"archiver-promise": "^1.0.0",
|
|
12
|
-
"fs": "
|
|
12
|
+
"fs": "^0.0.1-security",
|
|
13
13
|
"ignore-walk": "^3.0.4",
|
|
14
14
|
"inquirer": "^7.3.3",
|
|
15
15
|
"js-yaml": "^4.1.0",
|
|
@@ -60,4 +60,4 @@
|
|
|
60
60
|
"webpack": "^5.89.0",
|
|
61
61
|
"webpack-cli": "^5.1.4"
|
|
62
62
|
}
|
|
63
|
-
}
|
|
63
|
+
}
|