@naturalcycles/time-lib
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -0,1 +1,8 @@ | ||
# [1.3.0](https://github.com/NaturalCycles/time-lib/compare/v1.2.1...v1.3.0) (2019-07-09) | ||
### Features | ||
* include weekOfYear plugin ([61f07ae](https://github.com/NaturalCycles/time-lib/commit/61f07ae)) | ||
## [1.2.1](https://github.com/NaturalCycles/time-lib/compare/v1.2.0...v1.2.1) (2019-07-05) | ||
@@ -2,0 +9,0 @@ |
@@ -8,4 +8,5 @@ import dayjs = require('dayjs'); | ||
import 'dayjs/plugin/utc'; | ||
import 'dayjs/plugin/weekOfYear'; | ||
import './plugin/default'; | ||
import './plugin/isoWeekday'; | ||
export { Dayjs, dayjs }; |
@@ -5,3 +5,2 @@ "use strict"; | ||
exports.dayjs = dayjs; | ||
// import 'dayjs' | ||
const dayjs_1 = require("dayjs"); | ||
@@ -14,2 +13,3 @@ exports.Dayjs = dayjs_1.Dayjs; | ||
const utc = require("dayjs/plugin/utc"); | ||
const weekOfYear = require("dayjs/plugin/weekOfYear"); | ||
const default_1 = require("./plugin/default"); | ||
@@ -22,2 +22,3 @@ const isoWeekday_1 = require("./plugin/isoWeekday"); | ||
dayjs.extend(isBetween); | ||
dayjs.extend(weekOfYear); | ||
dayjs.extend(default_1.defaultPlugins); | ||
@@ -31,4 +32,5 @@ dayjs.extend(isoWeekday_1.isoWeekdayPlugin); | ||
require("dayjs/plugin/utc"); | ||
require("dayjs/plugin/weekOfYear"); | ||
require("./plugin/default"); | ||
require("./plugin/isoWeekday"); | ||
//# sourceMappingURL=dayjs.full.js.map |
@@ -20,10 +20,2 @@ import { PluginFunc } from 'dayjs'; | ||
unixMillis(): number; | ||
/** | ||
* Forbid the method in favor of .toISODate() | ||
*/ | ||
toISOString(): never; | ||
/** | ||
* Forbid the method in favor of .unixMillis() | ||
*/ | ||
valueOf(): never; | ||
} | ||
@@ -30,0 +22,0 @@ } |
@@ -34,3 +34,3 @@ { | ||
}, | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Date/time related API, based on DayJS", | ||
@@ -37,0 +37,0 @@ "keywords": [ |
import dayjs = require('dayjs') | ||
// import 'dayjs' | ||
import { Dayjs } from 'dayjs' | ||
@@ -9,2 +8,3 @@ import * as isBetween from 'dayjs/plugin/isBetween' | ||
import * as utc from 'dayjs/plugin/utc' | ||
import * as weekOfYear from 'dayjs/plugin/weekOfYear' | ||
import { defaultPlugins } from './plugin/default' | ||
@@ -18,2 +18,3 @@ import { isoWeekdayPlugin } from './plugin/isoWeekday' | ||
dayjs.extend(isBetween) | ||
dayjs.extend(weekOfYear) | ||
dayjs.extend(defaultPlugins) | ||
@@ -28,2 +29,3 @@ dayjs.extend(isoWeekdayPlugin) | ||
import 'dayjs/plugin/utc' | ||
import 'dayjs/plugin/weekOfYear' | ||
import './plugin/default' | ||
@@ -30,0 +32,0 @@ import './plugin/isoWeekday' |
@@ -28,3 +28,3 @@ import { Dayjs, PluginFunc } from 'dayjs' | ||
*/ | ||
toISOString (): never | ||
// toISOString (): never | ||
@@ -34,3 +34,3 @@ /** | ||
*/ | ||
valueOf (): never | ||
// valueOf (): never | ||
} | ||
@@ -37,0 +37,0 @@ } |
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
14983
284