@velocitycareerlabs/vcl-react-native 1.9.1 → 1.10.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/android/build.gradle +1 -1
- package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +1 -0
- package/ios/Utils/Converter.swift +2 -0
- package/lib/commonjs/api/VCLEnvironment.js +1 -0
- package/lib/commonjs/api/VCLEnvironment.js.map +1 -1
- package/lib/module/api/VCLEnvironment.js +1 -0
- package/lib/module/api/VCLEnvironment.js.map +1 -1
- package/lib/typescript/api/VCLEnvironment.d.ts +1 -0
- package/package.json +3 -3
- package/src/api/VCLEnvironment.ts +1 -0
- package/vcl-react-native.podspec +1 -1
package/android/build.gradle
CHANGED
|
@@ -35,6 +35,7 @@ object Converter {
|
|
|
35
35
|
fun mapToEnvironment(environmentMap: ReadableMap) =
|
|
36
36
|
when (environmentMap.getStringOpt("value")) {
|
|
37
37
|
VCLEnvironment.DEV.value -> VCLEnvironment.DEV
|
|
38
|
+
VCLEnvironment.QA.value -> VCLEnvironment.QA
|
|
38
39
|
VCLEnvironment.STAGING.value -> VCLEnvironment.STAGING
|
|
39
40
|
VCLEnvironment.PROD.value -> VCLEnvironment.PROD
|
|
40
41
|
else -> VCLEnvironment.PROD
|
|
@@ -28,6 +28,8 @@ func dictionaryToEnvironment(
|
|
|
28
28
|
switch environmentDictionary["value"] {
|
|
29
29
|
case VCLEnvironment.DEV.rawValue:
|
|
30
30
|
return VCLEnvironment.DEV
|
|
31
|
+
case VCLEnvironment.QA.rawValue:
|
|
32
|
+
return VCLEnvironment.QA
|
|
31
33
|
case VCLEnvironment.STAGING.rawValue:
|
|
32
34
|
return VCLEnvironment.STAGING
|
|
33
35
|
case VCLEnvironment.PROD.rawValue:
|
|
@@ -14,6 +14,7 @@ let VCLEnvTypes;
|
|
|
14
14
|
exports.VCLEnvTypes = VCLEnvTypes;
|
|
15
15
|
(function (VCLEnvTypes) {
|
|
16
16
|
VCLEnvTypes["DEV"] = "dev";
|
|
17
|
+
VCLEnvTypes["QA"] = "qa";
|
|
17
18
|
VCLEnvTypes["STAGING"] = "staging";
|
|
18
19
|
VCLEnvTypes["PROD"] = "prod";
|
|
19
20
|
})(VCLEnvTypes || (exports.VCLEnvTypes = VCLEnvTypes = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["VCLEnvTypes"],"sources":["VCLEnvironment.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport interface VCLEnvironment {\n value: string;\n}\n\nexport enum VCLEnvTypes {\n DEV = 'dev',\n STAGING = 'staging',\n PROD = 'prod',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAWYA,WAAW;AAAA;AAAA,WAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;AAAA,GAAXA,WAAW,2BAAXA,WAAW"}
|
|
1
|
+
{"version":3,"names":["VCLEnvTypes"],"sources":["VCLEnvironment.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport interface VCLEnvironment {\n value: string;\n}\n\nexport enum VCLEnvTypes {\n DEV = 'dev',\n QA = 'qa',\n STAGING = 'staging',\n PROD = 'prod',\n}\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AALA,IAWYA,WAAW;AAAA;AAAA,WAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;AAAA,GAAXA,WAAW,2BAAXA,WAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["VCLEnvTypes"],"sources":["VCLEnvironment.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport interface VCLEnvironment {\n value: string;\n}\n\nexport enum VCLEnvTypes {\n DEV = 'dev',\n STAGING = 'staging',\n PROD = 'prod',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAMA,WAAYA,WAAW;
|
|
1
|
+
{"version":3,"names":["VCLEnvTypes"],"sources":["VCLEnvironment.ts"],"sourcesContent":["/**\n * Created by Michael Avoyan.\n *\n * Copyright 2022 Velocity Career Labs inc.\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport interface VCLEnvironment {\n value: string;\n}\n\nexport enum VCLEnvTypes {\n DEV = 'dev',\n QA = 'qa',\n STAGING = 'staging',\n PROD = 'prod',\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAMA,WAAYA,WAAW;AAKtB,WALWA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;AAAA,GAAXA,WAAW,KAAXA,WAAW"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velocitycareerlabs/vcl-react-native",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"description": "Velocity Career Labs React Native SDK",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"test": "jest",
|
|
26
26
|
"typescript": "tsc --noEmit",
|
|
27
27
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
28
|
-
"prepare": "bob build",
|
|
28
|
+
"prepare": "bob build && husky install",
|
|
29
29
|
"release": "release-it",
|
|
30
30
|
"example": "yarn --cwd example",
|
|
31
31
|
"pods": "cd example && cd ios && pod cache clean --all && pod install --repo-update",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"eslint": "^7.2.0",
|
|
58
58
|
"eslint-config-prettier": "^7.0.0",
|
|
59
59
|
"eslint-plugin-prettier": "^3.1.3",
|
|
60
|
-
"husky": "^
|
|
60
|
+
"husky": "^8.0.3",
|
|
61
61
|
"jest": "^27.5.1",
|
|
62
62
|
"pod-install": "^0.1.0",
|
|
63
63
|
"prettier": "^2.0.5",
|
package/vcl-react-native.podspec
CHANGED