Skip to content

Commit

Permalink
antipouet
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Besson committed Apr 11, 2023
1 parent 7ffd2c4 commit f365cd5
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/health.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime.js';
import dayjs from 'dayjs/esm';
import relativeTime from 'dayjs/esm/plugin/relativeTime';

import config from './config.js';

Expand Down
2 changes: 1 addition & 1 deletion src/repository/user.repository.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dayjs from 'dayjs';
import dayjs from 'dayjs/esm';

import config from '../config.js';
import { database as db } from '../db/index.js';
Expand Down
6 changes: 3 additions & 3 deletions src/server/coros/coros.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import dayjs from 'dayjs';
import dayjsPluginTimezone from 'dayjs/plugin/timezone.js';
import dayjsPluginUtc from 'dayjs/plugin/utc';
import dayjs from 'dayjs/esm';
import dayjsPluginTimezone from 'dayjs/esm/plugin/timezone';
import dayjsPluginUtc from 'dayjs/esm/plugin/utc';
import type { SetNonNullable, SetRequired } from 'type-fest';

import config from '../../config.js';
Expand Down
2 changes: 1 addition & 1 deletion src/server/decathlon/decathlon.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dayjs from 'dayjs';
import dayjs from 'dayjs/esm';

import { NotFoundError } from '../../errors.js';
import log from '../../helpers/logger.js';
Expand Down
4 changes: 2 additions & 2 deletions src/server/garmin/garmin.api.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { createHmac, randomBytes } from 'crypto';

import axios from 'axios';
import dayjs from 'dayjs';
import dayjsPluginUTC from 'dayjs/plugin/utc.js';
import dayjs from 'dayjs/esm';
import dayjsPluginUTC from 'dayjs/esm/plugin/utc';
import { z } from 'zod';

import config from '../../config.js';
Expand Down
4 changes: 2 additions & 2 deletions src/server/garmin/garmin.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import dayjs from 'dayjs';
import dayjsPluginUTC from 'dayjs/plugin/utc.js';
import dayjs from 'dayjs/esm';
import dayjsPluginUTC from 'dayjs/esm/plugin/utc';

import { NotFoundError } from '../../errors.js';
import log from '../../helpers/logger.js';
Expand Down
4 changes: 2 additions & 2 deletions src/server/polar/polar.service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createHmac } from 'crypto';

import dayjs from 'dayjs';
import duration from 'dayjs/plugin/duration.js';
import dayjs from 'dayjs/esm';
import duration from 'dayjs/esm/plugin/duration';
import { parse } from 'iso8601-duration';
import invariant from 'tiny-invariant';

Expand Down
4 changes: 2 additions & 2 deletions src/server/strava/strava.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import dayjs from 'dayjs';
import dayjsPluginUTC from 'dayjs/plugin/utc.js';
import dayjs from 'dayjs/esm';
import dayjsPluginUTC from 'dayjs/esm/plugin/utc';

import config from '../../config.js';
import { NotFoundError } from '../../errors.js';
Expand Down
4 changes: 2 additions & 2 deletions src/server/suunto/suunto.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import dayjs from 'dayjs';
import dayjsPluginUTC from 'dayjs/plugin/utc.js';
import dayjs from 'dayjs/esm';
import dayjsPluginUTC from 'dayjs/esm/plugin/utc';

import config from '../../config.js';
import { NotFoundError } from '../../errors.js';
Expand Down
2 changes: 1 addition & 1 deletion src/user.service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dayjs from 'dayjs';
import dayjs from 'dayjs/esm';

import config from './config.js';
import { NotFoundError } from './errors.js';
Expand Down

0 comments on commit f365cd5

Please sign in to comment.