-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update deps and types Updates all deps, pulls in tsconfig from aegir and fixes the new ts issues that identified. * chore: pr comments, tidy up generated types
- Loading branch information
1 parent
5c177cd
commit d20caf5
Showing
9 changed files
with
138 additions
and
121 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,42 +1,50 @@ | ||
language: node_js | ||
cache: npm | ||
dist: bionic | ||
|
||
branches: | ||
only: | ||
- master | ||
- /^release\/.*$/ | ||
|
||
stages: | ||
- check | ||
- test | ||
- cov | ||
|
||
node_js: | ||
- '12' | ||
- '10' | ||
- 'lts/*' | ||
- 'node' | ||
|
||
os: | ||
- linux | ||
- osx | ||
- windows | ||
|
||
script: npx nyc -s npm run test:node -- --bail | ||
script: npm run test:node -- --cov | ||
after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov | ||
|
||
jobs: | ||
include: | ||
- os: windows | ||
cache: false | ||
|
||
- stage: check | ||
script: | ||
- npx aegir dep-check -- -i wrtc -i electron-webrtc | ||
- npx aegir dep-check | ||
- npm run lint | ||
|
||
- stage: test | ||
name: chrome | ||
addons: | ||
chrome: stable | ||
script: | ||
- npx aegir test -t browser | ||
script: npx aegir test -t browser -t webworker | ||
|
||
- stage: test | ||
name: firefox | ||
addons: | ||
firefox: latest | ||
script: | ||
- npx aegir test -t browser -- --browsers FirefoxHeadless | ||
script: npx aegir test -t browser -t webworker -- --browser firefox | ||
|
||
notifications: | ||
email: false |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
"description": "A multiaddr validator", | ||
"leadMaintainer": "Vasco Santos <[email protected]>", | ||
"main": "src/index.js", | ||
"types": "dist/src/index.d.ts", | ||
"scripts": { | ||
"lint": "aegir lint", | ||
"build": "aegir build", | ||
|
@@ -30,13 +31,18 @@ | |
"devDependencies": { | ||
"@types/chai": "^4.2.8", | ||
"@types/mocha": "^8.0.0", | ||
"aegir": "^32.0.2", | ||
"aegir": "^33.0.0", | ||
"uint8arrays": "^2.0.5", | ||
"util": "^0.12.3" | ||
}, | ||
"dependencies": { | ||
"multiaddr": "^8.0.0" | ||
"multiaddr": "^9.0.1" | ||
}, | ||
"files": [ | ||
"src", | ||
"dist", | ||
"!dist/*.tsbuildinfo" | ||
], | ||
"contributors": [ | ||
"David Dias <[email protected]>", | ||
"Vasco Santos <[email protected]>", | ||
|
This file was deleted.
Oops, something went wrong.
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,10 @@ | ||
|
||
export type MatchesFunction = (a: string | Uint8Array | Multiaddr) => boolean | ||
export type PartialMatchesFunction = (protos: string[]) => boolean | string[] | null | ||
|
||
export interface Mafmt { | ||
toString: () => string | ||
input?: (Mafmt | (() => Mafmt))[] | ||
matches: MatchesFunction | ||
partialMatch: PartialMatchesFunction | ||
} |
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.