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 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('x402')
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.gateway}`);
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
@@ -6,7 +6,7 @@
6
6
  */
7
7
  interface UploadResponse {
8
8
  cid: string;
9
- gateway: string;
9
+ url: string;
10
10
  }
11
11
  /**
12
12
  * Uploads a file to api.x402.storage with automatic payment handling
package/dist/upload.js CHANGED
@@ -91,6 +91,6 @@ export async function uploadFile(filePath, privateKey) {
91
91
  const result = (await response.json());
92
92
  return {
93
93
  cid: result.cid,
94
- gateway: result.gateway,
94
+ url: result.url,
95
95
  };
96
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x402storage",
3
- "version": "1.0.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
- "x402": "./dist/index.js"
12
+ "x402storage": "./dist/index.js"
13
13
  },
14
14
  "files": [
15
15
  "dist"