@libp2p/plaintext 2.0.22 → 2.0.23
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 +3 -2
- package/dist/index.min.js +2 -15
- package/dist/index.min.js.map +7 -0
- package/dist/src/index.d.ts +3 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +3 -2
- package/dist/src/index.js.map +1 -1
- package/package.json +6 -6
- package/src/index.ts +3 -2
package/dist/src/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @packageDocumentation
|
|
3
3
|
*
|
|
4
|
-
* A connection encrypter that does no connection encryption
|
|
4
|
+
* A connection encrypter that does no connection encryption and trusts the
|
|
5
|
+
* remote peer to provide the correct PeerId.
|
|
5
6
|
*
|
|
6
|
-
* This should not be used in production
|
|
7
|
+
* This should not be used in production and is for research purposes only.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
10
|
*
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAQH,OAAO,KAAK,EAAE,eAAe,EAA+B,mBAAmB,EAAqB,UAAU,EAA2B,MAAM,mBAAmB,CAAA;AAMlK,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,eAAe,CAAA;CACxB;AAyFD,wBAAgB,SAAS,IAAK,CAAC,UAAU,EAAE,mBAAmB,KAAK,mBAAmB,CAErF"}
|
package/dist/src/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @packageDocumentation
|
|
3
3
|
*
|
|
4
|
-
* A connection encrypter that does no connection encryption
|
|
4
|
+
* A connection encrypter that does no connection encryption and trusts the
|
|
5
|
+
* remote peer to provide the correct PeerId.
|
|
5
6
|
*
|
|
6
|
-
* This should not be used in production
|
|
7
|
+
* This should not be used in production and is for research purposes only.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
10
|
*
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACvH,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,MAAM,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAKjD,MAAM,QAAQ,GAAG,kBAAkB,CAAA;AAOnC,MAAM,SAAS;IACN,QAAQ,GAAW,QAAQ,CAAA;IACjB,UAAU,CAAY;IACtB,GAAG,CAAQ;IAE5B,YAAa,UAA+B;QAC1C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,CAAA;QACvC,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAA;IAC/D,CAAC;IAEQ,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,mBAAmB,CAAA;IAE1C,CAAC,mBAAmB,CAAC,GAAa;QACzC,+BAA+B;KAChC,CAA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0.23",
|
|
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",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"doc-check": "aegir doc-check"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@libp2p/crypto": "^5.1.
|
|
56
|
-
"@libp2p/interface": "^2.
|
|
57
|
-
"@libp2p/peer-id": "^5.1.
|
|
55
|
+
"@libp2p/crypto": "^5.1.2",
|
|
56
|
+
"@libp2p/interface": "^2.10.0",
|
|
57
|
+
"@libp2p/peer-id": "^5.1.3",
|
|
58
58
|
"it-protobuf-stream": "^2.0.1",
|
|
59
59
|
"it-stream-types": "^2.0.2",
|
|
60
60
|
"protons-runtime": "^5.5.0",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"uint8arrays": "^5.1.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@libp2p/crypto": "^5.1.
|
|
66
|
-
"@libp2p/logger": "^5.1.
|
|
65
|
+
"@libp2p/crypto": "^5.1.2",
|
|
66
|
+
"@libp2p/logger": "^5.1.16",
|
|
67
67
|
"aegir": "^45.1.1",
|
|
68
68
|
"it-pair": "^2.0.6",
|
|
69
69
|
"protons": "^7.6.0",
|
package/src/index.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @packageDocumentation
|
|
3
3
|
*
|
|
4
|
-
* A connection encrypter that does no connection encryption
|
|
4
|
+
* A connection encrypter that does no connection encryption and trusts the
|
|
5
|
+
* remote peer to provide the correct PeerId.
|
|
5
6
|
*
|
|
6
|
-
* This should not be used in production
|
|
7
|
+
* This should not be used in production and is for research purposes only.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
10
|
*
|