Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

klg-date

Package Overview
Dependencies
Maintainers
4
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

klg-date - npm Package Compare versions

Comparing version 2.0.2 to 2.0.4

dist/workday/Workday2022.d.ts

1

dist/DateUtil.d.ts

@@ -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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc