@ramme-io/create-app 3.4.5 → 3.4.7
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/index.js
CHANGED
|
@@ -67,9 +67,9 @@ const appSlug =
|
|
|
67
67
|
// at ^4.0.0 while its home server needed 4.1.0, pnpm 12 (which skips versions
|
|
68
68
|
// published in the last day) installed 4.0.0, and the server crashed on start.
|
|
69
69
|
const RELEASE_VERSIONS = {
|
|
70
|
-
'@ramme-io/ui': '^5.
|
|
71
|
-
'@ramme-io/kernel': '^8.1.
|
|
72
|
-
'@ramme-io/shared': '^4.
|
|
70
|
+
'@ramme-io/ui': '^5.4.0',
|
|
71
|
+
'@ramme-io/kernel': '^8.1.6',
|
|
72
|
+
'@ramme-io/shared': '^4.6.0',
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
try {
|
package/package.json
CHANGED
package/template/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# ramme-starter
|
|
2
2
|
|
|
3
|
+
## 2.0.34
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [0641ce3]
|
|
8
|
+
- Updated dependencies [5668795]
|
|
9
|
+
- Updated dependencies [6540175]
|
|
10
|
+
- Updated dependencies [049e0a8]
|
|
11
|
+
- Updated dependencies [2377a28]
|
|
12
|
+
- Updated dependencies [1909202]
|
|
13
|
+
- Updated dependencies [07cd720]
|
|
14
|
+
- Updated dependencies [c541387]
|
|
15
|
+
- Updated dependencies [5816d8c]
|
|
16
|
+
- Updated dependencies [b3bab23]
|
|
17
|
+
- @ramme-io/ui@5.4.0
|
|
18
|
+
- @ramme-io/shared@4.6.0
|
|
19
|
+
- @ramme-io/kernel@8.1.6
|
|
20
|
+
|
|
21
|
+
## 2.0.33
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [9088a38]
|
|
26
|
+
- @ramme-io/shared@4.5.0
|
|
27
|
+
- @ramme-io/kernel@8.1.5
|
|
28
|
+
- @ramme-io/ui@5.3.1
|
|
29
|
+
|
|
3
30
|
## 2.0.32
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/template/package.json
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# ramme-home
|
|
2
2
|
|
|
3
|
+
## 0.1.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [5668795]
|
|
8
|
+
- Updated dependencies [6540175]
|
|
9
|
+
- Updated dependencies [2377a28]
|
|
10
|
+
- Updated dependencies [1909202]
|
|
11
|
+
- @ramme-io/shared@4.6.0
|
|
12
|
+
|
|
13
|
+
## 0.1.6
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [9088a38]
|
|
18
|
+
- @ramme-io/shared@4.5.0
|
|
19
|
+
|
|
3
20
|
## 0.1.5
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Two kinds of caller:
|
|
9
9
|
*
|
|
10
|
-
* boards the
|
|
10
|
+
* boards the calls in DEVICE_PROTOCOL (@ramme-io/shared) — the same
|
|
11
11
|
* calls, answered the same way, as ramme.io. server.test.mjs holds
|
|
12
12
|
* this file to them.
|
|
13
13
|
* you the page at / (your boards, and a box to send an app), and the
|
|
@@ -187,6 +187,16 @@ export const createHandler = ({
|
|
|
187
187
|
return { status: 200, bytes: readFileSync(path), type: 'application/octet-stream' };
|
|
188
188
|
},
|
|
189
189
|
|
|
190
|
+
[`GET ${DEVICE_PROTOCOL.podcasts.path}`]: ({ query }) => {
|
|
191
|
+
// Podcasts are found in a directory on the internet, which this server
|
|
192
|
+
// does not reach: a board here follows no shows, and is told so the
|
|
193
|
+
// same way ramme.io tells a board that follows none.
|
|
194
|
+
const id = DeviceIdSchema.safeParse(query.get('id'));
|
|
195
|
+
if (!id.success) return json(400, { error: 'BAD_DEVICE_ID' });
|
|
196
|
+
if (query.get('ep') !== null) return json(404, { error: 'NOT_FOUND' });
|
|
197
|
+
return json(200, { shows: [] });
|
|
198
|
+
},
|
|
199
|
+
|
|
190
200
|
[`POST ${DEVICE_PROTOCOL.voice.path}`]: async ({ query, raw }) => {
|
|
191
201
|
const id = DeviceIdSchema.safeParse(query.get('id'));
|
|
192
202
|
if (!id.success) return json(400, { error: 'BAD_DEVICE_ID' });
|
|
@@ -72,6 +72,12 @@ describe('a board', () => {
|
|
|
72
72
|
expect(call('GET', `${DEVICE_PROTOCOL.photo.path}?id=${ID}&hash=${hash}`).status).toBe(404);
|
|
73
73
|
expect(call('GET', `${DEVICE_PROTOCOL.photo.path}?id=${ID}&hash=nope`).status).toBe(400);
|
|
74
74
|
});
|
|
75
|
+
|
|
76
|
+
it('follows no podcasts here, and is told so as ramme.io would', () => {
|
|
77
|
+
expect(call('GET', `${DEVICE_PROTOCOL.podcasts.path}?id=${ID}`)).toMatchObject({ status: 200, json: { shows: [] } });
|
|
78
|
+
expect(call('GET', `${DEVICE_PROTOCOL.podcasts.path}?id=${ID}&ep=1.0123456789`).status).toBe(404);
|
|
79
|
+
expect(call('GET', `${DEVICE_PROTOCOL.podcasts.path}?id=nope`).status).toBe(400);
|
|
80
|
+
});
|
|
75
81
|
});
|
|
76
82
|
|
|
77
83
|
describe('sending', () => {
|