@libp2p/plaintext 3.0.15 → 3.0.17-500287203
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/dist/index.min.js +1 -4
- package/dist/index.min.js.map +4 -4
- package/dist/src/index.js +1 -1
- package/package.json +9 -8
- package/src/index.ts +1 -1
- package/dist/typedoc-urls.json +0 -6
package/dist/src/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import { UnexpectedPeerError, InvalidCryptoExchangeError, serviceCapabilities, P
|
|
|
25
25
|
import { peerIdFromPublicKey } from '@libp2p/peer-id';
|
|
26
26
|
import { pbStream } from '@libp2p/utils';
|
|
27
27
|
import { equals as uint8ArrayEquals } from 'uint8arrays/equals';
|
|
28
|
-
import { Exchange, KeyType } from
|
|
28
|
+
import { Exchange, KeyType } from "./pb/proto.js";
|
|
29
29
|
const PROTOCOL = '/plaintext/2.0.0';
|
|
30
30
|
class Plaintext {
|
|
31
31
|
protocol = PROTOCOL;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/plaintext",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.17-500287203",
|
|
4
4
|
"description": "An insecure connection encrypter",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/connection-encrypter-plaintext#readme",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"exports": {
|
|
27
27
|
".": {
|
|
28
28
|
"types": "./dist/src/index.d.ts",
|
|
29
|
-
"import": "./dist/src/index.js"
|
|
29
|
+
"import": "./dist/src/index.js",
|
|
30
|
+
"module-sync": "./dist/src/index.js"
|
|
30
31
|
}
|
|
31
32
|
},
|
|
32
33
|
"scripts": {
|
|
@@ -45,17 +46,17 @@
|
|
|
45
46
|
"doc-check": "aegir doc-check"
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
|
-
"@libp2p/crypto": "
|
|
49
|
-
"@libp2p/interface": "
|
|
50
|
-
"@libp2p/peer-id": "
|
|
51
|
-
"@libp2p/utils": "
|
|
49
|
+
"@libp2p/crypto": "5.1.17-500287203",
|
|
50
|
+
"@libp2p/interface": "3.2.2-500287203",
|
|
51
|
+
"@libp2p/peer-id": "6.0.8-500287203",
|
|
52
|
+
"@libp2p/utils": "7.0.17-500287203",
|
|
52
53
|
"protons-runtime": "^6.0.1",
|
|
53
54
|
"uint8arraylist": "^2.4.8",
|
|
54
55
|
"uint8arrays": "^5.1.0"
|
|
55
56
|
},
|
|
56
57
|
"devDependencies": {
|
|
57
|
-
"@libp2p/crypto": "
|
|
58
|
-
"@libp2p/logger": "
|
|
58
|
+
"@libp2p/crypto": "5.1.17-500287203",
|
|
59
|
+
"@libp2p/logger": "6.2.6-500287203",
|
|
59
60
|
"aegir": "^47.0.22",
|
|
60
61
|
"protons": "^8.1.1",
|
|
61
62
|
"sinon": "^21.0.0"
|
package/src/index.ts
CHANGED
|
@@ -26,7 +26,7 @@ import { UnexpectedPeerError, InvalidCryptoExchangeError, serviceCapabilities, P
|
|
|
26
26
|
import { peerIdFromPublicKey } from '@libp2p/peer-id'
|
|
27
27
|
import { pbStream } from '@libp2p/utils'
|
|
28
28
|
import { equals as uint8ArrayEquals } from 'uint8arrays/equals'
|
|
29
|
-
import { Exchange, KeyType } from './pb/proto.
|
|
29
|
+
import { Exchange, KeyType } from './pb/proto.ts'
|
|
30
30
|
import type { ComponentLogger, Logger, ConnectionEncrypter, SecuredConnection, PrivateKey, SecureConnectionOptions, MessageStream } from '@libp2p/interface'
|
|
31
31
|
|
|
32
32
|
const PROTOCOL = '/plaintext/2.0.0'
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"PlaintextComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_plaintext.PlaintextComponents.html",
|
|
3
|
-
".:PlaintextComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_plaintext.PlaintextComponents.html",
|
|
4
|
-
"plaintext": "https://libp2p.github.io/js-libp2p/functions/_libp2p_plaintext.plaintext.html",
|
|
5
|
-
".:plaintext": "https://libp2p.github.io/js-libp2p/functions/_libp2p_plaintext.plaintext.html"
|
|
6
|
-
}
|