@libp2p/utils 3.0.12-d853d124 → 3.0.12-daeb43d8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,7 +19,7 @@
19
19
  * // ['/ip4/82.41.53.1/tcp/9000', '/ip4/127.0.0.1/tcp/9000']
20
20
  * ```
21
21
  */
22
- import type { Address } from '@libp2p/interface-peer-store';
22
+ import type { Address } from '@libp2p/interface/peer-store';
23
23
  /**
24
24
  * Compare function for array.sort().
25
25
  * This sort aims to move the private addresses to the end of the array.
@@ -1,5 +1,5 @@
1
1
  import { Address4, Address6 } from '@achingbrain/ip-address';
2
- import { CodeError } from '@libp2p/interfaces/errors';
2
+ import { CodeError } from '@libp2p/interface/errors';
3
3
  import { logger } from '@libp2p/logger';
4
4
  import { multiaddr } from '@multiformats/multiaddr';
5
5
  const log = logger('libp2p:ip-port-to-multiaddr');
@@ -1 +1 @@
1
- {"version":3,"file":"ip-port-to-multiaddr.js","sourceRoot":"","sources":["../../src/ip-port-to-multiaddr.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AACvC,OAAO,EAAkB,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAEnE,MAAM,GAAG,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAA;AAEjD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,wBAAwB,EAAE,0BAA0B;IACpD,0BAA0B,EAAE,4BAA4B;IACxD,cAAc,EAAE,gBAAgB;CACjC,CAAA;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAE,EAAU,EAAE,IAAqB;IAClE,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE;QAC1B,MAAM,IAAI,SAAS,CAAC,wBAAwB,EAAE,E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,EAAE;QACZ,MAAM,MAAM,GAAG,6CAA6C,EAAE,IAAI,IAAI,EAAE,CAAA;QACxE,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QACjB,MAAM,IAAI,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC,CAAA;KACnD;AACH,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { MultiaddrConnection } from '@libp2p/interface-connection';
1
+ import type { MultiaddrConnection } from '@libp2p/interface/connection';
2
2
  import type { Multiaddr } from '@multiformats/multiaddr';
3
3
  import type { Duplex, Source } from 'it-stream-types';
4
4
  import type { Uint8ArrayList } from 'uint8arraylist';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/utils",
3
- "version": "3.0.12-d853d124",
3
+ "version": "3.0.12-daeb43d8",
4
4
  "description": "Package to aggregate shared logic and dependencies for the libp2p ecosystem",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/utils#readme",
@@ -86,10 +86,8 @@
86
86
  },
87
87
  "dependencies": {
88
88
  "@achingbrain/ip-address": "^8.1.0",
89
- "@libp2p/interface-connection": "5.1.1-d853d124",
90
- "@libp2p/interface-peer-store": "2.0.4-d853d124",
91
- "@libp2p/interfaces": "3.3.2-d853d124",
92
- "@libp2p/logger": "2.1.1-d853d124",
89
+ "@libp2p/interface": "0.0.1-daeb43d8",
90
+ "@libp2p/logger": "2.1.1-daeb43d8",
93
91
  "@multiformats/multiaddr": "^12.1.3",
94
92
  "abortable-iterator": "^5.0.1",
95
93
  "is-loopback-addr": "^2.0.1",
@@ -102,7 +100,7 @@
102
100
  "it-all": "^3.0.1",
103
101
  "it-pair": "^2.0.6",
104
102
  "it-pipe": "^3.0.1",
105
- "uint8arrays": "^4.0.3"
103
+ "uint8arrays": "^4.0.4"
106
104
  },
107
105
  "typedoc": {
108
106
  "entryPoint": "./src/index.ts"
@@ -21,7 +21,7 @@
21
21
  */
22
22
 
23
23
  import { isPrivate } from './multiaddr/is-private.js'
24
- import type { Address } from '@libp2p/interface-peer-store'
24
+ import type { Address } from '@libp2p/interface/peer-store'
25
25
 
26
26
  /**
27
27
  * Compare function for array.sort().
@@ -1,5 +1,5 @@
1
1
  import { Address4, Address6 } from '@achingbrain/ip-address'
2
- import { CodeError } from '@libp2p/interfaces/errors'
2
+ import { CodeError } from '@libp2p/interface/errors'
3
3
  import { logger } from '@libp2p/logger'
4
4
  import { type Multiaddr, multiaddr } from '@multiformats/multiaddr'
5
5
 
@@ -1,6 +1,6 @@
1
1
  import { logger } from '@libp2p/logger'
2
2
  import { abortableSource } from 'abortable-iterator'
3
- import type { MultiaddrConnection } from '@libp2p/interface-connection'
3
+ import type { MultiaddrConnection } from '@libp2p/interface/connection'
4
4
  import type { Multiaddr } from '@multiformats/multiaddr'
5
5
  import type { Duplex, Source } from 'it-stream-types'
6
6
  import type { Uint8ArrayList } from 'uint8arraylist'