@naturalcycles/time-lib
Advanced tools
Comparing version 1.6.3 to 1.6.4
@@ -0,1 +1,8 @@ | ||
## [1.6.4](https://github.com/NaturalCycles/time-lib/compare/v1.6.3...v1.6.4) (2019-11-09) | ||
### Bug Fixes | ||
* esm build ([36683b4](https://github.com/NaturalCycles/time-lib/commit/36683b4da7d6874978f4b403254baa04711d3acb)) | ||
## [1.6.3](https://github.com/NaturalCycles/time-lib/compare/v1.6.2...v1.6.3) (2019-11-09) | ||
@@ -2,0 +9,0 @@ |
@@ -1,8 +0,7 @@ | ||
import * as dayjs from 'dayjs'; | ||
import { Dayjs } from 'dayjs'; | ||
import * as isBetween from 'dayjs/plugin/isBetween'; | ||
import * as isSameOrAfter from 'dayjs/plugin/isSameOrAfter'; | ||
import * as isSameOrBefore from 'dayjs/plugin/isSameOrBefore'; | ||
import * as relativeTime from 'dayjs/plugin/relativeTime'; | ||
import * as utc from 'dayjs/plugin/utc'; | ||
import dayjs from 'dayjs'; | ||
import isBetween from 'dayjs/plugin/isBetween'; | ||
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'; | ||
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'; | ||
import relativeTime from 'dayjs/plugin/relativeTime'; | ||
import utc from 'dayjs/plugin/utc'; | ||
import { defaultPlugins } from './plugin/default'; | ||
@@ -36,3 +35,3 @@ import { isoWeekdayPlugin } from './plugin/isoWeekday'; | ||
}); | ||
export { Dayjs, dayjs }; | ||
export { dayjs }; | ||
//# sourceMappingURL=dayjs.full.js.map |
@@ -1,5 +0,4 @@ | ||
import { dayjs, Dayjs } from './dayjs.full'; | ||
import { dayjs } from './dayjs.full'; | ||
import { ms, since, TS_2018_06_21 } from './time.util'; | ||
export { dayjs, // should be imported from dayjs.full, cause it's an extended version | ||
Dayjs, TS_2018_06_21, since, ms, }; | ||
export { dayjs, TS_2018_06_21, since, ms, }; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,2 @@ | ||
import * as dayjs from 'dayjs'; | ||
import { Dayjs } from 'dayjs'; | ||
import dayjs from 'dayjs'; | ||
import 'dayjs/plugin/isBetween'; | ||
@@ -27,2 +26,3 @@ import 'dayjs/plugin/isSameOrAfter'; | ||
} | ||
declare type Dayjs = typeof dayjs; | ||
export { Dayjs, dayjs }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const dayjs = require("dayjs"); | ||
exports.dayjs = dayjs; | ||
const dayjs_1 = require("dayjs"); | ||
exports.Dayjs = dayjs_1.Dayjs; | ||
const isBetween = require("dayjs/plugin/isBetween"); | ||
const isSameOrAfter = require("dayjs/plugin/isSameOrAfter"); | ||
const isSameOrBefore = require("dayjs/plugin/isSameOrBefore"); | ||
const relativeTime = require("dayjs/plugin/relativeTime"); | ||
const utc = require("dayjs/plugin/utc"); | ||
const tslib_1 = require("tslib"); | ||
const dayjs_1 = tslib_1.__importDefault(require("dayjs")); | ||
exports.dayjs = dayjs_1.default; | ||
const isBetween_1 = tslib_1.__importDefault(require("dayjs/plugin/isBetween")); | ||
const isSameOrAfter_1 = tslib_1.__importDefault(require("dayjs/plugin/isSameOrAfter")); | ||
const isSameOrBefore_1 = tslib_1.__importDefault(require("dayjs/plugin/isSameOrBefore")); | ||
const relativeTime_1 = tslib_1.__importDefault(require("dayjs/plugin/relativeTime")); | ||
const utc_1 = tslib_1.__importDefault(require("dayjs/plugin/utc")); | ||
const default_1 = require("./plugin/default"); | ||
const isoWeekday_1 = require("./plugin/isoWeekday"); | ||
const weekOfYear_1 = require("./plugin/weekOfYear"); | ||
dayjs.extend(utc); | ||
dayjs.extend(isSameOrAfter); | ||
dayjs.extend(isSameOrBefore); | ||
dayjs.extend(relativeTime); | ||
dayjs.extend(isBetween); | ||
dayjs.extend(default_1.defaultPlugins); | ||
dayjs.extend(isoWeekday_1.isoWeekdayPlugin); | ||
dayjs.extend(weekOfYear_1.weekOfYearPlugin); | ||
dayjs_1.default.extend(utc_1.default); | ||
dayjs_1.default.extend(isSameOrAfter_1.default); | ||
dayjs_1.default.extend(isSameOrBefore_1.default); | ||
dayjs_1.default.extend(relativeTime_1.default); | ||
dayjs_1.default.extend(isBetween_1.default); | ||
dayjs_1.default.extend(default_1.defaultPlugins); | ||
dayjs_1.default.extend(isoWeekday_1.isoWeekdayPlugin); | ||
dayjs_1.default.extend(weekOfYear_1.weekOfYearPlugin); | ||
// Necessary to import these files, cause they contain augmentation of Dayjs namespace | ||
@@ -33,9 +32,9 @@ require("dayjs/plugin/isBetween"); | ||
; | ||
dayjs.extendLocale = function (ext) { | ||
dayjs.locale(Object.assign(Object.assign({}, dayjs().$locale()), ext)); | ||
dayjs_1.default.extendLocale = function (ext) { | ||
dayjs_1.default.locale(Object.assign(Object.assign({}, dayjs_1.default().$locale()), ext)); | ||
}; | ||
// Default weekStart to Monday | ||
dayjs.extendLocale({ | ||
dayjs_1.default.extendLocale({ | ||
weekStart: 1, | ||
}); | ||
//# sourceMappingURL=dayjs.full.js.map |
@@ -5,3 +5,2 @@ "use strict"; | ||
exports.dayjs = dayjs_full_1.dayjs; | ||
exports.Dayjs = dayjs_full_1.Dayjs; | ||
const time_util_1 = require("./time.util"); | ||
@@ -8,0 +7,0 @@ exports.ms = time_util_1.ms; |
@@ -42,3 +42,3 @@ { | ||
}, | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"description": "Date/time related API, based on DayJS", | ||
@@ -45,0 +45,0 @@ "keywords": [ |
@@ -1,8 +0,7 @@ | ||
import * as dayjs from 'dayjs' | ||
import { Dayjs } from 'dayjs' | ||
import * as isBetween from 'dayjs/plugin/isBetween' | ||
import * as isSameOrAfter from 'dayjs/plugin/isSameOrAfter' | ||
import * as isSameOrBefore from 'dayjs/plugin/isSameOrBefore' | ||
import * as relativeTime from 'dayjs/plugin/relativeTime' | ||
import * as utc from 'dayjs/plugin/utc' | ||
import dayjs from 'dayjs' | ||
import isBetween from 'dayjs/plugin/isBetween' | ||
import isSameOrAfter from 'dayjs/plugin/isSameOrAfter' | ||
import isSameOrBefore from 'dayjs/plugin/isSameOrBefore' | ||
import relativeTime from 'dayjs/plugin/relativeTime' | ||
import utc from 'dayjs/plugin/utc' | ||
import { defaultPlugins } from './plugin/default' | ||
@@ -64,2 +63,4 @@ import { isoWeekdayPlugin } from './plugin/isoWeekday' | ||
type Dayjs = typeof dayjs | ||
export { Dayjs, dayjs } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
38614
634