@byteluck-fe/model-driven-shared 2.23.0-beta.18 â 2.23.0-beta.19
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/esm/log.js +15 -25
- package/package.json +2 -2
package/dist/esm/log.js
CHANGED
|
@@ -12,6 +12,10 @@ function _assert_this_initialized(self) {
|
|
|
12
12
|
}
|
|
13
13
|
return self;
|
|
14
14
|
}
|
|
15
|
+
function _call_super(_this, derived, args) {
|
|
16
|
+
derived = _get_prototype_of(derived);
|
|
17
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
18
|
+
}
|
|
15
19
|
function _class_call_check(instance, Constructor) {
|
|
16
20
|
if (!(instance instanceof Constructor)) {
|
|
17
21
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -117,28 +121,12 @@ function _wrap_native_super(Class) {
|
|
|
117
121
|
return _wrap_native_super(Class);
|
|
118
122
|
}
|
|
119
123
|
function _is_native_reflect_construct() {
|
|
120
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
121
|
-
if (Reflect.construct.sham) return false;
|
|
122
|
-
if (typeof Proxy === "function") return true;
|
|
123
124
|
try {
|
|
124
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
return
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
function _create_super(Derived) {
|
|
131
|
-
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
132
|
-
return function _createSuperInternal() {
|
|
133
|
-
var Super = _get_prototype_of(Derived), result;
|
|
134
|
-
if (hasNativeReflectConstruct) {
|
|
135
|
-
var NewTarget = _get_prototype_of(this).constructor;
|
|
136
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
137
|
-
} else {
|
|
138
|
-
result = Super.apply(this, arguments);
|
|
139
|
-
}
|
|
140
|
-
return _possible_constructor_return(this, result);
|
|
141
|
-
};
|
|
125
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
126
|
+
} catch (_) {}
|
|
127
|
+
return (_is_native_reflect_construct = function() {
|
|
128
|
+
return !!result;
|
|
129
|
+
})();
|
|
142
130
|
}
|
|
143
131
|
var logger = console;
|
|
144
132
|
export function warn() {
|
|
@@ -168,11 +156,12 @@ function joinMessage(message) {
|
|
|
168
156
|
var DrivenError = /*#__PURE__*/ function(Error1) {
|
|
169
157
|
"use strict";
|
|
170
158
|
_inherits(DrivenError, Error1);
|
|
171
|
-
var _super = _create_super(DrivenError);
|
|
172
159
|
function DrivenError(message) {
|
|
173
160
|
_class_call_check(this, DrivenError);
|
|
174
161
|
var _this;
|
|
175
|
-
_this =
|
|
162
|
+
_this = _call_super(this, DrivenError, [
|
|
163
|
+
message
|
|
164
|
+
]);
|
|
176
165
|
_this.name = 'đ„ Driven Error';
|
|
177
166
|
_this.message = message ? joinMessage(message) : 'An unknown error occurred in the Driven, please contact the person in charge đđđ';
|
|
178
167
|
return _this;
|
|
@@ -183,11 +172,12 @@ var DrivenError = /*#__PURE__*/ function(Error1) {
|
|
|
183
172
|
var DrivenReferenceError = /*#__PURE__*/ function(DrivenError) {
|
|
184
173
|
"use strict";
|
|
185
174
|
_inherits(DrivenReferenceError, DrivenError);
|
|
186
|
-
var _super = _create_super(DrivenReferenceError);
|
|
187
175
|
function DrivenReferenceError(message) {
|
|
188
176
|
_class_call_check(this, DrivenReferenceError);
|
|
189
177
|
var _this;
|
|
190
|
-
_this =
|
|
178
|
+
_this = _call_super(this, DrivenReferenceError, [
|
|
179
|
+
message
|
|
180
|
+
]);
|
|
191
181
|
_this.name = 'đš Driven Reference Error';
|
|
192
182
|
return _this;
|
|
193
183
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byteluck-fe/model-driven-shared",
|
|
3
|
-
"version": "2.23.0-beta.
|
|
3
|
+
"version": "2.23.0-beta.19",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "éæšć
<2293885211@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"humps": "^2.0.1",
|
|
32
32
|
"vue-i18n": "^9.13.1"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "648c360c9b27873b5d8f96e0d54f6445ddb1a49a"
|
|
35
35
|
}
|