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

@simplism/core

Package Overview
Dependencies
Maintainers
1
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@simplism/core - npm Package Compare versions

Comparing version 10.3.7 to 10.3.8

5

dist/index.js

@@ -541,3 +541,6 @@ (function webpackUniversalModuleDefinition(root, factory) {

Time.parse = function (value) {
if (/^[0-9]{1,2}$/.test(value)) {
if (value instanceof Date) {
return new Time(value);
}
else if (/^[0-9]{1,2}$/.test(value)) {
var hour = Number(value);

@@ -544,0 +547,0 @@ return new Time(hour * 60 * 60 * 1000);

2

dist/type/Time.d.ts

@@ -8,3 +8,3 @@ export declare class Time {

constructor(date: Date);
static parse(value: string): Time;
static parse(value: string | Date): Time;
day: number;

@@ -11,0 +11,0 @@ hour: number;

{
"name": "@simplism/core",
"version": "10.3.7",
"version": "10.3.8",
"description": "Simplism Core Package",

@@ -5,0 +5,0 @@ "repository": "github:kslhunter/simplism",

@@ -46,5 +46,8 @@ import {ArgumentError} from "../error/ArgumentError";

public static parse(value: string): Time {
public static parse(value: string | Date): Time {
if (value instanceof Date) {
return new Time(value);
}
// 3, 03 => 3시간
if (/^[0-9]{1,2}$/.test(value)) {
else if (/^[0-9]{1,2}$/.test(value)) {
const hour = Number(value);

@@ -51,0 +54,0 @@

Sorry, the diff of this file is not supported yet

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