-
Notifications
You must be signed in to change notification settings - Fork 4
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
3258a5e
commit 85c5f39
Showing
63 changed files
with
701 additions
and
448 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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"recommendations": [ | ||
"dbaeumer.vscode-eslint", | ||
"esbenp.prettier-vscode", | ||
"github.vscode-pull-request-github", | ||
"yoavbls.pretty-ts-errors" | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true, | ||
"source.organizeImports": false | ||
}, | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact", | ||
"html", | ||
"nunjucks", | ||
"json", | ||
"jsonc", | ||
"json5", | ||
"markdown", | ||
"yaml", | ||
"github-actions-workflow" | ||
], | ||
"javascript.format.enable": false, | ||
"javascript.preferences.importModuleSpecifierEnding": "js", | ||
"typescript.format.enable": false, | ||
"typescript.preferences.importModuleSpecifierEnding": "auto", | ||
"typescript.enablePromptUseWorkspaceTsdk": true | ||
} |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"name": "iso-base", | ||
"type": "module", | ||
"version": "2.0.1", | ||
"description": "Isomorphic Utils", | ||
"author": "Hugo Dias <[email protected]> (hugodias.me)", | ||
|
@@ -20,13 +21,6 @@ | |
"base-x", | ||
"isomorphic" | ||
], | ||
"type": "module", | ||
"main": "src/index.js", | ||
"types": "dist/src/index.d.ts", | ||
"browser": { | ||
"crypto": false, | ||
"./src/crypto.js": "./src/crypto-browser.js" | ||
}, | ||
"exports": { | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
|
@@ -67,6 +61,12 @@ | |
"default": "./src/leb128.js" | ||
} | ||
}, | ||
"main": "src/index.js", | ||
"types": "dist/src/index.d.ts", | ||
"browser": { | ||
"crypto": false, | ||
"./src/crypto.js": "./src/crypto-browser.js" | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"utils": [ | ||
|
@@ -101,20 +101,24 @@ | |
"dist/src/*.d.ts.map" | ||
], | ||
"scripts": { | ||
"lint": "tsc --build && eslint '**/*.{js,ts}' && prettier --check '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore", | ||
"lint": "tsc --build && eslint . && prettier --check '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore", | ||
"test": "tsc --build && pnpm run test:node && pnpm run test:browser", | ||
"test:node": "mocha 'test/**/!(*.browser).test.js'", | ||
"test:browser": "playwright-test 'test/**/!(*.node).test.js'" | ||
}, | ||
"dependencies": { | ||
"base-x": "^4.0.0", | ||
"bigint-mod-arith": "^3.3.1" | ||
}, | ||
"devDependencies": { | ||
"@scure/base": "^1.1.3", | ||
"@types/assert": "^1.5.6", | ||
"@types/assert": "^1.5.7", | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "^20.6.2", | ||
"@types/node": "^20.7.0", | ||
"assert": "^2.1.0", | ||
"micro-bmark": "^0.3.1", | ||
"mocha": "^10.2.0", | ||
"playwright-test": "^12.3.4", | ||
"playwright-test": "^12.3.5", | ||
"typescript": "5.2.2" | ||
}, | ||
"publishConfig": { | ||
|
@@ -140,9 +144,5 @@ | |
"hd-scripts", | ||
"assert" | ||
] | ||
}, | ||
"dependencies": { | ||
"base-x": "^4.0.0", | ||
"bigint-mod-arith": "^3.3.1" | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,22 +1,20 @@ | ||
{ | ||
"name": "iso-did", | ||
"type": "module", | ||
"version": "1.3.3", | ||
"description": "DID tooling.", | ||
"author": "Hugo Dias <[email protected]> (hugodias.me)", | ||
"license": "MIT", | ||
"homepage": "https://github.com/hugomrdias/iso-repo/tree/main/packages/iso-did", | ||
"repository": { | ||
"url": "hugomrdias/iso-repo", | ||
"directory": "packages/iso-did" | ||
}, | ||
"homepage": "https://github.com/hugomrdias/iso-repo/tree/main/packages/iso-did", | ||
"keywords": [ | ||
"did", | ||
"did:key", | ||
"did-core" | ||
], | ||
"type": "module", | ||
"main": "src/index.js", | ||
"types": "dist/src/index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/src/index.d.ts", | ||
|
@@ -34,6 +32,8 @@ | |
"types": "./dist/src/types.d.ts" | ||
} | ||
}, | ||
"main": "src/index.js", | ||
"types": "dist/src/index.d.ts", | ||
"typesVersions": { | ||
"*": { | ||
".": [ | ||
|
@@ -56,7 +56,7 @@ | |
"dist/src/*.d.ts.map" | ||
], | ||
"scripts": { | ||
"lint": "tsc --build && eslint '**/*.{js,ts}' && prettier --check '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore", | ||
"lint": "tsc --build && eslint . && prettier --check '**/*.{js,ts,yml,json}' --ignore-path ../../.gitignore", | ||
"test": "tsc --build && pnpm run test:node && pnpm run test:browser", | ||
"test:node": "mocha 'test/**/!(*.browser).test.js'", | ||
"test:browser": "playwright-test 'test/**/!(*.node).test.js'" | ||
|
@@ -67,12 +67,12 @@ | |
"multiformats": "^12.1.1" | ||
}, | ||
"devDependencies": { | ||
"@types/assert": "^1.5.6", | ||
"@types/assert": "^1.5.7", | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "^20.6.2", | ||
"@types/node": "^20.7.0", | ||
"assert": "^2.1.0", | ||
"mocha": "^10.2.0", | ||
"playwright-test": "^12.3.4", | ||
"playwright-test": "^12.3.5", | ||
"type-fest": "^4.3.1", | ||
"typescript": "5.2.2" | ||
}, | ||
|
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import type { ParsedDID } from 'did-resolver' | ||
import type { Alg } from './common.js' | ||
import type { Alg } from './common' | ||
|
||
export interface DID extends ParsedDID {} | ||
|
||
// https://www.iana.org/assignments/cose/cose.xhtml#algorithms | ||
export type SignatureAlgorithm = Alg | ||
|
||
export type { KeyType, PublicKeyCode } from './common.js' | ||
export type { KeyType, PublicKeyCode } from './common' |
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.