@supermetry/react-native 0.2.0 → 0.2.1

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/index.cjs CHANGED
@@ -56,7 +56,7 @@ var import_react_native2 = require("react-native");
56
56
 
57
57
  // src/platform.ts
58
58
  var import_react_native = require("react-native");
59
- var VERSION = "0.2.0";
59
+ var VERSION = "0.2.1";
60
60
  var SUFFIX = `Supermetry-ReactNative/${VERSION}`;
61
61
  function clean(value) {
62
62
  return typeof value === "string" ? value.replace(/[;()\r\n]/g, " ").replace(/\s+/g, " ").trim() : "";
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { AppState } from "react-native";
3
3
 
4
4
  // src/platform.ts
5
5
  import { Dimensions, Platform } from "react-native";
6
- var VERSION = "0.2.0";
6
+ var VERSION = "0.2.1";
7
7
  var SUFFIX = `Supermetry-ReactNative/${VERSION}`;
8
8
  function clean(value) {
9
9
  return typeof value === "string" ? value.replace(/[;()\r\n]/g, " ").replace(/\s+/g, " ").trim() : "";
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "0.2.0";
1
+ export declare const VERSION = "0.2.1";
2
2
  type PlatformLike = {
3
3
  OS: string;
4
4
  Version: number | string;
@@ -7,7 +7,7 @@ type PlatformLike = {
7
7
  };
8
8
  /**
9
9
  * Browser-shaped User-Agent so the server's parser detects OS and device class,
10
- * e.g. `Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) Supermetry-ReactNative/0.2.0`.
10
+ * e.g. `Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) Supermetry-ReactNative/0.2.1`.
11
11
  */
12
12
  export declare function buildUserAgent(platform?: PlatformLike): string;
13
13
  export declare function screenWidth(): number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supermetry/react-native",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "React Native SDK for Supermetry self-hosted analytics",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {