@lvce-editor/settings-view 2.15.0 → 2.17.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.
package/README.md CHANGED
@@ -10,7 +10,3 @@ cd settings-view &&
10
10
  npm ci &&
11
11
  npm test
12
12
  ```
13
-
14
- ## Gitpod
15
-
16
- [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/lvce-editor/settings-view)
@@ -54,49 +54,6 @@ class VError extends Error {
54
54
  }
55
55
  }
56
56
 
57
- class AssertionError extends Error {
58
- constructor(message) {
59
- super(message);
60
- this.name = 'AssertionError';
61
- }
62
- }
63
- const Object$1 = 1;
64
- const Number$2 = 2;
65
- const Array$1 = 3;
66
- const String$1 = 4;
67
- const Boolean$2 = 5;
68
- const Function = 6;
69
- const Null = 7;
70
- const Unknown = 8;
71
- const getType = value => {
72
- switch (typeof value) {
73
- case 'number':
74
- return Number$2;
75
- case 'function':
76
- return Function;
77
- case 'string':
78
- return String$1;
79
- case 'object':
80
- if (value === null) {
81
- return Null;
82
- }
83
- if (Array.isArray(value)) {
84
- return Array$1;
85
- }
86
- return Object$1;
87
- case 'boolean':
88
- return Boolean$2;
89
- default:
90
- return Unknown;
91
- }
92
- };
93
- const number = value => {
94
- const type = getType(value);
95
- if (type !== Number$2) {
96
- throw new AssertionError('expected value to be of type number');
97
- }
98
- };
99
-
100
57
  const isMessagePort = value => {
101
58
  return value && value instanceof MessagePort;
102
59
  };
@@ -2999,6 +2956,49 @@ const create = rpcId => {
2999
2956
  };
3000
2957
  };
3001
2958
 
2959
+ class AssertionError extends Error {
2960
+ constructor(message) {
2961
+ super(message);
2962
+ this.name = 'AssertionError';
2963
+ }
2964
+ }
2965
+ const Object$1 = 1;
2966
+ const Number$2 = 2;
2967
+ const Array$1 = 3;
2968
+ const String$1 = 4;
2969
+ const Boolean$2 = 5;
2970
+ const Function = 6;
2971
+ const Null = 7;
2972
+ const Unknown = 8;
2973
+ const getType = value => {
2974
+ switch (typeof value) {
2975
+ case 'number':
2976
+ return Number$2;
2977
+ case 'function':
2978
+ return Function;
2979
+ case 'string':
2980
+ return String$1;
2981
+ case 'object':
2982
+ if (value === null) {
2983
+ return Null;
2984
+ }
2985
+ if (Array.isArray(value)) {
2986
+ return Array$1;
2987
+ }
2988
+ return Object$1;
2989
+ case 'boolean':
2990
+ return Boolean$2;
2991
+ default:
2992
+ return Unknown;
2993
+ }
2994
+ };
2995
+ const number = value => {
2996
+ const type = getType(value);
2997
+ if (type !== Number$2) {
2998
+ throw new AssertionError('expected value to be of type number');
2999
+ }
3000
+ };
3001
+
3002
3002
  const {
3003
3003
  dispose,
3004
3004
  invoke,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/settings-view",
3
- "version": "2.15.0",
3
+ "version": "2.17.0",
4
4
  "description": "Explorer Worker",
5
5
  "repository": {
6
6
  "type": "git",