Skip to content

Commit

Permalink
Disable js/ts parameters from calls. (#40)
Browse files Browse the repository at this point in the history
Signed-off-by: Caroline Russell <caroline@appthreat.dev>
  • Loading branch information
cerrussell authored Mar 22, 2024
1 parent bbdfa59 commit 347f1f4
Show file tree
Hide file tree
Showing 4 changed files with 255 additions and 754 deletions.
2 changes: 1 addition & 1 deletion atom_tools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
A cli, classes and functions for converting an atom slice to a different format
"""
__version__ = '0.4.4'
__version__ = '0.4.5'
2 changes: 1 addition & 1 deletion atom_tools/lib/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def _calls_to_params(self, ep: str, orig_ep: str, call: Dict | None) -> Dict[str
if call_name in ops:
params = self._create_param_object(ep, orig_ep, call)
result: Dict[str, Dict] = {call_name: {'responses': {}}}
if params:
if params and self.usages.origin_type not in ('js', 'ts', 'javascript', 'typescript'):
result[call_name] |= {'parameters': params}
return result
return determine_operations(call, params)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "atom-tools"
version = "0.4.4"
version = "0.4.5"
description = "Collection of tools for use with AppThreat/atom."
authors = [
{ name = "Caroline Russell", email = "caroline@appthreat.dev" },
Expand Down
Loading

0 comments on commit 347f1f4

Please sign in to comment.