@monimesl/dot-cli 0.1.0-alpha.23 → 0.1.0-alpha.24

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.
@@ -19,13 +19,14 @@
19
19
 
20
20
  <View gap="small">
21
21
  <Text variant="subtitle">DashError codes</Text>
22
- <Text variant="caption" tone="muted">isDashError(error) tells a Dash call's error from any other, and isDashError(error, 'timeout') also checks its code. Each code has its own check too, such as isDashCancelled(error).</Text>
22
+ <Text variant="caption" tone="muted">isDashError(error) tells a Dash call's error from any other, and isDashError(error, 'timeout') also checks its code.</Text>
23
23
  <View variant="card" gap="none">
24
24
  <DetailRow label="cancelled" value="The person closed it, or the call was cancelled" />
25
25
  <DetailRow label="timeout" value="It took longer than the timeout" />
26
26
  <DetailRow label="denied" value="Not allowed, such as a missing permission" />
27
27
  <DetailRow label="invalid" value="The call's options are wrong" />
28
28
  <DetailRow label="unsupported" value="This Dash can't do it" />
29
+ <DetailRow label="missing" value="There's nothing there, such as a file that isn't saved" />
29
30
  <DetailRow label="failed" value="Anything else went wrong" />
30
31
  </View>
31
32
  <View direction="row" wrap gap="small">
@@ -15,7 +15,11 @@ export default definePage({
15
15
  async hash(state) {
16
16
  try {
17
17
  const sha256 = await this.dash.crypto.sha256(state.text);
18
- const hmac = await this.dash.crypto.hmac('sha256', state.key, state.text);
18
+ const hmac = await this.dash.crypto.hmac({
19
+ algorithm: 'sha256',
20
+ key: state.key,
21
+ data: state.text,
22
+ });
19
23
  this.setState({ sha256, hmac, note: '' });
20
24
  } catch (error) {
21
25
  this.setState({ note: errorMessage(error) });
@@ -11,7 +11,6 @@
11
11
  <DetailRow label="Language" value="{{ info.language }}{{ info.region ? ' · ' + info.region : '' }}" />
12
12
  <DetailRow label="Time zone" value="{{ info.timeZone }}" />
13
13
  <DetailRow label="Dash" value="{{ info.dashVersion }}" />
14
- <DetailRow label="DotHost" value="{{ info.hostVersion }}" />
15
14
  </If>
16
15
  <Else>
17
16
  <Button variant="secondary" onClick="readInfo">Read the phone's details</Button>
@@ -228,7 +228,7 @@ export default {
228
228
  {
229
229
  page: 'dash/calls',
230
230
  title: 'Calls and errors',
231
- covers: 'timeout, cancel, DashError, isDashError, isDashCancelled',
231
+ covers: 'timeout, cancel, DashError, isDashError',
232
232
  icon: 'warning',
233
233
  },
234
234
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monimesl/dot-cli",
3
- "version": "0.1.0-alpha.23",
3
+ "version": "0.1.0-alpha.24",
4
4
  "description": "The dotctl command: build mini apps and run them in the simulator",
5
5
  "type": "module",
6
6
  "repository": {
@@ -24,11 +24,11 @@
24
24
  "dependencies": {
25
25
  "typescript": "^5.9.3",
26
26
  "uqr": "^0.1.3",
27
- "@monimesl/dot-compiler": "0.1.0-alpha.23",
28
- "@monimesl/dot-core": "0.1.0-alpha.23",
29
- "@monimesl/dot-dml-parser": "0.1.0-alpha.23",
30
- "@monimesl/dot-script-parser": "0.1.0-alpha.23",
31
- "@monimesl/dot-simulator": "0.1.0-alpha.23"
27
+ "@monimesl/dot-compiler": "0.1.0-alpha.24",
28
+ "@monimesl/dot-core": "0.1.0-alpha.24",
29
+ "@monimesl/dot-dml-parser": "0.1.0-alpha.24",
30
+ "@monimesl/dot-script-parser": "0.1.0-alpha.24",
31
+ "@monimesl/dot-simulator": "0.1.0-alpha.24"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^22.20.4",