@pikku/inspector 0.12.83 → 0.12.84
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/CHANGELOG.md +14 -0
- package/dist/add/add-channel.js +7 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 0.12.84
|
|
2
|
+
|
|
3
|
+
### Patch Changes
|
|
4
|
+
|
|
5
|
+
- 238902c: A channel's `auth` flag now reaches its meta. The inspector already read it to mark the connect and disconnect functions sessionless, then dropped it, so nothing downstream could tell a public channel from a private one without reading the generated source.
|
|
6
|
+
|
|
7
|
+
That matters in front of the channel rather than inside it. A `wireCLI({ auth: false })` program is reachable by anyone holding its address; a router or deploy that cannot see the flag either guesses or demands a token in front of a surface it was never protecting, locking out the clients the program was opened for.
|
|
8
|
+
|
|
9
|
+
The flag is only recorded when the channel actually said. A channel that never mentioned `auth` leaves it absent rather than claiming a default it did not declare, which the runtime continues to read as requiring a session.
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [238902c]
|
|
12
|
+
- Updated dependencies [2fd2b22]
|
|
13
|
+
- @pikku/core@0.12.115
|
|
14
|
+
|
|
1
15
|
## 0.12.83
|
|
2
16
|
|
|
3
17
|
### Patch Changes
|
package/dist/add/add-channel.js
CHANGED
|
@@ -482,8 +482,9 @@ export const addChannel = (logger, node, checker, state, options) => {
|
|
|
482
482
|
// with pikkuChannelConnectionFunc/pikkuChannelDisconnectionFunc (not pikkuFunc/
|
|
483
483
|
// pikkuSessionlessFunc), so the runtime has correct sessionless info without
|
|
484
484
|
// needing to inject it at runtime.
|
|
485
|
+
const channelAuth = getPropertyValue(obj, 'auth');
|
|
485
486
|
{
|
|
486
|
-
const routeAuth =
|
|
487
|
+
const routeAuth = channelAuth;
|
|
487
488
|
const sessionless = routeAuth === false ? true : undefined;
|
|
488
489
|
for (const funcId of [connectFuncId, disconnectFuncId]) {
|
|
489
490
|
if (funcId && !state.functions.meta[funcId]) {
|
|
@@ -538,6 +539,11 @@ export const addChannel = (logger, node, checker, state, options) => {
|
|
|
538
539
|
message,
|
|
539
540
|
messageWirings,
|
|
540
541
|
binary: binary === undefined ? undefined : binary,
|
|
542
|
+
// Recorded so a deploy can tell a public surface from a private one without
|
|
543
|
+
// reading the generated source. Only stored when the channel actually said,
|
|
544
|
+
// so a channel that never mentioned auth stays absent rather than claiming
|
|
545
|
+
// a default it did not declare.
|
|
546
|
+
auth: typeof channelAuth === 'boolean' ? channelAuth : undefined,
|
|
541
547
|
summary,
|
|
542
548
|
description,
|
|
543
549
|
errors,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pikku/inspector",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.84",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/pikkujs/pikku.git",
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"zod-to-ts": "^2.1.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@pikku/core": "^0.12.
|
|
58
|
+
"@pikku/core": "^0.12.115"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@pikku/core": "^0.12.
|
|
61
|
+
"@pikku/core": "^0.12.115",
|
|
62
62
|
"@types/node": "^24.13.3"
|
|
63
63
|
},
|
|
64
64
|
"engines": {
|