Socket
Socket
Sign inDemoInstall

@briza/wegood

Package Overview
Dependencies
0
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

4

changelog.md
# wegood changelog
## 1.0.4
* Bug fix: future start, past end, expressed as 1 or -1.
## 1.0.3

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

13

lib/wegood.esm.js

@@ -216,7 +216,12 @@ function _typeof(obj) {

offset = dateOffset(dynamicOffset); // or -1,0,1 (in past, today, in future)
} else if (['-1', '1'].includes(filter)) {
offset = Infinity * parseInt(filter); // Flip of the offset for flipped boundaries
} else if (['-1', '1'].includes("".concat(filter))) {
offset = Infinity * parseInt(filter); // Start 1 = tomorrow
if (dir === BoundaryType.Start && offset > 0 || dir === BoundaryType.End && offset < 0) {
offset *= -1;
if (dir === BoundaryType.Start && offset > 0) {
offset = 1; // 1 day in future, dynamic offset.
} // End -1 = any date in past
if (dir === BoundaryType.End && offset < 0) {
offset = -1; // 1 day in past, dynamic offset.
} // Illegal offset

@@ -223,0 +228,0 @@

@@ -220,7 +220,12 @@ 'use strict';

offset = dateOffset(dynamicOffset); // or -1,0,1 (in past, today, in future)
} else if (['-1', '1'].includes(filter)) {
offset = Infinity * parseInt(filter); // Flip of the offset for flipped boundaries
} else if (['-1', '1'].includes("".concat(filter))) {
offset = Infinity * parseInt(filter); // Start 1 = tomorrow
if (dir === BoundaryType.Start && offset > 0 || dir === BoundaryType.End && offset < 0) {
offset *= -1;
if (dir === BoundaryType.Start && offset > 0) {
offset = 1; // 1 day in future, dynamic offset.
} // End -1 = any date in past
if (dir === BoundaryType.End && offset < 0) {
offset = -1; // 1 day in past, dynamic offset.
} // Illegal offset

@@ -227,0 +232,0 @@

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

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

# wegood
Tiny validation library, so wegood with data.
> Revision: January 16, 2020.
> Revision: January 29, 2020.

@@ -6,0 +6,0 @@ ## About

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import { ValidationRule } from './rule';

@@ -0,0 +0,0 @@ import { ValidationRule } from '.';

@@ -0,0 +0,0 @@ import { ValidationRule } from '.';

@@ -0,0 +0,0 @@ import { ValidationRule } from '.';

@@ -0,0 +0,0 @@ import { ValidationRule } from '.';

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ import { ValidationRule } from '.';

@@ -0,0 +0,0 @@ import { ValidationRule } from '.';

@@ -0,0 +0,0 @@ import { ValidationRule } from '.';

@@ -0,0 +0,0 @@ import { ValidationRule } from '.';

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc