Comparing version 2.0.2 to 2.0.4
@@ -8,3 +8,2 @@ /** | ||
export declare class DateUtil { | ||
static setTimeZone(timeZone: string): void; | ||
/** | ||
@@ -11,0 +10,0 @@ * 拿到凌晨时间 |
@@ -7,5 +7,2 @@ "use strict"; | ||
class DateUtil { | ||
static setTimeZone(timeZone) { | ||
moment.tz.setDefault(timeZone); | ||
} | ||
/** | ||
@@ -12,0 +9,0 @@ * 拿到凌晨时间 |
@@ -7,2 +7,3 @@ "use strict"; | ||
const Workday2021_1 = require("./Workday2021"); | ||
const Workday2022_1 = require("./Workday2022"); | ||
class WorkdayFactory { | ||
@@ -15,3 +16,4 @@ constructor() { | ||
new Workday2020_1.WorkDay2020(), | ||
new Workday2021_1.WorkDay2021() | ||
new Workday2021_1.WorkDay2021(), | ||
new Workday2022_1.WorkDay2022() | ||
]; | ||
@@ -18,0 +20,0 @@ for (const impl of impls) { |
{ | ||
"name": "klg-date", | ||
"version": "2.0.2", | ||
"version": "2.0.4", | ||
"description": "date util", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -14,6 +14,2 @@ /** | ||
static setTimeZone (timeZone: string) { | ||
moment.tz.setDefault(timeZone) | ||
} | ||
/** | ||
@@ -20,0 +16,0 @@ * 拿到凌晨时间 |
@@ -5,2 +5,3 @@ import {WorkDay2018} from './Workday2018' | ||
import {WorkDay2021} from './Workday2021' | ||
import {WorkDay2022} from './Workday2022' | ||
import {AbsWorkday} from './AbsWorkDay' | ||
@@ -17,3 +18,4 @@ | ||
new WorkDay2020(), | ||
new WorkDay2021() | ||
new WorkDay2021(), | ||
new WorkDay2022() | ||
] | ||
@@ -20,0 +22,0 @@ for (const impl of impls) { |
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
66411
52
1699