@jay-framework/fullstack-component 0.6.7 → 0.6.9
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 +6 -9
- package/dist/index.cjs +0 -79
package/package.json
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jay-framework/fullstack-component",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
|
-
".":
|
|
10
|
-
"import": "./dist/index.js",
|
|
11
|
-
"require": "./dist/index.cjs"
|
|
12
|
-
}
|
|
9
|
+
".": "./dist/index.js"
|
|
13
10
|
},
|
|
14
11
|
"files": [
|
|
15
12
|
"dist",
|
|
@@ -29,12 +26,12 @@
|
|
|
29
26
|
"test:watch": "vitest"
|
|
30
27
|
},
|
|
31
28
|
"dependencies": {
|
|
32
|
-
"@jay-framework/component": "^0.6.
|
|
33
|
-
"@jay-framework/runtime": "^0.6.
|
|
29
|
+
"@jay-framework/component": "^0.6.9",
|
|
30
|
+
"@jay-framework/runtime": "^0.6.9"
|
|
34
31
|
},
|
|
35
32
|
"devDependencies": {
|
|
36
|
-
"@jay-framework/dev-environment": "^0.6.
|
|
37
|
-
"@jay-framework/jay-cli": "^0.6.
|
|
33
|
+
"@jay-framework/dev-environment": "^0.6.9",
|
|
34
|
+
"@jay-framework/jay-cli": "^0.6.9",
|
|
38
35
|
"@types/express": "^5.0.2",
|
|
39
36
|
"@types/node": "^22.15.21",
|
|
40
37
|
"nodemon": "^3.0.3",
|
package/dist/index.cjs
DELETED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
|
-
var __publicField = (obj, key, value) => {
|
|
5
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6
|
-
return value;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
9
|
-
function serverError5xx(status) {
|
|
10
|
-
return {
|
|
11
|
-
kind: "ServerError",
|
|
12
|
-
status
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
function clientError4xx(status) {
|
|
16
|
-
return {
|
|
17
|
-
kind: "ClientError",
|
|
18
|
-
status
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function notFound() {
|
|
22
|
-
return clientError4xx(404);
|
|
23
|
-
}
|
|
24
|
-
function redirect3xx(status, location) {
|
|
25
|
-
return {
|
|
26
|
-
kind: "redirect",
|
|
27
|
-
status,
|
|
28
|
-
location
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
function partialRender(rendered, carryForward) {
|
|
32
|
-
return { kind: "PartialRender", rendered, carryForward };
|
|
33
|
-
}
|
|
34
|
-
class BuilderImplementation {
|
|
35
|
-
constructor() {
|
|
36
|
-
__publicField(this, "serverContexts", []);
|
|
37
|
-
__publicField(this, "clientContexts", []);
|
|
38
|
-
__publicField(this, "loadParams");
|
|
39
|
-
__publicField(this, "slowlyRender");
|
|
40
|
-
__publicField(this, "fastRender");
|
|
41
|
-
__publicField(this, "comp");
|
|
42
|
-
}
|
|
43
|
-
withProps() {
|
|
44
|
-
return this;
|
|
45
|
-
}
|
|
46
|
-
withServerContext(...contextMarkers) {
|
|
47
|
-
this.serverContexts = contextMarkers;
|
|
48
|
-
return this;
|
|
49
|
-
}
|
|
50
|
-
withClientContext(...contextMarkers) {
|
|
51
|
-
this.clientContexts = contextMarkers;
|
|
52
|
-
return this;
|
|
53
|
-
}
|
|
54
|
-
withLoadParams(loadParams) {
|
|
55
|
-
this.loadParams = loadParams;
|
|
56
|
-
return this;
|
|
57
|
-
}
|
|
58
|
-
withSlowlyRender(slowlyRender) {
|
|
59
|
-
this.slowlyRender = slowlyRender;
|
|
60
|
-
return this;
|
|
61
|
-
}
|
|
62
|
-
withFastRender(fastRender) {
|
|
63
|
-
this.fastRender = fastRender;
|
|
64
|
-
return this;
|
|
65
|
-
}
|
|
66
|
-
withInteractive(comp) {
|
|
67
|
-
this.comp = comp;
|
|
68
|
-
return this;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
function makeJayStackComponent() {
|
|
72
|
-
return new BuilderImplementation();
|
|
73
|
-
}
|
|
74
|
-
exports.clientError4xx = clientError4xx;
|
|
75
|
-
exports.makeJayStackComponent = makeJayStackComponent;
|
|
76
|
-
exports.notFound = notFound;
|
|
77
|
-
exports.partialRender = partialRender;
|
|
78
|
-
exports.redirect3xx = redirect3xx;
|
|
79
|
-
exports.serverError5xx = serverError5xx;
|