Skip to content

Commit

Permalink
[build] 1.3.2
Browse files Browse the repository at this point in the history
fix flow config error
  • Loading branch information
toxic-johann committed Dec 17, 2017
1 parent 3e111ab commit 35dfc3b
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/index.browser.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/**
* chimee-kernel v1.3.1
* chimee-kernel v1.3.2
* (c) 2017 songguangyu
* Released under MIT
*/
Expand Down Expand Up @@ -4704,7 +4704,7 @@ var ChimeeKernel = function (_CustEvent) {

var _this = _possibleConstructorReturn(this, (ChimeeKernel.__proto__ || _Object$getPrototypeOf(ChimeeKernel)).call(this));

_this.VERSION = '1.3.1';
_this.VERSION = '1.3.2';

if (!isElement(videoElement)) throw new Error('You must pass in an video element to the chimee-kernel');
// copy and maintain only one config for chimee-kernel
Expand Down
27 changes: 27 additions & 0 deletions lib/index.flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,30 @@ declare module 'chimee-kernel' {
refresh(): void;
}
}

declare type KernelConfig = {
src: string,
isLive: boolean,
box: string,
preset: {
[string]: Function,
},
presetConfig: {
[string]: Object,
},
};

declare export class VideoKernel extends Custevent {
static isSupport(): boolean;
constructor(videoElement: HTMLVideoElement, config: Object, customConfig: Object): void;
video: HTMLVideoElement;
config: Object;
load(src: string): void;
unload(): void;
play(): void;
pause(): void;
refresh(): void;
attachMedia(): void;
seek(seconds: number): void;
destroy(): void;
}
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/**
* chimee-kernel v1.3.1
* chimee-kernel v1.3.2
* (c) 2017 songguangyu
* Released under MIT
*/
Expand Down Expand Up @@ -115,7 +115,7 @@ var ChimeeKernel = function (_CustEvent) {

var _this = _possibleConstructorReturn(this, (ChimeeKernel.__proto__ || _Object$getPrototypeOf(ChimeeKernel)).call(this));

_this.VERSION = '1.3.1';
_this.VERSION = '1.3.2';

if (!chimeeHelper.isElement(videoElement)) throw new Error('You must pass in an video element to the chimee-kernel');
// copy and maintain only one config for chimee-kernel
Expand Down
2 changes: 1 addition & 1 deletion lib/index.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/index.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/**
* chimee-kernel v1.3.1
* chimee-kernel v1.3.2
* (c) 2017 songguangyu
* Released under MIT
*/
Expand Down Expand Up @@ -111,7 +111,7 @@ var ChimeeKernel = function (_CustEvent) {

var _this = _possibleConstructorReturn(this, (ChimeeKernel.__proto__ || _Object$getPrototypeOf(ChimeeKernel)).call(this));

_this.VERSION = '1.3.1';
_this.VERSION = '1.3.2';

if (!isElement(videoElement)) throw new Error('You must pass in an video element to the chimee-kernel');
// copy and maintain only one config for chimee-kernel
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chimee-kernel",
"version": "1.3.1",
"version": "1.3.2",
"description": "kernel of chimee",
"main": "lib/index.js",
"module": "lib/index.mjs",
Expand Down

0 comments on commit 35dfc3b

Please sign in to comment.