posthog-react-native 4.37.4 → 4.37.6

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.37.4";
1
+ export declare const version = "4.37.6";
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.37.4";
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.version=void 0;var version=exports.version="4.37.6";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-react-native",
3
- "version": "4.37.4",
3
+ "version": "4.37.6",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "directory": "packages/react-native"
29
29
  },
30
30
  "dependencies": {
31
- "@posthog/core": "1.24.0"
31
+ "@posthog/core": "1.24.1"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@babel/cli": "^7.19.3",
@@ -36,18 +36,18 @@ if [ -f "$HOME/.posthog/posthog-cli" ]; then
36
36
  PH_CLI_PATH="$HOME/.posthog/posthog-cli"
37
37
  else
38
38
  # Check if installed via npm -g @posthog/cli
39
- NPM_GLOBAL_PREFIX=$(npm prefix -g 2>/dev/null)
39
+ NPM_GLOBAL_PREFIX=$(npm prefix -g 2>/dev/null || true)
40
40
  if [ -n "$NPM_GLOBAL_PREFIX" ] && [ -f "$NPM_GLOBAL_PREFIX/bin/posthog-cli" ]; then
41
41
  PH_CLI_PATH="$NPM_GLOBAL_PREFIX/bin/posthog-cli"
42
42
  else
43
43
  # Check if installed as local dependency
44
- NPM_LOCAL_ROOT=$(npm root 2>/dev/null)
44
+ NPM_LOCAL_ROOT=$(npm root 2>/dev/null || true)
45
45
  if [ -n "$NPM_LOCAL_ROOT" ] && [ -f "$NPM_LOCAL_ROOT/.bin/posthog-cli" ]; then
46
46
  PH_CLI_PATH="$NPM_LOCAL_ROOT/.bin/posthog-cli"
47
47
  else
48
48
  # Fallback to searching common locations
49
49
  export PATH="/usr/local/bin:/opt/homebrew/bin:$HOME/.cargo/bin:$HOME/.local/bin:$HOME/.posthog:$PATH"
50
- PH_CLI_PATH=$(command -v posthog-cli 2>/dev/null)
50
+ PH_CLI_PATH=$(command -v posthog-cli 2>/dev/null || true)
51
51
  fi
52
52
  fi
53
53
  fi