Skip to content

Commit f1eba96

Browse files
committed
Version bump
1 parent 064eb9c commit f1eba96

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
66

77
[project]
88
name = "socketsecurity"
9-
version = "2.1.0"
9+
version = "2.1.1"
1010
requires-python = ">= 3.10"
1111
license = {"file" = "LICENSE"}
1212
dependencies = [

socketsecurity/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__author__ = 'socket.dev'
2-
__version__ = '2.1.0'
2+
__version__ = '2.1.1'

socketsecurity/core/__init__.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,11 +628,16 @@ def create_new_diff(
628628
head_full_scan_id = None
629629

630630
if head_full_scan_id is None:
631-
tmp_params = params
631+
new_params = {}
632+
for key, value in params.__dict__.items():
633+
if key != 'include_license_details':
634+
new_params[key] = value
635+
tmp_params = FullScanParams(**new_params)
636+
tmp_params.include_license_details = params.include_license_details
632637
tmp_params.tmp = True
633638
tmp_params.set_as_pending_head = False
634639
tmp_params.make_default_branch = False
635-
head_full_scan = self.create_full_scan(Core.empty_head_scan_file(), params)
640+
head_full_scan = self.create_full_scan(Core.empty_head_scan_file(), tmp_params)
636641
head_full_scan_id = head_full_scan.id
637642

638643
# Create new scan
@@ -796,6 +801,8 @@ def get_source_data(package: Package, packages: dict) -> list:
796801
introduced_by = []
797802
if package.direct:
798803
manifests = ""
804+
if not hasattr(package, "manifestFiles"):
805+
return introduced_by
799806
for manifest_data in package.manifestFiles:
800807
manifest_file = manifest_data.get("file")
801808
manifests += f"{manifest_file};"

0 commit comments

Comments
 (0)