x402storage 1.0.0 → 1.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.
- package/dist/index.js +2 -2
- package/dist/upload.d.ts +1 -1
- package/dist/upload.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { FileNotFoundError, UploadError } from './errors.js';
|
|
|
8
8
|
validateEnvironment();
|
|
9
9
|
const program = new Command();
|
|
10
10
|
program
|
|
11
|
-
.name('
|
|
11
|
+
.name('x402storage')
|
|
12
12
|
.description('Upload files to x402.storage with permanent IPFS storage')
|
|
13
13
|
.version('1.0.0')
|
|
14
14
|
.argument('<file>', 'file path to upload')
|
|
@@ -19,7 +19,7 @@ program
|
|
|
19
19
|
const privateKey = getPrivateKey();
|
|
20
20
|
const result = await uploadFile(resolvedPath, privateKey);
|
|
21
21
|
console.log('Success! File stored permanently.');
|
|
22
|
-
console.log(`URL: ${result.
|
|
22
|
+
console.log(`URL: ${result.url}`);
|
|
23
23
|
console.log(`CID: ${result.cid}`);
|
|
24
24
|
process.exit(0);
|
|
25
25
|
}
|
package/dist/upload.d.ts
CHANGED
package/dist/upload.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x402storage",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Upload files to x402.storage from the command line",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "https://github.com/rawgroundbeef/x402.storage"
|
|
10
10
|
},
|
|
11
11
|
"bin": {
|
|
12
|
-
"
|
|
12
|
+
"x402storage": "./dist/index.js"
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
15
|
"dist"
|