@yaebal/session 0.0.1 → 0.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaebal/session",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "yaebal session plugin — per-chat state with pluggable storage adapters.",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -16,7 +16,7 @@
16
16
  "src"
17
17
  ],
18
18
  "dependencies": {
19
- "@yaebal/core": "0.0.1"
19
+ "@yaebal/core": "0.0.5"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/node": "latest"
package/src/index.test.ts CHANGED
@@ -125,6 +125,6 @@ test("a throwing handler leaves storage untouched", async () => {
125
125
  await assert.rejects(async () => {
126
126
  await entry(c)(mkCtx(5), noop);
127
127
  }, /boom/);
128
-
128
+
129
129
  assert.equal(await storage.get("5"), undefined);
130
130
  });
package/src/index.ts CHANGED
@@ -61,7 +61,7 @@ export function session<S>(options: SessionOptions<S>): Plugin<Context, { sessio
61
61
  .derive(async (ctx) => {
62
62
  const key = getKey(ctx);
63
63
  const value = key === undefined ? initial() : ((await storage.get(key)) ?? initial());
64
-
64
+
65
65
  return { session: value };
66
66
  });
67
67
  }