evernode-js-client 0.6.21-definition-1.0 → 0.6.21-definition-1.2
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/index.js +1 -1
- package/package.json +4 -1
- package/postinstall.js/index.js +1 -0
package/index.js
CHANGED
@@ -54384,7 +54384,7 @@ class Defaults {
|
|
54384
54384
|
*/
|
54385
54385
|
static useNetwork(network) {
|
54386
54386
|
if (!Definitions[network])
|
54387
|
-
throw
|
54387
|
+
throw `Invalid network: ${network}`;
|
54388
54388
|
|
54389
54389
|
this.set(Definitions[network]);
|
54390
54390
|
}
|
package/package.json
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
],
|
7
7
|
"homepage": "https://github.com/HotPocketDev/evernode-js-client",
|
8
8
|
"license": "MIT",
|
9
|
-
"version": "0.6.21-definition-1.
|
9
|
+
"version": "0.6.21-definition-1.2",
|
10
10
|
"dependencies": {
|
11
11
|
"elliptic": "6.5.4",
|
12
12
|
"libsodium-wrappers": "0.7.10",
|
@@ -15,5 +15,8 @@
|
|
15
15
|
"xrpl": "2.2.1",
|
16
16
|
"xrpl-binary-codec": "1.4.2",
|
17
17
|
"xrpl-accountlib": "2.2.0"
|
18
|
+
},
|
19
|
+
"scripts": {
|
20
|
+
"postinstall": "node postinstall.js"
|
18
21
|
}
|
19
22
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
(()=>{var e={147:e=>{"use strict";e.exports=require("fs")},687:e=>{"use strict";e.exports=require("https")},17:e=>{"use strict";e.exports=require("path")}};var r={};function __nccwpck_require__(s){var t=r[s];if(t!==undefined){return t.exports}var o=r[s]={exports:{}};var n=true;try{e[s](o,o.exports,__nccwpck_require__);n=false}finally{if(n)delete r[s]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var s={};(()=>{const e=__nccwpck_require__(147);const r=__nccwpck_require__(17);const s=__nccwpck_require__(687);const t="https://raw.githubusercontent.com/EvernodeXRPL/evernode-resources/main/definitions/definitions.json";const o="./resources/definitions.json";async function main(){s.get(t,(s=>{let t=[];console.log("Server info response:");const n=s.headers&&s.headers.date?s.headers.date:"no response date";console.log(" Status Code:",s.statusCode);console.log(" Date in header:",n);if(s.statusCode!=200)throw`Error: ${s.statusMessage}`;s.on("data",(e=>{t.push(e)}));s.on("end",(()=>{console.log(" Response ended: ");const s=r.dirname(o);if(!e.existsSync(s))e.mkdirSync(s,{recursive:true});e.writeFileSync(o,Buffer.concat(t).toString())}))})).on("error",(e=>{throw`Error: ${e.message}`}))}main()})();module.exports=s})();
|