From ae7081015422abf88e8dbf0bedede805d6b05297 Mon Sep 17 00:00:00 2001 From: Hugo Dias Date: Fri, 19 Aug 2022 16:02:07 +0100 Subject: [PATCH] fix(access): export cap types --- packages/access/package.json | 18 +++++++++--------- packages/access/src/cli.js | 2 +- packages/access/src/types.ts | 2 ++ packages/access/tsconfig.json | 3 +-- 4 files changed, 13 insertions(+), 12 deletions(-) diff --git a/packages/access/package.json b/packages/access/package.json index 53caa52be..ac2d0c390 100644 --- a/packages/access/package.json +++ b/packages/access/package.json @@ -42,23 +42,23 @@ ], "dependencies": { "@ipld/dag-ucan": "1.7.0-beta", - "@ucanto/authority": "^0.4.5", - "@ucanto/client": "^0.5.4", - "@ucanto/core": "^0.5.4", - "@ucanto/interface": "^0.6.2", - "@ucanto/server": "^0.6.4", - "@ucanto/transport": "^0.6.3", - "@ucanto/validator": "^0.5.5", + "@ucanto/authority": "^0.5.0", + "@ucanto/client": "^0.6.0", + "@ucanto/core": "^0.6.0", + "@ucanto/interface": "^0.7.0", + "@ucanto/server": "^0.7.0", + "@ucanto/transport": "^0.7.0", + "@ucanto/validator": "^0.6.0", "@web-std/fetch": "^4.1.0", "conf": "^10.1.2", "ora": "^6.1.2", "p-retry": "^5.1.1", - "undici": "^5.8.0" + "undici": "^5.9.1" }, "devDependencies": { "@types/assert": "^1.5.6", "@types/mocha": "^9.1.1", - "@types/node": "^18.6.2", + "@types/node": "^18.7.6", "assert": "^2.0.0", "hd-scripts": "^2.0.1", "mocha": "^10.0.0", diff --git a/packages/access/src/cli.js b/packages/access/src/cli.js index 30c0caf35..26bbf8d4e 100755 --- a/packages/access/src/cli.js +++ b/packages/access/src/cli.js @@ -23,7 +23,7 @@ const config = new Conf({ }) const prog = sade(NAME) -const url = 'https://auth-dev.dag.haus' +const url = process.env.URL || 'https://auth-dev.dag.haus' prog.version(pkg.version) diff --git a/packages/access/src/types.ts b/packages/access/src/types.ts index 659a37ca1..87d203e93 100644 --- a/packages/access/src/types.ts +++ b/packages/access/src/types.ts @@ -15,6 +15,8 @@ import type { IdentityValidate, } from './capabilities-types.js' +export * from './capabilities-types.js' + export interface ClientCodec extends RequestEncoder, ResponseDecoder {} export interface Service { diff --git a/packages/access/tsconfig.json b/packages/access/tsconfig.json index 3b00eef34..599c71cc5 100644 --- a/packages/access/tsconfig.json +++ b/packages/access/tsconfig.json @@ -6,6 +6,5 @@ "emitDeclarationOnly": true }, "include": ["src", "scripts", "test", "package.json"], - "exclude": ["**/node_modules/**"], - "references": [{ "path": "../access-api" }] + "exclude": ["**/node_modules/**"] }