Comparing version 0.0.2 to 0.0.3
@@ -13,3 +13,3 @@ (function(name, definition) { | ||
if (date instanceof Number || typeof date === 'number') date = numberToDate(date); | ||
if (date && date.constructor && date.constructor.name === 'DateOnly') date = date.toDate(); | ||
if (date instanceof Date) val = date; | ||
@@ -16,0 +16,0 @@ |
{ | ||
"name": "dateonly", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A JavaScript class that stores a date without a time.", | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"grunt": "~0.4.2", | ||
"grunt-mocha": "~0.4.10", | ||
"load-grunt-tasks": "~0.3.0" | ||
}, | ||
"devDependencies": {}, | ||
"scripts": { | ||
"test": "grunt mocha" | ||
"test": "mocha test" | ||
}, | ||
@@ -14,0 +10,0 @@ "main": "dateonly.js", |
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
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
0
1
16546
6
144