From 69cde15c14aa84850e2a46a8bdb6250473e02828 Mon Sep 17 00:00:00 2001 From: Irakli Gozalishvili Date: Fri, 11 Nov 2022 22:29:11 -0800 Subject: [PATCH] fix: failing checks --- packages/access-api/package.json | 4 +- packages/access/package.json | 4 +- packages/access/src/capabilities/voucher.js | 6 +-- pnpm-lock.yaml | 48 +++++++-------------- 4 files changed, 21 insertions(+), 41 deletions(-) diff --git a/packages/access-api/package.json b/packages/access-api/package.json index 514e1c4d1..03d6a652a 100644 --- a/packages/access-api/package.json +++ b/packages/access-api/package.json @@ -21,9 +21,9 @@ "@ucanto/core": "^3.0.2", "@ucanto/interface": "^3.0.1", "@ucanto/principal": "^3.0.1", - "@ucanto/server": "^3.0.2", + "@ucanto/server": "^3.0.4", "@ucanto/transport": "^3.0.2", - "@ucanto/validator": "^3.0.2", + "@ucanto/validator": "^3.0.4", "@web3-storage/access": "workspace:^", "@web3-storage/worker-utils": "0.4.3-dev", "multiformats": "^10.0.2", diff --git a/packages/access/package.json b/packages/access/package.json index 6a96374e9..b74712857 100644 --- a/packages/access/package.json +++ b/packages/access/package.json @@ -66,9 +66,9 @@ "@ucanto/core": "^3.0.2", "@ucanto/interface": "^3.0.1", "@ucanto/principal": "^3.0.1", - "@ucanto/server": "^3.0.2", + "@ucanto/server": "^3.0.4", "@ucanto/transport": "^3.0.2", - "@ucanto/validator": "^3.0.2", + "@ucanto/validator": "^3.0.4", "@web-std/fetch": "^4.1.0", "bigint-mod-arith": "^3.1.2", "conf": "^10.1.2", diff --git a/packages/access/src/capabilities/voucher.js b/packages/access/src/capabilities/voucher.js index 9e9906132..83487453e 100644 --- a/packages/access/src/capabilities/voucher.js +++ b/packages/access/src/capabilities/voucher.js @@ -52,11 +52,9 @@ export const claim = base.derive({ with: URI.match({ protocol: 'did:' }), nb: { /** - * Optional link to the product agent is requesting a voucher of. If - * omitted service could delegate all vouchers it deems necessary or - * all none. + * URI of the product agent is requesting a voucher of. */ - product: Product.optional(), + product: Product, /** * Verifiable identity on who's behalf behalf claim is made. */ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d34647269..84966979c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,9 +30,9 @@ importers: '@ucanto/core': ^3.0.2 '@ucanto/interface': ^3.0.1 '@ucanto/principal': ^3.0.1 - '@ucanto/server': ^3.0.2 + '@ucanto/server': ^3.0.4 '@ucanto/transport': ^3.0.2 - '@ucanto/validator': ^3.0.2 + '@ucanto/validator': ^3.0.4 '@web-std/fetch': ^4.1.0 assert: ^2.0.0 bigint-mod-arith: ^3.1.2 @@ -69,9 +69,9 @@ importers: '@ucanto/core': 3.0.2 '@ucanto/interface': 3.0.1 '@ucanto/principal': 3.0.1 - '@ucanto/server': 3.0.2 + '@ucanto/server': 3.0.4 '@ucanto/transport': 3.0.2 - '@ucanto/validator': 3.0.2 + '@ucanto/validator': 3.0.4 '@web-std/fetch': 4.1.0 bigint-mod-arith: 3.1.2 conf: 10.2.0 @@ -121,9 +121,9 @@ importers: '@ucanto/core': ^3.0.2 '@ucanto/interface': ^3.0.1 '@ucanto/principal': ^3.0.1 - '@ucanto/server': ^3.0.2 + '@ucanto/server': ^3.0.4 '@ucanto/transport': ^3.0.2 - '@ucanto/validator': ^3.0.2 + '@ucanto/validator': ^3.0.4 '@web3-storage/access': workspace:^ '@web3-storage/worker-utils': 0.4.3-dev assert: ^2.0.0 @@ -156,9 +156,9 @@ importers: '@ucanto/core': 3.0.2 '@ucanto/interface': 3.0.1 '@ucanto/principal': 3.0.1 - '@ucanto/server': 3.0.2 + '@ucanto/server': 3.0.4 '@ucanto/transport': 3.0.2 - '@ucanto/validator': 3.0.2 + '@ucanto/validator': 3.0.4 '@web3-storage/access': link:../access '@web3-storage/worker-utils': 0.4.3-dev multiformats: 10.0.2 @@ -285,9 +285,9 @@ importers: '@ucanto/core': 3.0.1 '@ucanto/interface': 3.0.0 '@ucanto/principal': 3.0.0 - '@ucanto/server': 3.0.1 + '@ucanto/server': 3.0.4 '@ucanto/transport': 3.0.1 - '@ucanto/validator': 3.0.1 + '@ucanto/validator': 3.0.4 '@web-std/fetch': 4.1.0 '@web3-storage/sigv4': 1.0.2 multiformats: 10.0.2 @@ -1490,20 +1490,12 @@ packages: one-webcrypto: 1.0.3 dev: false - /@ucanto/server/3.0.1: - resolution: {integrity: sha512-PMBb9gPk+5+qKl7bANusPq9xCm2S0dVNIT33EmmtNhXWQSj8nLvWLInnxXYGc+ziyQonPZtDPgKi02uREFEdXw==} + /@ucanto/server/3.0.4: + resolution: {integrity: sha512-4a5ou5HZ8ymw39EeZ0024nu0JD916xTMpYsS4eXMxpnoWlOjgmoeWZ5e01dEiw5AlfnSa8e9+a0b1dzvSISQxQ==} dependencies: '@ucanto/core': 3.0.2 '@ucanto/interface': 3.0.1 - '@ucanto/validator': 3.0.2 - dev: false - - /@ucanto/server/3.0.2: - resolution: {integrity: sha512-/3VELXxXb4FpsL7Hjh0fqjvctfMG3yUveqvyuxKtB3yf4dpMiC86RnkRmV59mnZC8bNccIaupKStiBOPUZtFDw==} - dependencies: - '@ucanto/core': 3.0.2 - '@ucanto/interface': 3.0.1 - '@ucanto/validator': 3.0.2 + '@ucanto/validator': 3.0.4 dev: false /@ucanto/transport/3.0.1: @@ -1526,18 +1518,8 @@ packages: multiformats: 10.0.2 dev: false - /@ucanto/validator/3.0.1: - resolution: {integrity: sha512-LVirhuwMPOwATIDwlhGZt7C1BtrKp2+HJ7pALQcbC4+eHYyminniZEAzYjf0/EnjXtDj0SL3jnnBBvmpIJiWDQ==} - dependencies: - '@ipld/car': 5.0.0 - '@ipld/dag-cbor': 8.0.0 - '@ucanto/core': 3.0.2 - '@ucanto/interface': 3.0.1 - multiformats: 10.0.2 - dev: false - - /@ucanto/validator/3.0.2: - resolution: {integrity: sha512-7ZuQ4rwB9nz8E38iLHXeErd/TJgGZvTkTkd+Tbh1+nvrHQxReA0i31JFQ1LXxRHcB5+gp7D3XIxEDu1/Rx8UTQ==} + /@ucanto/validator/3.0.4: + resolution: {integrity: sha512-JG6y6yWPDUBoJuWP7auwMTZf9SJN9d2e7y/ZbVvluQBZC+WvhLq1Z2cjWCjA21Y2FJxWeI27leBjWzyIsHtYUA==} dependencies: '@ipld/car': 5.0.0 '@ipld/dag-cbor': 8.0.0