@lark.js/mvc 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.
- package/README.md +608 -721
- package/dist/{chunk-IIIY575B.js → chunk-3HSA7OHB.js} +6 -6
- package/dist/index.cjs +225 -924
- package/dist/index.d.cts +106 -182
- package/dist/index.d.ts +106 -182
- package/dist/index.js +221 -907
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +1 -1
- package/dist/vite.cjs +6 -6
- package/dist/vite.js +1 -1
- package/dist/webpack.cjs +6 -6
- package/dist/webpack.js +1 -1
- package/package.json +22 -21
- package/src/client.d.ts +1 -0
package/dist/runtime.cjs
CHANGED
|
@@ -50,7 +50,7 @@ var encUri = (v) => encodeURIComponent(strSafe(v)).replace(URI_ENT_REGEXP, (m) =
|
|
|
50
50
|
var QUOTE_REGEXP = /['"\\]/g;
|
|
51
51
|
var encQuote = (v) => strSafe(v).replace(QUOTE_REGEXP, "\\$&");
|
|
52
52
|
var refFn = (ref, value, key) => {
|
|
53
|
-
const SPLITTER =
|
|
53
|
+
const SPLITTER = String.fromCharCode(30);
|
|
54
54
|
const counter = ref[SPLITTER];
|
|
55
55
|
for (let i = counter; --i; ) {
|
|
56
56
|
key = SPLITTER + i;
|
package/dist/runtime.js
CHANGED
|
@@ -22,7 +22,7 @@ var encUri = (v) => encodeURIComponent(strSafe(v)).replace(URI_ENT_REGEXP, (m) =
|
|
|
22
22
|
var QUOTE_REGEXP = /['"\\]/g;
|
|
23
23
|
var encQuote = (v) => strSafe(v).replace(QUOTE_REGEXP, "\\$&");
|
|
24
24
|
var refFn = (ref, value, key) => {
|
|
25
|
-
const SPLITTER =
|
|
25
|
+
const SPLITTER = String.fromCharCode(30);
|
|
26
26
|
const counter = ref[SPLITTER];
|
|
27
27
|
for (let i = counter; --i; ) {
|
|
28
28
|
key = SPLITTER + i;
|
package/dist/vite.cjs
CHANGED
|
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
));
|
|
31
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
32
|
|
|
33
|
-
//
|
|
33
|
+
// ../../node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/lib/index.js
|
|
34
34
|
var require_lib = __commonJS({
|
|
35
|
-
"
|
|
35
|
+
"../../node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/lib/index.js"(exports2) {
|
|
36
36
|
"use strict";
|
|
37
37
|
Object.defineProperty(exports2, "__esModule", {
|
|
38
38
|
value: true
|
|
@@ -14617,8 +14617,8 @@ var import_fs = __toESM(require("fs"), 1);
|
|
|
14617
14617
|
|
|
14618
14618
|
// src/compiler.ts
|
|
14619
14619
|
var import_parser = __toESM(require_lib(), 1);
|
|
14620
|
-
var SPLITTER =
|
|
14621
|
-
var VIEW_ID_PLACEHOLDER =
|
|
14620
|
+
var SPLITTER = String.fromCharCode(30);
|
|
14621
|
+
var VIEW_ID_PLACEHOLDER = String.fromCharCode(31);
|
|
14622
14622
|
function jsObjectToUrlParams(paramsStr) {
|
|
14623
14623
|
const trimmed = paramsStr.trim();
|
|
14624
14624
|
if (!/^[{[]/.test(trimmed) && /=/.test(trimmed)) {
|
|
@@ -14678,7 +14678,7 @@ function addLineMarkers(source) {
|
|
|
14678
14678
|
if (parts.length > 1) {
|
|
14679
14679
|
const reconstructed = parts.map((part, i) => {
|
|
14680
14680
|
if (i === 0) return part;
|
|
14681
|
-
return openTag + SPLITTER + ++lineNo;
|
|
14681
|
+
return openTag + SPLITTER + ++lineNo + part;
|
|
14682
14682
|
}).join("");
|
|
14683
14683
|
result.push(reconstructed);
|
|
14684
14684
|
} else {
|
|
@@ -15071,7 +15071,7 @@ function extractGlobalVars(source) {
|
|
|
15071
15071
|
const htmlStore = {};
|
|
15072
15072
|
let htmlIndex = 0;
|
|
15073
15073
|
let lastIndex = 0;
|
|
15074
|
-
const htmlKey =
|
|
15074
|
+
const htmlKey = String.fromCharCode(5);
|
|
15075
15075
|
template.replace(
|
|
15076
15076
|
templateCmdRegExp,
|
|
15077
15077
|
(match, operate, content, offset) => {
|
package/dist/vite.js
CHANGED
package/dist/webpack.cjs
CHANGED
|
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
));
|
|
31
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
32
|
|
|
33
|
-
//
|
|
33
|
+
// ../../node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/lib/index.js
|
|
34
34
|
var require_lib = __commonJS({
|
|
35
|
-
"
|
|
35
|
+
"../../node_modules/.pnpm/@babel+parser@7.29.7/node_modules/@babel/parser/lib/index.js"(exports2) {
|
|
36
36
|
"use strict";
|
|
37
37
|
Object.defineProperty(exports2, "__esModule", {
|
|
38
38
|
value: true
|
|
@@ -14615,8 +14615,8 @@ module.exports = __toCommonJS(webpack_exports);
|
|
|
14615
14615
|
|
|
14616
14616
|
// src/compiler.ts
|
|
14617
14617
|
var import_parser = __toESM(require_lib(), 1);
|
|
14618
|
-
var SPLITTER =
|
|
14619
|
-
var VIEW_ID_PLACEHOLDER =
|
|
14618
|
+
var SPLITTER = String.fromCharCode(30);
|
|
14619
|
+
var VIEW_ID_PLACEHOLDER = String.fromCharCode(31);
|
|
14620
14620
|
function jsObjectToUrlParams(paramsStr) {
|
|
14621
14621
|
const trimmed = paramsStr.trim();
|
|
14622
14622
|
if (!/^[{[]/.test(trimmed) && /=/.test(trimmed)) {
|
|
@@ -14676,7 +14676,7 @@ function addLineMarkers(source) {
|
|
|
14676
14676
|
if (parts.length > 1) {
|
|
14677
14677
|
const reconstructed = parts.map((part, i) => {
|
|
14678
14678
|
if (i === 0) return part;
|
|
14679
|
-
return openTag + SPLITTER + ++lineNo;
|
|
14679
|
+
return openTag + SPLITTER + ++lineNo + part;
|
|
14680
14680
|
}).join("");
|
|
14681
14681
|
result.push(reconstructed);
|
|
14682
14682
|
} else {
|
|
@@ -15069,7 +15069,7 @@ function extractGlobalVars(source) {
|
|
|
15069
15069
|
const htmlStore = {};
|
|
15070
15070
|
let htmlIndex = 0;
|
|
15071
15071
|
let lastIndex = 0;
|
|
15072
|
-
const htmlKey =
|
|
15072
|
+
const htmlKey = String.fromCharCode(5);
|
|
15073
15073
|
template.replace(
|
|
15074
15074
|
templateCmdRegExp,
|
|
15075
15075
|
(match, operate, content, offset) => {
|
package/dist/webpack.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark.js/mvc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "@lark.js/mvc - TypeScript MVC framework",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"framework",
|
|
7
|
+
"lark",
|
|
8
|
+
"mvc"
|
|
9
|
+
],
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"author": "https://github.com/hangtiancheng",
|
|
5
12
|
"files": [
|
|
6
13
|
"dist",
|
|
7
14
|
"src/client.d.ts",
|
|
8
15
|
"README.md"
|
|
9
16
|
],
|
|
17
|
+
"type": "module",
|
|
18
|
+
"main": "dist/index.cjs",
|
|
19
|
+
"module": "dist/index.js",
|
|
20
|
+
"types": "dist/index.d.ts",
|
|
10
21
|
"exports": {
|
|
11
22
|
".": {
|
|
12
23
|
"import": {
|
|
@@ -49,9 +60,6 @@
|
|
|
49
60
|
}
|
|
50
61
|
}
|
|
51
62
|
},
|
|
52
|
-
"main": "dist/index.cjs",
|
|
53
|
-
"module": "dist/index.js",
|
|
54
|
-
"types": "dist/index.d.ts",
|
|
55
63
|
"scripts": {
|
|
56
64
|
"prepublish": "pnpm build",
|
|
57
65
|
"build": "pnpm build:tsup",
|
|
@@ -64,37 +72,30 @@
|
|
|
64
72
|
"test:watch": "vitest",
|
|
65
73
|
"test:coverage": "vitest run --coverage"
|
|
66
74
|
},
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
],
|
|
72
|
-
"author": "https://github.com/hangtiancheng",
|
|
73
|
-
"license": "ISC",
|
|
74
|
-
"packageManager": "pnpm@10.33.0",
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"@babel/parser": "^7.29.7",
|
|
77
|
+
"@babel/types": "^7.29.7"
|
|
78
|
+
},
|
|
75
79
|
"devDependencies": {
|
|
76
80
|
"@rollup/plugin-commonjs": "^29.0.3",
|
|
77
81
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
78
82
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
83
|
+
"@types/node": "^25.9.2",
|
|
79
84
|
"@vitest/coverage-v8": "4.1.6",
|
|
80
|
-
"rollup": "^4.61.
|
|
85
|
+
"rollup": "^4.61.1",
|
|
81
86
|
"rollup-plugin-dts": "^6.4.1",
|
|
82
87
|
"tsup": "^8.5.1",
|
|
83
88
|
"typescript": "^5.9.3",
|
|
84
89
|
"vite": "^8.0.16",
|
|
85
90
|
"vitest": "^4.1.8"
|
|
86
91
|
},
|
|
92
|
+
"peerDependencies": {
|
|
93
|
+
"vite": "^8.0.14"
|
|
94
|
+
},
|
|
87
95
|
"lint-staged": {
|
|
88
96
|
"*.{json,jsonc,js,cjs,mjs,jsx,ts,cts,mts,tsx,html,vue,css,scss,md,mdx}": [
|
|
89
97
|
"pnpm format"
|
|
90
98
|
]
|
|
91
99
|
},
|
|
92
|
-
"
|
|
93
|
-
"peerDependencies": {
|
|
94
|
-
"vite": "^8.0.14"
|
|
95
|
-
},
|
|
96
|
-
"dependencies": {
|
|
97
|
-
"@babel/parser": "^7.29.7",
|
|
98
|
-
"@babel/types": "^7.29.7"
|
|
99
|
-
}
|
|
100
|
+
"packageManager": "pnpm@10.33.0"
|
|
100
101
|
}
|