@lvce-editor/extension-detail-view 1.0.0 → 1.1.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.
@@ -2463,7 +2463,7 @@ class AssertionError extends Error {
2463
2463
  this.name = 'AssertionError';
2464
2464
  }
2465
2465
  }
2466
- const getType$1 = value => {
2466
+ const getType = value => {
2467
2467
  switch (typeof value) {
2468
2468
  case 'number':
2469
2469
  return 'number';
@@ -2486,7 +2486,7 @@ const getType$1 = value => {
2486
2486
  }
2487
2487
  };
2488
2488
  const number = value => {
2489
- const type = getType$1(value);
2489
+ const type = getType(value);
2490
2490
  if (type !== 'number') {
2491
2491
  throw new AssertionError('expected value to be of type number');
2492
2492
  }
@@ -2523,7 +2523,7 @@ class JsonRpcError extends Error {
2523
2523
  const MethodNotFound = -32601;
2524
2524
  const Custom = -32001;
2525
2525
  const E_COMMAND_NOT_FOUND = 'E_COMMAND_NOT_FOUND';
2526
- const getType = prettyError => {
2526
+ const getErrorType = prettyError => {
2527
2527
  if (prettyError && prettyError.type) {
2528
2528
  return prettyError.type;
2529
2529
  }
@@ -2546,7 +2546,7 @@ const getErrorProperty = (error, prettyError) => {
2546
2546
  data: {
2547
2547
  stack: prettyError.stack,
2548
2548
  codeFrame: prettyError.codeFrame,
2549
- type: getType(prettyError),
2549
+ type: getErrorType(prettyError),
2550
2550
  code: prettyError.code,
2551
2551
  name: prettyError.name
2552
2552
  }
package/package.json CHANGED
@@ -1,13 +1,10 @@
1
1
  {
2
2
  "name": "@lvce-editor/extension-detail-view",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "",
5
5
  "main": "dist/extensionSearchViewWorkerMain.js",
6
6
  "type": "module",
7
7
  "keywords": [],
8
8
  "author": "",
9
- "license": "MIT",
10
- "dependencies": {
11
- "marked": "^14.1.3"
12
- }
9
+ "license": "MIT"
13
10
  }