You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

react-utils-y

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-utils-y - npm Package Compare versions

Comparing version
1.1.0
to
1.1.1
+5
-1
lib/date.js

@@ -78,4 +78,8 @@ "use strict";

this.getWeek = function (date) {
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "cn";
var _date = date instanceof Date ? date : new Date();
var day = _date.getDay(); //1 2
var day = _date.getDay(); //0,1,2,3,4,5,6
// type cn:"中国标准日期 周一到周日" en:"美国标准日期 周日到周六"
day = type == "cn" ? day - 1 : type == "en" ? day : day;
var dayTime = _date.getTime();

@@ -82,0 +86,0 @@ var weekList = [];

+1
-1
{
"name": "react-utils-y",
"version": "1.1.0",
"version": "1.1.1",
"description": "",

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