@libp2p/memory 1.0.1-8a9258a24 → 1.0.1-99f5f270b

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.
Files changed (3) hide show
  1. package/README.md +14 -4
  2. package/package.json +9 -9
  3. package/LICENSE +0 -4
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @libp2p/tcp
2
2
 
3
+ # @libp2p/memory
4
+
3
5
  [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
4
6
  [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)
5
7
  [![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p)
@@ -67,19 +69,27 @@ const connection = await dialer.dial(ma, {
67
69
  # Install
68
70
 
69
71
  ```console
70
- $ npm i @libp2p/tcp
72
+ $ npm i @libp2p/memory
73
+ ```
74
+
75
+ ## Browser `<script>` tag
76
+
77
+ Loading this module through a script tag will make its exports available as `Libp2pMemory` in the global namespace.
78
+
79
+ ```html
80
+ <script src="https://unpkg.com/@libp2p/memory/dist/index.min.js"></script>
71
81
  ```
72
82
 
73
83
  # API Docs
74
84
 
75
- - <https://libp2p.github.io/js-libp2p/modules/_libp2p_tcp.html>
85
+ - <https://libp2p.github.io/js-libp2p/modules/_libp2p_memory.html>
76
86
 
77
87
  # License
78
88
 
79
89
  Licensed under either of
80
90
 
81
- - Apache 2.0, ([LICENSE-APACHE](https://github.com/libp2p/js-libp2p/blob/main/packages/transport-tcp/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
82
- - MIT ([LICENSE-MIT](https://github.com/libp2p/js-libp2p/blob/main/packages/transport-tcp/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
91
+ - Apache 2.0, ([LICENSE-APACHE](https://github.com/libp2p/js-libp2p/blob/main/packages/transport-memory/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
92
+ - MIT ([LICENSE-MIT](https://github.com/libp2p/js-libp2p/blob/main/packages/transport-memory/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
83
93
 
84
94
  # Contribution
85
95
 
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@libp2p/memory",
3
- "version": "1.0.1-8a9258a24",
3
+ "version": "1.0.1-99f5f270b",
4
4
  "description": "A memory transport for libp2p",
5
5
  "license": "Apache-2.0 OR MIT",
6
- "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/transport-tcp#readme",
6
+ "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/transport-memory#readme",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/libp2p/js-libp2p.git"
@@ -51,20 +51,20 @@
51
51
  "test:electron-main": "aegir test -t electron-main"
52
52
  },
53
53
  "dependencies": {
54
- "@libp2p/interface": "2.2.1-8a9258a24",
55
- "@multiformats/multiaddr": "^12.2.3",
56
- "@multiformats/multiaddr-matcher": "^1.5.0",
54
+ "@libp2p/interface": "2.2.1-99f5f270b",
55
+ "@multiformats/multiaddr": "^12.3.3",
56
+ "@multiformats/multiaddr-matcher": "^1.6.0",
57
57
  "@types/sinon": "^17.0.3",
58
58
  "delay": "^6.0.0",
59
59
  "it-map": "^3.1.1",
60
60
  "it-pushable": "^3.2.3",
61
- "nanoid": "^5.0.8",
61
+ "nanoid": "^5.0.9",
62
62
  "uint8arraylist": "^2.4.8"
63
63
  },
64
64
  "devDependencies": {
65
- "@libp2p/logger": "5.1.4-8a9258a24",
66
- "@libp2p/peer-id": "5.0.8-8a9258a24",
67
- "aegir": "^44.0.1",
65
+ "@libp2p/logger": "5.1.4-99f5f270b",
66
+ "@libp2p/peer-id": "5.0.8-99f5f270b",
67
+ "aegir": "^45.0.5",
68
68
  "sinon": "^19.0.2",
69
69
  "sinon-ts": "^2.0.0"
70
70
  },
package/LICENSE DELETED
@@ -1,4 +0,0 @@
1
- This project is dual licensed under MIT and Apache-2.0.
2
-
3
- MIT: https://www.opensource.org/licenses/mit
4
- Apache-2.0: https://www.apache.org/licenses/license-2.0