@nullpay/cli 1.0.2 → 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.
@@ -172,19 +172,6 @@ async function pollForHash(salt, maxRetries = 60) {
172
172
  }
173
173
  return null;
174
174
  }
175
- function updateGitignore(projectRoot) {
176
- const filePath = path.join(projectRoot, '.gitignore');
177
- const entry = 'nullpay.json';
178
- const note = '# NullPay - contains sensitive salt values';
179
- if (fs.existsSync(filePath)) {
180
- const content = fs.readFileSync(filePath, 'utf-8');
181
- if (!content.includes(entry)) {
182
- fs.appendFileSync(filePath, `\n${note}\n${entry}\n`);
183
- }
184
- return;
185
- }
186
- fs.writeFileSync(filePath, `${note}\n${entry}\n`);
187
- }
188
175
  function renderInvoiceCard(inv, index) {
189
176
  const typeLabel = inv.type === 'multipay'
190
177
  ? tag('MULTI-PAY', C.brand)
@@ -499,7 +486,6 @@ async function onboard() {
499
486
  invoices: generatedInvoices,
500
487
  };
501
488
  fs.writeFileSync(outputPath, JSON.stringify(output, null, 2));
502
- updateGitignore(projectRoot);
503
489
  blank();
504
490
  blank();
505
491
  line(rule('='));
@@ -516,8 +502,6 @@ async function onboard() {
516
502
  kv('Merchant', resolvedAddress, C.brandDim);
517
503
  kv('Deployed', `${generatedInvoices.length} / ${allInvoices.length} invoices`, C.success.bold);
518
504
  blank();
519
- line(` ${C.gold('!')} ${C.slate('nullpay.json added to .gitignore - keep salts private')}`);
520
- blank();
521
505
  line(rule('-'));
522
506
  blank();
523
507
  line(` ${C.white.bold('Usage')}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nullpay/cli",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "NullPay CLI — Developer onboarding and invoice management tools",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {