Socket
Socket
Sign inDemoInstall

@briza/wegood

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@briza/wegood - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

4

changelog.md
# wegood changelog
## 1.0.5
* Bug fix: remove timezone dependency.
## 1.0.4

@@ -4,0 +8,0 @@

4

lib/wegood.esm.js

@@ -202,3 +202,3 @@ function _typeof(obj) {

isDateFilter = true;
filter = new Date("".concat(filter, "T00:00:00+00:00"));
filter = new Date("".concat(filter, "T00:00:00"));

@@ -297,3 +297,3 @@ if (isNaN(filter.getTime())) {

} else if (value.match(/^\d{4}-[0,1]\d-[0-3]\d$/)) {
value = new Date("".concat(value, "T00:00:00+00:00")); // Invalid
value = new Date("".concat(value, "T00:00:00")); // Invalid
} else {

@@ -300,0 +300,0 @@ console.warn("the date validation rule, invalid \"".concat(value, "\" date value"));

@@ -206,3 +206,3 @@ 'use strict';

isDateFilter = true;
filter = new Date("".concat(filter, "T00:00:00+00:00"));
filter = new Date("".concat(filter, "T00:00:00"));

@@ -301,3 +301,3 @@ if (isNaN(filter.getTime())) {

} else if (value.match(/^\d{4}-[0,1]\d-[0-3]\d$/)) {
value = new Date("".concat(value, "T00:00:00+00:00")); // Invalid
value = new Date("".concat(value, "T00:00:00")); // Invalid
} else {

@@ -304,0 +304,0 @@ console.warn("the date validation rule, invalid \"".concat(value, "\" date value"));

{
"name": "@briza/wegood",
"version": "1.0.4",
"version": "1.0.5",
"description": "Tiny validation library, so wegood with data.",

@@ -44,3 +44,3 @@ "main": "lib/wegood.js",

"@babel/preset-typescript": "^7.6.0",
"@types/jest": "^24.0.19",
"@types/jest": "^25.1.0",
"@typescript-eslint/eslint-plugin": "^2.4.0",

@@ -47,0 +47,0 @@ "@typescript-eslint/parser": "^2.4.0",

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