Skip to content

Commit

Permalink
deps(dev): bump aegir from 38.1.8 to 39.0.10 (#225)
Browse files Browse the repository at this point in the history
* deps(dev): bump aegir from 38.1.8 to 39.0.10

Bumps [aegir](https://github.com/ipfs/aegir) from 38.1.8 to 39.0.10.
- [Release notes](https://github.com/ipfs/aegir/releases)
- [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md)
- [Commits](ipfs/aegir@v38.1.8...v39.0.10)

---
updated-dependencies:
- dependency-name: aegir
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: fix linting

* chore: fix build

* chore: revert code

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: achingbrain <alex@achingbrain.net>
  • Loading branch information
dependabot[bot] and achingbrain authored Jun 14, 2023
1 parent 675aa64 commit 1c9fce1
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
},
"devDependencies": {
"@libp2p/peer-id-factory": "^2.0.0",
"aegir": "^38.1.7",
"aegir": "^39.0.10",
"protons": "^7.0.2"
}
}
18 changes: 9 additions & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import NanoDate from 'timestamp-nano'
import { Key } from 'interface-datastore/key'
import { unmarshalPrivateKey } from '@libp2p/crypto/keys'
import { logger } from '@libp2p/logger'
import errCode from 'err-code'
import { Key } from 'interface-datastore/key'
import { base32upper } from 'multiformats/bases/base32'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import { logger } from '@libp2p/logger'
import { createCborData, ipnsEntryDataForV1Sig, ipnsEntryDataForV2Sig } from './utils.js'
import * as ERRORS from './errors.js'
import { equals as uint8ArrayEquals } from 'uint8arrays/equals'
import * as Digest from 'multiformats/hashes/digest'
import { identity } from 'multiformats/hashes/identity'
import NanoDate from 'timestamp-nano'
import { equals as uint8ArrayEquals } from 'uint8arrays/equals'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import * as ERRORS from './errors.js'
import { IpnsEntry } from './pb/ipns.js'
import { createCborData, ipnsEntryDataForV1Sig, ipnsEntryDataForV2Sig } from './utils.js'
import type { PrivateKey } from '@libp2p/interface-keys'
import type { PeerId } from '@libp2p/interface-peer-id'

Expand Down Expand Up @@ -64,7 +64,7 @@ export const create = async (peerId: PeerId, value: Uint8Array, seq: number | bi
const [ms, ns] = lifetime.toString().split('.')
const lifetimeNs = (BigInt(ms) * BigInt(100000)) + BigInt(ns ?? '0')

return await _create(peerId, value, seq, validityType, expirationDate, lifetimeNs)
return _create(peerId, value, seq, validityType, expirationDate, lifetimeNs)
}

/**
Expand All @@ -83,7 +83,7 @@ export const createWithExpiration = async (peerId: PeerId, value: Uint8Array, se
const ttlMs = expirationDate.toDate().getTime() - Date.now()
const ttlNs = (BigInt(ttlMs) * BigInt(100000)) + BigInt(expirationDate.getNano())

return await _create(peerId, value, seq, validityType, expirationDate, ttlNs)
return _create(peerId, value, seq, validityType, expirationDate, ttlNs)
}

const _create = async (peerId: PeerId, value: Uint8Array, seq: number | bigint, validityType: IpnsEntry.ValidityType, expirationDate: NanoDate, ttl: bigint): Promise<IPNSEntry> => {
Expand Down
16 changes: 8 additions & 8 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import errCode from 'err-code'
import type { PeerId } from '@libp2p/interface-peer-id'
import type { IPNSEntry, IPNSEntryData } from './index.js'
import * as ERRORS from './errors.js'
import { unmarshalPublicKey } from '@libp2p/crypto/keys'
import { peerIdFromBytes, peerIdFromKeys } from '@libp2p/peer-id'
import { logger } from '@libp2p/logger'
import { IpnsEntry } from './pb/ipns.js'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import { concat as uint8ArrayConcat } from 'uint8arrays/concat'
import { peerIdFromBytes, peerIdFromKeys } from '@libp2p/peer-id'
import * as cborg from 'cborg'
import errCode from 'err-code'
import { concat as uint8ArrayConcat } from 'uint8arrays/concat'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import * as ERRORS from './errors.js'
import { IpnsEntry } from './pb/ipns.js'
import type { IPNSEntry, IPNSEntryData } from './index.js'
import type { PublicKey } from '@libp2p/interface-keys'
import type { PeerId } from '@libp2p/interface-peer-id'

const log = logger('ipns:utils')
const IPNS_PREFIX = uint8ArrayFromString('/ipns/')
Expand Down
8 changes: 4 additions & 4 deletions src/validator.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { logger } from '@libp2p/logger'
import errCode from 'err-code'
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
import { equals as uint8ArrayEquals } from 'uint8arrays/equals'
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
import * as ERRORS from './errors.js'
import { IpnsEntry } from './pb/ipns.js'
import { parseRFC3339, extractPublicKey, ipnsEntryDataForV2Sig, unmarshal, peerIdFromRoutingKey, parseCborData } from './utils.js'
import * as ERRORS from './errors.js'
import type { IPNSEntry } from './index.js'
import type { PublicKey } from '@libp2p/interface-keys'
import type { ValidateFn } from '@libp2p/interface-dht'
import { logger } from '@libp2p/logger'
import type { PublicKey } from '@libp2p/interface-keys'

const log = logger('ipns:validator')

Expand Down
12 changes: 6 additions & 6 deletions test/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/* eslint-env mocha */

import { randomBytes } from '@libp2p/crypto'
import { generateKeyPair } from '@libp2p/crypto/keys'
import { peerIdFromKeys, peerIdFromString } from '@libp2p/peer-id'
import { createEd25519PeerId } from '@libp2p/peer-id-factory'
import { expect } from 'aegir/chai'
import { base58btc } from 'multiformats/bases/base58'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import { peerIdFromKeys, peerIdFromString } from '@libp2p/peer-id'
import { generateKeyPair } from '@libp2p/crypto/keys'
import { randomBytes } from '@libp2p/crypto'
import * as ipns from '../src/index.js'
import * as ERRORS from '../src/errors.js'
import type { PeerId } from '@libp2p/interface-peer-id'
import * as ipns from '../src/index.js'
import { unmarshal, marshal, extractPublicKey, peerIdToRoutingKey } from '../src/utils.js'
import { ipnsValidator } from '../src/validator.js'
import { createEd25519PeerId } from '@libp2p/peer-id-factory'
import type { PeerId } from '@libp2p/interface-peer-id'

describe('ipns', function () {
this.timeout(20 * 1000)
Expand Down
6 changes: 3 additions & 3 deletions test/selector.spec.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* eslint-env mocha */

import { generateKeyPair } from '@libp2p/crypto/keys'
import { peerIdFromKeys } from '@libp2p/peer-id'
import { expect } from 'aegir/chai'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import { peerIdFromKeys } from '@libp2p/peer-id'
import { generateKeyPair } from '@libp2p/crypto/keys'
import * as ipns from '../src/index.js'
import { marshal, peerIdToRoutingKey } from '../src/utils.js'
import { ipnsSelector } from '../src/selector.js'
import { marshal, peerIdToRoutingKey } from '../src/utils.js'
import type { PeerId } from '@libp2p/interface-peer-id'

describe('selector', function () {
Expand Down
12 changes: 6 additions & 6 deletions test/validator.spec.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
/* eslint-env mocha */

import { randomBytes } from '@libp2p/crypto'
import { generateKeyPair } from '@libp2p/crypto/keys'
import { peerIdFromKeys } from '@libp2p/peer-id'
import { expect } from 'aegir/chai'
import { base58btc } from 'multiformats/bases/base58'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import { concat as uint8ArrayConcat } from 'uint8arrays/concat'
import { peerIdFromKeys } from '@libp2p/peer-id'
import { generateKeyPair } from '@libp2p/crypto/keys'
import { randomBytes } from '@libp2p/crypto'
import * as ipns from '../src/index.js'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import * as ERRORS from '../src/errors.js'
import type { PeerId } from '@libp2p/interface-peer-id'
import * as ipns from '../src/index.js'
import { marshal, peerIdToRoutingKey } from '../src/utils.js'
import { ipnsValidator } from '../src/validator.js'
import type { PeerId } from '@libp2p/interface-peer-id'

describe('validator', function () {
this.timeout(20 * 1000)
Expand Down

0 comments on commit 1c9fce1

Please sign in to comment.