@contentstack/cli-cm-export-to-csv 1.1.0 → 1.2.0

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Contentstack
3
+ Copyright (c) 2023 Contentstack
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0",
2
+ "version": "1.2.0",
3
3
  "commands": {
4
4
  "cm:export-to-csv": {
5
5
  "id": "cm:export-to-csv",
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-export-to-csv",
3
3
  "description": "Export entities to csv",
4
- "version": "1.1.0",
4
+ "version": "1.2.0",
5
5
  "author": "Abhinav Gupta @abhinav-from-contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "dependencies": {
8
- "@contentstack/cli-command": "^1.1.0",
9
- "@contentstack/cli-utilities": "^1.1.0",
8
+ "@contentstack/cli-command": "^1.2.0",
9
+ "@contentstack/cli-utilities": "^1.2.0",
10
10
  "chalk": "^4.1.0",
11
11
  "fast-csv": "^4.3.6",
12
12
  "inquirer": "8.2.4",
@@ -14,7 +14,6 @@
14
14
  "mkdirp": "^1.0.4"
15
15
  },
16
16
  "devDependencies": {
17
- "oclif": "^3.1.2",
18
17
  "@oclif/test": "^2.2.10",
19
18
  "chai": "^4.2.0",
20
19
  "debug": "^4.3.1",
@@ -22,10 +21,11 @@
22
21
  "eslint-config-oclif": "^4.0.0",
23
22
  "globby": "^10.0.2",
24
23
  "mocha": "^10.0.0",
25
- "nyc": "^15.1.0"
24
+ "nyc": "^15.1.0",
25
+ "oclif": "^3.1.2"
26
26
  },
27
27
  "engines": {
28
- "node": ">=8.0.0"
28
+ "node": ">=14.0.0"
29
29
  },
30
30
  "files": [
31
31
  "/npm-shrinkwrap.json",
@@ -44,7 +44,8 @@
44
44
  "postpack": "rm -f oclif.manifest.json",
45
45
  "prepack": "oclif manifest && oclif readme",
46
46
  "test": "nyc mocha --forbid-only \"test/**/*.test.js\"",
47
- "version": "oclif readme && git add README.md"
47
+ "version": "oclif readme && git add README.md",
48
+ "clean": "rm -rf ./node_modules tsconfig.build.tsbuildinfo"
48
49
  },
49
50
  "csdxConfig": {
50
51
  "expiredCommands": {}
@@ -1,5 +1,5 @@
1
- const { Command, flags } = require('@contentstack/cli-command');
2
- const { configHandler, managementSDKClient } = require('@contentstack/cli-utilities');
1
+ const { Command } = require('@contentstack/cli-command');
2
+ const { configHandler, managementSDKClient, flags } = require('@contentstack/cli-utilities');
3
3
  const util = require('../../util');
4
4
  const config = require('../../util/config');
5
5
 
@@ -43,14 +43,6 @@ class ExportToCsvCommand extends Command {
43
43
  }),
44
44
  };
45
45
 
46
- get getAuthToken() {
47
- try {
48
- return this.authToken;
49
- } catch (error) {
50
- return undefined;
51
- }
52
- }
53
-
54
46
  async run() {
55
47
  try {
56
48
  let action, managementAPIClient;