esoftplay 0.0.113-y → 0.0.114
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/esp.ts +11 -1
- package/package.json +1 -1
package/esp.ts
CHANGED
|
@@ -12,8 +12,18 @@ const ignoreWarns = [
|
|
|
12
12
|
"ViewPropTypes will be removed",
|
|
13
13
|
"AsyncStorage has been extracted from react-native",
|
|
14
14
|
"EventEmitter.removeListener",
|
|
15
|
-
"Got a component with the name 'm'"
|
|
15
|
+
"Got a component with the name 'm'",
|
|
16
|
+
"Did not receive response to shouldStartLoad in time,"
|
|
16
17
|
];
|
|
18
|
+
|
|
19
|
+
const err = console.error;
|
|
20
|
+
console.error = (...arg) => {
|
|
21
|
+
for (let i = 0; i < ignoreWarns.length; i++) {
|
|
22
|
+
if (arg[0].startsWith(ignoreWarns[i])) return;
|
|
23
|
+
}
|
|
24
|
+
err(...arg);
|
|
25
|
+
};
|
|
26
|
+
|
|
17
27
|
const warn = console.warn;
|
|
18
28
|
console.warn = (...arg) => {
|
|
19
29
|
for (let i = 0; i < ignoreWarns.length; i++) {
|