@arcblock/terminal 2.5.48 → 2.5.49

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/lib/Player.js CHANGED
@@ -185,7 +185,7 @@ function Player(props) {
185
185
 
186
186
  }, []); // Tick intervals
187
187
 
188
- (0, _useInterval.default)(async () => {
188
+ (0, _useInterval.default)(() => {
189
189
  if (state.isRendering) {
190
190
  return false;
191
191
  }
@@ -325,7 +325,7 @@ function Player(props) {
325
325
  return false;
326
326
  };
327
327
 
328
- const onPlay = async () => {
328
+ const onPlay = () => {
329
329
  if (state.currentFrame === frames.length - 1 && state.currentTime === totalDuration) {
330
330
  dispatch({
331
331
  type: 'reset'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/terminal",
3
- "version": "2.5.48",
3
+ "version": "2.5.49",
4
4
  "description": "A react wrapper for xterm allowing you to easily render a terminal in the browser",
5
5
  "keywords": [
6
6
  "react",
@@ -46,10 +46,10 @@
46
46
  "peerDependencies": {
47
47
  "react": ">=18.1.0"
48
48
  },
49
- "gitHead": "79c5d91c07cd0d7c76286b9865d902a27acc163f",
49
+ "gitHead": "984f01cb1503cac77e52885893a9f50269f3da91",
50
50
  "dependencies": {
51
- "@arcblock/react-hooks": "^2.5.48",
52
- "@arcblock/ux": "^2.5.48",
51
+ "@arcblock/react-hooks": "^2.5.49",
52
+ "@arcblock/ux": "^2.5.49",
53
53
  "@emotion/react": "^11.10.4",
54
54
  "@emotion/styled": "^11.10.4",
55
55
  "core-js": "^3.25.5",
package/src/Player.js CHANGED
@@ -160,7 +160,7 @@ export default function Player(props) {
160
160
 
161
161
  // Tick intervals
162
162
  useInterval(
163
- async () => {
163
+ () => {
164
164
  if (state.isRendering) {
165
165
  return false;
166
166
  }
@@ -277,7 +277,7 @@ export default function Player(props) {
277
277
  return false;
278
278
  };
279
279
 
280
- const onPlay = async () => {
280
+ const onPlay = () => {
281
281
  if (state.currentFrame === frames.length - 1 && state.currentTime === totalDuration) {
282
282
  dispatch({ type: 'reset' });
283
283
  terminal.current.reset();