@dagger.io/dagger 0.18.16 → 0.18.17

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.
@@ -1 +1 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../src/module/entrypoint/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAET,QAAQ,EACR,OAAO,EAGR,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,eAAe,IAAI,SAAS,EAC5B,iBAAiB,IAAI,WAAW,EAChC,cAAc,IAAI,MAAM,EACxB,YAAY,EAEZ,cAAc,EACf,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAA;AAU5F,qBAAa,QAAQ;IACP,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,YAAY;IAEjD;;OAEG;IACG,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC;IAgF9B;;OAEG;IACH,cAAc,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS;IAInE;;OAEG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,GAAG,SAAS;IAQ7D;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,CAAC,GAAG,EAAE,SAAS,KAAK,SAAS;IAoDtD;;;;;;;OAOG;IACH,sBAAsB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,GAAG,SAAS;CA4BjE"}
1
+ {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../../../src/module/entrypoint/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAET,QAAQ,EACR,OAAO,EAGR,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,eAAe,IAAI,SAAS,EAC5B,iBAAiB,IAAI,WAAW,EAChC,cAAc,IAAI,MAAM,EACxB,YAAY,EAEZ,cAAc,EACf,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAA;AAU5F,qBAAa,QAAQ;IACP,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,YAAY;IAEjD;;OAEG;IACG,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC;IAgF9B;;OAEG;IACH,cAAc,CAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS;IAInE;;OAEG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,uBAAuB,GAAG,SAAS;IAQ7D;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,SAAS,GAAG,CAAC,GAAG,EAAE,SAAS,KAAK,SAAS;IAkDtD;;;;;;;OAOG;IACH,sBAAsB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,GAAG,SAAS;CA4BjE"}
@@ -98,8 +98,8 @@ export class Register {
98
98
  typeDef = typeDef.withOptional(true);
99
99
  }
100
100
  // Check if both values are used, return an error if so.
101
- if (arg.defaultValue && arg.defaultPath) {
102
- throw new Error("cannot set both default value and default path from context");
101
+ if ([arg.defaultValue, arg.defaultPath].filter((v) => v).length > 1) {
102
+ throw new Error("cannot set multiple defaults");
103
103
  }
104
104
  // We do not set the default value if it's not a primitive type, we let TypeScript
105
105
  // resolve the default value during the runtime instead.
@@ -10,9 +10,9 @@ export type ArgumentOptions = {
10
10
  /**
11
11
  * The contextual value to use for the argument.
12
12
  *
13
- * This should only be used for Directory or File types.
13
+ * This should only be used for Directory/File or GitRepository/GitRef types.
14
14
  *
15
- * An abslute path would be related to the context source directory (the git repo root or the module source root).
15
+ * An absolute path would be related to the context source directory (the git repo root or the module source root).
16
16
  * A relative path would be relative to the module source root.
17
17
  */
18
18
  defaultPath?: string;
@@ -1,2 +1,2 @@
1
- export declare const CLI_VERSION = "0.18.16";
1
+ export declare const CLI_VERSION = "0.18.17";
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.18.16";
2
+ export const CLI_VERSION = "0.18.17";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dagger.io/dagger",
3
- "version": "0.18.16",
3
+ "version": "0.18.17",
4
4
  "author": "hello@dagger.io",
5
5
  "license": "Apache-2.0",
6
6
  "types": "./dist/src/index.d.ts",
@@ -21,6 +21,7 @@
21
21
  "@lifeomic/axios-fetch": "^3.1.0",
22
22
  "@opentelemetry/api": "^1.9.0",
23
23
  "@opentelemetry/core": "^2.0.1",
24
+ "@opentelemetry/exporter-jaeger": "^1.30.1",
24
25
  "@opentelemetry/exporter-trace-otlp-http": "^0.202.0",
25
26
  "@opentelemetry/sdk-metrics": "^2.0.1",
26
27
  "@opentelemetry/sdk-node": "^0.202.0",