@spirobel/mininext 0.2.18 → 0.2.20

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/dist/html.d.ts CHANGED
@@ -28,7 +28,7 @@ export declare const cssReset: HtmlString;
28
28
  *
29
29
  * @example Here is what a default head might look like:
30
30
  * ```ts
31
- *head(html` <title>hello hello</title> `);
31
+ *head((mini)=>mini.html` <title>hello hello</title> `);
32
32
  * url.set([
33
33
  * ["/", (mini) => mini.html`<h1>Hello world</h1>`],
34
34
  * [
package/dist/html.js CHANGED
@@ -169,7 +169,7 @@ let default_head = (mini) => mini.html `
169
169
  *
170
170
  * @example Here is what a default head might look like:
171
171
  * ```ts
172
- *head(html` <title>hello hello</title> `);
172
+ *head((mini)=>mini.html` <title>hello hello</title> `);
173
173
  * url.set([
174
174
  * ["/", (mini) => mini.html`<h1>Hello world</h1>`],
175
175
  * [
package/dist/url.d.ts CHANGED
@@ -72,7 +72,7 @@ export declare class url {
72
72
  private static frontends;
73
73
  private static svgs;
74
74
  static svg(path: string, options?: ResponseInit): string | undefined;
75
- static frontend(path: string, snippet?: HtmlString): HtmlString;
75
+ static frontend(path: string, snippet?: HtmlHandler): HtmlString;
76
76
  /**
77
77
  * This is used by the frontend bundler in order to find all frontends and their corresponding script files.
78
78
  */
package/mininext/html.ts CHANGED
@@ -204,7 +204,7 @@ let default_head: HtmlHandler = (mini: Mini) => mini.html`
204
204
  *
205
205
  * @example Here is what a default head might look like:
206
206
  * ```ts
207
- *head(html` <title>hello hello</title> `);
207
+ *head((mini)=>mini.html` <title>hello hello</title> `);
208
208
  * url.set([
209
209
  * ["/", (mini) => mini.html`<h1>Hello world</h1>`],
210
210
  * [
package/mininext/url.ts CHANGED
@@ -139,7 +139,7 @@ export class url {
139
139
 
140
140
  return foundEntry && foundEntry[0];
141
141
  }
142
- static frontend(path: string, snippet?: HtmlString) {
142
+ static frontend(path: string, snippet?: HtmlHandler) {
143
143
  const frontendIndex = url.frontends.push(path) - 1;
144
144
  const scriptUrl = FrontendScriptUrls[frontendIndex];
145
145
 
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
  },
13
13
  "files": ["dist", "mininext"],
14
- "version": "0.2.18",
14
+ "version": "0.2.20",
15
15
  "devDependencies": {
16
16
  "@types/bun": "latest"
17
17
  },