posthog-react-native 4.12.3 → 4.13.0

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/README.md CHANGED
@@ -4,6 +4,6 @@ Please see the main [PostHog docs](https://www.posthog.com/docs).
4
4
 
5
5
  Specifically, the [React Native docs](https://posthog.com/docs/libraries/react-native) details.
6
6
 
7
- ## Questions?
7
+ ## Questions??
8
8
 
9
9
  ### [Check out our community page.](https://posthog.com/posts)
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "4.12.3";
1
+ export declare const version = "4.13.0";
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.12.3";
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.version=void 0;var version=exports.version="4.13.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "posthog-react-native",
3
- "version": "4.12.3",
3
+ "version": "4.13.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "directory": "packages/react-native"
25
25
  },
26
26
  "dependencies": {
27
- "@posthog/core": "1.5.5"
27
+ "@posthog/core": "1.6.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@babel/cli": "^7.19.3",
@@ -55,8 +55,8 @@
55
55
  "react-native-svg": "^15.0.0",
56
56
  "ts-jest": "29.4.0",
57
57
  "typescript": "5.8.2",
58
- "@posthog-tooling/rollup-utils": "1.0.0",
59
- "@posthog-tooling/tsconfig-base": "1.0.0"
58
+ "@posthog-tooling/rollup-utils": "1.1.0",
59
+ "@posthog-tooling/tsconfig-base": "1.1.0"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "@react-native-async-storage/async-storage": ">=1.0.0",
@@ -40,14 +40,14 @@ elif [ -f "$HOME/.posthog/posthog-cli" ]; then
40
40
  PH_CLI_PATH="$HOME/.posthog/posthog-cli"
41
41
  else
42
42
  # Check if installed via npm -g @posthog/cli
43
- NPM_GLOBAL_PATH=$(npm root -g 2>/dev/null)
44
- if [ -n "$NPM_GLOBAL_PATH" ] && [ -f "$NPM_GLOBAL_PATH/@posthog/cli/bin/posthog-cli" ]; then
45
- PH_CLI_PATH="$NPM_GLOBAL_PATH/@posthog/cli/bin/posthog-cli"
43
+ NPM_GLOBAL_PREFIX=$(npm prefix -g 2>/dev/null)
44
+ if [ -n "$NPM_GLOBAL_PREFIX" ] && [ -f "$NPM_GLOBAL_PREFIX/bin/posthog-cli" ]; then
45
+ PH_CLI_PATH="$NPM_GLOBAL_PREFIX/bin/posthog-cli"
46
46
  else
47
47
  # Check if installed as local dependency
48
- NPM_LOCAL_BIN=$(npm bin 2>/dev/null)
49
- if [ -n "$NPM_LOCAL_BIN" ] && [ -f "$NPM_LOCAL_BIN/posthog-cli" ]; then
50
- PH_CLI_PATH="$NPM_LOCAL_BIN/posthog-cli"
48
+ NPM_LOCAL_ROOT=$(npm root 2>/dev/null)
49
+ if [ -n "$NPM_LOCAL_ROOT" ] && [ -f "$NPM_LOCAL_ROOT/.bin/posthog-cli" ]; then
50
+ PH_CLI_PATH="$NPM_LOCAL_ROOT/.bin/posthog-cli"
51
51
  else
52
52
  # Fallback to searching common locations
53
53
  export PATH="/usr/local/bin:/opt/homebrew/bin:$HOME/.cargo/bin:$HOME/.local/bin:$HOME/.posthog:$PATH"
@@ -108,4 +108,5 @@ else
108
108
  fi
109
109
  set -x -e
110
110
 
111
+
111
112
  exit 0