noibu-react-native 0.2.14 → 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.
|
|
27
|
+
return "1.0.104-rn-sdk-0.2.16" ;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* Gets the max metro recon number
|
|
@@ -3,7 +3,6 @@ import { isObject } from '../../utils.js';
|
|
|
3
3
|
import { NodeType } from '../mobile.types.js';
|
|
4
4
|
import { makeOpenKeyboardPlaceholder, makeStatusBar, makeNavigationBar } from './screen-chrome.js';
|
|
5
5
|
import { makeHTMLStyles, makeBodyStyles, makeStylesString, asStyleString, makeMinimalStyles, makeDeterminateProgressStyles, makeIndeterminateProgressStyles, makePositionStyles, makeColorStyles } from './wireframeStyle.js';
|
|
6
|
-
import { noibuLog } from '../../../utils/log.js';
|
|
7
6
|
|
|
8
7
|
const BACKGROUND = '#f3f4ef';
|
|
9
8
|
const FOREGROUND = '#35373e';
|
|
@@ -220,12 +219,7 @@ function makePlaceholderElement(wireframe, children, context) {
|
|
|
220
219
|
};
|
|
221
220
|
}
|
|
222
221
|
function dataURIOrPNG(src) {
|
|
223
|
-
// replace all new lines in src
|
|
224
222
|
src = src.replace(/\r?\n|\r/g, '');
|
|
225
|
-
// if (!src.startsWith('data:image/')) {
|
|
226
|
-
// return 'data:image/png;base64,' + src;
|
|
227
|
-
// }
|
|
228
|
-
noibuLog("this is the url: ", src);
|
|
229
223
|
return src;
|
|
230
224
|
}
|
|
231
225
|
function makeImageElement(wireframe, children, context) {
|
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
|
-
|
|
8
|
-
|
|
8
|
+
{
|
|
9
|
+
return noop;
|
|
10
|
+
}
|
|
9
11
|
};
|
|
10
12
|
/**log with level = info */
|
|
11
|
-
const noibuLog = (...msgs) => getConsoleMethod(
|
|
13
|
+
const noibuLog = (...msgs) => getConsoleMethod()('Noibu', ...msgs);
|
|
12
14
|
|
|
13
15
|
export { noibuLog };
|
|
@@ -23,7 +23,7 @@ Pod::Spec.new do |s|
|
|
|
23
23
|
#s.vendored_frameworks = "ios/SessionRecorder.xcframework"
|
|
24
24
|
#s.vendored_frameworks = "ios/Noibu.xcframework"
|
|
25
25
|
|
|
26
|
-
s.dependency 'NoibuSDK'
|
|
26
|
+
s.dependency 'NoibuSDK', '0.0.2'
|
|
27
27
|
s.pod_target_xcconfig = {
|
|
28
28
|
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/noibu-react-native/ios/**\""
|
|
29
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "noibu-react-native",
|
|
3
|
-
"version": "0.2.
|
|
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",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@tsconfig/react-native": "^3.0.2",
|
|
72
72
|
"@types/jest": "^29.5.14",
|
|
73
73
|
"@types/node": "^20.2.3",
|
|
74
|
-
"@types/react": "
|
|
74
|
+
"@types/react": "16.14.62",
|
|
75
75
|
"@types/react-test-renderer": "^18.0.0",
|
|
76
76
|
"@typescript-eslint/eslint-plugin": "^8.19.1",
|
|
77
77
|
"@typescript-eslint/parser": "^8.19.1",
|