@dagger.io/dagger 0.19.2 → 0.19.4
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/src/api/client.gen.d.ts +131 -2
- package/dist/src/api/client.gen.d.ts.map +1 -1
- package/dist/src/api/client.gen.js +232 -2
- package/dist/src/module/decorators.d.ts.map +1 -1
- package/dist/src/module/entrypoint/entrypoint.d.ts.map +1 -1
- package/dist/src/module/entrypoint/entrypoint.js +1 -1
- package/dist/src/module/entrypoint/introspection_entrypoint.d.ts +2 -0
- package/dist/src/module/entrypoint/introspection_entrypoint.d.ts.map +1 -0
- package/dist/src/module/entrypoint/introspection_entrypoint.js +52 -0
- package/dist/src/module/entrypoint/register.d.ts.map +1 -1
- package/dist/src/module/entrypoint/register.js +20 -2
- package/dist/src/module/introspector/dagger_module/function.d.ts +2 -2
- package/dist/src/module/introspector/dagger_module/function.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/function.js +14 -9
- package/dist/src/module/introspector/dagger_module/interfaceFunction.d.ts +2 -1
- package/dist/src/module/introspector/dagger_module/interfaceFunction.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/interfaceFunction.js +3 -2
- package/dist/src/module/introspector/dagger_module/module.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/module.js +1 -5
- package/dist/src/module/introspector/index.d.ts +1 -1
- package/dist/src/module/introspector/index.d.ts.map +1 -1
- package/dist/src/module/introspector/index.js +5 -2
- package/dist/src/module/introspector/typescript_module/ast.d.ts +1 -0
- package/dist/src/module/introspector/typescript_module/ast.d.ts.map +1 -1
- package/dist/src/module/introspector/typescript_module/ast.js +76 -16
- package/dist/src/module/introspector/typescript_module/index.d.ts +0 -1
- package/dist/src/module/introspector/typescript_module/index.d.ts.map +1 -1
- package/dist/src/module/introspector/typescript_module/index.js +0 -1
- package/dist/src/module/registry.d.ts +14 -0
- package/dist/src/module/registry.d.ts.map +1 -1
- package/dist/src/provisioning/default.d.ts +1 -1
- package/dist/src/provisioning/default.js +1 -1
- package/package.json +15 -15
- package/dist/src/module/introspector/typescript_module/explorer.d.ts +0 -4
- package/dist/src/module/introspector/typescript_module/explorer.d.ts.map +0 -1
- package/dist/src/module/introspector/typescript_module/explorer.js +0 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/module/introspector/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/module/introspector/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGvD,wBAAsB,IAAI,CACxB,KAAK,EAAE,MAAM,EAAE,EACf,UAAU,SAAK,EACf,UAAU,UAAO,yBAkBlB"}
|
|
@@ -3,13 +3,16 @@ import { load } from "../entrypoint/load.js";
|
|
|
3
3
|
import { convertToPascalCase } from "./case_convertor.js";
|
|
4
4
|
import { DaggerModule } from "./dagger_module/index.js";
|
|
5
5
|
import { AST } from "./typescript_module/index.js";
|
|
6
|
-
export async function scan(files, moduleName = "") {
|
|
6
|
+
export async function scan(files, moduleName = "", loadModule = true) {
|
|
7
7
|
if (files.length === 0) {
|
|
8
8
|
throw new IntrospectionError("no files to introspect found");
|
|
9
9
|
}
|
|
10
10
|
const formattedModuleName = convertToPascalCase(moduleName);
|
|
11
|
-
const userModule = await load(files);
|
|
12
11
|
// Interpret the given typescript source files.
|
|
12
|
+
let userModule = [];
|
|
13
|
+
if (loadModule) {
|
|
14
|
+
userModule = await load(files);
|
|
15
|
+
}
|
|
13
16
|
const ast = new AST(files, userModule);
|
|
14
17
|
const module = new DaggerModule(formattedModuleName, userModule, ast);
|
|
15
18
|
return module;
|
|
@@ -52,6 +52,7 @@ export declare class AST {
|
|
|
52
52
|
typeToStringType(type: ts.Type): string;
|
|
53
53
|
tsTypeToTypeDef(node: ts.Node, type: ts.Type): TypeDef<TypeDefKind> | undefined;
|
|
54
54
|
private resolveParameterDefaultValueTypeReference;
|
|
55
|
+
private warnUnresolvedDefaultValue;
|
|
55
56
|
resolveParameterDefaultValue(expression: ts.Expression): any;
|
|
56
57
|
}
|
|
57
58
|
//# sourceMappingURL=ast.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/typescript_module/ast.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,aAAa,CAAA;AAEhC,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAExD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,eAAe,EAAmB,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/typescript_module/ast.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,aAAa,CAAA;AAEhC,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAExD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,eAAe,EAAmB,MAAM,mBAAmB,CAAA;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,eAAO,MAAM,eAAe,kBAAkB,CAAA;AAE9C,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,MAAM,eAAe,IAAI;IACpE,IAAI,EAAE,CAAC,CAAA;IACP,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAA;IACxB,MAAM,EAAE,EAAE,CAAC,MAAM,CAAA;IACjB,IAAI,EAAE,EAAE,CAAC,UAAU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I,EAAE,EAAE,CAAC,aAAa,EACtB,eAAe,EAAE,gBAAgB,EACjC,IAAI,EAAE,QAAQ,GAAG,QAAQ,EACzB,QAAQ,SAAI,GACX,CAAC,GAAG,SAAS;IA4BT,2BAA2B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAYjD,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAY/C,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAY/C,gBAAgB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,GAAG,MAAM;IAMvC,eAAe,CACpB,IAAI,EAAE,EAAE,CAAC,IAAI,EACb,IAAI,EAAE,EAAE,CAAC,IAAI,GACZ,OAAO,CAAC,WAAW,CAAC,GAAG,SAAS;IA4DnC,OAAO,CAAC,yCAAyC;IAoBjD,OAAO,CAAC,0BAA0B;IAO3B,4BAA4B,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,GAAG,GAAG;CA8GpE"}
|
|
@@ -3,7 +3,6 @@ import ts from "typescript";
|
|
|
3
3
|
import { TypeDefKind } from "../../../api/client.gen.js";
|
|
4
4
|
import { IntrospectionError } from "../../../common/errors/index.js";
|
|
5
5
|
import { isDeclarationOf } from "./declarations.js";
|
|
6
|
-
import { getValueByExportedName } from "./explorer.js";
|
|
7
6
|
export const CLIENT_GEN_FILE = "client.gen.ts";
|
|
8
7
|
export class AST {
|
|
9
8
|
files;
|
|
@@ -13,6 +12,7 @@ export class AST {
|
|
|
13
12
|
constructor(files, userModule) {
|
|
14
13
|
this.files = files;
|
|
15
14
|
this.userModule = userModule;
|
|
15
|
+
this.files = files.map((f) => path.resolve(f));
|
|
16
16
|
const program = ts.createProgram(files, {
|
|
17
17
|
experimentalDecorators: true,
|
|
18
18
|
moduleResolution: ts.ModuleResolutionKind.Node10,
|
|
@@ -36,7 +36,7 @@ export class AST {
|
|
|
36
36
|
return;
|
|
37
37
|
// Skip if it's not from the client gen nor the user module
|
|
38
38
|
if (!sourceFile.fileName.endsWith(CLIENT_GEN_FILE) &&
|
|
39
|
-
!this.files.includes(sourceFile.fileName)) {
|
|
39
|
+
!this.files.includes(path.resolve(sourceFile.fileName))) {
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
if (kind !== undefined && node.kind === kind) {
|
|
@@ -69,7 +69,7 @@ export class AST {
|
|
|
69
69
|
ts.forEachChild(sourceFile, (node) => {
|
|
70
70
|
// Skip if it's not from the client gen nor the user module
|
|
71
71
|
if (!sourceFile.fileName.endsWith(CLIENT_GEN_FILE) &&
|
|
72
|
-
!this.files.includes(sourceFile.fileName)) {
|
|
72
|
+
!this.files.includes(path.resolve(sourceFile.fileName))) {
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
75
|
if (kind !== undefined && node.kind === kind) {
|
|
@@ -124,7 +124,7 @@ export class AST {
|
|
|
124
124
|
// from the module path so we exclude the module path from the given path.
|
|
125
125
|
// But since root will always start with `/src`, we want to catch the second `src`
|
|
126
126
|
// inside the module.
|
|
127
|
-
const pathParts = sourceFile.fileName.split(path.sep);
|
|
127
|
+
const pathParts = path.resolve(sourceFile.fileName).split(path.sep);
|
|
128
128
|
const srcIndex = pathParts.indexOf("src", 2);
|
|
129
129
|
return {
|
|
130
130
|
filepath: pathParts.slice(srcIndex).join(path.sep),
|
|
@@ -281,6 +281,10 @@ export class AST {
|
|
|
281
281
|
return undefined;
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
|
+
warnUnresolvedDefaultValue(expression) {
|
|
285
|
+
console.warn(`default value '${expression.getText()}' at ${AST.getNodePosition(expression)} cannot be resolved, dagger does not support object or function as default value.
|
|
286
|
+
The value will be ignored by the introspection and resolve at the runtime.`);
|
|
287
|
+
}
|
|
284
288
|
resolveParameterDefaultValue(expression) {
|
|
285
289
|
const kind = expression.kind;
|
|
286
290
|
switch (kind) {
|
|
@@ -297,25 +301,81 @@ export class AST {
|
|
|
297
301
|
case ts.SyntaxKind.ArrayLiteralExpression:
|
|
298
302
|
return eval(expression.getText());
|
|
299
303
|
case ts.SyntaxKind.Identifier: {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
const value = getValueByExportedName(expression.getText(), this.userModule);
|
|
303
|
-
if (value === undefined) {
|
|
304
|
+
const symbol = this.checker.getSymbolAtLocation(expression);
|
|
305
|
+
if (!symbol) {
|
|
304
306
|
throw new IntrospectionError(`could not resolve default value reference to the variable: '${expression.getText()}' from ${AST.getNodePosition(expression)}. Is it exported by the module?`);
|
|
305
307
|
}
|
|
306
|
-
|
|
308
|
+
// Parse the default value from the variable declaration
|
|
309
|
+
// ```
|
|
310
|
+
// export const foo = "A"
|
|
311
|
+
//
|
|
312
|
+
// function bar(baz: string = foo) {}
|
|
313
|
+
// ```
|
|
314
|
+
const decl = symbol.valueDeclaration ?? symbol.declarations?.[0];
|
|
315
|
+
if (!decl) {
|
|
316
|
+
this.warnUnresolvedDefaultValue(expression);
|
|
317
|
+
return undefined;
|
|
318
|
+
}
|
|
319
|
+
if (ts.isVariableDeclaration(decl) && decl.initializer) {
|
|
320
|
+
return this.resolveParameterDefaultValue(decl.initializer);
|
|
321
|
+
}
|
|
322
|
+
// Parse the default value from the enum member
|
|
323
|
+
// ```
|
|
324
|
+
// enum Foo {
|
|
325
|
+
// A = "a"
|
|
326
|
+
// }
|
|
327
|
+
//
|
|
328
|
+
// function bar(baz: string = Foo.A) {}
|
|
329
|
+
// ```
|
|
330
|
+
if (ts.isEnumMember(decl)) {
|
|
331
|
+
const val = this.checker.getConstantValue(decl);
|
|
332
|
+
if (val !== undefined)
|
|
333
|
+
return val;
|
|
334
|
+
if (decl.initializer)
|
|
335
|
+
return this.resolveParameterDefaultValue(decl.initializer);
|
|
336
|
+
}
|
|
337
|
+
// Parse the default value from the import specifier
|
|
338
|
+
// ```
|
|
339
|
+
// import { foo } from "bar"
|
|
340
|
+
//
|
|
341
|
+
// function bar(baz: string = foo) {}
|
|
342
|
+
// ```
|
|
343
|
+
if (ts.isImportSpecifier(decl)) {
|
|
344
|
+
const aliased = this.checker.getAliasedSymbol(symbol);
|
|
345
|
+
const aliasedDecl = aliased?.valueDeclaration ?? aliased?.declarations?.[0];
|
|
346
|
+
if (aliasedDecl &&
|
|
347
|
+
ts.isVariableDeclaration(aliasedDecl) &&
|
|
348
|
+
aliasedDecl.initializer) {
|
|
349
|
+
return this.resolveParameterDefaultValue(aliasedDecl.initializer);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
// Warn the user if the default value cannot be resolved
|
|
353
|
+
this.warnUnresolvedDefaultValue(expression);
|
|
354
|
+
return undefined;
|
|
307
355
|
}
|
|
308
356
|
case ts.SyntaxKind.PropertyAccessExpression: {
|
|
309
|
-
const
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
357
|
+
const symbol = this.checker.getSymbolAtLocation(expression);
|
|
358
|
+
if (!symbol)
|
|
359
|
+
return undefined;
|
|
360
|
+
const decl = symbol.valueDeclaration;
|
|
361
|
+
if (!decl) {
|
|
362
|
+
this.warnUnresolvedDefaultValue(expression);
|
|
363
|
+
return undefined;
|
|
364
|
+
}
|
|
365
|
+
if (ts.isEnumMember(decl)) {
|
|
366
|
+
const val = this.checker.getConstantValue(decl);
|
|
367
|
+
if (val !== undefined)
|
|
368
|
+
return val;
|
|
369
|
+
if (decl.initializer)
|
|
370
|
+
return this.resolveParameterDefaultValue(decl.initializer);
|
|
313
371
|
}
|
|
314
|
-
|
|
372
|
+
// Warn the user if the default value cannot be resolved
|
|
373
|
+
this.warnUnresolvedDefaultValue(expression);
|
|
374
|
+
return undefined;
|
|
315
375
|
}
|
|
316
376
|
default: {
|
|
317
|
-
|
|
318
|
-
|
|
377
|
+
// Warn the user if the default value cannot be resolved
|
|
378
|
+
this.warnUnresolvedDefaultValue(expression);
|
|
319
379
|
}
|
|
320
380
|
}
|
|
321
381
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/typescript_module/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/typescript_module/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA"}
|
|
@@ -23,6 +23,20 @@ export type ArgumentOptions = {
|
|
|
23
23
|
*/
|
|
24
24
|
ignore?: string[];
|
|
25
25
|
};
|
|
26
|
+
export type FunctionOptions = {
|
|
27
|
+
/**
|
|
28
|
+
* The caching behavior of this function.
|
|
29
|
+
* "never" means no caching.
|
|
30
|
+
* "session" means caching only for the duration of the current client's session.
|
|
31
|
+
* A duration string (e.g., "5m", "1h") means persistent caching for that duration.
|
|
32
|
+
* By default, caching is enabled with a long default set by the engine.
|
|
33
|
+
*/
|
|
34
|
+
cache?: string;
|
|
35
|
+
/**
|
|
36
|
+
* An optional alias to use for the function when exposed on the API.
|
|
37
|
+
*/
|
|
38
|
+
alias?: string;
|
|
39
|
+
};
|
|
26
40
|
/**
|
|
27
41
|
* Registry stores class and method that have the @object decorator.
|
|
28
42
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/module/registry.ts"],"names":[],"mappings":"AAIA,OAAO,kBAAkB,CAAA;AAIzB,MAAM,MAAM,KAAK,GAAG;IAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAA;CAAE,CAAA;AAEjD,MAAM,MAAM,KAAK,GAAG;IAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAA;AAE/C,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAU1C,MAAM,MAAM,eAAe,GAAG;IAC5B;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;;OAIG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IAED;;;;;OAKG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,GAAG;IAY7C;;;;;;;;;;OAUG;IACG,SAAS,CACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,IAAI,GACX,OAAO,CAAC,GAAG,CAAC;CAiChB;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,UAAiB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const CLI_VERSION = "0.19.
|
|
1
|
+
export declare const CLI_VERSION = "0.19.4";
|
|
2
2
|
//# sourceMappingURL=default.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Code generated by dagger. DO NOT EDIT.
|
|
2
|
-
export const CLI_VERSION = "0.19.
|
|
2
|
+
export const CLI_VERSION = "0.19.4";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dagger.io/dagger",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.4",
|
|
4
4
|
"author": "hello@dagger.io",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -20,23 +20,23 @@
|
|
|
20
20
|
"@grpc/grpc-js": "^1.14.0",
|
|
21
21
|
"@lifeomic/axios-fetch": "^3.1.0",
|
|
22
22
|
"@opentelemetry/api": "^1.9.0",
|
|
23
|
-
"@opentelemetry/core": "^2.
|
|
24
|
-
"@opentelemetry/exporter-jaeger": "^2.
|
|
25
|
-
"@opentelemetry/exporter-trace-otlp-http": "^0.
|
|
26
|
-
"@opentelemetry/sdk-metrics": "^2.
|
|
27
|
-
"@opentelemetry/sdk-node": "^0.
|
|
23
|
+
"@opentelemetry/core": "^2.2.0",
|
|
24
|
+
"@opentelemetry/exporter-jaeger": "^2.2.0",
|
|
25
|
+
"@opentelemetry/exporter-trace-otlp-http": "^0.207.0",
|
|
26
|
+
"@opentelemetry/sdk-metrics": "^2.2.0",
|
|
27
|
+
"@opentelemetry/sdk-node": "^0.207.0",
|
|
28
28
|
"@opentelemetry/semantic-conventions": "^1.37.0",
|
|
29
29
|
"adm-zip": "^0.5.16",
|
|
30
30
|
"env-paths": "^3.0.0",
|
|
31
31
|
"execa": "^9.6.0",
|
|
32
32
|
"graphql": "^16.11.0",
|
|
33
|
-
"graphql-request": "^7.
|
|
33
|
+
"graphql-request": "^7.3.1",
|
|
34
34
|
"graphql-tag": "^2.12.6",
|
|
35
35
|
"node-color-log": "^13.0.3",
|
|
36
36
|
"node-fetch": "^3.3.2",
|
|
37
37
|
"reflect-metadata": "^0.2.2",
|
|
38
38
|
"tar": "^7.5.1",
|
|
39
|
-
"typescript": "^5.9.
|
|
39
|
+
"typescript": "^5.9.3"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "tsc",
|
|
@@ -55,19 +55,19 @@
|
|
|
55
55
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
56
56
|
"@types/adm-zip": "^0.5.7",
|
|
57
57
|
"@types/mocha": "^10.0.10",
|
|
58
|
-
"@types/node": "~24.
|
|
58
|
+
"@types/node": "~24.9.1",
|
|
59
59
|
"@types/tar": "^6.1.13",
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
61
|
-
"@typescript-eslint/parser": "^8.
|
|
62
|
-
"eslint": "^9.
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
61
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
62
|
+
"eslint": "^9.38.0",
|
|
63
63
|
"eslint-config-prettier": "^10.1.8",
|
|
64
64
|
"eslint-plugin-prettier": "^5.5.4",
|
|
65
|
-
"mocha": "^11.7.
|
|
65
|
+
"mocha": "^11.7.4",
|
|
66
66
|
"prettier": "^3.6.2",
|
|
67
|
-
"rollup": "^4.52.
|
|
67
|
+
"rollup": "^4.52.5",
|
|
68
68
|
"rollup-plugin-dts": "^6.2.3",
|
|
69
69
|
"ts-node": "^10.9.2",
|
|
70
70
|
"tsx": "^4.20.6",
|
|
71
|
-
"typescript-eslint": "^8.
|
|
71
|
+
"typescript-eslint": "^8.46.2"
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"explorer.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/typescript_module/explorer.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAA;AAEhC,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EAAE,GAChB,MAAM,GAAG,SAAS,CAMpB;AAGD,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,GAAG,CAQ3E"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export function findModuleByExportedName(name, modules) {
|
|
2
|
-
for (const module of modules) {
|
|
3
|
-
if (module[name]) {
|
|
4
|
-
return module;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
9
|
-
export function getValueByExportedName(name, modules) {
|
|
10
|
-
for (const module of modules) {
|
|
11
|
-
if (module[name]) {
|
|
12
|
-
return module[name];
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|