@electrum-cash/servers 3.0.2 → 3.0.3

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.
@@ -1 +1 @@
1
- {"mappings":"AACA;IAEC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;CACb;AAGD;IAEC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,kBAAkB,CAAC;CAC/B;AAGD,8BAA8B,cAAc,EAAE,CAAC;ACd/C,OAAO,MAAM,iBAAiB,eAyB7B,CAAC","sources":["lib/lib/interfaces.ts","lib/lib/servers.ts","lib/lib/index.ts","lib/index.ts"],"sourcesContent":[null,null,null,"export * from './servers';\nexport * from './interfaces';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
1
+ {"mappings":"AACA;IAEC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;CACb;AAGD;IAEC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,kBAAkB,CAAC;CAC/B;AAGD,8BAA8B,cAAc,EAAE,CAAC;ACd/C,OAAO,MAAM,iBAAiB,eAyB7B,CAAC","sources":["source/source/interfaces.ts","source/source/servers.ts","source/source/index.ts","source/index.ts"],"sourcesContent":[null,null,null,"export * from './servers';\nexport * from './interfaces';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
package/dist/index.mjs CHANGED
@@ -2,15 +2,15 @@
2
2
  function $parcel$export(e, n, v, s) {
3
3
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
4
  }
5
- var $4de372b65379bf9a$exports = {};
5
+ var $c047c2d2e8e5c125$exports = {};
6
6
 
7
- $parcel$export($4de372b65379bf9a$exports, "electrumServers", () => $4de372b65379bf9a$export$f504d3db6a0a89d2);
7
+ $parcel$export($c047c2d2e8e5c125$exports, "electrumServers", () => $c047c2d2e8e5c125$export$f504d3db6a0a89d2);
8
8
  // Import required interfaces.
9
- const $4de372b65379bf9a$export$f504d3db6a0a89d2 = [
9
+ const $c047c2d2e8e5c125$export$f504d3db6a0a89d2 = [
10
10
  // Imaginary Usernames servers:
11
11
  {
12
12
  host: "bch.imaginary.cash",
13
- version: "1.5.1",
13
+ version: "1.5.3",
14
14
  transports: {
15
15
  tcp: 50001,
16
16
  tcp_tls: 50002,
@@ -20,7 +20,7 @@ const $4de372b65379bf9a$export$f504d3db6a0a89d2 = [
20
20
  },
21
21
  {
22
22
  host: "electrum.imaginary.cash",
23
- version: "1.5.1",
23
+ version: "1.5.3",
24
24
  transports: {
25
25
  tcp: 50001,
26
26
  tcp_tls: 50002,
@@ -31,11 +31,11 @@ const $4de372b65379bf9a$export$f504d3db6a0a89d2 = [
31
31
  ];
32
32
 
33
33
 
34
- var $a192ea5a4eec42d4$exports = {};
34
+ var $e83d2e7688025acd$exports = {};
35
35
  // Define the structure used to provide port numbers for supported transports.
36
36
 
37
37
 
38
38
 
39
39
 
40
- export {$4de372b65379bf9a$export$f504d3db6a0a89d2 as electrumServers};
40
+ export {$c047c2d2e8e5c125$export$f504d3db6a0a89d2 as electrumServers};
41
41
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;ACAA,8BAA8B;AAIvB,MAAM,4CACb;IACC,+BAA+B;IAC/B;QACC,MAAM;QACN,SAAS;QACT,YACA;YACC,KAAK;YACL,SAAS;YACT,IAAK;YACL,KAAK;QACN;IACD;IACA;QACC,MAAM;QACN,SAAS;QACT,YACA;YACC,KAAK;YACL,SAAS;YACT,IAAK;YACL,KAAK;QACN;IACD;CACA;;;;AC7BD,8EAA8E;;","sources":["lib/index.ts","lib/servers.ts","lib/interfaces.ts"],"sourcesContent":["export * from './servers';\nexport * from './interfaces';\n","// Import required interfaces.\nimport type { ElectrumServers } from './interfaces';\n\n// Define the list of available Electrum Cash servers.\nexport const electrumServers: ElectrumServers =\n[\n\t// Imaginary Usernames servers:\n\t{\n\t\thost: 'bch.imaginary.cash',\n\t\tversion: '1.5.1',\n\t\ttransports:\n\t\t{\n\t\t\ttcp: 50001,\n\t\t\ttcp_tls: 50002,\n\t\t\tws: 50003,\n\t\t\twss: 50004,\n\t\t},\n\t},\n\t{\n\t\thost: 'electrum.imaginary.cash',\n\t\tversion: '1.5.1',\n\t\ttransports:\n\t\t{\n\t\t\ttcp: 50001,\n\t\t\ttcp_tls: 50002,\n\t\t\tws: 50003,\n\t\t\twss: 50004,\n\t\t},\n\t},\n];\n","// Define the structure used to provide port numbers for supported transports.\nexport interface ElectrumTransports\n{\n\ttcp?: number;\n\ttcp_tls?: number;\n\tws?: number;\n\twss?: number;\n}\n\n// Define the structure used to represent an electrum server.\nexport interface ElectrumServer\n{\n\thost: string;\n\tversion: string;\n\ttransports: ElectrumTransports;\n}\n\n// Define the structure of the default electrum server list.\nexport type ElectrumServers = ElectrumServer[];\n"],"names":[],"version":3,"file":"index.mjs.map"}
1
+ {"mappings":";;;;;;;ACAA,8BAA8B;AAIvB,MAAM,4CACb;IACC,+BAA+B;IAC/B;QACC,MAAM;QACN,SAAS;QACT,YACA;YACC,KAAK;YACL,SAAS;YACT,IAAK;YACL,KAAK;QACN;IACD;IACA;QACC,MAAM;QACN,SAAS;QACT,YACA;YACC,KAAK;YACL,SAAS;YACT,IAAK;YACL,KAAK;QACN;IACD;CACA;;;;AC7BD,8EAA8E;;","sources":["source/index.ts","source/servers.ts","source/interfaces.ts"],"sourcesContent":["export * from './servers';\nexport * from './interfaces';\n","// Import required interfaces.\nimport type { ElectrumServers } from './interfaces';\n\n// Define the list of available Electrum Cash servers.\nexport const electrumServers: ElectrumServers =\n[\n\t// Imaginary Usernames servers:\n\t{\n\t\thost: 'bch.imaginary.cash',\n\t\tversion: '1.5.3',\n\t\ttransports:\n\t\t{\n\t\t\ttcp: 50001,\n\t\t\ttcp_tls: 50002,\n\t\t\tws: 50003,\n\t\t\twss: 50004,\n\t\t},\n\t},\n\t{\n\t\thost: 'electrum.imaginary.cash',\n\t\tversion: '1.5.3',\n\t\ttransports:\n\t\t{\n\t\t\ttcp: 50001,\n\t\t\ttcp_tls: 50002,\n\t\t\tws: 50003,\n\t\t\twss: 50004,\n\t\t},\n\t},\n];\n","// Define the structure used to provide port numbers for supported transports.\nexport interface ElectrumTransports\n{\n\ttcp?: number;\n\ttcp_tls?: number;\n\tws?: number;\n\twss?: number;\n}\n\n// Define the structure used to represent an electrum server.\nexport interface ElectrumServer\n{\n\thost: string;\n\tversion: string;\n\ttransports: ElectrumTransports;\n}\n\n// Define the structure of the default electrum server list.\nexport type ElectrumServers = ElectrumServer[];\n"],"names":[],"version":3,"file":"index.mjs.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@electrum-cash/servers",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "a list of default servers to use with the @electrum-cash/library package.",
5
5
  "homepage": "https://gitlab.com/electrum-cash/servers#readme",
6
6
  "bugs": {
@@ -15,19 +15,16 @@
15
15
  "keywords": [
16
16
  "electrum",
17
17
  "bitcoin",
18
- "javascript",
19
- "typescript"
18
+ "bitcoin cash"
20
19
  ],
21
- "source": "lib/index.ts",
22
20
  "type": "module",
23
- "main": "dist/index.cjs",
24
- "module": "dist/index.mjs",
21
+ "types": "./dist/index.d.ts",
22
+ "source": "./source/index.ts",
23
+ "module": "./dist/index.mjs",
25
24
  "exports": {
26
- "require": "./dist/index.cjs",
27
- "import": "./dist/index.mjs",
28
- "browser": "./dist/browser.mjs"
25
+ "types": "./dist/index.d.ts",
26
+ "default": "./dist/index.mjs"
29
27
  },
30
- "types": "dist/index.d.ts",
31
28
  "files": [
32
29
  "dist"
33
30
  ],
@@ -38,11 +35,11 @@
38
35
  "docs": "jsdoc -c jsdoc.json",
39
36
  "lint": "eslint . --ext .ts",
40
37
  "syntax": "tsc --noEmit",
41
- "spellcheck": "cspell 'lib/**' 'test/**' 'examples/**'",
38
+ "spellcheck": "cspell 'source/**' 'test/**' 'examples/**'",
42
39
  "test": "vitest --dir test/ --test-timeout=15000 --run --coverage"
43
40
  },
44
41
  "devDependencies": {
45
- "@electrum-cash/library": "^3.2.0-r1",
42
+ "@electrum-cash/network": "^3.2.0-r2",
46
43
  "@generalprotocols/cspell-dictionary": "git+https://gitlab.com/GeneralProtocols/cspell-dictionary.git",
47
44
  "@generalprotocols/eslint-config": "gitlab:GeneralProtocols/eslint-config",
48
45
  "@parcel/packager-ts": "^2.9.3",
package/dist/index.cjs DELETED
@@ -1,59 +0,0 @@
1
-
2
- function $parcel$exportWildcard(dest, source) {
3
- Object.keys(source).forEach(function(key) {
4
- if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
5
- return;
6
- }
7
-
8
- Object.defineProperty(dest, key, {
9
- enumerable: true,
10
- get: function get() {
11
- return source[key];
12
- }
13
- });
14
- });
15
-
16
- return dest;
17
- }
18
-
19
- function $parcel$export(e, n, v, s) {
20
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
21
- }
22
- var $c7dd0626a379ef03$exports = {};
23
-
24
- $parcel$export($c7dd0626a379ef03$exports, "electrumServers", () => $c7dd0626a379ef03$export$f504d3db6a0a89d2);
25
- // Import required interfaces.
26
- const $c7dd0626a379ef03$export$f504d3db6a0a89d2 = [
27
- // Imaginary Usernames servers:
28
- {
29
- host: "bch.imaginary.cash",
30
- version: "1.5.1",
31
- transports: {
32
- tcp: 50001,
33
- tcp_tls: 50002,
34
- ws: 50003,
35
- wss: 50004
36
- }
37
- },
38
- {
39
- host: "electrum.imaginary.cash",
40
- version: "1.5.1",
41
- transports: {
42
- tcp: 50001,
43
- tcp_tls: 50002,
44
- ws: 50003,
45
- wss: 50004
46
- }
47
- }
48
- ];
49
-
50
-
51
- var $5fc020d2a13224ff$exports = {};
52
- // Define the structure used to provide port numbers for supported transports.
53
-
54
-
55
- $parcel$exportWildcard(module.exports, $c7dd0626a379ef03$exports);
56
- $parcel$exportWildcard(module.exports, $5fc020d2a13224ff$exports);
57
-
58
-
59
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;ACAA,8BAA8B;AAIvB,MAAM,4CACb;IACC,+BAA+B;IAC/B;QACC,MAAM;QACN,SAAS;QACT,YACA;YACC,KAAK;YACL,SAAS;YACT,IAAK;YACL,KAAK;QACN;IACD;IACA;QACC,MAAM;QACN,SAAS;QACT,YACA;YACC,KAAK;YACL,SAAS;YACT,IAAK;YACL,KAAK;QACN;IACD;CACA;;;;AC7BD,8EAA8E;;","sources":["lib/index.ts","lib/servers.ts","lib/interfaces.ts"],"sourcesContent":["export * from './servers';\nexport * from './interfaces';\n","// Import required interfaces.\nimport type { ElectrumServers } from './interfaces';\n\n// Define the list of available Electrum Cash servers.\nexport const electrumServers: ElectrumServers =\n[\n\t// Imaginary Usernames servers:\n\t{\n\t\thost: 'bch.imaginary.cash',\n\t\tversion: '1.5.1',\n\t\ttransports:\n\t\t{\n\t\t\ttcp: 50001,\n\t\t\ttcp_tls: 50002,\n\t\t\tws: 50003,\n\t\t\twss: 50004,\n\t\t},\n\t},\n\t{\n\t\thost: 'electrum.imaginary.cash',\n\t\tversion: '1.5.1',\n\t\ttransports:\n\t\t{\n\t\t\ttcp: 50001,\n\t\t\ttcp_tls: 50002,\n\t\t\tws: 50003,\n\t\t\twss: 50004,\n\t\t},\n\t},\n];\n","// Define the structure used to provide port numbers for supported transports.\nexport interface ElectrumTransports\n{\n\ttcp?: number;\n\ttcp_tls?: number;\n\tws?: number;\n\twss?: number;\n}\n\n// Define the structure used to represent an electrum server.\nexport interface ElectrumServer\n{\n\thost: string;\n\tversion: string;\n\ttransports: ElectrumTransports;\n}\n\n// Define the structure of the default electrum server list.\nexport type ElectrumServers = ElectrumServer[];\n"],"names":[],"version":3,"file":"index.cjs.map"}