Comparing version 1.0.0 to 1.0.1
'use strict' | ||
var isArray = require('isarray') | ||
module.exports = function castArray (value) { | ||
return Array.isArray(value) ? value : [value] | ||
return isArray(value) ? value : [value] | ||
} |
{ | ||
"name": "cast-array", | ||
"main": "index.js", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Ensure a value is an array and wrap it if it is not an array", | ||
@@ -27,3 +27,6 @@ "license": "MIT", | ||
"index.js" | ||
] | ||
], | ||
"dependencies": { | ||
"isarray": "0.0.1" | ||
} | ||
} |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2443
5
1
+ Addedisarray@0.0.1
+ Addedisarray@0.0.1(transitive)