@tryvital/vital-core-react-native 0.3.2 → 1.1.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.
Files changed (2) hide show
  1. package/package.json +1 -29
  2. package/src/index.ts +13 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvital/vital-core-react-native",
3
- "version": "0.3.2",
3
+ "version": "1.1.0",
4
4
  "description": "test",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -30,7 +30,6 @@
30
30
  "test": "jest",
31
31
  "typescript": "tsc --declaration",
32
32
  "lint": "eslint \"**/*.{js,ts,tsx}\"",
33
- "release": "release-it",
34
33
  "example": "yarn --cwd example",
35
34
  "bootstrap": "yarn example && yarn install && yarn example pods",
36
35
  "clean": "del-cli android/build example/android/build example/android/app/build example/ios/build"
@@ -50,14 +49,10 @@
50
49
  "registry": "https://registry.npmjs.org/"
51
50
  },
52
51
  "devDependencies": {
53
- "@arkweid/lefthook": "^0.7.7",
54
- "@commitlint/config-conventional": "^17.0.2",
55
52
  "@react-native-community/eslint-config": "^3.0.2",
56
- "@release-it/conventional-changelog": "^5.0.0",
57
53
  "@types/jest": "^28.1.2",
58
54
  "@types/react": "~17.0.21",
59
55
  "@types/react-native": "0.70.0",
60
- "commitlint": "^17.0.2",
61
56
  "del-cli": "^5.0.0",
62
57
  "eslint": "^8.4.1",
63
58
  "eslint-config-prettier": "^8.5.0",
@@ -70,7 +65,6 @@
70
65
  "react-native": "0.70.6",
71
66
  "react-native-builder-bob": "^0.20.2",
72
67
  "react-native-version": "^4.0.0",
73
- "release-it": "^15.0.0",
74
68
  "typescript": "^4.5.2"
75
69
  },
76
70
  "resolutions": {
@@ -91,28 +85,6 @@
91
85
  "<rootDir>/lib/"
92
86
  ]
93
87
  },
94
- "commitlint": {
95
- "extends": [
96
- "@commitlint/config-conventional"
97
- ]
98
- },
99
- "release-it": {
100
- "git": {
101
- "commitMessage": "chore: release ${version}",
102
- "tagName": "v${version}"
103
- },
104
- "npm": {
105
- "publish": true
106
- },
107
- "github": {
108
- "release": true
109
- },
110
- "plugins": {
111
- "@release-it/conventional-changelog": {
112
- "preset": "angular"
113
- }
114
- }
115
- },
116
88
  "eslintConfig": {
117
89
  "root": true,
118
90
  "extends": [
package/src/index.ts CHANGED
@@ -17,14 +17,23 @@ const VitalCoreReactNative = NativeModules.VitalCoreReactNative
17
17
  }
18
18
  );
19
19
 
20
-
21
20
  export class VitalCore {
22
21
  static setUserId(userId: string): Promise<void> {
23
22
  return VitalCoreReactNative.setUserId(userId);
24
23
  }
25
-
26
- static configure(apiKey: string, environment: string, region: string, enableLogs: boolean): Promise<void> {
27
- return VitalCoreReactNative.configure(apiKey, environment, region, enableLogs);
24
+
25
+ static configure(
26
+ apiKey: string,
27
+ environment: string,
28
+ region: string,
29
+ enableLogs: boolean
30
+ ): Promise<void> {
31
+ return VitalCoreReactNative.configure(
32
+ apiKey,
33
+ environment,
34
+ region,
35
+ enableLogs
36
+ );
28
37
  }
29
38
 
30
39
  static cleanUp(): Promise<void> {