@geekron/hono 0.0.5 → 0.0.6

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.
@@ -1,7 +1,7 @@
1
1
  import type { Context } from 'hono';
2
2
  import type { Child } from 'hono/jsx';
3
3
  import type { Variables } from '../route/setup';
4
- export declare const slot: <SlotName extends string>(ctx: Context<{
4
+ export declare const useSlot: <SlotName extends string>(ctx: Context<{
5
5
  Variables: Variables;
6
6
  }>) => {
7
7
  append: (name: SlotName, content: Child) => Child[];
@@ -1 +1 @@
1
- {"version":3,"file":"slot.d.ts","sourceRoot":"","sources":["../../src/route/slot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,eAAO,MAAM,IAAI,GAAI,QAAQ,SAAS,MAAM,EAC3C,KAAK,OAAO,CAAC;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,CAAC;mBAGtB,QAAQ,WAAW,KAAK;oBAe9B,CACP,GAAG,EAAE,OAAO,CAAC;QAAE,SAAS,EAAE,SAAS,CAAA;KAAE,CAAC,KAClC,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK;;;;CAe7B,CAAA"}
1
+ {"version":3,"file":"slot.d.ts","sourceRoot":"","sources":["../../src/route/slot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,eAAO,MAAM,OAAO,GAAI,QAAQ,SAAS,MAAM,EAC9C,KAAK,OAAO,CAAC;IAAE,SAAS,EAAE,SAAS,CAAA;CAAE,CAAC;mBAGtB,QAAQ,WAAW,KAAK;oBAe9B,CACP,GAAG,EAAE,OAAO,CAAC;QAAE,SAAS,EAAE,SAAS,CAAA;KAAE,CAAC,KAClC,OAAO,CAAC,KAAK,CAAC,GAAG,KAAK;;;;CAe7B,CAAA"}
@@ -1,4 +1,4 @@
1
- export const slot = (ctx) => {
1
+ export const useSlot = (ctx) => {
2
2
  return {
3
3
  append: (name, content) => {
4
4
  const slots = ctx.get('slots') || new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekron/hono",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "format": "bunx biome format --write",