@corva/create-app 0.65.0-0 → 0.65.0-2
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/lib/constants/package.js +1 -1
- package/lib/flows/lib/api.js +1 -2
- package/lib/options/cache.js +9 -1
- package/package.json +1 -1
package/lib/constants/package.js
CHANGED
|
@@ -7,7 +7,7 @@ const uiDependencies = {
|
|
|
7
7
|
'@material-ui/lab': '4.0.0-alpha.57',
|
|
8
8
|
'@material-ui/pickers': '3.2.10',
|
|
9
9
|
'classnames': '2.2.6',
|
|
10
|
-
'corva-convert-units': '1.10.
|
|
10
|
+
'corva-convert-units': '1.10.33',
|
|
11
11
|
'highcharts': '8.1.2',
|
|
12
12
|
'highcharts-react-official': '2.2.2',
|
|
13
13
|
'lodash': '^4.17.4',
|
package/lib/flows/lib/api.js
CHANGED
|
@@ -180,14 +180,13 @@ export class Api {
|
|
|
180
180
|
async queueAppRun(appId, version, interval, wellId, appDatasetsNames, streamId, appConnectionId, cache) {
|
|
181
181
|
const json = {
|
|
182
182
|
cache_behavior: cache ? OVERRIDE_CACHE_BEHAVIOR : DELETE_CACHE_BEHAVIOR,
|
|
183
|
-
cache_override:
|
|
183
|
+
cache_override: cache,
|
|
184
184
|
app_run: {
|
|
185
185
|
app_stream_id: streamId,
|
|
186
186
|
well_id: wellId,
|
|
187
187
|
app_version: version,
|
|
188
188
|
datasets: appDatasetsNames,
|
|
189
189
|
settings: {
|
|
190
|
-
cache,
|
|
191
190
|
end: 0,
|
|
192
191
|
invokes: null,
|
|
193
192
|
records_per_event: 300,
|
package/lib/options/cache.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { Option } from 'commander';
|
|
2
|
+
import fs from 'fs';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
const parseJSON = (filename) => {
|
|
5
|
+
const path = `${process.cwd()}/${filename}`;
|
|
6
|
+
const value = JSON.parse(fs.readFileSync(path, 'utf8'));
|
|
7
|
+
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const cacheOption = new Option('--cache [filename]', 'cache object for rerunning app').argParser(parseJSON);
|