noibu-react-native 0.2.15 → 0.2.16

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/constants.js CHANGED
@@ -24,7 +24,7 @@ const CONTENT_TYPE = 'content-type';
24
24
  * Gets the script id from the cookie object, returns default if cannot be found
25
25
  */
26
26
  function GET_SCRIPT_ID() {
27
- return "1.0.104-rn-sdk-0.2.15" ;
27
+ return "1.0.104-rn-sdk-0.2.16" ;
28
28
  }
29
29
  /**
30
30
  * Gets the max metro recon number
package/dist/utils/log.js CHANGED
@@ -1,13 +1,15 @@
1
1
  /* eslint-disable no-console,@typescript-eslint/no-empty-function */
2
2
  /** no operation */
3
+ const noop = () => { };
3
4
  /**
4
5
  * checks if was overridden and calls original console function
5
6
  */
6
7
  const getConsoleMethod = (ogProp) => {
7
- // @ts-expect-error __noibu_original__ is not a standard property
8
- return console[ogProp].__noibu_original__ || console[ogProp];
8
+ {
9
+ return noop;
10
+ }
9
11
  };
10
12
  /**log with level = info */
11
- const noibuLog = (...msgs) => getConsoleMethod('log')('Noibu', ...msgs);
13
+ const noibuLog = (...msgs) => getConsoleMethod()('Noibu', ...msgs);
12
14
 
13
15
  export { noibuLog };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noibu-react-native",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "targetNjsVersion": "1.0.104",
5
5
  "description": "React-Native SDK for NoibuJS to collect errors in React-Native applications",
6
6
  "main": "dist/entry/index.js",