@cityssm/utils-datetime 0.2.0 → 1.0.0

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.
@@ -1,2 +1 @@
1
- import 'core-js';
2
1
  export declare function dateToTimePeriodString(dateObject: Date): string;
@@ -1,4 +1,3 @@
1
- import 'core-js';
2
1
  export function dateToTimePeriodString(dateObject) {
3
2
  return Intl.DateTimeFormat('en-CA', {
4
3
  hourCycle: 'h12',
@@ -1,5 +1,3 @@
1
- import 'core-js'
2
-
3
1
  export function dateToTimePeriodString(dateObject: Date): string {
4
2
  return Intl.DateTimeFormat('en-CA', {
5
3
  hourCycle: 'h12',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cityssm/utils-datetime",
3
- "version": "0.2.0",
3
+ "version": "1.0.0",
4
4
  "description": "Date time utilities for Node.js applications",
5
5
  "keywords": [
6
6
  "date",
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "type": "module",
11
11
  "engines": {
12
- "node": "^14.13.1 || >=16.0.0"
12
+ "node": ">=18.0.0"
13
13
  },
14
14
  "homepage": "https://github.com/cityssm/node-utils-datetime#readme",
15
15
  "bugs": {
@@ -31,12 +31,8 @@
31
31
  "author": "The Corporation of the City of Sault Ste. Marie",
32
32
  "license": "MIT",
33
33
  "devDependencies": {
34
- "@types/core-js": "^2.5.6",
35
- "@types/mocha": "^10.0.2",
36
- "@types/node": "^20.8.6",
37
- "eslint-config-cityssm": "^0.5.1"
38
- },
39
- "dependencies": {
40
- "core-js": "^3.33.0"
34
+ "@types/mocha": "^10.0.6",
35
+ "@types/node": "^20.10.0",
36
+ "eslint-config-cityssm": "^1.0.0"
41
37
  }
42
38
  }
@@ -1,2 +1 @@
1
- import 'core-js';
2
1
  export declare function timeIntegerToPeriodString(timeInteger: number): string;
@@ -1,4 +1,3 @@
1
- import 'core-js';
2
1
  import { dateIntegerToDate } from './dateIntegerToDate.js';
3
2
  import { dateToTimePeriodString } from './dateToTimePeriodString.js';
4
3
  export function timeIntegerToPeriodString(timeInteger) {
@@ -1,5 +1,3 @@
1
- import 'core-js'
2
-
3
1
  import { dateIntegerToDate } from './dateIntegerToDate.js'
4
2
  import { dateToTimePeriodString } from './dateToTimePeriodString.js'
5
3
 
@@ -1,2 +1 @@
1
- import 'core-js';
2
1
  export declare function timeStringToInteger(timeString: string): number;
@@ -1,4 +1,3 @@
1
- import 'core-js';
2
1
  export function timeStringToInteger(timeString) {
3
2
  return Number.parseInt(('0' + timeString).replaceAll(':', ''), 10);
4
3
  }
@@ -1,5 +1,3 @@
1
- import 'core-js'
2
-
3
1
  export function timeStringToInteger(timeString: string): number {
4
2
  return Number.parseInt(('0' + timeString).replaceAll(':', ''), 10)
5
3
  }