Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "hatchling.build"

[project]
name = "socketsecurity"
version = "2.1.12"
version = "2.1.14"
requires-python = ">= 3.10"
license = {"file" = "LICENSE"}
dependencies = [
Expand Down
2 changes: 1 addition & 1 deletion socketsecurity/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__author__ = 'socket.dev'
__version__ = '2.1.12'
__version__ = '2.1.14'
2 changes: 1 addition & 1 deletion socketsecurity/core/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def from_diff_artifact(cls, data: dict) -> "Package":
ValueError: If reference data cannot be found in DiffArtifact
"""
ref = None
if data["diffType"] in ["added", "updated"] and data.get("head"):
if data["diffType"] in ["added", "updated", "unchanged"] and data.get("head"):
ref = data["head"][0]
elif data["diffType"] in ["removed", "replaced"] and data.get("base"):
ref = data["base"][0]
Expand Down
2 changes: 1 addition & 1 deletion socketsecurity/socketcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def main_code():
output_handler.handle_output(diff)

# Handle license generation
if diff is not None and config.generate_license:
if diff is not None and diff.id != "no_diff_id" and config.generate_license:
all_packages = {}
for purl in diff.packages:
package = diff.packages[purl]
Expand Down
Loading