@dagger.io/dagger 0.19.4 → 0.19.5
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 +74 -6
- package/dist/src/api/client.gen.d.ts.map +1 -1
- package/dist/src/api/client.gen.js +96 -6
- package/dist/src/module/entrypoint/register.d.ts.map +1 -1
- package/dist/src/module/entrypoint/register.js +17 -7
- package/dist/src/module/introspector/dagger_module/argument.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/argument.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/argument.js +9 -2
- package/dist/src/module/introspector/dagger_module/enum.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/enum.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/enum.js +5 -1
- package/dist/src/module/introspector/dagger_module/enumBase.d.ts +1 -0
- package/dist/src/module/introspector/dagger_module/enumBase.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/enumClass.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/enumClass.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/enumClass.js +5 -1
- package/dist/src/module/introspector/dagger_module/function.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/function.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/function.js +5 -1
- package/dist/src/module/introspector/dagger_module/interfaceFunction.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/interfaceFunction.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/interfaceFunction.js +5 -1
- package/dist/src/module/introspector/dagger_module/object.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/object.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/object.js +5 -1
- package/dist/src/module/introspector/dagger_module/objectBase.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/objectBase.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/property.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/property.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/property.js +5 -1
- package/dist/src/module/introspector/dagger_module/typeObject.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/typeObject.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/typeObject.js +5 -1
- package/dist/src/module/introspector/dagger_module/typeObjectProperty.d.ts +2 -0
- package/dist/src/module/introspector/dagger_module/typeObjectProperty.d.ts.map +1 -1
- package/dist/src/module/introspector/dagger_module/typeObjectProperty.js +5 -1
- package/dist/src/module/introspector/typescript_module/ast.d.ts +5 -0
- package/dist/src/module/introspector/typescript_module/ast.d.ts.map +1 -1
- package/dist/src/module/introspector/typescript_module/ast.js +24 -1
- package/dist/src/provisioning/default.d.ts +1 -1
- package/dist/src/provisioning/default.js +1 -1
- package/package.json +5 -5
|
@@ -24,6 +24,7 @@ export class DaggerObject extends Locatable {
|
|
|
24
24
|
ast;
|
|
25
25
|
name;
|
|
26
26
|
description;
|
|
27
|
+
deprecated;
|
|
27
28
|
_constructor = undefined;
|
|
28
29
|
methods = {};
|
|
29
30
|
properties = {};
|
|
@@ -47,7 +48,9 @@ export class DaggerObject extends Locatable {
|
|
|
47
48
|
console.warn(`missing export in class ${this.name} at ${AST.getNodePosition(node)} but it's used by the module.`);
|
|
48
49
|
}
|
|
49
50
|
this.symbol = this.ast.getSymbolOrThrow(this.node.name);
|
|
50
|
-
|
|
51
|
+
const { description, deprecated } = this.ast.getSymbolDoc(this.symbol);
|
|
52
|
+
this.description = description;
|
|
53
|
+
this.deprecated = deprecated;
|
|
51
54
|
for (const member of this.node.members) {
|
|
52
55
|
if (ts.isPropertyDeclaration(member)) {
|
|
53
56
|
const property = new DaggerProperty(member, this.ast);
|
|
@@ -101,6 +104,7 @@ export class DaggerObject extends Locatable {
|
|
|
101
104
|
return {
|
|
102
105
|
name: this.name,
|
|
103
106
|
description: this.description,
|
|
107
|
+
deprecated: this.deprecated,
|
|
104
108
|
constructor: this._constructor,
|
|
105
109
|
methods: this.methods,
|
|
106
110
|
properties: this.properties,
|
|
@@ -7,6 +7,7 @@ import { References } from "./reference.js";
|
|
|
7
7
|
export interface DaggerObjectPropertyBase extends Locatable {
|
|
8
8
|
name: string;
|
|
9
9
|
description: string;
|
|
10
|
+
deprecated?: string;
|
|
10
11
|
alias?: string;
|
|
11
12
|
isExposed: boolean;
|
|
12
13
|
type?: TypeDef<TypeDefKind>;
|
|
@@ -18,6 +19,7 @@ export type DaggerObjectPropertiesBase = {
|
|
|
18
19
|
export interface DaggerObjectBase extends Locatable {
|
|
19
20
|
name: string;
|
|
20
21
|
description: string;
|
|
22
|
+
deprecated?: string;
|
|
21
23
|
_constructor: DaggerConstructor | undefined;
|
|
22
24
|
methods: DaggerFunctions;
|
|
23
25
|
properties: DaggerObjectPropertiesBase;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectBase.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/objectBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,MAAM,WAAW,wBAAyB,SAAQ,SAAS;IACzD,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;IAE3B,mBAAmB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAAA;CAClD;AAED,MAAM,MAAM,0BAA0B,GAAG;IAC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AAC,IAAI,EAAE,MAAM,GAAG,wBAAwB,CAAA;CACzC,CAAA;AAED,MAAM,WAAW,gBAAiB,SAAQ,SAAS;IACjD,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,iBAAiB,GAAG,SAAS,CAAA;IAC3C,OAAO,EAAE,eAAe,CAAA;IACxB,UAAU,EAAE,0BAA0B,CAAA;IAEtC,IAAI,IAAI,OAAO,GAAG,QAAQ,CAAA;IAE1B,mBAAmB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAAA;CAClD;AAED,MAAM,MAAM,iBAAiB,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,gBAAgB,CAAA;CAAE,CAAA"}
|
|
@@ -13,6 +13,7 @@ export declare class DaggerProperty extends Locatable implements DaggerObjectPro
|
|
|
13
13
|
private readonly ast;
|
|
14
14
|
name: string;
|
|
15
15
|
description: string;
|
|
16
|
+
deprecated?: string;
|
|
16
17
|
alias: string | undefined;
|
|
17
18
|
isExposed: boolean;
|
|
18
19
|
private symbol;
|
|
@@ -26,6 +27,7 @@ export declare class DaggerProperty extends Locatable implements DaggerObjectPro
|
|
|
26
27
|
toJSON(): {
|
|
27
28
|
name: string;
|
|
28
29
|
description: string;
|
|
30
|
+
deprecated: string | undefined;
|
|
29
31
|
alias: string | undefined;
|
|
30
32
|
type: TypeDef<TypeDefKind> | undefined;
|
|
31
33
|
isExposed: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EACL,GAAG,EAGJ,MAAM,+B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C,WAAW,CAAC,CAAA;gBAGf,IAAI,EAAE,EAAE,CAAC,mBAAmB,EAC5B,GAAG,EAAE,GAAG;IAuB3B,OAAO,CAAC,QAAQ;IAsBhB,OAAO,CAAC,OAAO;IAWR,YAAY,IAAI,MAAM,GAAG,SAAS;IAWlC,mBAAmB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;IAmBjD,MAAM;;;;;;;;CAUd"}
|
|
@@ -7,6 +7,7 @@ export class DaggerProperty extends Locatable {
|
|
|
7
7
|
ast;
|
|
8
8
|
name;
|
|
9
9
|
description;
|
|
10
|
+
deprecated;
|
|
10
11
|
alias;
|
|
11
12
|
isExposed;
|
|
12
13
|
symbol;
|
|
@@ -24,7 +25,9 @@ export class DaggerProperty extends Locatable {
|
|
|
24
25
|
this.isExposed =
|
|
25
26
|
this.ast.isNodeDecoratedWith(this.node, FUNCTION_DECORATOR) ||
|
|
26
27
|
this.ast.isNodeDecoratedWith(this.node, FIELD_DECORATOR);
|
|
27
|
-
|
|
28
|
+
const { description, deprecated } = this.ast.getSymbolDoc(this.symbol);
|
|
29
|
+
this.description = description;
|
|
30
|
+
this.deprecated = deprecated;
|
|
28
31
|
this.alias = this.getAlias();
|
|
29
32
|
this.type = this.getType();
|
|
30
33
|
}
|
|
@@ -70,6 +73,7 @@ export class DaggerProperty extends Locatable {
|
|
|
70
73
|
return {
|
|
71
74
|
name: this.name,
|
|
72
75
|
description: this.description,
|
|
76
|
+
deprecated: this.deprecated,
|
|
73
77
|
alias: this.alias,
|
|
74
78
|
type: this.type,
|
|
75
79
|
isExposed: this.isExposed,
|
|
@@ -29,6 +29,7 @@ export declare class DaggerTypeObject extends Locatable implements DaggerObjectB
|
|
|
29
29
|
private readonly ast;
|
|
30
30
|
name: string;
|
|
31
31
|
description: string;
|
|
32
|
+
deprecated?: string;
|
|
32
33
|
_constructor: undefined;
|
|
33
34
|
methods: {};
|
|
34
35
|
properties: DaggerObjectTypeProperties;
|
|
@@ -42,6 +43,7 @@ export declare class DaggerTypeObject extends Locatable implements DaggerObjectB
|
|
|
42
43
|
name: string;
|
|
43
44
|
description: string;
|
|
44
45
|
properties: DaggerObjectTypeProperties;
|
|
46
|
+
deprecated: string | undefined;
|
|
45
47
|
};
|
|
46
48
|
}
|
|
47
49
|
//# sourceMappingURL=typeObject.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeObject.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/typeObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAG3B,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EACL,0BAA0B,EAE3B,MAAM,yBAAyB,CAAA;AAEhC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,gBAAiB,SAAQ,SAAU,YAAW,gBAAgB;
|
|
1
|
+
{"version":3,"file":"typeObject.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/typeObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAG3B,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,EACL,0BAA0B,EAE3B,MAAM,yBAAyB,CAAA;AAEhC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,gBAAiB,SAAQ,SAAU,YAAW,gBAAgB;IAevE,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAff,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,YAAY,YAAY;IACxB,OAAO,KAAK;IACZ,UAAU,EAAE,0BAA0B,CAAK;IAElD,OAAO,CAAC,MAAM,CAAW;IAEzB,IAAI,IAAI,OAAO,GAAG,QAAQ;gBAKP,IAAI,EAAE,EAAE,CAAC,oBAAoB,EAC7B,GAAG,EAAE,GAAG;IA+BpB,WAAW,IAAI,QAAQ;IAIvB,aAAa,IAAI,MAAM,EAAE;IAazB,mBAAmB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;IAMxD,MAAM;;;;;;CAQP"}
|
|
@@ -28,6 +28,7 @@ export class DaggerTypeObject extends Locatable {
|
|
|
28
28
|
ast;
|
|
29
29
|
name;
|
|
30
30
|
description;
|
|
31
|
+
deprecated;
|
|
31
32
|
_constructor = undefined;
|
|
32
33
|
methods = {};
|
|
33
34
|
properties = {};
|
|
@@ -44,7 +45,9 @@ export class DaggerTypeObject extends Locatable {
|
|
|
44
45
|
}
|
|
45
46
|
this.name = this.node.name.getText();
|
|
46
47
|
this.symbol = this.ast.getSymbolOrThrow(this.node.name);
|
|
47
|
-
|
|
48
|
+
const { description, deprecated } = this.ast.getSymbolDoc(this.symbol);
|
|
49
|
+
this.description = description;
|
|
50
|
+
this.deprecated = deprecated;
|
|
48
51
|
const type = this.ast.getTypeFromTypeAlias(this.node);
|
|
49
52
|
if (type.flags & ts.TypeFlags.Object) {
|
|
50
53
|
const objectType = type;
|
|
@@ -78,6 +81,7 @@ export class DaggerTypeObject extends Locatable {
|
|
|
78
81
|
name: this.name,
|
|
79
82
|
description: this.description,
|
|
80
83
|
properties: this.properties,
|
|
84
|
+
deprecated: this.deprecated,
|
|
81
85
|
};
|
|
82
86
|
}
|
|
83
87
|
}
|
|
@@ -14,6 +14,7 @@ export declare class DaggerObjectTypeProperty extends Locatable implements Dagge
|
|
|
14
14
|
private readonly ast;
|
|
15
15
|
name: string;
|
|
16
16
|
description: string;
|
|
17
|
+
deprecated?: string;
|
|
17
18
|
alias: undefined;
|
|
18
19
|
isExposed: boolean;
|
|
19
20
|
private _typeRef?;
|
|
@@ -24,6 +25,7 @@ export declare class DaggerObjectTypeProperty extends Locatable implements Dagge
|
|
|
24
25
|
toJSON(): {
|
|
25
26
|
name: string;
|
|
26
27
|
description: string;
|
|
28
|
+
deprecated: string | undefined;
|
|
27
29
|
alias: undefined;
|
|
28
30
|
type: TypeDef<TypeDefKind> | undefined;
|
|
29
31
|
isExposed: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeObjectProperty.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/typeObjectProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EACL,GAAG,EAGJ,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,MAAM,MAAM,0BAA0B,GAAG;IACvC,CAAC,IAAI,EAAE,MAAM,GAAG,wBAAwB,CAAA;CACzC,CAAA;AAED,qBAAa,wBACX,SAAQ,SACR,YAAW,wBAAwB;
|
|
1
|
+
{"version":3,"file":"typeObjectProperty.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/dagger_module/typeObjectProperty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAA;AAE3B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAExD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EACL,GAAG,EAGJ,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAE3C,MAAM,MAAM,0BAA0B,GAAG;IACvC,CAAC,IAAI,EAAE,MAAM,GAAG,wBAAwB,CAAA;CACzC,CAAA;AAED,qBAAa,wBACX,SAAQ,SACR,YAAW,wBAAwB;IAYjC,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,GAAG;IAZf,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,YAAY;IACjB,SAAS,EAAE,OAAO,CAAO;IAEhC,OAAO,CAAC,QAAQ,CAAC,CAAQ;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;gBAGf,IAAI,EAAE,EAAE,CAAC,oBAAoB,EAC7B,MAAM,EAAE,EAAE,CAAC,MAAM,EACjB,GAAG,EAAE,GAAG;IAmBpB,YAAY,IAAI,MAAM,GAAG,SAAS;IAWlC,mBAAmB,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;IAmBjD,MAAM;;;;;;;;CAUd"}
|
|
@@ -7,6 +7,7 @@ export class DaggerObjectTypeProperty extends Locatable {
|
|
|
7
7
|
ast;
|
|
8
8
|
name;
|
|
9
9
|
description;
|
|
10
|
+
deprecated;
|
|
10
11
|
alias = undefined;
|
|
11
12
|
isExposed = true;
|
|
12
13
|
_typeRef;
|
|
@@ -17,7 +18,9 @@ export class DaggerObjectTypeProperty extends Locatable {
|
|
|
17
18
|
this.symbol = symbol;
|
|
18
19
|
this.ast = ast;
|
|
19
20
|
this.name = symbol.name;
|
|
20
|
-
|
|
21
|
+
const { description, deprecated } = this.ast.getSymbolDoc(this.symbol);
|
|
22
|
+
this.description = description;
|
|
23
|
+
this.deprecated = deprecated;
|
|
21
24
|
const type = this.ast.checker.getTypeOfSymbolAtLocation(this.symbol, this.node);
|
|
22
25
|
this.type = this.ast.tsTypeToTypeDef(this.node, type);
|
|
23
26
|
if (this.type === undefined || !isTypeDefResolved(this.type)) {
|
|
@@ -48,6 +51,7 @@ export class DaggerObjectTypeProperty extends Locatable {
|
|
|
48
51
|
return {
|
|
49
52
|
name: this.name,
|
|
50
53
|
description: this.description,
|
|
54
|
+
deprecated: this.deprecated,
|
|
51
55
|
alias: this.alias,
|
|
52
56
|
type: this.type,
|
|
53
57
|
isExposed: this.isExposed,
|
|
@@ -12,6 +12,10 @@ export type ResolvedNodeWithSymbol<T extends keyof DeclarationsMap> = {
|
|
|
12
12
|
symbol: ts.Symbol;
|
|
13
13
|
file: ts.SourceFile;
|
|
14
14
|
};
|
|
15
|
+
export type SymbolDoc = {
|
|
16
|
+
description: string;
|
|
17
|
+
deprecated?: string;
|
|
18
|
+
};
|
|
15
19
|
export declare class AST {
|
|
16
20
|
readonly files: string[];
|
|
17
21
|
private readonly userModule;
|
|
@@ -41,6 +45,7 @@ export declare class AST {
|
|
|
41
45
|
name?: ts.Identifier;
|
|
42
46
|
}): Location;
|
|
43
47
|
getDocFromSymbol(symbol: ts.Symbol): string;
|
|
48
|
+
getSymbolDoc(symbol: ts.Symbol): SymbolDoc;
|
|
44
49
|
getSymbolOrThrow(node: ts.Node): ts.Symbol;
|
|
45
50
|
getSignatureFromFunctionOrThrow(node: ts.SignatureDeclaration): ts.Signature;
|
|
46
51
|
getSymbol(node: ts.Node): ts.Symbol | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../../../../src/module/introspector/typescript_module/ast.ts"],"names":[],"m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,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"}
|
|
@@ -133,7 +133,30 @@ export class AST {
|
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
getDocFromSymbol(symbol) {
|
|
136
|
-
return
|
|
136
|
+
return this.getSymbolDoc(symbol).description;
|
|
137
|
+
}
|
|
138
|
+
getSymbolDoc(symbol) {
|
|
139
|
+
const description = ts
|
|
140
|
+
.displayPartsToString(symbol.getDocumentationComment(this.checker))
|
|
141
|
+
.trim();
|
|
142
|
+
let deprecated;
|
|
143
|
+
let hasDeprecatedTag = false;
|
|
144
|
+
for (const tag of symbol.getJsDocTags()) {
|
|
145
|
+
if (tag.name !== "deprecated")
|
|
146
|
+
continue;
|
|
147
|
+
hasDeprecatedTag = true;
|
|
148
|
+
const text = tag.text?.map((part) => ("text" in part ? part.text : part)).join("") ??
|
|
149
|
+
"";
|
|
150
|
+
deprecated = text.trim();
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
if (!hasDeprecatedTag) {
|
|
154
|
+
return { description };
|
|
155
|
+
}
|
|
156
|
+
return {
|
|
157
|
+
description,
|
|
158
|
+
deprecated: deprecated ?? "",
|
|
159
|
+
};
|
|
137
160
|
}
|
|
138
161
|
getSymbolOrThrow(node) {
|
|
139
162
|
const symbol = this.getSymbol(node);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const CLI_VERSION = "0.19.
|
|
1
|
+
export declare const CLI_VERSION = "0.19.5";
|
|
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.5";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dagger.io/dagger",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.5",
|
|
4
4
|
"author": "hello@dagger.io",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "./dist/src/index.d.ts",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"adm-zip": "^0.5.16",
|
|
30
30
|
"env-paths": "^3.0.0",
|
|
31
31
|
"execa": "^9.6.0",
|
|
32
|
-
"graphql": "^16.
|
|
32
|
+
"graphql": "^16.12.0",
|
|
33
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
|
-
"tar": "^7.5.
|
|
38
|
+
"tar": "^7.5.2",
|
|
39
39
|
"typescript": "^5.9.3"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
@@ -55,11 +55,11 @@
|
|
|
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.10.0",
|
|
59
59
|
"@types/tar": "^6.1.13",
|
|
60
60
|
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
61
61
|
"@typescript-eslint/parser": "^8.46.2",
|
|
62
|
-
"eslint": "^9.
|
|
62
|
+
"eslint": "^9.39.0",
|
|
63
63
|
"eslint-config-prettier": "^10.1.8",
|
|
64
64
|
"eslint-plugin-prettier": "^5.5.4",
|
|
65
65
|
"mocha": "^11.7.4",
|