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

sz-mx-cabin-yjb

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sz-mx-cabin-yjb - npm Package Compare versions

Comparing version 0.0.45 to 0.0.46

7

es/widgets/form/Form.js

@@ -82,5 +82,3 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

valDate = value.replace(pattern, '$1-$2-$3');
}
if (value.length === 6) {
} else if (value.length === 6) {
valDate = value.replace(pattern, '$1-$2');

@@ -92,4 +90,3 @@ } else {

var date = new Date(Date.parse(valDate));
console.log('---value', value, '---valDate', valDate, '---Date.parse(value)', Date.parse(value), '---date', date, '---', date.getTime()); // 判断日期对象是否是有效的
var date = new Date(Date.parse(valDate)); // 判断日期对象是否是有效的

@@ -96,0 +93,0 @@ if (isNaN(date.getTime())) {

@@ -103,5 +103,3 @@ "use strict";

valDate = value.replace(pattern, '$1-$2-$3');
}
if (value.length === 6) {
} else if (value.length === 6) {
valDate = value.replace(pattern, '$1-$2');

@@ -113,4 +111,3 @@ } else {

var date = new Date(Date.parse(valDate));
console.log('---value', value, '---valDate', valDate, '---Date.parse(value)', Date.parse(value), '---date', date, '---', date.getTime()); // 判断日期对象是否是有效的
var date = new Date(Date.parse(valDate)); // 判断日期对象是否是有效的

@@ -117,0 +114,0 @@ if (isNaN(date.getTime())) {

{
"name": "sz-mx-cabin-yjb",
"version": "0.0.45",
"version": "0.0.46",
"description": "reactCabin",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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