sporades 0.6.5 → 0.6.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/CHANGES.md CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  ## Unreleased - 2026-08-04
4
4
 
5
- Changes since v0.6.4.
5
+ Changes since v0.6.5.
6
6
 
7
7
  ### 🐛 Bug Fixes
8
8
 
9
- - Password reset and logout for email/password accounts (1cbe35f).
9
+ - User preferences (cebd9f0).
@@ -391,7 +391,7 @@ function writeEnvelope(result, failed = false) {
391
391
  }
392
392
 
393
393
  // src/cli/cli-version.ts
394
- var CLI_VERSION = "0.6.5";
394
+ var CLI_VERSION = "0.6.6";
395
395
 
396
396
  // src/cli/schedule-inspection-envelope.ts
397
397
  function sanitizeScheduleInspectionEnvelope(envelope, invalid) {
package/bin/sporades.js CHANGED
@@ -1034,10 +1034,16 @@ function createConnection() {
1034
1034
  return request("mutation.run", { mutation: name, args });
1035
1035
  },
1036
1036
  getPreferences() {
1037
- return request("preferences.get");
1037
+ return request("preferences.get").then((result) => {
1038
+ if (result.error) throw structuredError(result.error);
1039
+ return result.data.preferences;
1040
+ });
1038
1041
  },
1039
1042
  updatePreferences(patch) {
1040
- return request("preferences.update", { patch });
1043
+ return request("preferences.update", { patch }).then((result) => {
1044
+ if (result.error) throw structuredError(result.error);
1045
+ return result.data.preferences;
1046
+ });
1041
1047
  },
1042
1048
  journeyEnable(options = {}) {
1043
1049
  return request("journey.enable", { options }).then((result) => {
@@ -21906,7 +21912,7 @@ jobs:
21906
21912
  }
21907
21913
 
21908
21914
  // src/cli/cli-version.ts
21909
- var CLI_VERSION = "0.6.5";
21915
+ var CLI_VERSION = "0.6.6";
21910
21916
 
21911
21917
  // src/cli/sporades.ts
21912
21918
  var SUPPORTED_TEMPLATES = new Set(CLIENT_TEMPLATES);
@@ -1,2 +1,2 @@
1
- export declare const CLI_VERSION = "0.6.5";
1
+ export declare const CLI_VERSION = "0.6.6";
2
2
  //# sourceMappingURL=cli-version.d.ts.map
@@ -1,3 +1,3 @@
1
1
  // Generated by `npm run build` from package.json. Do not edit by hand.
2
- export const CLI_VERSION = "0.6.5";
2
+ export const CLI_VERSION = "0.6.6";
3
3
  //# sourceMappingURL=cli-version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client-runtime-template.d.ts","sourceRoot":"","sources":["../../src/templates/client-runtime-template.ts"],"names":[],"mappings":"AAAA,wBAAgB,yBAAyB,CAAC,OAAO,GAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAO,UA+mC/E"}
1
+ {"version":3,"file":"client-runtime-template.d.ts","sourceRoot":"","sources":["../../src/templates/client-runtime-template.ts"],"names":[],"mappings":"AAAA,wBAAgB,yBAAyB,CAAC,OAAO,GAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAO,UAqnC/E"}
@@ -1011,10 +1011,16 @@ function createConnection() {
1011
1011
  return request("mutation.run", { mutation: name, args });
1012
1012
  },
1013
1013
  getPreferences() {
1014
- return request("preferences.get");
1014
+ return request("preferences.get").then((result) => {
1015
+ if (result.error) throw structuredError(result.error);
1016
+ return result.data.preferences;
1017
+ });
1015
1018
  },
1016
1019
  updatePreferences(patch) {
1017
- return request("preferences.update", { patch });
1020
+ return request("preferences.update", { patch }).then((result) => {
1021
+ if (result.error) throw structuredError(result.error);
1022
+ return result.data.preferences;
1023
+ });
1018
1024
  },
1019
1025
  journeyEnable(options = {}) {
1020
1026
  return request("journey.enable", { options }).then((result) => {
@@ -1 +1 @@
1
- {"version":3,"file":"client-runtime-template.js","sourceRoot":"","sources":["../../src/templates/client-runtime-template.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,yBAAyB,CAAC,UAAoC,EAAE;IAC9E,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC,CAAC,EAAE;;;;;;;;;;;;;;;;;;QAkB7D,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;;;;;;;;;;QAUrB,CAAC,CAAC,CAAC,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsgBZ,CAAC;AACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sporades",
3
- "version": "0.6.5",
3
+ "version": "0.6.6",
4
4
  "description": "CLI-first platform for building, running, and hosting full-stack Sporades Capsules.",
5
5
  "homepage": "https://mgscox.github.io/sporades/",
6
6
  "license": "MIT",