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

@uiw/utils

Package Overview
Dependencies
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiw/utils - npm Package Compare versions

Comparing version 4.7.16 to 4.8.0

1

lib/cjs/index.d.ts

@@ -1,4 +0,3 @@

export * from './date';
export * from './getScroll';
export * from './props';
export * from './randomid';

@@ -7,15 +7,2 @@ "use strict";

var _date = require("./date");
Object.keys(_date).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _date[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _date[key];
}
});
});
var _getScroll = require("./getScroll");

@@ -59,2 +46,2 @@

});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFDQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFDQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFDQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZGF0ZSc7XG5leHBvcnQgKiBmcm9tICcuL2dldFNjcm9sbCc7XG5leHBvcnQgKiBmcm9tICcuL3Byb3BzJztcbmV4cG9ydCAqIGZyb20gJy4vcmFuZG9taWQnO1xuIl19
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFDQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFDQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZ2V0U2Nyb2xsJztcbmV4cG9ydCAqIGZyb20gJy4vcHJvcHMnO1xuZXhwb3J0ICogZnJvbSAnLi9yYW5kb21pZCc7XG4iXX0=

4

lib/cjs/props.js
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbXX0=

@@ -1,4 +0,3 @@

export * from './date';
export * from './getScroll';
export * from './props';
export * from './randomid';

@@ -1,5 +0,4 @@

export * from './date';
export * from './getScroll';
export * from './props';
export * from './randomid';
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLFFBQWQ7QUFDQSxjQUFjLGFBQWQ7QUFDQSxjQUFjLFNBQWQ7QUFDQSxjQUFjLFlBQWQiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2RhdGUnO1xuZXhwb3J0ICogZnJvbSAnLi9nZXRTY3JvbGwnO1xuZXhwb3J0ICogZnJvbSAnLi9wcm9wcyc7XG5leHBvcnQgKiBmcm9tICcuL3JhbmRvbWlkJztcbiJdfQ==
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGFBQWQ7QUFDQSxjQUFjLFNBQWQ7QUFDQSxjQUFjLFlBQWQiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2dldFNjcm9sbCc7XG5leHBvcnQgKiBmcm9tICcuL3Byb3BzJztcbmV4cG9ydCAqIGZyb20gJy4vcmFuZG9taWQnO1xuIl19

@@ -1,2 +0,2 @@

export {};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbXX0=
{
"name": "@uiw/utils",
"version": "4.7.16",
"version": "4.8.0",
"description": "utils tools for uiw",

@@ -46,4 +46,4 @@ "author": "Kenny Wong <wowohoo@qq.com>",

"@babel/runtime": "7.14.0",
"@types/react": "17.0.6",
"@types/react-dom": "17.0.5",
"@types/react": "17.0.9",
"@types/react-dom": "17.0.6",
"react": "17.0.2",

@@ -50,0 +50,0 @@ "react-dom": "17.0.2"

@@ -16,18 +16,38 @@ `@uiw/utils`

### isLeapYear
### ~~isLeapYear~~
Determine whether it is a leap year
### getFirstDayOfWeek
```js
const isLeapYear = (year: number) => {
if (year % 4 === 0 && year % 100 !== 0) return true;
else if (year % 400 === 0) return true;
return false;
};
```
### ~~getFirstDayOfWeek~~
The first day of the month is the day of the week.
### solarMonthDays
```js
new Date(2021,6,1).getDay() // => 4
```
### ~~solarMonthDays~~
Get the sun moon, commonly known as the solar calendar month By calculating the second month of the leap year, maybe `29` days
### isSameDate
```js
new Date(2021,6,0).getDate() // => 30
```
### ~~isSameDate~~
Check if a date is the same as another date. Use `Date.prototype.toISOString()` and strict equality checking (`===`) to check if the first date is the same as the second one.
```js
new Date(2021,6,1).toISOString() === new Date(2021,6,1).toISOString() // => true
```
### getScroll

@@ -34,0 +54,0 @@

@@ -1,4 +0,3 @@

export * from './date';
export * from './getScroll';
export * from './props';
export * from './randomid';
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