@arkstack/view 0.12.9 → 0.12.11
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/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as collectViewData, c as runWithViewData, d as resolvePackageViewsPath, f as view, i as clearViewData, l as ViewInstance, m as normalizeViewErrors, n as View, o as enterViewData, p as ViewErrorBag, r as ViewFactory, s as getViewData, t as clearRouterViewPlugin, u as parsePackageViewName } from "./plugins-
|
|
1
|
+
import { a as collectViewData, c as runWithViewData, d as resolvePackageViewsPath, f as view, i as clearViewData, l as ViewInstance, m as normalizeViewErrors, n as View, o as enterViewData, p as ViewErrorBag, r as ViewFactory, s as getViewData, t as clearRouterViewPlugin, u as parsePackageViewName } from "./plugins-BFBs38yL.js";
|
|
2
2
|
import edge, { Edge } from "edge.js";
|
|
3
3
|
export { Edge, View, ViewErrorBag, ViewFactory, ViewInstance, clearRouterViewPlugin, clearViewData, collectViewData, edge, enterViewData, getViewData, normalizeViewErrors, parsePackageViewName, resolvePackageViewsPath, runWithViewData, view };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isClass } from "@arkstack/common";
|
|
1
2
|
import { Arkstack } from "@arkstack/contract";
|
|
2
3
|
import { existsSync } from "node:fs";
|
|
3
4
|
import { resolve } from "node:path";
|
|
@@ -111,9 +112,6 @@ function view(name, data = {}) {
|
|
|
111
112
|
if (name === void 0) return View.factoryInstance();
|
|
112
113
|
return View.make(name, data);
|
|
113
114
|
}
|
|
114
|
-
const isClass = (target) => {
|
|
115
|
-
return typeof target === "function" && /^class\s/.test(Function.prototype.toString.call(target));
|
|
116
|
-
};
|
|
117
115
|
const currentHttpSession = () => {
|
|
118
116
|
try {
|
|
119
117
|
const session = globalThis.session?.();
|
package/dist/setup.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkstack/view",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "View module for Arkstack, providing template rendering and view integration utilities.",
|
|
6
6
|
"homepage": "https://arkstack.toneflix.net/guide/views",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"edge.js": "^6.5.0",
|
|
36
|
-
"@arkstack/contract": "^0.12.
|
|
36
|
+
"@arkstack/contract": "^0.12.11"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"@h3ravel/musket": "^0.10.1",
|
|
40
|
-
"clear-router": "^2.8.
|
|
41
|
-
"@arkstack/
|
|
42
|
-
"@arkstack/
|
|
40
|
+
"clear-router": "^2.8.6",
|
|
41
|
+
"@arkstack/foundry": "^0.12.11",
|
|
42
|
+
"@arkstack/common": "^0.12.11"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"@h3ravel/musket": {
|