-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f219084
commit 1b1ed01
Showing
60 changed files
with
1,273 additions
and
2,211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,9 +16,9 @@ | |
"devDependencies": { | ||
"lint-staged": "^13.0.3", | ||
"prettier": "2.7.1", | ||
"simple-git-hooks": "^2.8.0", | ||
"simple-git-hooks": "^2.8.1", | ||
"typescript": "^4.8.4", | ||
"wrangler": "^2.1.11" | ||
"wrangler": "^2.1.12" | ||
}, | ||
"simple-git-hooks": { | ||
"pre-commit": "npx lint-staged" | ||
|
@@ -34,14 +34,6 @@ | |
"singleQuote": true | ||
}, | ||
"engines": { | ||
"node": ">=14" | ||
}, | ||
"pnpm": { | ||
"overrides": { | ||
"npx-import": "1.1.3" | ||
}, | ||
"patchedDependencies": { | ||
"[email protected]": "patches/[email protected]" | ||
} | ||
"node": ">=16" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,14 @@ | |
"author": "Hugo Dias <[email protected]> (hugodias.me)", | ||
"license": "(Apache-2.0 OR MIT)", | ||
"dependencies": { | ||
"@ipld/dag-ucan": "3.0.0-beta", | ||
"@ucanto/client": "^1.0.1", | ||
"@ucanto/core": "^1.0.1", | ||
"@ucanto/interface": "^1.0.0", | ||
"@ucanto/principal": "^1.0.1", | ||
"@ucanto/server": "^1.0.2", | ||
"@ucanto/transport": "^1.0.1", | ||
"@ucanto/validator": "^1.0.2", | ||
"@ipld/dag-ucan": "4.0.0-beta", | ||
"@ucanto/client": "^2.0.0", | ||
"@ucanto/core": "^2.0.0", | ||
"@ucanto/interface": "^2.0.0", | ||
"@ucanto/principal": "^2.0.0", | ||
"@ucanto/server": "^2.0.0", | ||
"@ucanto/transport": "^2.0.0", | ||
"@ucanto/validator": "^2.0.0", | ||
"@web3-storage/access": "workspace:^", | ||
"@web3-storage/worker-utils": "0.4.3-dev", | ||
"multiformats": "^9.8.1", | ||
|
@@ -39,7 +39,7 @@ | |
"@sentry/webpack-plugin": "^1.19.1", | ||
"@types/assert": "^1.5.6", | ||
"@types/git-rev-sync": "^2.0.0", | ||
"@types/node": "^18.8.5", | ||
"@types/node": "^18.11.0", | ||
"assert": "^2.0.0", | ||
"ava": "^4.3.3", | ||
"better-sqlite3": "7.6.2", | ||
|
@@ -49,13 +49,13 @@ | |
"esbuild": "^0.15.10", | ||
"execa": "^6.1.0", | ||
"git-rev-sync": "^3.0.1", | ||
"hd-scripts": "^3.0.1", | ||
"hd-scripts": "^3.0.2", | ||
"miniflare": "^2.10.0", | ||
"process": "^0.11.10", | ||
"readable-stream": "^4.1.0", | ||
"sade": "^1.7.4", | ||
"typescript": "4.8.4", | ||
"wrangler": "^2.1.11" | ||
"wrangler": "^2.1.12" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ export function identityRegisterProvider(ctx) { | |
Identity.register, | ||
async ({ capability, context, invocation }) => { | ||
await ctx.kvs.accounts.register( | ||
capability.caveats.as, | ||
capability.nb.as, | ||
capability.with, | ||
invocation.cid | ||
) | ||
|
@@ -24,7 +24,7 @@ export function identityRegisterProvider(ctx) { | |
to: '[email protected],[email protected]', | ||
subject: 'New w3account Created', | ||
textBody: `New account registered for ${ | ||
capability.caveats.as | ||
capability.nb.as | ||
} with email ${capability.with.replace('mailto:', '')}`, | ||
}) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,9 @@ export function voucherRedeemProvider(ctx) { | |
await ctx.db.insert({ | ||
tableName: 'accounts', | ||
data: { | ||
did: capability.caveats.account, | ||
product: capability.caveats.product, | ||
email: capability.caveats.identity.replace('mailto:', ''), | ||
did: capability.nb.account, | ||
product: capability.nb.product, | ||
email: capability.nb.identity.replace('mailto:', ''), | ||
agent: invocation.issuer.did(), | ||
}, | ||
}) | ||
|
@@ -26,8 +26,8 @@ export function voucherRedeemProvider(ctx) { | |
to: '[email protected],[email protected]', | ||
subject: 'New w3account Created', | ||
textBody: `New account v1 registered for ${ | ||
capability.caveats.account | ||
} with email ${capability.caveats.identity.replace('mailto:', '')}`, | ||
capability.nb.account | ||
} with email ${capability.nb.identity.replace('mailto:', '')}`, | ||
}) | ||
} | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.