efront 3.35.7 → 3.35.8

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.
@@ -5,6 +5,7 @@ a: if (!setPrototypeOf) {
5
5
  var getOwnPropertyNames = Object.getOwnPropertyNames;
6
6
  var defineProperty = Object.defineProperty;
7
7
  try {
8
+ if (!getOwnPropertyNames) throw '不支持';
8
9
  defineProperty({}, 'o', { value: 0 });
9
10
  setPrototypeOf = function (obj, proto) {
10
11
  for (var n of getOwnPropertyNames(proto)) {
package/coms/kugou/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  "song-info;hash": "get app/i/getSongInfo.php?cmd=playInfo&from=mkugou",
4
4
  "slider-src": "get:[].mod-slider>.swipe-wrap>div .#src=img!src&href=a!href",
5
5
  "songs-list": "get:[].panel-songslist%20li .#hash=!id&.panel-songs-item-name>span!innerText",
6
- "songs-list": "get:[]div+.m_cm_item1warp>div .#=a!href\\song-mix&a+a>p:first-child!innerText&singer=a+a>p+p!innerText&imgurl=img!_src",
6
+ "songs-list": "get:[]div:first-child+.m_cm_item1warp>div .#=a!href\\song-mix&a+a>p:first-child!innerText&singer=a+a>p+p!innerText&imgurl=img!_src",
7
7
  "song-mix;": "mget:script+script mixsong/:hashid.html",
8
8
  "rank-list": "get:[].panel-img-list%20li rank/list#href=a!href&=a!href\\rank-info&imgurl=img!_src&name=p|innerText",
9
9
  "rank-info": "get:[].panel-songslist%20li rank/info/:id#src=!id&name=.panel-songs-item-name|innerText&data=.panel-songs-item-download/innerText",
@@ -651,7 +651,7 @@ function list() {
651
651
  if (c.nodeType === 1 && c.$comment && isFinite(c.$comment.index)) return true;
652
652
  return false;
653
653
  });
654
- if (src && old) children = children.filter(c => src[c.index] !== old[c.index]);
654
+ if (src && old) children = Array.prototype.filter.call(children, c => src[c.index] !== old[c.index]);
655
655
  remove(children);
656
656
  };
657
657
 
@@ -105,7 +105,7 @@ var transitionKey = css.transformNodeKey("transition");
105
105
 
106
106
  function transition(target, _isLeave, _initialStyle) {
107
107
  if (!target) return;
108
- if ((isObject(isLeave) || typeof isLeave === "string") && (isFinite(_initialStyle) || !_initialStyle)) {
108
+ if ((isObject(_isLeave) || typeof _isLeave === "string") && (isFinite(_initialStyle) || !_initialStyle)) {
109
109
  var temp = _initialStyle;
110
110
  _initialStyle = _isLeave;
111
111
  _isLeave = temp;
@@ -138,9 +138,6 @@ function transition(target, _isLeave, _initialStyle) {
138
138
  var { recoverStyle, transitionTimerStart, transitionTimerEnd, captureStyle } = target;
139
139
  clearTimeout(transitionTimerStart);
140
140
  clearTimeout(transitionTimerEnd);
141
- if (isString(initialStyle)) {
142
- initialStyle = parseKV(initialStyle, ";", ":");
143
- }
144
141
  var transitionDuration = 100;
145
142
  if (!initialStyle[transitionKey]) {
146
143
  initialStyle[transitionKey] = "all .3s ease";
@@ -189,7 +186,7 @@ function transition(target, _isLeave, _initialStyle) {
189
186
  transitionTimerEnd = setTimeout(function () {
190
187
  if (transitionKey) target.style[transitionKey] = recoverStyle[transitionKey];
191
188
  extend(target.style, recoverStyle);
192
- }, transitionDuration + 2);
189
+ }, transitionDuration + 29);
193
190
  } else {
194
191
  extend(target.style, initialStyle);
195
192
  if (transitionKey) target.style[transitionKey] = "none";
@@ -46,7 +46,7 @@ function tree() {
46
46
  var changed_index, changed_offset;
47
47
  var saved_top, saved_offset, timer = 0, timeout = function (call, time) {
48
48
  clearTimeout(timer);
49
- timer = setTimeout(call, time + 100);
49
+ timer = setTimeout(call, time);
50
50
  };
51
51
  var banner = list(element, function (index) {
52
52
  var coms = dom;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "3.35.7",
3
+ "version": "3.35.8",
4
4
  "description": "简化前端开发,优化web性能",
5
5
  "main": "public/efront.js",
6
6
  "directories": {
@@ -18,10 +18,7 @@
18
18
  "url": "https://github.com/yunxu1019/efront.git"
19
19
  },
20
20
  "keywords": [
21
- "efront",
22
- "前端",
23
- "server",
24
- "webpack"
21
+ "efront"
25
22
  ],
26
23
  "author": "yunxu1019",
27
24
  "license": "MIT"