@leofcoin/peernet 1.1.5 → 1.1.6
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/exports/browser/client-1d0234a7.js +624 -0
- package/exports/browser/{index-3d3f56ca.js → index-1ce30988.js} +1 -1
- package/exports/browser/{messages-af41e873.js → messages-e025829d.js} +1 -1
- package/exports/browser/{peernet-f349ddaf.js → peernet-8a51792a.js} +9 -13
- package/exports/browser/peernet.js +1 -1
- package/package.json +1 -1
- package/rollup.config.js +3 -20
- package/exports/browser/client-111c93a3.js +0 -612
- package/exports/browser/simple-peer-743c19fe.js +0 -7856
- package/exports/browser/swarm-client.js +0 -7643
- package/exports/swarm-client.js +0 -1455
|
@@ -2600,10 +2600,6 @@ var index = {
|
|
|
2600
2600
|
|
|
2601
2601
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2602
2602
|
|
|
2603
|
-
function getDefaultExportFromCjs (x) {
|
|
2604
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
2605
|
-
}
|
|
2606
|
-
|
|
2607
2603
|
function getAugmentedNamespace(n) {
|
|
2608
2604
|
if (n.__esModule) return n;
|
|
2609
2605
|
var f = n.default;
|
|
@@ -3025,7 +3021,7 @@ var dependencies = {
|
|
|
3025
3021
|
"minimalistic-assert": "^1.0.1",
|
|
3026
3022
|
"minimalistic-crypto-utils": "^1.0.1"
|
|
3027
3023
|
};
|
|
3028
|
-
var require$$0 = {
|
|
3024
|
+
var require$$0$1 = {
|
|
3029
3025
|
name: name,
|
|
3030
3026
|
version: version$1,
|
|
3031
3027
|
description: description,
|
|
@@ -3057,7 +3053,7 @@ var _nodeResolve_empty$1 = /*#__PURE__*/Object.freeze({
|
|
|
3057
3053
|
default: _nodeResolve_empty
|
|
3058
3054
|
});
|
|
3059
3055
|
|
|
3060
|
-
var require$$
|
|
3056
|
+
var require$$0 = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty$1);
|
|
3061
3057
|
|
|
3062
3058
|
(function (module) {
|
|
3063
3059
|
(function (module, exports) {
|
|
@@ -3114,7 +3110,7 @@ var require$$3 = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty$1);
|
|
|
3114
3110
|
if (typeof window !== 'undefined' && typeof window.Buffer !== 'undefined') {
|
|
3115
3111
|
Buffer = window.Buffer;
|
|
3116
3112
|
} else {
|
|
3117
|
-
Buffer = require$$
|
|
3113
|
+
Buffer = require$$0.Buffer;
|
|
3118
3114
|
}
|
|
3119
3115
|
} catch (e) {
|
|
3120
3116
|
}
|
|
@@ -6760,7 +6756,7 @@ if (typeof self === 'object') {
|
|
|
6760
6756
|
} else {
|
|
6761
6757
|
// Node.js or Web worker with no crypto support
|
|
6762
6758
|
try {
|
|
6763
|
-
var crypto$1 = require$$
|
|
6759
|
+
var crypto$1 = require$$0;
|
|
6764
6760
|
if (typeof crypto$1.randomBytes !== 'function')
|
|
6765
6761
|
throw new Error('Not supported');
|
|
6766
6762
|
|
|
@@ -11872,7 +11868,7 @@ EDDSA.prototype.isPoint = function isPoint(val) {
|
|
|
11872
11868
|
|
|
11873
11869
|
var elliptic = exports;
|
|
11874
11870
|
|
|
11875
|
-
elliptic.version = require$$0.version;
|
|
11871
|
+
elliptic.version = require$$0$1.version;
|
|
11876
11872
|
elliptic.utils = utils$o;
|
|
11877
11873
|
elliptic.rand = brorandExports;
|
|
11878
11874
|
elliptic.curve = curve;
|
|
@@ -16086,7 +16082,7 @@ class Identity {
|
|
|
16086
16082
|
globalThis.peernet.selectedAccount = new TextDecoder().decode(selected);
|
|
16087
16083
|
}
|
|
16088
16084
|
else {
|
|
16089
|
-
const importee = await import(/* webpackChunkName: "generate-account" */ './index-
|
|
16085
|
+
const importee = await import(/* webpackChunkName: "generate-account" */ './index-1ce30988.js');
|
|
16090
16086
|
const { identity, accounts } = await importee.default(password, this.network);
|
|
16091
16087
|
await globalThis.accountStore.put('public', JSON.stringify({ walletId: identity.walletId }));
|
|
16092
16088
|
await globalThis.walletStore.put('version', String(1));
|
|
@@ -16256,7 +16252,7 @@ class Peernet {
|
|
|
16256
16252
|
this.root = options.root;
|
|
16257
16253
|
const { RequestMessage, ResponseMessage, PeerMessage, PeerMessageResponse, PeernetMessage, DHTMessage, DHTMessageResponse, DataMessage, DataMessageResponse, PsMessage, ChatMessage, PeernetFile
|
|
16258
16254
|
// FolderMessageResponse
|
|
16259
|
-
} = await import(/* webpackChunkName: "messages" */ './messages-
|
|
16255
|
+
} = await import(/* webpackChunkName: "messages" */ './messages-e025829d.js');
|
|
16260
16256
|
/**
|
|
16261
16257
|
* proto Object containing protos
|
|
16262
16258
|
* @type {Object}
|
|
@@ -16323,7 +16319,7 @@ class Peernet {
|
|
|
16323
16319
|
if (this.#starting || this.#started)
|
|
16324
16320
|
return;
|
|
16325
16321
|
this.#starting = true;
|
|
16326
|
-
const importee = await import('./client-
|
|
16322
|
+
const importee = await import('./client-1d0234a7.js');
|
|
16327
16323
|
/**
|
|
16328
16324
|
* @access public
|
|
16329
16325
|
* @type {PeernetClient}
|
|
@@ -16758,4 +16754,4 @@ class Peernet {
|
|
|
16758
16754
|
}
|
|
16759
16755
|
globalThis.Peernet = Peernet;
|
|
16760
16756
|
|
|
16761
|
-
export { FormatInterface as F, LittlePubSub as L, MultiWallet as M, Peernet as P, base58$1 as b, commonjsGlobal as c, encrypt as e
|
|
16757
|
+
export { FormatInterface as F, LittlePubSub as L, MultiWallet as M, Peernet as P, base58$1 as b, commonjsGlobal as c, encrypt as e };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { P as default } from './peernet-
|
|
1
|
+
export { P as default } from './peernet-8a51792a.js';
|
|
2
2
|
import './value-157ab062.js';
|
package/package.json
CHANGED
package/rollup.config.js
CHANGED
|
@@ -18,17 +18,15 @@ export default [{
|
|
|
18
18
|
plugins: [
|
|
19
19
|
json(),
|
|
20
20
|
wasm(),
|
|
21
|
-
commonjs(
|
|
21
|
+
commonjs(),
|
|
22
22
|
resolve({
|
|
23
|
-
exclude: ['./swarm-client.js'],
|
|
24
23
|
preferBuiltins: false,
|
|
25
24
|
mainFields: ["browser", "module"]
|
|
26
25
|
}),
|
|
27
26
|
typescript({...tsconfig, outDir: './exports/browser'})
|
|
28
27
|
],
|
|
29
28
|
external: [
|
|
30
|
-
'./prompts/password.js'
|
|
31
|
-
'./swarm-client.js'
|
|
29
|
+
'./prompts/password.js'
|
|
32
30
|
]
|
|
33
31
|
}, {
|
|
34
32
|
input: ['./src/peernet.ts', './node_modules/@leofcoin/storage/exports/store.js'],
|
|
@@ -40,8 +38,7 @@ export default [{
|
|
|
40
38
|
typescript({...tsconfig, outDir: './exports'})
|
|
41
39
|
],
|
|
42
40
|
external: [
|
|
43
|
-
'./prompts/password.js'
|
|
44
|
-
'./swarm-client.js'
|
|
41
|
+
'./prompts/password.js'
|
|
45
42
|
]
|
|
46
43
|
}, {
|
|
47
44
|
input: ['./src/prompts/password/browser.js'],
|
|
@@ -55,18 +52,4 @@ export default [{
|
|
|
55
52
|
format: 'es',
|
|
56
53
|
file: './exports/src/prompts/password.js'
|
|
57
54
|
}
|
|
58
|
-
}, {
|
|
59
|
-
input: './node_modules/@leofcoin/peernet-swarm/exports/browser/client.js',
|
|
60
|
-
inlineDynamicImports: true,
|
|
61
|
-
output: {
|
|
62
|
-
format: 'es',
|
|
63
|
-
file: './exports/browser/swarm-client.js'
|
|
64
|
-
}
|
|
65
|
-
}, {
|
|
66
|
-
input: './node_modules/@leofcoin/peernet-swarm/exports/client.js',
|
|
67
|
-
inlineDynamicImports: true,
|
|
68
|
-
output: {
|
|
69
|
-
format: 'es',
|
|
70
|
-
file: './exports/swarm-client.js'
|
|
71
|
-
}
|
|
72
55
|
}]
|