efront 4.34.0 → 4.34.1

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.
@@ -43,7 +43,7 @@ function joinsharp(sharped, ctx) {
43
43
  if (sharped[sharped.length - 1] === '.') sharped[sharped.length - 1] = "";
44
44
  for (var cx = 0, dx = sharped.length; cx < dx; cx++) {
45
45
  var s = sharped[cx];
46
- var plus = /^\//.test(s);
46
+ var plus = /^;/.test(s);
47
47
  if (plus) s = s.slice(1);
48
48
  call = will;
49
49
  will = willcall[cx + 1];
@@ -172,7 +172,7 @@ function main(express, autodef = true) {
172
172
  if (/^[\[\("'`]/.test(s)) e = e.replace(/\.$/, '');
173
173
  }
174
174
  else if (!cache.length) {
175
- return exp.push('/' + s);
175
+ return exp.push(';' + s);
176
176
  }
177
177
  e += s;
178
178
  exp[exp.length - 1] = e;
@@ -17,3 +17,4 @@ assert(renderExpress("[]?.()"), "(function(a,_){return a==_?_:a()}([]))")
17
17
  assert(renderExpress("[]?.[]"), "(function(a,_){return a==_?_:a[]}([]))")
18
18
  assert(renderExpress("a['a?.a']"), "a['a?.a']")
19
19
  assert(renderExpress("a?.['a?.a']?.b"), "(typeof a==='undefined'||a===null?void 0:function(a,_){if(a==_)return;a=a['a?.a'];if(a==_)return;a=a.b;return a}(a))")
20
+ assert(renderExpress("/\?(\w+)$/.exec(location.href)?.[1]"), "(function(a,_){return a==_?_:a[1]}(/?(w+)$/.exec(location.href)))")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "4.34.0",
3
+ "version": "4.34.1",
4
4
  "description": "一个开发环境,提供一种自由的前端开发模式,也可作为辅助工具使用。",
5
5
  "main": "public/efront.js",
6
6
  "directories": {