Skip to content

Conversation

@fraxken
Copy link
Member

@fraxken fraxken commented Jul 17, 2025

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jul 17, 2025

🦋 Changeset detected

Latest commit: 34dbbb0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@nodesecure/js-x-ray Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a generic pipeline mechanism to the AstAnalyser, including a built-in deobfuscation pipeline and supporting tests.

  • Define a new Pipeline interface and export it via pipelines/index.ts
  • Implement the Deobfuscate pipeline to simplify array-based obfuscations
  • Integrate pipeline execution into AstAnalyser and add tests for pipeline behavior

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
workspaces/js-x-ray/test/Pipelines.spec.ts Add tests for custom and built-in deobfuscate pipelines
workspaces/js-x-ray/src/pipelines/pipeline.ts Introduce the Pipeline interface
workspaces/js-x-ray/src/pipelines/index.ts Export available pipelines under Pipelines
workspaces/js-x-ray/src/pipelines/deobfuscate.ts Provide Deobfuscate pipeline implementation
workspaces/js-x-ray/src/index.ts Export pipelines from the package entry point
workspaces/js-x-ray/src/AstAnalyser.ts Wire in pipeline support and execution order
Comments suppressed due to low confidence (1)

workspaces/js-x-ray/src/AstAnalyser.ts:144

  • [nitpick] The variable name 'runnedPipelines' is not proper English. Consider renaming it to 'executedPipelines' or 'seenPipelines' to improve readability.
    const runnedPipelines = new Set<string>();

@fraxken fraxken force-pushed the pipelines branch 3 times, most recently from edd13dc to 5aac3e0 Compare July 17, 2025 23:26
@fraxken fraxken marked this pull request as ready for review July 18, 2025 00:29
Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

chore: add changeset
@fraxken fraxken merged commit b6d2474 into master Jul 18, 2025
6 checks passed
@fraxken fraxken deleted the pipelines branch July 18, 2025 17:03
@github-actions github-actions bot mentioned this pull request Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants