apify-cli 0.7.1-beta.1 → 0.7.1-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apify-cli",
3
- "version": "0.7.1-beta.1",
3
+ "version": "0.7.1-beta.2",
4
4
  "description": "Apify command-line interface helps you create, develop, build and run Apify actors, and manage the Apify cloud platform.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,9 +20,8 @@ class PushDataCommand extends ApifyCommand {
20
20
  } catch (err) {
21
21
  throw new Error(`Failed to parse data as JSON string: ${err.message}`);
22
22
  }
23
- const dataset = await apifyClient.datasets().getOrCreate(defaultStoreId);
24
- const datasetClient = apifyClient.dataset(dataset.id);
25
- await datasetClient.pushItems(parsedData);
23
+
24
+ await apifyClient.dataset(defaultStoreId).pushItems(parsedData);
26
25
  }
27
26
  }
28
27