@taqueria/protocol 0.2.0 → 0.3.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taqueria/protocol",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "A TypeScript package which contains types that are to be shared between @taqueria/node-sdk and @taqueria/taqueria.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,9 +1,9 @@
1
1
  // TODO - using .ts is necessary for Deno. Explore how to make this
2
2
  // consumable by Deno or the TypeScript compiler without any warnings
3
3
  // or errors emited
4
- // @ts-ignore
4
+ // @ts-ignore see above
5
5
  import {SanitizedAbsPath, SHA256} from '../taqueria-utils/taqueria-utils-types.ts'
6
- // @ts-ignore
6
+ // @ts-ignore see above
7
7
  import {urlParse} from './url-parse.ts'
8
8
 
9
9
  type URL = ReturnType<typeof urlParse>
@@ -223,7 +223,7 @@ export interface UnvalidatedTask {
223
223
  readonly aliases?: string[]
224
224
  readonly options?: (UnvalidatedOption|Option|undefined)[],
225
225
  readonly positionals?: (UnvalidatedPositionalArg|undefined|PositionalArg)[]
226
- readonly handler: "proxy" | string | string[]
226
+ readonly handler: TaskHandler
227
227
  readonly hidden?: boolean
228
228
  readonly example?: string
229
229
  readonly encoding?: "json" | "application/json" | "none"