@candlerip/shared3 0.0.90 → 0.0.92

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.90",
3
+ "version": "0.0.92",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1,2 +1,2 @@
1
- import { COOKIE_CONSENT_CONFIG } from '../cookie-consent/index.js';
1
+ import { COOKIE_CONSENT_CONFIG } from '../cookie-consent/config.js';
2
2
  export declare const COOKIE_CONSENT_KEYS: Array<keyof typeof COOKIE_CONSENT_CONFIG>;
@@ -1,2 +1,2 @@
1
- import { COOKIE_CONSENT_CONFIG } from '../cookie-consent/index.js';
1
+ import { COOKIE_CONSENT_CONFIG } from '../cookie-consent/config.js';
2
2
  export const COOKIE_CONSENT_KEYS = Object.keys(COOKIE_CONSENT_CONFIG);
@@ -0,0 +1 @@
1
+ export * from './minutes/index.js';
@@ -0,0 +1 @@
1
+ export * from './minutes/index.js';
@@ -0,0 +1,5 @@
1
+ export declare const DATE_MINUTES_CONFIG: {
2
+ ONE_DAY_IN_MINUTES: number;
3
+ SEVEN_DAYS_IN_MINUTES: number;
4
+ ONE_YEAR_IN_MINUTES: number;
5
+ };
@@ -0,0 +1,6 @@
1
+ const oneDayInMinutes = 1440;
2
+ export const DATE_MINUTES_CONFIG = {
3
+ ONE_DAY_IN_MINUTES: oneDayInMinutes,
4
+ SEVEN_DAYS_IN_MINUTES: oneDayInMinutes * 7,
5
+ ONE_YEAR_IN_MINUTES: oneDayInMinutes * 365,
6
+ };
@@ -0,0 +1 @@
1
+ export * from './config.js';
@@ -0,0 +1 @@
1
+ export * from './config.js';
package/src/index.d.ts CHANGED
@@ -3,6 +3,7 @@ export * from './auth/index.js';
3
3
  export * from './candle/index.js';
4
4
  export * from './cookie/index.js';
5
5
  export * from './database/index.js';
6
+ export * from './date/index.js';
6
7
  export * from './environment/index.js';
7
8
  export * from './error/index.js';
8
9
  export * from './geographical/index.js';
package/src/index.js CHANGED
@@ -3,6 +3,7 @@ export * from './auth/index.js';
3
3
  export * from './candle/index.js';
4
4
  export * from './cookie/index.js';
5
5
  export * from './database/index.js';
6
+ export * from './date/index.js';
6
7
  export * from './environment/index.js';
7
8
  export * from './error/index.js';
8
9
  export * from './geographical/index.js';