@galaxy-tool-util/core 0.1.0 → 0.2.0
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/LICENSE +21 -0
- package/dist/cache/tool-id.d.ts +5 -5
- package/dist/cache/tool-id.d.ts.map +1 -1
- package/dist/cache/tool-id.js +4 -4
- package/package.json +15 -11
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 John Chilton
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/cache/tool-id.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Parse and manipulate Galaxy toolshed tool IDs.
|
|
3
3
|
*
|
|
4
|
-
* Input format: toolshed.g2.bx.psu.edu/repos/owner/repo/
|
|
5
|
-
* Or with scheme: https://toolshed.g2.bx.psu.edu/repos/owner/repo/
|
|
4
|
+
* Input format: toolshed.g2.bx.psu.edu/repos/owner/repo/tool_id/version
|
|
5
|
+
* Or with scheme: https://toolshed.g2.bx.psu.edu/repos/owner/repo/tool_id/version
|
|
6
6
|
*/
|
|
7
7
|
/** Parsed components of a ToolShed tool ID. */
|
|
8
8
|
export interface ToolCoordinates {
|
|
9
9
|
/** ToolShed base URL (with https:// scheme). */
|
|
10
10
|
toolshedUrl: string;
|
|
11
|
-
/** TRS-style tool ID: `owner~repo~
|
|
11
|
+
/** TRS-style tool ID: `owner~repo~tool_id`. */
|
|
12
12
|
trsToolId: string;
|
|
13
13
|
/** Tool version, or null if not present in the ID. */
|
|
14
14
|
toolVersion: string | null;
|
|
@@ -16,8 +16,8 @@ export interface ToolCoordinates {
|
|
|
16
16
|
/**
|
|
17
17
|
* Parse a full ToolShed tool ID into its components.
|
|
18
18
|
* Accepts both scheme-prefixed and bare formats:
|
|
19
|
-
* - `toolshed.g2.bx.psu.edu/repos/owner/repo/
|
|
20
|
-
* - `https://toolshed.g2.bx.psu.edu/repos/owner/repo/
|
|
19
|
+
* - `toolshed.g2.bx.psu.edu/repos/owner/repo/tool_id/version`
|
|
20
|
+
* - `https://toolshed.g2.bx.psu.edu/repos/owner/repo/tool_id/version`
|
|
21
21
|
* @returns Parsed coordinates, or null if the ID doesn't match the ToolShed format.
|
|
22
22
|
*/
|
|
23
23
|
export declare function parseToolshedToolId(toolId: string): ToolCoordinates | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-id.d.ts","sourceRoot":"","sources":["../../src/cache/tool-id.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,+CAA+C;AAC/C,MAAM,WAAW,eAAe;IAC9B,gDAAgD;IAChD,WAAW,EAAE,MAAM,CAAC;IACpB
|
|
1
|
+
{"version":3,"file":"tool-id.d.ts","sourceRoot":"","sources":["../../src/cache/tool-id.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,+CAA+C;AAC/C,MAAM,WAAW,eAAe;IAC9B,gDAAgD;IAChD,WAAW,EAAE,MAAM,CAAC;IACpB,+CAA+C;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,sDAAsD;IACtD,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAa1E;AAED,gFAAgF;AAChF,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAI5E"}
|
package/dist/cache/tool-id.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Parse and manipulate Galaxy toolshed tool IDs.
|
|
3
3
|
*
|
|
4
|
-
* Input format: toolshed.g2.bx.psu.edu/repos/owner/repo/
|
|
5
|
-
* Or with scheme: https://toolshed.g2.bx.psu.edu/repos/owner/repo/
|
|
4
|
+
* Input format: toolshed.g2.bx.psu.edu/repos/owner/repo/tool_id/version
|
|
5
|
+
* Or with scheme: https://toolshed.g2.bx.psu.edu/repos/owner/repo/tool_id/version
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* Parse a full ToolShed tool ID into its components.
|
|
9
9
|
* Accepts both scheme-prefixed and bare formats:
|
|
10
|
-
* - `toolshed.g2.bx.psu.edu/repos/owner/repo/
|
|
11
|
-
* - `https://toolshed.g2.bx.psu.edu/repos/owner/repo/
|
|
10
|
+
* - `toolshed.g2.bx.psu.edu/repos/owner/repo/tool_id/version`
|
|
11
|
+
* - `https://toolshed.g2.bx.psu.edu/repos/owner/repo/tool_id/version`
|
|
12
12
|
* @returns Parsed coordinates, or null if the ID doesn't match the ToolShed format.
|
|
13
13
|
*/
|
|
14
14
|
export function parseToolshedToolId(toolId) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galaxy-tool-util/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Galaxy tool cache, ToolShed client, and ParsedTool models",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -9,7 +9,11 @@
|
|
|
9
9
|
"import": "./dist/index.js"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
|
-
"files": [
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"README.md",
|
|
15
|
+
"LICENSE"
|
|
16
|
+
],
|
|
13
17
|
"repository": {
|
|
14
18
|
"type": "git",
|
|
15
19
|
"url": "https://github.com/jmchilton/galaxy-tool-util-ts",
|
|
@@ -19,6 +23,14 @@
|
|
|
19
23
|
"access": "public",
|
|
20
24
|
"provenance": true
|
|
21
25
|
},
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/node": "^25.5.0",
|
|
29
|
+
"yaml": "^2.8.3"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"effect": "^3.21.0"
|
|
33
|
+
},
|
|
22
34
|
"scripts": {
|
|
23
35
|
"build": "tsc",
|
|
24
36
|
"typecheck": "tsc --noEmit",
|
|
@@ -27,13 +39,5 @@
|
|
|
27
39
|
"lint": "eslint src/ test/",
|
|
28
40
|
"format": "prettier --check 'src/**/*.ts' 'test/**/*.ts'",
|
|
29
41
|
"format-fix": "prettier --write 'src/**/*.ts' 'test/**/*.ts'"
|
|
30
|
-
},
|
|
31
|
-
"license": "MIT",
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"@types/node": "^25.5.0",
|
|
34
|
-
"yaml": "^2.8.3"
|
|
35
|
-
},
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"effect": "^3.21.0"
|
|
38
42
|
}
|
|
39
|
-
}
|
|
43
|
+
}
|