Skip to content

Commit e085079

Browse files
committed
[build] 0.8.4
1 parent f46dcb4 commit e085079

File tree

9 files changed

+45
-18
lines changed

9 files changed

+45
-18
lines changed

bundle-size/common.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

bundle-size/es.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

bundle-size/min.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

bundle-size/umd.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/index.browser.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
/**
3-
* chimee v0.8.3
3+
* chimee v0.8.4
44
* (c) 2017-2018 toxic-johann
55
* Released under MIT
66
*/
@@ -7559,6 +7559,8 @@ function accessorVideoAttribute(attribute) {
75597559
this.dom.setAttr('video', _set, val);
75607560
return value;
75617561
}
7562+
}, {
7563+
preSet: false
75627564
});
75637565
}
75647566

@@ -7628,7 +7630,14 @@ var accessorMap = {
76287630
loop: [boolean$1(), accessorVideoProperty('loop')],
76297631
defaultMuted: [boolean$1(), accessorVideoAttribute({ get: 'defaultMuted', set: 'muted', isBoolean: true })],
76307632
muted: [boolean$1(), accessorVideoProperty('muted')],
7631-
preload: [accessor({ set: stringOrVoid }), accessorVideoAttribute('preload')],
7633+
preload: [accessor({
7634+
set: function set(value) {
7635+
var options = ['none', 'auto', 'metadata', ''];
7636+
return options.indexOf(value) > -1 ? value : 'none';
7637+
}
7638+
}, {
7639+
preSet: true
7640+
}), accessorVideoAttribute('preload')],
76327641
poster: [
76337642
// 因为如果在 video 上随便加一个字符串,他会将其拼接到地址上,所以这里要避免
76347643
// 单元测试无法检测
@@ -8376,7 +8385,7 @@ var Plugin = (_dec$3 = autobindClass(), _dec$3(_class$3 = function (_VideoWrappe
83768385
var _this = _possibleConstructorReturn(this, (Plugin.__proto__ || _Object$getPrototypeOf(Plugin)).call(this));
83778386

83788387
_this.destroyed = false;
8379-
_this.VERSION = '0.8.3';
8388+
_this.VERSION = '0.8.4';
83808389
_this.__operable = true;
83818390
_this.__level = 0;
83828391

@@ -10461,7 +10470,7 @@ var Chimee = (_dec = autobindClass(), _dec(_class = (_class2 = (_temp = _class3
1046110470
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'version', [frozen], {
1046210471
enumerable: true,
1046310472
initializer: function initializer() {
10464-
return '0.8.3';
10473+
return '0.8.4';
1046510474
}
1046610475
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'config', [frozen], {
1046710476
enumerable: true,

lib/index.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
/**
3-
* chimee v0.8.3
3+
* chimee v0.8.4
44
* (c) 2017-2018 toxic-johann
55
* Released under MIT
66
*/
@@ -913,6 +913,8 @@ function accessorVideoAttribute(attribute) {
913913
this.dom.setAttr('video', _set, val);
914914
return value;
915915
}
916+
}, {
917+
preSet: false
916918
});
917919
}
918920

@@ -982,7 +984,14 @@ var accessorMap = {
982984
loop: [toxicDecorators.alwaysBoolean(), accessorVideoProperty('loop')],
983985
defaultMuted: [toxicDecorators.alwaysBoolean(), accessorVideoAttribute({ get: 'defaultMuted', set: 'muted', isBoolean: true })],
984986
muted: [toxicDecorators.alwaysBoolean(), accessorVideoProperty('muted')],
985-
preload: [toxicDecorators.accessor({ set: stringOrVoid }), accessorVideoAttribute('preload')],
987+
preload: [toxicDecorators.accessor({
988+
set: function set(value) {
989+
var options = ['none', 'auto', 'metadata', ''];
990+
return options.indexOf(value) > -1 ? value : 'none';
991+
}
992+
}, {
993+
preSet: true
994+
}), accessorVideoAttribute('preload')],
986995
poster: [
987996
// 因为如果在 video 上随便加一个字符串,他会将其拼接到地址上,所以这里要避免
988997
// 单元测试无法检测
@@ -1730,7 +1739,7 @@ var Plugin = (_dec$3 = toxicDecorators.autobindClass(), _dec$3(_class$3 = functi
17301739
var _this = _possibleConstructorReturn(this, (Plugin.__proto__ || _Object$getPrototypeOf(Plugin)).call(this));
17311740

17321741
_this.destroyed = false;
1733-
_this.VERSION = '0.8.3';
1742+
_this.VERSION = '0.8.4';
17341743
_this.__operable = true;
17351744
_this.__level = 0;
17361745

@@ -3531,7 +3540,7 @@ var Chimee = (_dec = toxicDecorators.autobindClass(), _dec(_class = (_class2 = (
35313540
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'version', [toxicDecorators.frozen], {
35323541
enumerable: true,
35333542
initializer: function initializer() {
3534-
return '0.8.3';
3543+
return '0.8.4';
35353544
}
35363545
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'config', [toxicDecorators.frozen], {
35373546
enumerable: true,

lib/index.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.mjs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
/**
3-
* chimee v0.8.3
3+
* chimee v0.8.4
44
* (c) 2017-2018 toxic-johann
55
* Released under MIT
66
*/
@@ -909,6 +909,8 @@ function accessorVideoAttribute(attribute) {
909909
this.dom.setAttr('video', _set, val);
910910
return value;
911911
}
912+
}, {
913+
preSet: false
912914
});
913915
}
914916

@@ -978,7 +980,14 @@ var accessorMap = {
978980
loop: [alwaysBoolean(), accessorVideoProperty('loop')],
979981
defaultMuted: [alwaysBoolean(), accessorVideoAttribute({ get: 'defaultMuted', set: 'muted', isBoolean: true })],
980982
muted: [alwaysBoolean(), accessorVideoProperty('muted')],
981-
preload: [accessor({ set: stringOrVoid }), accessorVideoAttribute('preload')],
983+
preload: [accessor({
984+
set: function set(value) {
985+
var options = ['none', 'auto', 'metadata', ''];
986+
return options.indexOf(value) > -1 ? value : 'none';
987+
}
988+
}, {
989+
preSet: true
990+
}), accessorVideoAttribute('preload')],
982991
poster: [
983992
// 因为如果在 video 上随便加一个字符串,他会将其拼接到地址上,所以这里要避免
984993
// 单元测试无法检测
@@ -1726,7 +1735,7 @@ var Plugin = (_dec$3 = autobindClass(), _dec$3(_class$3 = function (_VideoWrappe
17261735
var _this = _possibleConstructorReturn(this, (Plugin.__proto__ || _Object$getPrototypeOf(Plugin)).call(this));
17271736

17281737
_this.destroyed = false;
1729-
_this.VERSION = '0.8.3';
1738+
_this.VERSION = '0.8.4';
17301739
_this.__operable = true;
17311740
_this.__level = 0;
17321741

@@ -3527,7 +3536,7 @@ var Chimee = (_dec = autobindClass(), _dec(_class = (_class2 = (_temp = _class3
35273536
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'version', [frozen], {
35283537
enumerable: true,
35293538
initializer: function initializer() {
3530-
return '0.8.3';
3539+
return '0.8.4';
35313540
}
35323541
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'config', [frozen], {
35333542
enumerable: true,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chimee",
3-
"version": "0.8.3",
3+
"version": "0.8.4",
44
"description": "a video-player aims to bring wonderful experience on browser",
55
"main": "lib/index.js",
66
"module": "lib/index.mjs",

0 commit comments

Comments
 (0)