s3deck 0.1.1 → 0.1.2

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/README.md CHANGED
@@ -10,11 +10,11 @@ all from your browser.
10
10
 
11
11
  [![npm version](https://img.shields.io/npm/v/s3deck?style=flat-square&logo=npm&color=cb3837)](https://www.npmjs.com/package/s3deck)
12
12
  [![npm downloads](https://img.shields.io/npm/dm/s3deck?style=flat-square&color=cb3837)](https://www.npmjs.com/package/s3deck)
13
- [![CI](https://img.shields.io/github/actions/workflow/status/kamdev-bharatai/s3deck/ci.yml?branch=main&style=flat-square&logo=github&label=CI)](https://github.com/kamdev-bharatai/s3deck/actions/workflows/ci.yml)
13
+ [![CI](https://img.shields.io/github/actions/workflow/status/kamdev-choudhary/decktools/ci.yml?branch=main&style=flat-square&logo=github&label=CI)](https://github.com/kamdev-choudhary/decktools/actions/workflows/ci.yml)
14
14
  [![Node.js](https://img.shields.io/badge/Node.js-20%2B-339933?style=flat-square&logo=nodedotjs&logoColor=white)](https://nodejs.org)
15
15
  [![TypeScript](https://img.shields.io/badge/TypeScript-strict-3178C6?style=flat-square&logo=typescript&logoColor=white)](https://www.typescriptlang.org)
16
16
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue?style=flat-square)](./LICENSE)
17
- [![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen?style=flat-square)](https://github.com/kamdev-bharatai/s3deck/pulls)
17
+ [![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen?style=flat-square)](https://github.com/kamdev-choudhary/decktools/pulls)
18
18
 
19
19
  [**Quick start**](#quick-start) ·
20
20
  [**Features**](#features) ·
@@ -29,7 +29,7 @@ all from your browser.
29
29
  > [!NOTE]
30
30
  > s3deck is pre-1.0. It is usable today, but options and APIs may change
31
31
  > between minor versions until 1.0. Check the
32
- > [releases](https://github.com/kamdev-bharatai/s3deck/releases) before upgrading.
32
+ > [releases](https://github.com/kamdev-choudhary/decktools/releases) before upgrading.
33
33
 
34
34
  ---
35
35
 
@@ -414,7 +414,7 @@ example.com {
414
414
  boundary is the key's IAM policy. A read-only key is the safest choice.
415
415
 
416
416
  Found a vulnerability? Please report it privately through
417
- [GitHub security advisories](https://github.com/kamdev-bharatai/s3deck/security/advisories/new)
417
+ [GitHub security advisories](https://github.com/kamdev-choudhary/decktools/security/advisories/new)
418
418
  rather than a public issue.
419
419
 
420
420
  ## Troubleshooting
@@ -430,10 +430,14 @@ rather than a public issue.
430
430
 
431
431
  ## Development
432
432
 
433
+ s3deck lives in the [decktools](https://github.com/kamdev-choudhary/decktools) monorepo, under
434
+ `tools/s3deck`.
435
+
433
436
  ```bash
434
- git clone https://github.com/kamdev-bharatai/s3deck.git
435
- cd s3deck
437
+ git clone https://github.com/kamdev-choudhary/decktools.git
438
+ cd decktools
436
439
  pnpm install
440
+ cd tools/s3deck
437
441
 
438
442
  # Optional: a local MinIO to develop against
439
443
  docker run -d -p 9000:9000 -p 9001:9001 minio/minio server /data --console-address :9001
@@ -451,6 +455,7 @@ Open <http://localhost:47716>.
451
455
  | `pnpm build` | Build the UI (Vite) and the CLI (tsdown) into `dist/` |
452
456
  | `pnpm start` | Run the built CLI |
453
457
  | `pnpm typecheck` | Type-check the server, the UI and the tests |
458
+ | `pnpm lint` | Lint with oxlint |
454
459
  | `pnpm test` | Unit and API tests (Vitest). Add `S3DECK_TEST_ENDPOINT` to also run the S3 integration tests |
455
460
  | `pnpm test:integration` | Integration tests against `http://localhost:9000` (or `$S3DECK_TEST_ENDPOINT`) |
456
461
  | `pnpm pack:check` | Build and list exactly what would be published |
@@ -489,12 +494,12 @@ web/
489
494
  ## Contributing
490
495
 
491
496
  Contributions are welcome! Bug reports and feature requests go in
492
- [issues](https://github.com/kamdev-bharatai/s3deck/issues). For code changes:
497
+ [issues](https://github.com/kamdev-choudhary/decktools/issues). For code changes:
493
498
 
494
499
  1. Fork the repo and create a branch from `main`.
495
500
  2. Run `pnpm dev` against a local MinIO (see [Development](#development)) and
496
501
  make your change.
497
- 3. Make sure `pnpm typecheck` and `pnpm build` pass.
502
+ 3. Make sure `pnpm check` passes at the repository root (lint, typecheck, tests, build).
498
503
  4. Open a pull request describing what changed and why.
499
504
 
500
505
  ## License
package/dist/cli.mjs CHANGED
@@ -25,7 +25,7 @@ import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
25
25
  import { fromNodeProviderChain } from "@aws-sdk/credential-providers";
26
26
  import { Command, Option } from "commander";
27
27
  // package.json
28
- var version = "0.1.0";
28
+ var version = "0.1.2";
29
29
  // src/s3/errors.ts
30
30
  /** A request that can't be carried out as asked (maps to HTTP 400). */
31
31
  var UserError = class extends Error {
@@ -1442,7 +1442,7 @@ var ActivityLog = class {
1442
1442
  for (const line of lines.slice(-2e3)) try {
1443
1443
  entries.push(JSON.parse(line));
1444
1444
  } catch {}
1445
- this.recent = entries.reverse();
1445
+ this.recent = entries.toReversed();
1446
1446
  }
1447
1447
  record(entry) {
1448
1448
  const full = {