@electrum-cash/servers 3.0.4-development.12631889024 → 3.1.0-development.12714134219

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # What is this?
2
2
 
3
- This repository houses a list of electrum servers operating on the Bitcoin Cash (BCH) network. The list can be used by anyone, but is intended to provide a default set of servers for the `@electrum-cash/library` package.
3
+ This repository houses a list of electrum servers operating on the Bitcoin Cash (BCH) network. The list can be used by anyone, but is intended to provide a default set of servers for the `@electrum-cash/*` packages.
4
4
 
5
5
  # How can I contribute?
6
6
 
@@ -0,0 +1,19 @@
1
+ //#region source/interfaces.d.ts
2
+ interface ElectrumTransports {
3
+ tcp?: number;
4
+ tcp_tls?: number;
5
+ ws?: number;
6
+ wss?: number;
7
+ }
8
+ interface ElectrumServer {
9
+ host: string;
10
+ version: string;
11
+ transports: ElectrumTransports;
12
+ }
13
+ type ElectrumServers = ElectrumServer[];
14
+ //#endregion
15
+ //#region source/servers.d.ts
16
+ declare const electrumServers: ElectrumServers;
17
+ //#endregion
18
+ export { ElectrumServer, ElectrumServers, ElectrumTransports, electrumServers };
19
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../source/interfaces.ts","../source/servers.ts"],"mappings":";UACiB,kBAAA;EAAA,GAAA;EAAA,OAAA;EAAA,EAAA;EAAA,GAAA;AAAA;AAAA,UASA,cAAA;EAAA,IAAA;EAAA,OAAA;EAAA,UAAA,EAIJ,kBAAA;AAAA;AAAA,KAID,eAAA,GAAkB,cAAA;;;cCdjB,eAAA,EAAiB,eAAA"}
package/dist/index.mjs CHANGED
@@ -1,41 +1,24 @@
1
-
2
- function $parcel$export(e, n, v, s) {
3
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
4
- }
5
- var $c047c2d2e8e5c125$exports = {};
6
-
7
- $parcel$export($c047c2d2e8e5c125$exports, "electrumServers", () => $c047c2d2e8e5c125$export$f504d3db6a0a89d2);
8
- // Import required interfaces.
9
- const $c047c2d2e8e5c125$export$f504d3db6a0a89d2 = [
10
- // Imaginary Usernames servers:
11
- {
12
- host: 'bch.imaginary.cash',
13
- version: '1.5.3',
14
- transports: {
15
- tcp: 50001,
16
- tcp_tls: 50002,
17
- ws: 50003,
18
- wss: 50004
19
- }
20
- },
21
- {
22
- host: 'electrum.imaginary.cash',
23
- version: '1.5.3',
24
- transports: {
25
- tcp: 50001,
26
- tcp_tls: 50002,
27
- ws: 50003,
28
- wss: 50004
29
- }
30
- }
31
- ];
32
-
33
-
34
- var $e83d2e7688025acd$exports = {};
35
- // Define the structure used to provide port numbers for supported transports.
36
-
37
-
38
-
39
-
40
- export {$c047c2d2e8e5c125$export$f504d3db6a0a89d2 as electrumServers};
41
- //# sourceMappingURL=index.mjs.map
1
+ //#region source/servers.ts
2
+ const electrumServers = [{
3
+ host: "bch.imaginary.cash",
4
+ version: "1.5.3",
5
+ transports: {
6
+ tcp: 50001,
7
+ tcp_tls: 50002,
8
+ ws: 50003,
9
+ wss: 50004
10
+ }
11
+ }, {
12
+ host: "electrum.imaginary.cash",
13
+ version: "1.5.3",
14
+ transports: {
15
+ tcp: 50001,
16
+ tcp_tls: 50002,
17
+ ws: 50003,
18
+ wss: 50004
19
+ }
20
+ }];
21
+
22
+ //#endregion
23
+ export { electrumServers };
24
+ //# 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":["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"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../source/servers.ts"],"sourcesContent":["// 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"],"mappings":";AAIA,MAAa,kBACb,CAEC;CACC,MAAM;CACN,SAAS;CACT,YACA;EACC,KAAK;EACL,SAAS;EACT,IAAK;EACL,KAAK;EACL;CACD,EACD;CACC,MAAM;CACN,SAAS;CACT,YACA;EACC,KAAK;EACL,SAAS;EACT,IAAK;EACL,KAAK;EACL;CACD,CACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@electrum-cash/servers",
3
- "version": "3.0.4-development.12631889024",
3
+ "version": "3.1.0-development.12714134219",
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": {
@@ -18,41 +18,45 @@
18
18
  "bitcoin cash"
19
19
  ],
20
20
  "type": "module",
21
- "types": "./dist/index.d.ts",
21
+ "types": "./dist/index.d.mts",
22
22
  "source": "./source/index.ts",
23
23
  "module": "./dist/index.mjs",
24
24
  "exports": {
25
- "types": "./dist/index.d.ts",
25
+ "types": "./dist/index.d.mts",
26
26
  "default": "./dist/index.mjs"
27
27
  },
28
28
  "files": [
29
29
  "dist"
30
30
  ],
31
31
  "scripts": {
32
- "clean": "del ./dist",
33
- "build": "npm run clean && parcel build",
34
- "analyze": "parcel build --reporter @parcel/reporter-bundle-analyzer",
35
- "docs": "jsdoc -c jsdoc.json",
36
- "lint": "eslint . --ext .ts",
32
+ "build": "tsdown --clean --sourcemap source/index.ts",
33
+ "analyze": "tsdown --clean --no-fixed-extension --sourcemap source/index.ts && esbuild-analyzer dist/",
34
+ "docs": "typedoc --hideGenerator --categorizeByGroup",
35
+ "lint": "eslint",
37
36
  "syntax": "tsc --noEmit",
38
37
  "spellcheck": "cspell 'source/**' 'test/**' 'examples/**'",
39
38
  "test": "vitest --dir test/ --test-timeout=15000 --run --coverage"
40
39
  },
41
40
  "devDependencies": {
42
- "@electrum-cash/network": "^4.1.4",
43
- "@electrum-cash/tcp-socket": "^1.0.0",
44
- "@electrum-cash/web-socket": "^1.0.0",
45
- "@generalprotocols/cspell-dictionary": "git+https://gitlab.com/GeneralProtocols/cspell-dictionary.git",
46
- "@generalprotocols/eslint-config": "gitlab:GeneralProtocols/eslint-config",
47
- "@parcel/packager-ts": "^2.9.3",
48
- "@parcel/transformer-typescript-types": "^2.9.3",
41
+ "@chalp/eslint-airbnb": "^1.3.0",
42
+ "@electrum-cash/eslint-config": "^1.1.0",
43
+ "@electrum-cash/network": "^4.2.0",
44
+ "@electrum-cash/tcp-socket": "^1.1.1",
45
+ "@electrum-cash/web-socket": "^1.1.1",
46
+ "@stylistic/eslint-plugin": "^5.7.0",
47
+ "@typescript-eslint/eslint-plugin": "^8.53.0",
48
+ "@typescript-eslint/parser": "^8.53.0",
49
49
  "@vitest/coverage-v8": "^3.2.4",
50
- "cspell": "^7.3.8",
51
- "del-cli": "^7.0.0",
52
- "eslint": "^8.21.0",
53
- "eslint-plugin-import": "^2.22.0",
54
- "parcel": "^2.16.3",
50
+ "cspell": "^9.6.0",
51
+ "eslint": "^9.39.2",
52
+ "tsdown": "^0.20.0-beta.3",
53
+ "typedoc": "^0.28.16",
54
+ "typedoc-plugin-coverage": "^4.0.2",
55
55
  "typescript": "^5.2.2",
56
+ "typescript-eslint": "^8.53.0",
56
57
  "vitest": "^3.2.4"
58
+ },
59
+ "dependencies": {
60
+ "@viz-kit/esbuild-analyzer": "^1.0.0"
57
61
  }
58
62
  }
package/dist/index.d.ts DELETED
@@ -1,15 +0,0 @@
1
- export interface ElectrumTransports {
2
- tcp?: number;
3
- tcp_tls?: number;
4
- ws?: number;
5
- wss?: number;
6
- }
7
- export interface ElectrumServer {
8
- host: string;
9
- version: string;
10
- transports: ElectrumTransports;
11
- }
12
- export type ElectrumServers = ElectrumServer[];
13
- export const electrumServers: ElectrumServers;
14
-
15
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}