Skip to content

Commit 0b81dfc

Browse files
committed
Update package scan for package.json file
Signed-off-by: Divyansh2512 <[email protected]>
1 parent 839964c commit 0b81dfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packagedcode/npm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def build_package(package_data):
265265
version = package_data.get('version')
266266
homepage = package_data.get('homepage', '')
267267

268-
if not name or not version:
268+
if not name:
269269
# a package.json without name and version is not a usable npm package
270270
# FIXME: raise error?
271271
return

0 commit comments

Comments
 (0)