@vegan-friendly/strapi-plugin-elasticsearch 0.2.0 → 0.2.1

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vegan-friendly/strapi-plugin-elasticsearch",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "A Strapi plugin to enable using Elasticsearch with Strapi CMS.",
5
5
  "homepage": "https://github.com/vegan-friendly/strapi-plugin-elasticsearch",
6
6
  "strapi": {
@@ -37,8 +37,8 @@
37
37
  "dependencies": {
38
38
  "@elastic/elasticsearch": "^8.9.0",
39
39
  "@strapi/design-system": "^1.19.0",
40
- "markdown-to-txt": "^2.0.1",
41
- "pretty-ms": "^9.2.0"
40
+ "humanize-duration": "^3.32.1",
41
+ "markdown-to-txt": "^2.0.1"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@strapi/strapi": "^4.0.0"
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const pretty_ms_1 = __importDefault(require("pretty-ms"));
6
+ const humanize_duration_1 = __importDefault(require("humanize-duration"));
7
7
  /**
8
8
  * Service to handle indexing of virtual collections
9
9
  */
@@ -86,11 +86,11 @@ exports.default = ({ strapi }) => {
86
86
  totalIndexed += pageData.length;
87
87
  page++;
88
88
  }
89
- strapi.log.info(`Reindexed ${totalIndexed} items for virtual collection: ${collectionName}. took ${(0, pretty_ms_1.default)(Date.now() - timestamp)}`);
89
+ strapi.log.info(`Reindexed ${totalIndexed} items for virtual collection: ${collectionName}. took ${(0, humanize_duration_1.default)(Date.now() - timestamp)}`);
90
90
  return totalIndexed;
91
91
  }
92
92
  catch (error) {
93
- strapi.log.error(`Error reindexing ${collectionName}: ${error?.message} after ${(0, pretty_ms_1.default)(Date.now() - timestamp)}`);
93
+ strapi.log.error(`Error reindexing ${collectionName}: ${error?.message} after ${(0, humanize_duration_1.default)(Date.now() - timestamp)}`);
94
94
  throw error;
95
95
  }
96
96
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vegan-friendly/strapi-plugin-elasticsearch",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "A Strapi plugin to enable using Elasticsearch with Strapi CMS.",
5
5
  "homepage": "https://github.com/vegan-friendly/strapi-plugin-elasticsearch",
6
6
  "strapi": {
@@ -37,8 +37,8 @@
37
37
  "dependencies": {
38
38
  "@elastic/elasticsearch": "^8.9.0",
39
39
  "@strapi/design-system": "^1.19.0",
40
- "markdown-to-txt": "^2.0.1",
41
- "pretty-ms": "^9.2.0"
40
+ "humanize-duration": "^3.32.1",
41
+ "markdown-to-txt": "^2.0.1"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@strapi/strapi": "^4.0.0"
@@ -61,4 +61,4 @@
61
61
  "ts-node": "^10.9.2",
62
62
  "typescript": "^5.8.3"
63
63
  }
64
- }
64
+ }