@wavemaker/rn-codegen 11.7.0-patch.3 → 11.7.0-patch.4
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/package.json
CHANGED
|
@@ -69,13 +69,13 @@ class App extends BaseApp {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
getServiceDefinitions() {
|
|
72
|
-
{{#if profile.useLocalMetadata}}
|
|
73
|
-
return import('./metadata/app/service-definitions.json').then(mod => mod.default)
|
|
74
|
-
{{else}}
|
|
75
72
|
return axios.get(this.baseUrl + '/services/servicedefs')
|
|
76
73
|
.then((response) => response?.data || {})
|
|
77
|
-
.
|
|
78
|
-
|
|
74
|
+
{{#if profile.useLocalMetadata}}
|
|
75
|
+
.catch(() => import('./metadata/app/service-definitions.json').then(mod => mod.default))
|
|
76
|
+
{{else}}
|
|
77
|
+
.catch(() => ({}))
|
|
78
|
+
{{/if}}
|
|
79
79
|
.then(data => {
|
|
80
80
|
this.serviceDefinitions = data?.serviceDefs || {};
|
|
81
81
|
Object.keys(this.serviceDefinitions).forEach((key) => {
|
|
@@ -93,14 +93,13 @@ class App extends BaseApp {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
loadWmProperties() {
|
|
96
|
+
return axios.get(this.baseUrl + '/services/application/wmProperties.js')
|
|
97
|
+
.then((response) => {
|
|
98
|
+
const data = response.data;
|
|
99
|
+
return JSON.parse(data.substring(data.indexOf('{'), data.length - 1));
|
|
100
|
+
})
|
|
96
101
|
{{#if profile.useLocalMetadata}}
|
|
97
|
-
|
|
98
|
-
{{else}}
|
|
99
|
-
return axios.get(this.baseUrl + '/services/application/wmProperties.js')
|
|
100
|
-
.then((response) => {
|
|
101
|
-
const data = response.data;
|
|
102
|
-
return JSON.parse(data.substring(data.indexOf('{'), data.length - 1));
|
|
103
|
-
})
|
|
102
|
+
.catch(() => import('./src/wmProperties').then(mod => mod.default))
|
|
104
103
|
{{/if}}
|
|
105
104
|
.then(appProperties => {
|
|
106
105
|
this.appConfig.appProperties = appProperties;
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@unimodules/react-native-adapter": "6.3.9",
|
|
13
|
-
"@wavemaker/app-rn-runtime": "11.7.0-patch.
|
|
14
|
-
"@wavemaker/variables": "11.7.0-patch.
|
|
15
|
-
"@wavemaker/rn-codegen": "11.7.0-patch.
|
|
13
|
+
"@wavemaker/app-rn-runtime": "11.7.0-patch.4",
|
|
14
|
+
"@wavemaker/variables": "11.7.0-patch.4",
|
|
15
|
+
"@wavemaker/rn-codegen": "11.7.0-patch.4",
|
|
16
16
|
"axios": "^1.4.0",
|
|
17
17
|
"css-mediaquery": "^0.1.2",
|
|
18
18
|
"deprecated-react-native-prop-types": "~4.1.0",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@unimodules/react-native-adapter": "6.3.9",
|
|
13
|
-
"@wavemaker/app-rn-runtime": "11.7.0-patch.
|
|
14
|
-
"@wavemaker/variables": "11.7.0-patch.
|
|
15
|
-
"@wavemaker/rn-codegen": "11.7.0-patch.
|
|
13
|
+
"@wavemaker/app-rn-runtime": "11.7.0-patch.4",
|
|
14
|
+
"@wavemaker/variables": "11.7.0-patch.4",
|
|
15
|
+
"@wavemaker/rn-codegen": "11.7.0-patch.4",
|
|
16
16
|
"axios": "^1.4.0",
|
|
17
17
|
"css-mediaquery": "^0.1.2",
|
|
18
18
|
"deprecated-react-native-prop-types": "~4.1.0",
|