@lvce-editor/renderer-process 10.22.0 → 10.23.0

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.
@@ -513,25 +513,12 @@ const create$3$1 = () => {
513
513
  const warn$1 = (...args) => {
514
514
  console.warn(...args);
515
515
  };
516
- const withResolvers$2 = () => {
517
- /**
518
- * @type {any}
519
- */
520
- let _resolve;
521
- const promise = new Promise(resolve => {
522
- _resolve = resolve;
523
- });
524
- return {
525
- resolve: _resolve,
526
- promise
527
- };
528
- };
529
516
  const registerPromise = () => {
530
517
  const id = create$3$1();
531
518
  const {
532
519
  resolve,
533
520
  promise
534
- } = withResolvers$2();
521
+ } = Promise.withResolvers();
535
522
  set$6(id, resolve);
536
523
  return {
537
524
  id,
@@ -697,7 +684,7 @@ const unwrapJsonRpcResult = responseMessage => {
697
684
  throw new JsonRpcError('unexpected response message');
698
685
  };
699
686
  const E_COMMAND_NOT_FOUND = 'E_COMMAND_NOT_FOUND';
700
- const getType$2 = prettyError => {
687
+ const getErrorType = prettyError => {
701
688
  if (prettyError && prettyError.type) {
702
689
  return prettyError.type;
703
690
  }
@@ -720,7 +707,7 @@ const getErrorProperty = (error, prettyError) => {
720
707
  data: {
721
708
  stack: prettyError.stack,
722
709
  codeFrame: prettyError.codeFrame,
723
- type: getType$2(prettyError),
710
+ type: getErrorType(prettyError),
724
711
  code: prettyError.code,
725
712
  name: prettyError.name
726
713
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/renderer-process",
3
- "version": "10.22.0",
3
+ "version": "10.23.0",
4
4
  "description": "",
5
5
  "main": "dist/rendererProcessMain.js",
6
6
  "type": "module",