diff --git a/lib/tasks/download-assets.js b/lib/tasks/download-assets.js index 74089b01..152be1da 100644 --- a/lib/tasks/download-assets.js +++ b/lib/tasks/download-assets.js @@ -89,7 +89,8 @@ export default function downloadAssets (options) { return startingPromise .then(downloadAsset) .then((downLoadedFile) => { - task.output = `${figures.tick} downloaded ${getEntityName(downLoadedFile)} (${url})` + const name = path.basename(downLoadedFile) + task.output = `${figures.tick} downloaded ${getEntityName({ name })} (${url})` successCount++ }) .catch((error) => { diff --git a/package-lock.json b/package-lock.json index 8ba96aa7..8cca771a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "bluebird": "^3.3.3", "cli-table3": "^0.6.0", "contentful": "^11.1.4", - "contentful-batch-libs": "^9.4.1", + "contentful-batch-libs": "^10.1.1", "contentful-management": "^11.36.0", "date-fns": "^4.1.0", "figures": "^3.2.0", @@ -5247,15 +5247,13 @@ } }, "node_modules/contentful-batch-libs": { - "version": "9.7.0", - "resolved": "https://registry.npmjs.org/contentful-batch-libs/-/contentful-batch-libs-9.7.0.tgz", - "integrity": "sha512-nNAycOJIvo2arHbXIgsF1I8xXXJtnTooGJaHwfamFeuXbyp1q5NlNbHYGqWVR5vQjLJsuk48VExLbpa26T9C9g==", - "license": "MIT", + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/contentful-batch-libs/-/contentful-batch-libs-10.1.1.tgz", + "integrity": "sha512-T+czEYjS4eTvcrx4GWiGQObowHNPNNaSJQKjjdtXh121+zrv96xj+6ogrWp84BNgi90/9Dyj8EWLq4u5mbynzA==", "dependencies": { "date-fns": "^2.28.0", "figures": "3.2.0", "https-proxy-agent": "^7.0.2", - "lodash.clonedeep": "^4.5.0", "uuid": "^9.0.1" }, "engines": { @@ -10827,12 +10825,6 @@ "dev": true, "license": "MIT" }, - "node_modules/lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==", - "license": "MIT" - }, "node_modules/lodash.debounce": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", diff --git a/package.json b/package.json index 24405ec8..41e04d51 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "bluebird": "^3.3.3", "cli-table3": "^0.6.0", "contentful": "^11.1.4", - "contentful-batch-libs": "^9.4.1", + "contentful-batch-libs": "^10.1.1", "contentful-management": "^11.36.0", "date-fns": "^4.1.0", "figures": "^3.2.0",