@libp2p/interface-internal 0.1.9 → 0.1.10-06e6d235f

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.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
2
2
  [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)
3
3
  [![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p)
4
- [![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=master\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amaster)
4
+ [![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=main\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amain)
5
5
 
6
6
  > Interfaces implemented by internal libp2p components
7
7
 
package/dist/index.min.js CHANGED
@@ -1,3 +1,3 @@
1
1
  (function (root, factory) {(typeof module === 'object' && module.exports) ? module.exports = factory() : root.Libp2PInterfaceInternal = factory()}(typeof self !== 'undefined' ? self : this, function () {
2
- "use strict";var Libp2PInterfaceInternal=(()=>{var t=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var d=(o,e,x,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let p of b(e))!c.call(o,p)&&p!==x&&t(o,p,{get:()=>e[p],enumerable:!(r=a(e,p))||r.enumerable});return o};var f=o=>d(t({},"__esModule",{value:!0}),o);var g={};return f(g);})();
2
+ "use strict";var Libp2PInterfaceInternal=(()=>{var t=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var b=(r,o,x,p)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of m(o))!a.call(r,e)&&e!==x&&t(r,e,{get:()=>o[e],enumerable:!(p=f(o,e))||p.enumerable});return r};var c=r=>b(t({},"__esModule",{value:!0}),r);var d={};return c(d);})();
3
3
  return Libp2PInterfaceInternal}));
@@ -1,6 +1,4 @@
1
- import type { AbortOptions, PendingDial } from '@libp2p/interface';
2
- import type { Connection, MultiaddrConnection } from '@libp2p/interface/connection';
3
- import type { PeerId } from '@libp2p/interface/peer-id';
1
+ import type { AbortOptions, PendingDial, Connection, MultiaddrConnection, PeerId } from '@libp2p/interface';
4
2
  import type { PeerMap } from '@libp2p/peer-collections';
5
3
  import type { Multiaddr } from '@multiformats/multiaddr';
6
4
  export interface OpenConnectionOptions extends AbortOptions {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connection-manager/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAA;AACnF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AACvD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAExD,MAAM,WAAW,qBAAsB,SAAQ,YAAY;IACzD;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;;;;;;OASG;IACH,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,EAAE,CAAA;IAE7C;;;;;;;;OAQG;IACH,iBAAiB,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC,CAAA;IAE1C;;;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AAC,UAAU,CAAC,CAAA;IAE5G;;OAEG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAErE;;;;;OAKG;IACH,wBAAwB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAEvE;;OAEG;IACH,mBAAmB,IAAI,IAAI,CAAA;IAE3B;;;;;;;;OAQG;IACH,YAAY,IAAI,WAAW,EAAE,CAAA;CAC9B"}
@@ -1,2 +1,6 @@
1
- export {};
1
+ export * from './address-manager/index.js';
2
+ export * from './connection-manager/index.js';
3
+ export * from './record/index.js';
4
+ export * from './registrar/index.js';
5
+ export * from './transport-manager/index.js';
2
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA"}
package/dist/src/index.js CHANGED
@@ -1,2 +1,6 @@
1
- export {};
1
+ export * from './address-manager/index.js';
2
+ export * from './connection-manager/index.js';
3
+ export * from './record/index.js';
4
+ export * from './registrar/index.js';
5
+ export * from './transport-manager/index.js';
2
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,mBAAmB,CAAA;AACjC,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { PeerId } from '@libp2p/interface/peer-id';
1
+ import type { PeerId } from '@libp2p/interface';
2
2
  import type { Uint8ArrayList } from 'uint8arraylist';
3
3
  /**
4
4
  * Record is the base implementation of a record that can be used as the payload of a libp2p envelope.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/record/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,UAAU,CAAA;IACjB;;OAEG;IACH,OAAO,IAAI,UAAU,CAAA;IACrB;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAA;CAC/B;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,UAAU,GAAG,cAAc,CAAA;IACxC,OAAO,EAAE,UAAU,CAAA;IACnB,SAAS,EAAE,UAAU,GAAG,cAAc,CAAA;IAEtC,OAAO,IAAI,UAAU,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAC1C,MAAM,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAA;CACjC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/record/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,KAAK,EAAE,UAAU,CAAA;IACjB;;OAEG;IACH,OAAO,IAAI,UAAU,CAAA;IACrB;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAA;CAC/B;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,UAAU,GAAG,cAAc,CAAA;IACxC,OAAO,EAAE,UAAU,CAAA;IACnB,SAAS,EAAE,UAAU,GAAG,cAAc,CAAA;IAEtC,OAAO,IAAI,UAAU,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAC1C,MAAM,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO,CAAA;CACjC"}
@@ -1,5 +1,4 @@
1
- import type { Connection, Stream } from '@libp2p/interface/connection';
2
- import type { Topology } from '@libp2p/interface/topology';
1
+ import type { Connection, Stream, Topology } from '@libp2p/interface';
3
2
  export interface IncomingStreamData {
4
3
  stream: Stream;
5
4
  connection: Connection;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/registrar/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AACtE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAE1D,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,UAAU,CAAA;CACvB;AAED,MAAM,WAAW,aAAa;IAC5B,CAAC,IAAI,EAAE,kBAAkB,GAAG,IAAI,CAAA;CACjC;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAE3B;;;;OA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AM,CAAA;IAE3B;;;;OAIG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAA;CACnC;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,aAAa,CAAA;IACtB,OAAO,EAAE,oBAAoB,CAAA;CAC9B;AAED,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,YAAY,IAAI,MAAM,EAAE,CAAA;IAExB;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAE/F;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAEzC;;OAEG;IACH,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,CAAA;IAEjD;;;;;;;OAOG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;IAE/D;;OAEG;IACH,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IAE5B;;;OAGG;IACH,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAAE,CAAA;CAC5C"}
@@ -1,5 +1,4 @@
1
- import type { Connection } from '@libp2p/interface/connection';
2
- import type { Listener, Transport } from '@libp2p/interface/transport';
1
+ import type { Connection, Listener, Transport } from '@libp2p/interface';
3
2
  import type { Multiaddr } from '@multiformats/multiaddr';
4
3
  export interface TransportManager {
5
4
  add(transport: Transport): void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/transport-manager/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAA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E,SAAS,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IACzC,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAClC,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;CAC3B"}
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@libp2p/interface-internal",
3
- "version": "0.1.9",
3
+ "version": "0.1.10-06e6d235f",
4
4
  "description": "Interfaces implemented by internal libp2p components",
5
5
  "license": "Apache-2.0 OR MIT",
6
- "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/interface-internal#readme",
6
+ "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/interface-internal#readme",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/libp2p/js-libp2p.git"
@@ -11,6 +11,10 @@
11
11
  "bugs": {
12
12
  "url": "https://github.com/libp2p/js-libp2p/issues"
13
13
  },
14
+ "publishConfig": {
15
+ "access": "public",
16
+ "provenance": true
17
+ },
14
18
  "keywords": [
15
19
  "interface",
16
20
  "libp2p"
@@ -43,26 +47,6 @@
43
47
  ".": {
44
48
  "types": "./dist/src/index.d.ts",
45
49
  "import": "./dist/src/index.js"
46
- },
47
- "./address-manager": {
48
- "types": "./dist/src/address-manager/index.d.ts",
49
- "import": "./dist/src/address-manager/index.js"
50
- },
51
- "./connection-manager": {
52
- "types": "./dist/src/connection-manager/index.d.ts",
53
- "import": "./dist/src/connection-manager/index.js"
54
- },
55
- "./record": {
56
- "types": "./dist/src/record/index.d.ts",
57
- "import": "./dist/src/record/index.js"
58
- },
59
- "./registrar": {
60
- "types": "./dist/src/registrar/index.d.ts",
61
- "import": "./dist/src/registrar/index.js"
62
- },
63
- "./transport-manager": {
64
- "types": "./dist/src/transport-manager/index.d.ts",
65
- "import": "./dist/src/transport-manager/index.js"
66
50
  }
67
51
  },
68
52
  "eslintConfig": {
@@ -79,9 +63,9 @@
79
63
  "build": "aegir build"
80
64
  },
81
65
  "dependencies": {
82
- "@libp2p/interface": "^0.1.6",
83
- "@libp2p/peer-collections": "^4.0.8",
84
- "@multiformats/multiaddr": "^12.1.5",
66
+ "@libp2p/interface": "1.0.0-06e6d235f",
67
+ "@libp2p/peer-collections": "4.0.9-06e6d235f",
68
+ "@multiformats/multiaddr": "^12.1.10",
85
69
  "uint8arraylist": "^2.4.3"
86
70
  },
87
71
  "devDependencies": {
@@ -1,6 +1,4 @@
1
- import type { AbortOptions, PendingDial } from '@libp2p/interface'
2
- import type { Connection, MultiaddrConnection } from '@libp2p/interface/connection'
3
- import type { PeerId } from '@libp2p/interface/peer-id'
1
+ import type { AbortOptions, PendingDial, Connection, MultiaddrConnection, PeerId } from '@libp2p/interface'
4
2
  import type { PeerMap } from '@libp2p/peer-collections'
5
3
  import type { Multiaddr } from '@multiformats/multiaddr'
6
4
 
package/src/index.ts CHANGED
@@ -1 +1,5 @@
1
- export {}
1
+ export * from './address-manager/index.js'
2
+ export * from './connection-manager/index.js'
3
+ export * from './record/index.js'
4
+ export * from './registrar/index.js'
5
+ export * from './transport-manager/index.js'
@@ -1,4 +1,4 @@
1
- import type { PeerId } from '@libp2p/interface/peer-id'
1
+ import type { PeerId } from '@libp2p/interface'
2
2
  import type { Uint8ArrayList } from 'uint8arraylist'
3
3
 
4
4
  /**
@@ -1,5 +1,4 @@
1
- import type { Connection, Stream } from '@libp2p/interface/connection'
2
- import type { Topology } from '@libp2p/interface/topology'
1
+ import type { Connection, Stream, Topology } from '@libp2p/interface'
3
2
 
4
3
  export interface IncomingStreamData {
5
4
  stream: Stream
@@ -1,5 +1,4 @@
1
- import type { Connection } from '@libp2p/interface/connection'
2
- import type { Listener, Transport } from '@libp2p/interface/transport'
1
+ import type { Connection, Listener, Transport } from '@libp2p/interface'
3
2
  import type { Multiaddr } from '@multiformats/multiaddr'
4
3
 
5
4
  export interface TransportManager {
@@ -1,24 +0,0 @@
1
- {
2
- "AddressManager": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.address_manager.AddressManager.html",
3
- "./address-manager:AddressManager": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.address_manager.AddressManager.html",
4
- "ConnectionManager": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.connection_manager.ConnectionManager.html",
5
- "./connection-manager:ConnectionManager": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.connection_manager.ConnectionManager.html",
6
- "OpenConnectionOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.connection_manager.OpenConnectionOptions.html",
7
- "./connection-manager:OpenConnectionOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.connection_manager.OpenConnectionOptions.html",
8
- "Envelope": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.record.Envelope.html",
9
- "./record:Envelope": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.record.Envelope.html",
10
- "Record": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.record.Record.html",
11
- "./record:Record": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.record.Record.html",
12
- "IncomingStreamData": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.registrar.IncomingStreamData.html",
13
- "./registrar:IncomingStreamData": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.registrar.IncomingStreamData.html",
14
- "Registrar": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.registrar.Registrar.html",
15
- "./registrar:Registrar": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.registrar.Registrar.html",
16
- "StreamHandler": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.registrar.StreamHandler.html",
17
- "./registrar:StreamHandler": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.registrar.StreamHandler.html",
18
- "StreamHandlerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.registrar.StreamHandlerOptions.html",
19
- "./registrar:StreamHandlerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.registrar.StreamHandlerOptions.html",
20
- "StreamHandlerRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.registrar.StreamHandlerRecord.html",
21
- "./registrar:StreamHandlerRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.registrar.StreamHandlerRecord.html",
22
- "TransportManager": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.transport_manager.TransportManager.html",
23
- "./transport-manager:TransportManager": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_interface_internal.transport_manager.TransportManager.html"
24
- }