@auersperg/flare 0.3.5 → 0.3.6

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/cli/flare.js CHANGED
@@ -3,7 +3,7 @@
3
3
  // packages/flare/package.json
4
4
  var package_default = {
5
5
  name: "@auersperg/flare",
6
- version: "0.3.5",
6
+ version: "0.3.6",
7
7
  license: "MIT",
8
8
  type: "module",
9
9
  description: "Flare client, server declarations and development CLI",
@@ -23,7 +23,7 @@ async function collectCatalog(database, now = Date.now()) {
23
23
  // packages/core/package.json
24
24
  var package_default = {
25
25
  name: "@flare/platform",
26
- version: "0.3.5",
26
+ version: "0.3.6",
27
27
  type: "module",
28
28
  license: "MIT",
29
29
  private: true,
@@ -402,9 +402,15 @@ function applicationUrl(base, id, env, alias) {
402
402
 
403
403
  // packages/core/src/admin.ts
404
404
  function runtime(env) {
405
- return new Proxy({}, {
406
- get: (_target, key) => (...args) => env.RUNTIME.command(String(key), args).then(unwrap)
407
- });
405
+ return {
406
+ configure: (config) => env.RUNTIME.command("configure", [config]).then(unwrap),
407
+ deploy: (scope, bundle, expected) => env.RUNTIME.command("deploy", [scope, bundle, expected]).then(unwrap),
408
+ admin: (scope, op, input) => env.RUNTIME.command("admin", [scope, op, input]).then(unwrap),
409
+ devIdentity: (scope, subject) => env.RUNTIME.command("devIdentity", [scope, subject]).then(unwrap),
410
+ publishAlias: (alias, project) => env.RUNTIME.command("publishAlias", [alias, project]).then(unwrap),
411
+ destroy: (scope) => env.RUNTIME.command("destroy", [scope]).then(unwrap),
412
+ prepareDestroy: (scope) => env.RUNTIME.command("prepareDestroy", [scope]).then(unwrap)
413
+ };
408
414
  }
409
415
  var json2 = (data, status = 200) => Response.json(data, {
410
416
  status,
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "format": 1,
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "stateFormat": 1,
5
5
  "protocol": 1,
6
6
  "runtimeAbi": 4,
7
7
  "compatibilityDate": "2026-10-10",
8
8
  "wranglerVersion": "4.149.0",
9
9
  "upgradeFrom": [
10
- "0.3.4"
10
+ "0.3.5"
11
11
  ],
12
12
  "files": [
13
13
  {
14
14
  "path": "admin.js",
15
- "bytes": 34968,
16
- "sha256": "6423e02eccc1b1029ad67f6b46f8dc3fa87bc718bae343832b8043047a95a78a"
15
+ "bytes": 35532,
16
+ "sha256": "9d3ed8e3358e2096a252f9f7ee245d835046332d481245471277837fbdb76ea3"
17
17
  },
18
18
  {
19
19
  "path": "dashboard/_astro/auth-view.UTGGCEHc.js",
@@ -187,9 +187,9 @@
187
187
  },
188
188
  {
189
189
  "path": "runtime.js",
190
- "bytes": 346794,
191
- "sha256": "70c81434b4eb1cfd8926662285f98a17218cc2dd244d4e3240fa61883078348e"
190
+ "bytes": 348181,
191
+ "sha256": "5c67424f66746cd04ab0380737af6ef7d2e131fa18e95b4ca1532015925d05b9"
192
192
  }
193
193
  ],
194
- "digest": "93fa2857c7f7536138cb3e3cb25d20739d058b3c9476c8d23dfda76b3d13a8d3"
194
+ "digest": "7693b5a3c9dfa589dea20618a0fcfe348841e9ffdf6beba78aecb200cd27256c"
195
195
  }
@@ -529,7 +529,7 @@ class PasswordAuth {
529
529
  // packages/core/package.json
530
530
  var package_default = {
531
531
  name: "@flare/platform",
532
- version: "0.3.5",
532
+ version: "0.3.6",
533
533
  type: "module",
534
534
  license: "MIT",
535
535
  private: true,
@@ -7841,9 +7841,26 @@ function aliases(env) {
7841
7841
  }
7842
7842
  function getSupervisor(env, scope) {
7843
7843
  const stub = env.SUPERVISORS.getByName(scope);
7844
- return new Proxy({}, {
7845
- get: (_target, key) => key === "fetch" ? (request) => stub.fetch(request) : (...args) => stub.dispatch(String(key), args).then(unwrap)
7846
- });
7844
+ return {
7845
+ fetch: (request) => stub.fetch(request),
7846
+ authCommand: (...args) => stub.dispatch("authCommand", args).then(unwrap),
7847
+ application: (...args) => stub.dispatch("application", args).then(unwrap),
7848
+ socketIdentity: (...args) => stub.dispatch("socketIdentity", args).then(unwrap),
7849
+ configuration: (...args) => stub.dispatch("configuration", args).then(unwrap),
7850
+ configure: (...args) => stub.dispatch("configure", args).then(unwrap),
7851
+ publish: (...args) => stub.dispatch("publish", args).then(unwrap),
7852
+ activate: (...args) => stub.dispatch("activate", args).then(unwrap),
7853
+ admin: (...args) => stub.dispatch("admin", args).then(unwrap),
7854
+ authenticate: (...args) => stub.dispatch("authenticate", args).then(unwrap),
7855
+ consumeTicket: (...args) => stub.dispatch("consumeTicket", args).then(unwrap),
7856
+ ticket: (...args) => stub.dispatch("ticket", args).then(unwrap),
7857
+ call: (...args) => stub.dispatch("call", args).then(unwrap),
7858
+ job: (...args) => stub.dispatch("job", args).then(unwrap),
7859
+ destroy: (...args) => stub.dispatch("destroy", args).then(unwrap),
7860
+ prepareDestroy: (...args) => stub.dispatch("prepareDestroy", args).then(unwrap),
7861
+ fileCommand: (...args) => stub.dispatch("fileCommand", args).then(unwrap),
7862
+ scheduleCommand: (...args) => stub.dispatch("scheduleCommand", args).then(unwrap)
7863
+ };
7847
7864
  }
7848
7865
 
7849
7866
  class AppOutbound extends WorkerEntrypoint {
@@ -7904,7 +7921,10 @@ class EnvironmentSupervisor extends DurableObject {
7904
7921
  "scheduleCommand"
7905
7922
  ].includes(op))
7906
7923
  fail("INVALID_OPERATION");
7907
- return this[op](...args);
7924
+ if (!Array.isArray(args))
7925
+ fail("INVALID_INPUT");
7926
+ const method = this[op];
7927
+ return method.apply(this, args);
7908
7928
  });
7909
7929
  }
7910
7930
  removed = false;
@@ -9148,7 +9168,10 @@ class RuntimeControl extends WorkerEntrypoint {
9148
9168
  "readiness"
9149
9169
  ].includes(op))
9150
9170
  fail("INVALID_OPERATION");
9151
- return this[op](...args);
9171
+ if (!Array.isArray(args))
9172
+ fail("INVALID_INPUT");
9173
+ const method = this[op];
9174
+ return method.apply(this, args);
9152
9175
  });
9153
9176
  }
9154
9177
  readiness() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@auersperg/flare",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Flare client, server declarations and development CLI",