Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump aegir from 22.1.0 to 25.0.0 #131

Merged
merged 2 commits into from
Aug 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"overrides": [
{
"files": [
"**/*.ts"
],
"extends": "./node_modules/aegir/src/config/eslintrc-ts.js"
},
{
"files": [
"**/*.js"
],
"extends": "./node_modules/aegir/src/config/eslintrc.js"
}
]
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"types": "src/index.d.ts",
"scripts": {
"lint": "aegir lint",
"test": "aegir test",
"test:node": "aegir test -t node",
"test": "npm run test:node && npm run test:browser",
"test:node": "aegir test --ts -t node",
"test:browser": "aegir test -t browser",
"test:types": "npx tsc",
"build": "aegir build",
Expand Down Expand Up @@ -44,7 +44,7 @@
"@types/dirty-chai": "^2.0.2",
"@types/mocha": "^8.0.1",
"@types/node": "^14.0.11",
"aegir": "^22.0.0",
"aegir": "^25.0.0",
"typescript": "^3.9.5"
},
"contributors": [
Expand Down Expand Up @@ -78,4 +78,4 @@
"Linus Unnebäck <[email protected]>",
"Sid Harder <[email protected]>"
]
}
}
26 changes: 13 additions & 13 deletions test/types.spec.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import Multiaddr from "../src";
import Multiaddr from '../src'

const testStr: string = "/ip4/127.0.0.1";
const testStr = '/ip4/127.0.0.1'

const maFromFunctionConstructor: Multiaddr = Multiaddr(testStr);
export const maFromFunctionConstructor: Multiaddr = Multiaddr(testStr)

const maFromClassConstructor: Multiaddr = new Multiaddr(testStr);
export const maFromClassConstructor: Multiaddr = new Multiaddr(testStr)

const maFromMa: Multiaddr = Multiaddr(new Multiaddr(testStr));
export const maFromMa: Multiaddr = Multiaddr(new Multiaddr(testStr))

const maFromConstructorFunction: Multiaddr = Multiaddr.fromNodeAddress(
export const maFromConstructorFunction: Multiaddr = Multiaddr.fromNodeAddress(
{
family: "IPv4",
address: "127.0.0.1",
port: "12345"
family: 'IPv4',
address: '127.0.0.1',
port: '12345'
},
"udp"
);
'udp'
)

function doSthWithMa(ma: Multiaddr): void {
ma.toOptions();
export function doSthWithMa (ma: Multiaddr): void {
ma.toOptions()
}