@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.
@@ -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.17',
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',
@@ -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: JSON.parse(cache),
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,
@@ -1,3 +1,11 @@
1
1
  import { Option } from 'commander';
2
+ import fs from 'fs';
2
3
 
3
- export const cacheOption = new Option('--cache [string]', 'cache object for rerunning app');
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/create-app",
3
- "version": "0.65.0-0",
3
+ "version": "0.65.0-2",
4
4
  "private": false,
5
5
  "description": "Create an app to use it in CORVA.AI",
6
6
  "keywords": [