cbyte 1.5.0 → 1.6.0
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/{cbyte.cjs → cbyte.js} +4 -2
- package/package.json +4 -4
package/{cbyte.cjs → cbyte.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// Increase listener limit to avoid warnings
|
|
4
|
-
require('events').defaultMaxListeners = 6000;
|
|
5
|
-
|
|
4
|
+
// require('events').defaultMaxListeners = 6000;
|
|
5
|
+
import evt from 'events';
|
|
6
6
|
import fs from 'fs';
|
|
7
7
|
import crypto from 'crypto';
|
|
8
8
|
import { Command } from 'commander';
|
|
@@ -13,6 +13,8 @@ import * as sha256 from 'multiformats/hashes/sha2';
|
|
|
13
13
|
import os from 'os';
|
|
14
14
|
import path from 'path';
|
|
15
15
|
|
|
16
|
+
evt.defaultMaxListeners = 6000;
|
|
17
|
+
|
|
16
18
|
const program = new Command();
|
|
17
19
|
let helia = null;
|
|
18
20
|
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cbyte",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.0",
|
|
5
5
|
"description": "Content-addressed deduplicated storage CLI using IPFS with automatic unpack extension retention",
|
|
6
|
-
"main": "cbyte.
|
|
6
|
+
"main": "cbyte.js",
|
|
7
7
|
"bin": {
|
|
8
|
-
"cbyte": "./cbyte.
|
|
8
|
+
"cbyte": "./cbyte.js"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"test": "node test.
|
|
11
|
+
"test": "node test.js"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"ipfs",
|