@spirobel/mininext 0.2.17 → 0.2.19
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/mininext.d.ts +2 -3
- package/dist/mininext.js +2 -3
- package/dist/url.d.ts +1 -1
- package/mininext/mininext.ts +1 -13
- package/mininext/url.ts +1 -1
- package/package.json +1 -1
package/dist/mininext.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { url, Mini, type HtmlHandler } from "./url";
|
|
2
|
-
import {
|
|
2
|
+
import { isError, HtmlString, head, commonHead, cssReset } from "./html";
|
|
3
3
|
declare global {
|
|
4
4
|
var PROJECT_ROOT: string | undefined;
|
|
5
5
|
}
|
|
6
6
|
declare function build(backendPath?: string): Promise<void>;
|
|
7
7
|
declare const standardDevReloader: HtmlString;
|
|
8
8
|
declare function makeEntrypoint(): Promise<(w: any) => Promise<Response>>;
|
|
9
|
-
|
|
10
|
-
export { url, css, json, html, head, build, makeEntrypoint, isError, HtmlString, type HtmlHandler, Mini, standardDevReloader, commonHead, cssReset, };
|
|
9
|
+
export { url, head, build, makeEntrypoint, isError, HtmlString, type HtmlHandler, Mini, standardDevReloader, commonHead, cssReset, };
|
package/dist/mininext.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { url, Mini } from "./url";
|
|
2
|
-
import { html,
|
|
2
|
+
import { html, isError, HtmlString, head, commonHead, cssReset } from "./html";
|
|
3
3
|
import { watch } from "fs/promises";
|
|
4
4
|
import * as path from "path";
|
|
5
5
|
function projectRoot() {
|
|
@@ -158,5 +158,4 @@ async function makeEntrypoint() {
|
|
|
158
158
|
}
|
|
159
159
|
return module.default;
|
|
160
160
|
}
|
|
161
|
-
|
|
162
|
-
export { url, css, json, html, head, build, makeEntrypoint, isError, HtmlString, Mini, standardDevReloader, commonHead, cssReset, };
|
|
161
|
+
export { url, head, build, makeEntrypoint, isError, HtmlString, Mini, standardDevReloader, commonHead, cssReset, };
|
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?:
|
|
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/mininext.ts
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { url, Mini, type HtmlHandler } from "./url";
|
|
2
|
-
import {
|
|
3
|
-
html,
|
|
4
|
-
json,
|
|
5
|
-
isError,
|
|
6
|
-
HtmlString,
|
|
7
|
-
head,
|
|
8
|
-
commonHead,
|
|
9
|
-
cssReset,
|
|
10
|
-
} from "./html";
|
|
2
|
+
import { html, isError, HtmlString, head, commonHead, cssReset } from "./html";
|
|
11
3
|
import { watch } from "fs/promises";
|
|
12
4
|
import * as path from "path";
|
|
13
5
|
function projectRoot() {
|
|
@@ -178,12 +170,8 @@ async function makeEntrypoint() {
|
|
|
178
170
|
}
|
|
179
171
|
return module.default as (w: any) => Promise<Response>;
|
|
180
172
|
}
|
|
181
|
-
const css = html;
|
|
182
173
|
export {
|
|
183
174
|
url,
|
|
184
|
-
css,
|
|
185
|
-
json,
|
|
186
|
-
html,
|
|
187
175
|
head,
|
|
188
176
|
build,
|
|
189
177
|
makeEntrypoint,
|
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?:
|
|
142
|
+
static frontend(path: string, snippet?: HtmlHandler) {
|
|
143
143
|
const frontendIndex = url.frontends.push(path) - 1;
|
|
144
144
|
const scriptUrl = FrontendScriptUrls[frontendIndex];
|
|
145
145
|
|