@lvce-editor/main-process 2.14.0 → 2.15.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.
@@ -1527,49 +1527,57 @@ class AssertionError extends Error {
1527
1527
  this.name = 'AssertionError';
1528
1528
  }
1529
1529
  }
1530
+ const Object$1 = 1;
1531
+ const Number$1 = 2;
1532
+ const Array$1 = 3;
1533
+ const String$1 = 4;
1534
+ const Boolean$1 = 5;
1535
+ const Function$1 = 6;
1536
+ const Null = 7;
1537
+ const Unknown$1 = 8;
1530
1538
  const getType = value => {
1531
1539
  switch (typeof value) {
1532
1540
  case 'number':
1533
- return 'number';
1541
+ return Number$1;
1534
1542
  case 'function':
1535
- return 'function';
1543
+ return Function$1;
1536
1544
  case 'string':
1537
- return 'string';
1545
+ return String$1;
1538
1546
  case 'object':
1539
1547
  if (value === null) {
1540
- return 'null';
1548
+ return Null;
1541
1549
  }
1542
1550
  if (Array.isArray(value)) {
1543
- return 'array';
1551
+ return Array$1;
1544
1552
  }
1545
- return 'object';
1553
+ return Object$1;
1546
1554
  case 'boolean':
1547
- return 'boolean';
1555
+ return Boolean$1;
1548
1556
  default:
1549
- return 'unknown';
1557
+ return Unknown$1;
1550
1558
  }
1551
1559
  };
1552
1560
  const object = value => {
1553
1561
  const type = getType(value);
1554
- if (type !== 'object') {
1562
+ if (type !== Object$1) {
1555
1563
  throw new AssertionError('expected value to be of type object');
1556
1564
  }
1557
1565
  };
1558
1566
  const number = value => {
1559
1567
  const type = getType(value);
1560
- if (type !== 'number') {
1568
+ if (type !== Number$1) {
1561
1569
  throw new AssertionError('expected value to be of type number');
1562
1570
  }
1563
1571
  };
1564
1572
  const array = value => {
1565
1573
  const type = getType(value);
1566
- if (type !== 'array') {
1574
+ if (type !== Array$1) {
1567
1575
  throw new AssertionError('expected value to be of type array');
1568
1576
  }
1569
1577
  };
1570
1578
  const string = value => {
1571
1579
  const type = getType(value);
1572
- if (type !== 'string') {
1580
+ if (type !== String$1) {
1573
1581
  throw new AssertionError('expected value to be of type string');
1574
1582
  }
1575
1583
  };
@@ -3144,7 +3152,7 @@ const listen$1 = async (module, options) => {
3144
3152
  const ipc = module.wrap(rawIpc);
3145
3153
  return ipc;
3146
3154
  };
3147
- const create$e = async ({
3155
+ const create$g = async ({
3148
3156
  commandMap,
3149
3157
  messagePort,
3150
3158
  requiresSocket
@@ -3163,9 +3171,9 @@ const create$e = async ({
3163
3171
  };
3164
3172
  const ElectronMessagePortRpcClient = {
3165
3173
  __proto__: null,
3166
- create: create$e
3174
+ create: create$g
3167
3175
  };
3168
- const create$c = async ({
3176
+ const create$e = async ({
3169
3177
  commandMap,
3170
3178
  env,
3171
3179
  argv,
@@ -3194,9 +3202,9 @@ const create$c = async ({
3194
3202
  };
3195
3203
  const ElectronUtilityProcessRpcParent = {
3196
3204
  __proto__: null,
3197
- create: create$c
3205
+ create: create$e
3198
3206
  };
3199
- const create$b = async ({
3207
+ const create$d = async ({
3200
3208
  commandMap,
3201
3209
  webContents,
3202
3210
  requiresSocket
@@ -3214,7 +3222,7 @@ const create$b = async ({
3214
3222
  };
3215
3223
  const ElectronWebContentsRpcClient = {
3216
3224
  __proto__: null,
3217
- create: create$b
3225
+ create: create$d
3218
3226
  };
3219
3227
 
3220
3228
  const commandMapRef = Object.create(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/main-process",
3
- "version": "2.14.0",
3
+ "version": "2.15.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "lvce-editor",
@@ -15,7 +15,7 @@
15
15
  "type": "module",
16
16
  "main": "dist/mainProcessMain.js",
17
17
  "dependencies": {
18
- "electron": "37.1.0"
18
+ "electron": "37.2.0"
19
19
  },
20
20
  "engines": {
21
21
  "node": ">=22"