@tiddlywiki/mws 0.1.3 → 0.1.5

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/mws.js CHANGED
@@ -16975,6 +16975,7 @@ function getCLI(commands2) {
16975
16975
  }).helpCommand(true);
16976
16976
  Object.keys(commands2).forEach((key) => {
16977
16977
  const c = commands2[key];
16978
+ if (c.info.internal && !process.env.MWSDEV) return;
16978
16979
  if (c.info.name === "help") return;
16979
16980
  if (c.info.command) return void c.info.command(program2);
16980
16981
  const command = program2.command(c.info.name);
@@ -29190,7 +29191,6 @@ var _Streamer = class _Streamer {
29190
29191
  });
29191
29192
  return new Promise((resolve11, reject) => {
29192
29193
  sender.on("error", (err) => Promise.resolve().then(async () => {
29193
- console.log(err);
29194
29194
  if (err === 404 || err?.statusCode === 404) {
29195
29195
  return await on404?.() ?? this.sendEmpty(404);
29196
29196
  } else {
@@ -31139,7 +31139,7 @@ var package_default = {
31139
31139
  name: "@tiddlywiki/mws",
31140
31140
  description: "TiddlyWiki Multiple Wiki Server",
31141
31141
  private: false,
31142
- version: "0.1.0",
31142
+ version: "0.1.4",
31143
31143
  bin: {
31144
31144
  mws: "./mws.run.mjs"
31145
31145
  },
@@ -31176,6 +31176,7 @@ var package_default = {
31176
31176
  node: ">=18"
31177
31177
  },
31178
31178
  scripts: {
31179
+ "install-android": `GYP_DEFINES="android_ndk_path=''" npm install`,
31179
31180
  docs: "node scripts.mjs docs",
31180
31181
  start: "node scripts.mjs start",
31181
31182
  certs: "(cd dev && bash localhost_certs.sh)",
@@ -31183,13 +31184,11 @@ var package_default = {
31183
31184
  build: "tsup && npm run build:admin",
31184
31185
  "build:admin": "node scripts.mjs client-build",
31185
31186
  "build:client": "cd plugins/client && tsc",
31186
- "install-android": `GYP_DEFINES="android_ndk_path=''" npm install`,
31187
- "prisma:format": "prettier --write prisma/client/*.js prisma/client/*/*.js",
31188
- "prisma:generate": "node scripts.mjs prisma:generate",
31189
31187
  "dev:init-store": "rm -rf dev/wiki/store && DEBUG= npm start init-store",
31190
31188
  env: "env",
31191
31189
  test: "node scripts.mjs test",
31192
- prepublishOnly: "npm run build",
31190
+ "prisma:format": "prettier --write prisma/client/*.js prisma/client/*/*.js",
31191
+ "prisma:generate": "node scripts.mjs prisma:generate",
31193
31192
  "prisma:migrate": "DATABASE_URL=file:test.sqlite npx prisma migrate dev --create-only --skip-generate --schema prisma/schema.prisma"
31194
31193
  },
31195
31194
  dependencies: {
@@ -32529,7 +32528,7 @@ var info5 = {
32529
32528
  "json: read JSON from stdin\noptions: read key=value pairs from the command line\nhelp: print options for the specified endpoint"
32530
32529
  ]
32531
32530
  ],
32532
- internal: false
32531
+ internal: true
32533
32532
  };
32534
32533
  var _Command5 = class _Command5 extends BaseCommand {
32535
32534
  async execute() {