@yaebal/callback-data 0.0.1 → 0.0.3

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/callback-data",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "yaebal typed callback_data — pack/unpack button payloads with type-safe schemas.",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
package/src/index.test.ts CHANGED
@@ -36,7 +36,7 @@ test("rejects a prefix containing the separator", () => {
36
36
 
37
37
  test("prefix-only schema matches exactly", () => {
38
38
  const ping = callbackData("ping", {});
39
-
39
+
40
40
  assert.equal(ping.pack({}), "ping");
41
41
  assert.deepEqual(ping.unpack("ping"), {});
42
42
  assert.ok(ping.filter("ping"));
package/src/index.ts CHANGED
@@ -51,7 +51,7 @@ export function callbackData<S extends Record<string, Codec>>(
51
51
  unpack(raw) {
52
52
  const segs = raw.split(":");
53
53
  if (segs[0] !== prefix) return undefined;
54
-
54
+
55
55
  const values = segs.slice(1);
56
56
  if (values.length !== keys.length) return undefined;
57
57