@twec/ip-parser
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -41,6 +41,11 @@ const { | ||
to: data => { | ||
return parse(data, 'YYYYMMDDHHmm', { timeZone }); | ||
if (Number(data) === 0) { | ||
return null; | ||
} | ||
return parse(data, `YYYYMMDDHHmm`, { timeZone }); | ||
}, | ||
from: data => { | ||
return format(data, 'YYYYMMDDHHmm', { timeZone }); | ||
return data !== null | ||
? format(data, 'YYYYMMDDHHmm', { timeZone }) | ||
: '000000000000'; | ||
}, | ||
@@ -80,5 +85,5 @@ }, | ||
? transformer.to(data, options) | ||
: `${data || ''}`; | ||
: data || ''; | ||
} | ||
return `${data || ''}`; | ||
return data || ''; | ||
}, | ||
@@ -90,6 +95,6 @@ from: (data, type, options) => { | ||
? transformer.from(data, options) | ||
: `${data || ''}`; | ||
: data || ''; | ||
} | ||
return `${data || ''}`; | ||
return data || ''; | ||
}, | ||
}; |
{ | ||
"name": "@twec/ip-parser", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Parser for Island Pacific orders", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
18200
588
0