@btc-vision/cli 1.0.3 → 1.0.4

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.
@@ -79,8 +79,7 @@ export class SearchCommand extends BaseCommand {
79
79
  this.logger.info(` OPNet Range: ${latestVersionInfo.opnetVersionRange}`);
80
80
  this.logger.info(` IPFS CID: ${latestVersionInfo.ipfsCid}`);
81
81
  this.logger.info(` Deprecated: ${latestVersionInfo.deprecated ? 'Yes' : 'No'}`);
82
- const publishDate = new Date(Number(latestVersionInfo.publishedAt) * 1000);
83
- this.logger.info(` Published: ${publishDate.toISOString().split('T')[0]}`);
82
+ this.logger.info(` Published at: Block ${latestVersionInfo.publishedAt}`);
84
83
  }
85
84
  this.logger.log('');
86
85
  this.logger.info('Install with:');
package/build/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@btc-vision/cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "description": "CLI for the OPNet plugin ecosystem - scaffolding, compilation, signing, and registry interaction",
6
6
  "author": "OP_NET",
@@ -36,12 +36,14 @@
36
36
  },
37
37
  "scripts": {
38
38
  "build": "gulp build",
39
+ "postbuild": "node -e \"if(process.platform!=='win32'){require('fs').chmodSync('build/index.js',0o755)}\"",
39
40
  "watch": "gulp watch",
40
41
  "clean": "gulp clean",
41
42
  "lint": "eslint src/",
42
43
  "format": "prettier --write src/",
43
44
  "start": "node build/index.js",
44
- "test": "echo \"Tests not yet implemented\""
45
+ "test": "echo \"Tests not yet implemented\"",
46
+ "prepublishOnly": "npm run build"
45
47
  },
46
48
  "dependencies": {
47
49
  "@btc-vision/bip32": "^6.0.3",
@@ -122,8 +122,7 @@ export class SearchCommand extends BaseCommand {
122
122
  this.logger.info(` IPFS CID: ${latestVersionInfo.ipfsCid}`);
123
123
  this.logger.info(` Deprecated: ${latestVersionInfo.deprecated ? 'Yes' : 'No'}`);
124
124
 
125
- const publishDate = new Date(Number(latestVersionInfo.publishedAt) * 1000);
126
- this.logger.info(` Published: ${publishDate.toISOString().split('T')[0]}`);
125
+ this.logger.info(` Published at: Block ${latestVersionInfo.publishedAt}`);
127
126
  }
128
127
 
129
128
  this.logger.log('');