Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit a7e838b

Browse files
Merge pull request #3 from contentstack/hotfix
Hotfix/1.0.2
2 parents 6fe510a + a5b7215 commit a7e838b

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ Update configuration details at config/index.js
2626
password: '', // Account password
2727
source_stack: '' // Stack api_key
2828
access_token: '' // Stack access_token
29-
content_types_list:'', // For specify the specific contenttypes in array eg: ['product', 'category']
30-
assetsdelete: '' //Set Bollean value, Example: true or false
29+
content_types_list:'', //optional: For specify the specific contenttypes in array eg: ['product', 'category']
30+
assetsdelete: true //Set Bollean value, Example: true or false
3131
...
3232
}
3333
```

config/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ module.exports = {
99
password: '',
1010
source_stack: '', // Stack API KEY
1111
access_token: '', // Stack ACCESS TOKEN
12-
content_types_list: [], //Content_type_list is the key to specify the specific contenttypes, Example: ['landing', 'header', 'product', 'category']
13-
assetsdelete: true, //Bollean value, Example: true or false
12+
content_types_list: '', //optional: Content_type_list is the key to specify the specific contenttypes, Example: ['landing', 'header', 'product', 'category']
13+
assetsdelete: true, //Default set :true Example: true or false
1414
};

lib/delete/delete_contentTypes.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ DeleteContentTypes.prototype = {
7878
}
7979
});
8080
},
81-
8281
deletecontenttypelist: function() {
8382
var self = this;
8483
return new Promise(function (resolve, reject) {
@@ -94,9 +93,7 @@ DeleteContentTypes.prototype = {
9493
log.error(chalk.red(error.body.error_message));
9594
if(error.body.error_code === 117) {
9695
self.pending.push(contenttype);
97-
}
98-
return reject(error)
99-
96+
}
10097
})
10198
},{
10299
concurrency: 1

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "contentstack-bulk-delete",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Contentstack's Bulk Delete Utility allows you to perform bulk delete operations. That means, that it is possible to delete all content types or a specific content type(s), and all assets in just one operation.",
55
"homepage": "",
66
"author": {
@@ -14,7 +14,7 @@
1414
"lodash": "4.17.2",
1515
"mkdirp": "0.5.1",
1616
"prompt": "1.0.0",
17-
"prompt-confirm": "^2.0.4",
17+
"prompt-confirm": "2.0.4",
1818
"prompts": "2.3.0",
1919
"request": "2.88.0",
2020
"winston": "2.2.0"
@@ -50,9 +50,9 @@
5050
"start": "node app.js"
5151
},
5252
"keywords": [
53-
"bulk delete entries",
54-
"bulk delete assets",
55-
"bulk delete media files",
53+
"bulk delete entries",
54+
"bulk delete assets",
55+
"bulk delete media files",
5656
"bulk content delete"
5757
],
5858
"devDependencies": {

0 commit comments

Comments
 (0)