@naturalcycles/time-lib
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -0,1 +1,8 @@ | ||
## [1.6.2](https://github.com/NaturalCycles/time-lib/compare/v1.6.1...v1.6.2) (2019-11-09) | ||
### Bug Fixes | ||
* export esm build (/dist-esm) ([01bef6a](https://github.com/NaturalCycles/time-lib/commit/01bef6a2368a7ccf5a74c0e0649e8622a3683d90)) | ||
## [1.6.1](https://github.com/NaturalCycles/time-lib/compare/v1.6.0...v1.6.1) (2019-11-05) | ||
@@ -2,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
import dayjs = require('dayjs'); | ||
import * as dayjs from 'dayjs'; | ||
import { Dayjs } from 'dayjs'; | ||
@@ -3,0 +3,0 @@ import 'dayjs/plugin/isBetween'; |
@@ -14,2 +14,3 @@ import { PluginFunc } from 'dayjs'; | ||
* Returns e.g `20180621_1754` or `20180621_175404` (with seconds). | ||
* seconds @default to false | ||
*/ | ||
@@ -28,2 +29,4 @@ toCompactTime(seconds?: boolean): string; | ||
export declare const DAYJS_ISO_DATE = "YYYY-MM-DD"; | ||
export declare const DAYJS_TIME_HMS = "HH:mm:ss"; | ||
export declare const DAYJS_TIME_HM = "HH:mm"; | ||
export declare const DAYJS_PRETTY_TIME = "YYYY-MM-DD HH:mm:ss"; | ||
@@ -30,0 +33,0 @@ export declare const DAYJS_COMPACT_TIME = "YYYYMMDD_HHmm"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DAYJS_ISO_DATE = 'YYYY-MM-DD'; | ||
exports.DAYJS_TIME_HMS = 'HH:mm:ss'; | ||
exports.DAYJS_TIME_HM = 'HH:mm'; | ||
exports.DAYJS_PRETTY_TIME = 'YYYY-MM-DD HH:mm:ss'; | ||
@@ -5,0 +7,0 @@ exports.DAYJS_COMPACT_TIME = 'YYYYMMDD_HHmm'; |
{ | ||
"name": "@naturalcycles/time-lib", | ||
"scripts": {}, | ||
"scripts": { | ||
"build-prod": "build-prod-esm-cjs" | ||
}, | ||
"dependencies": { | ||
@@ -17,2 +19,3 @@ "dayjs": "^1.8.14" | ||
"dist", | ||
"dist-esm", | ||
"src", | ||
@@ -25,4 +28,8 @@ "!src/test", | ||
"main": "dist/index.js", | ||
"module": "dist-esm/index.js", | ||
"types": "dist/index.d.ts", | ||
"sideEffects": false, | ||
"sideEffects": [ | ||
"./dist/dayjs.full.js", | ||
"./dist-esm/dayjs.full.js" | ||
], | ||
"publishConfig": { | ||
@@ -38,3 +45,3 @@ "access": "public" | ||
}, | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "Date/time related API, based on DayJS", | ||
@@ -41,0 +48,0 @@ "keywords": [ |
@@ -1,2 +0,2 @@ | ||
import dayjs = require('dayjs') | ||
import * as dayjs from 'dayjs' | ||
import { Dayjs } from 'dayjs' | ||
@@ -3,0 +3,0 @@ import * as isBetween from 'dayjs/plugin/isBetween' |
@@ -17,2 +17,3 @@ import { Dayjs, PluginFunc } from 'dayjs' | ||
* Returns e.g `20180621_1754` or `20180621_175404` (with seconds). | ||
* seconds @default to false | ||
*/ | ||
@@ -44,2 +45,4 @@ toCompactTime(seconds?: boolean): string | ||
export const DAYJS_ISO_DATE = 'YYYY-MM-DD' | ||
export const DAYJS_TIME_HMS = 'HH:mm:ss' | ||
export const DAYJS_TIME_HM = 'HH:mm' | ||
export const DAYJS_PRETTY_TIME = 'YYYY-MM-DD HH:mm:ss' | ||
@@ -46,0 +49,0 @@ export const DAYJS_COMPACT_TIME = 'YYYYMMDD_HHmm' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39034
45
649