@blaxel/core 0.2.2-dev.58 → 0.2.2-dev.59
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/dist/jobs/jobs.js +6 -8
- package/package.json +1 -3
package/dist/jobs/jobs.js
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.blJob = void 0;
|
|
7
|
-
|
|
8
|
-
const helpers_1 = require("yargs/helpers");
|
|
4
|
+
// import yargs from 'yargs';
|
|
9
5
|
const env_js_1 = require("../common/env.js");
|
|
10
6
|
class BlJob {
|
|
11
7
|
async getArguments() {
|
|
12
8
|
if (!env_js_1.env.BL_EXECUTION_DATA_URL) {
|
|
13
|
-
|
|
14
|
-
.parseAsync();
|
|
15
|
-
return argv;
|
|
9
|
+
throw new Error('BL_EXECUTION_DATA_URL is not set');
|
|
16
10
|
}
|
|
11
|
+
// const argv = await yargs(hideBin(process.argv))
|
|
12
|
+
// .parseAsync();
|
|
13
|
+
// return argv;
|
|
14
|
+
// }
|
|
17
15
|
const response = await fetch(env_js_1.env.BL_EXECUTION_DATA_URL);
|
|
18
16
|
const data = await response.json();
|
|
19
17
|
return data.tasks[this.index] ?? {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaxel/core",
|
|
3
|
-
"version": "0.2.2-dev.
|
|
3
|
+
"version": "0.2.2-dev.59",
|
|
4
4
|
"description": "Blaxel Core SDK for TypeScript",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Blaxel, INC (https://blaxel.ai)",
|
|
@@ -62,13 +62,11 @@
|
|
|
62
62
|
"uuid": "^11.1.0",
|
|
63
63
|
"ws": "^8.18.2",
|
|
64
64
|
"yaml": "^2.7.1",
|
|
65
|
-
"yargs": "^17.7.2",
|
|
66
65
|
"zod": "^3.24.3"
|
|
67
66
|
},
|
|
68
67
|
"devDependencies": {
|
|
69
68
|
"@eslint/js": "^9.26.0",
|
|
70
69
|
"@types/ws": "^8.18.1",
|
|
71
|
-
"@types/yargs": "^17.0.33",
|
|
72
70
|
"typescript": "^5.0.0",
|
|
73
71
|
"typescript-eslint": "^8.31.1"
|
|
74
72
|
},
|