pim-import 5.1.4 → 5.1.5

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.
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.notify = void 0;
7
7
  const dotenv_1 = __importDefault(require("dotenv"));
8
8
  const axios_1 = __importDefault(require("@atoms-studio/axios"));
9
- const date_fns_1 = require("date-fns");
9
+ const utils_1 = require("../utils");
10
10
  dotenv_1.default.config();
11
11
  const notify = async (message, success = true) => {
12
12
  if (!process.env.FPI_TEAMS_NOTIFICATIONS_URL)
13
13
  return;
14
14
  const status = success ? "Completed" : "Failed";
15
15
  const intro = `PIM IMPORT: ${status}`;
16
- const dateText = (0, date_fns_1.format)(Date.now(), "dd/MM/yyyy HH:mm:ss");
16
+ const dateText = (0, utils_1.getLocalISOTime)();
17
17
  const options = {
18
18
  method: "POST",
19
19
  url: process.env.FPI_TEAMS_NOTIFICATIONS_URL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pim-import",
3
- "version": "5.1.4",
3
+ "version": "5.1.5",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -43,7 +43,6 @@
43
43
  "contentful-management": "^10.40.0",
44
44
  "csv-parser": "^3.0.0",
45
45
  "csv-writer": "^1.6.0",
46
- "date-fns": "^2.30.0",
47
46
  "dotenv": "^8.2.0",
48
47
  "https": "^1.0.0",
49
48
  "imgix-management-js": "^1.2.1",