posthog-react-native 4.46.15 → 4.46.17

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/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "4.46.15";
1
+ export declare const version = "4.46.17";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.version=void 0;var version=exports.version="4.46.15";
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.version=void 0;var version=exports.version="4.46.17";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-react-native",
3
- "version": "4.46.15",
3
+ "version": "4.46.17",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,8 +28,8 @@
28
28
  "directory": "packages/react-native"
29
29
  },
30
30
  "dependencies": {
31
- "@posthog/core": "1.30.7",
32
- "@posthog/types": "1.380.0"
31
+ "@posthog/core": "1.30.8",
32
+ "@posthog/types": "1.380.1"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@babel/cli": "^7.19.3",
@@ -68,8 +68,8 @@
68
68
  "react-native-svg": "^15.0.0",
69
69
  "ts-jest": "29.4.0",
70
70
  "typescript": "5.8.2",
71
- "@posthog-tooling/rollup-utils": "1.1.1",
72
- "@posthog-tooling/tsconfig-base": "1.1.1"
71
+ "@posthog-tooling/tsconfig-base": "1.1.1",
72
+ "@posthog-tooling/rollup-utils": "1.1.1"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "@react-native-async-storage/async-storage": ">=1.0.0",
@@ -12,6 +12,24 @@ set -x -e
12
12
  # (Xcode runs build phases with a minimal PATH)
13
13
  export PATH="/usr/bin:/usr/local/bin:/opt/homebrew/bin:$HOME/.cargo/bin:$HOME/.local/bin:$HOME/.posthog:$PATH"
14
14
 
15
+ print_prefixed_output() {
16
+ local prefix="$1"
17
+ local output="$2"
18
+
19
+ if [ -n "$output" ]; then
20
+ echo "$output" | awk -v prefix="$prefix" '{print prefix $0}'
21
+ fi
22
+ }
23
+
24
+ print_command_error() {
25
+ local command_name="$1"
26
+ local exit_code="$2"
27
+ local output="$3"
28
+
29
+ echo "error: ${command_name} failed with exit code ${exit_code}"
30
+ print_prefixed_output "error: ${command_name} - " "$output"
31
+ }
32
+
15
33
  # WITH_ENVIRONMENT is executed by React Native
16
34
 
17
35
  REACT_NATIVE_XCODE_DEFAULT="../node_modules/react-native/scripts/react-native-xcode.sh"
@@ -174,7 +192,7 @@ CLONE_EXIT_CODE=$?
174
192
  if [ $CLONE_EXIT_CODE -eq 0 ]; then
175
193
  echo "$CLI_CLONE_OUTPUT" | awk '{print "output: posthog-cli - " $0}'
176
194
  else
177
- echo "error: posthog-cli - $CLI_CLONE_OUTPUT"
195
+ print_command_error "posthog-cli hermes clone" "$CLONE_EXIT_CODE" "$CLI_CLONE_OUTPUT"
178
196
  exit $CLONE_EXIT_CODE
179
197
  fi
180
198
  set -x -e
@@ -186,7 +204,7 @@ UPLOAD_EXIT_CODE=$?
186
204
  if [ $UPLOAD_EXIT_CODE -eq 0 ]; then
187
205
  echo "$CLI_UPLOAD_OUTPUT" | awk '{print "output: posthog-cli - " $0}'
188
206
  else
189
- echo "error: posthog-cli - $CLI_UPLOAD_OUTPUT"
207
+ print_command_error "posthog-cli hermes upload" "$UPLOAD_EXIT_CODE" "$CLI_UPLOAD_OUTPUT"
190
208
  exit $UPLOAD_EXIT_CODE
191
209
  fi
192
210
  set -x -e