@lvce-editor/settings-view 2.24.0 → 2.25.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/dist/settingsViewWorkerMain.js +43 -43
- package/package.json +1 -1
|
@@ -54,6 +54,49 @@ 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
|
+
|
|
57
100
|
const isMessagePort = value => {
|
|
58
101
|
return value && value instanceof MessagePort;
|
|
59
102
|
};
|
|
@@ -3084,49 +3127,6 @@ const {
|
|
|
3084
3127
|
set: set$3
|
|
3085
3128
|
} = create(RendererProcess);
|
|
3086
3129
|
|
|
3087
|
-
class AssertionError extends Error {
|
|
3088
|
-
constructor(message) {
|
|
3089
|
-
super(message);
|
|
3090
|
-
this.name = 'AssertionError';
|
|
3091
|
-
}
|
|
3092
|
-
}
|
|
3093
|
-
const Object$1 = 1;
|
|
3094
|
-
const Number$2 = 2;
|
|
3095
|
-
const Array$1 = 3;
|
|
3096
|
-
const String$1 = 4;
|
|
3097
|
-
const Boolean$2 = 5;
|
|
3098
|
-
const Function = 6;
|
|
3099
|
-
const Null = 7;
|
|
3100
|
-
const Unknown = 8;
|
|
3101
|
-
const getType = value => {
|
|
3102
|
-
switch (typeof value) {
|
|
3103
|
-
case 'number':
|
|
3104
|
-
return Number$2;
|
|
3105
|
-
case 'function':
|
|
3106
|
-
return Function;
|
|
3107
|
-
case 'string':
|
|
3108
|
-
return String$1;
|
|
3109
|
-
case 'object':
|
|
3110
|
-
if (value === null) {
|
|
3111
|
-
return Null;
|
|
3112
|
-
}
|
|
3113
|
-
if (Array.isArray(value)) {
|
|
3114
|
-
return Array$1;
|
|
3115
|
-
}
|
|
3116
|
-
return Object$1;
|
|
3117
|
-
case 'boolean':
|
|
3118
|
-
return Boolean$2;
|
|
3119
|
-
default:
|
|
3120
|
-
return Unknown;
|
|
3121
|
-
}
|
|
3122
|
-
};
|
|
3123
|
-
const number = value => {
|
|
3124
|
-
const type = getType(value);
|
|
3125
|
-
if (type !== Number$2) {
|
|
3126
|
-
throw new AssertionError('expected value to be of type number');
|
|
3127
|
-
}
|
|
3128
|
-
};
|
|
3129
|
-
|
|
3130
3130
|
const {
|
|
3131
3131
|
invoke: invoke$1,
|
|
3132
3132
|
set: set$2
|