@shriyanss/js-recon 1.1.2-alpha.1 → 1.1.2-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
2
  # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
3
 
4
- name: Node.js Package
4
+ name: Publish JS Recon
5
5
 
6
6
  on:
7
7
  release:
@@ -66,3 +66,30 @@ jobs:
66
66
  env:
67
67
  NODE_AUTH_TOKEN: ${{secrets.npm_token}}
68
68
  VERSION: ${{ github.event.release.tag_name }}
69
+ publish-docker:
70
+ needs: build
71
+ runs-on: ubuntu-latest
72
+ steps:
73
+ - name: Build and push Docker image
74
+ run: |
75
+ # login to docker
76
+ echo $DOCKER_SECRET | docker login -u shriyanss --password-stdin
77
+
78
+ # build the image
79
+ docker build -t shriyanss/js-recon:$VERSION .
80
+
81
+ # check if it is alpha or beta. default to latest
82
+ TAG="latest"
83
+ [[ "$VERSION" == *"beta"* ]] && TAG="beta"
84
+ [[ "$VERSION" == *"alpha"* ]] && TAG="alpha"
85
+
86
+ # tag again with whatever has been set
87
+ docker tag shriyanss/js-recon:$VERSION shriyanss/js-recon:$TAG
88
+
89
+ # push images with both tags
90
+ docker push shriyanss/js-recon:$VERSION
91
+ docker push shriyanss/js-recon:$TAG
92
+
93
+ env:
94
+ DOCKER_SECRET: ${{ secrets.DOCKER_SECRET }}
95
+ VERSION: ${{ github.event.release.tag_name }}
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.1.2-alpha.2 - 2025.07.20
4
+
5
+ ### Added
6
+
7
+ - Created docker image for js-recon
8
+
9
+ ### Changed
10
+
11
+ ### Fixed
12
+
3
13
  ## 1.1.2-alpha.1 - 2025.07.19
4
14
 
5
15
  ### Added
package/Dockerfile ADDED
@@ -0,0 +1,17 @@
1
+ FROM --platform=amd64 ghcr.io/puppeteer/puppeteer:latest
2
+
3
+ WORKDIR /home/pptruser
4
+
5
+ # selectively copy the source files
6
+ COPY ./package.json .
7
+ COPY ./package-lock.json .
8
+ COPY ./tsconfig.json .
9
+ COPY ./src ./src
10
+
11
+ USER root
12
+ RUN npm ci
13
+ RUN npm run build
14
+
15
+ USER pptruser
16
+ RUN npx puppeteer browsers install chrome
17
+ ENTRYPOINT ["node", "build/index.js"]
@@ -1,6 +1,6 @@
1
1
  const githubURL = "https://github.com/shriyanss/js-recon";
2
2
  const modulesDocs = "https://js-recon.io/docs/category/modules";
3
- const version = "1.1.2-alpha.1";
3
+ const version = "1.1.2-alpha.2";
4
4
  const toolDesc = "JS Recon Tool";
5
5
  let CONFIG = {
6
6
  github: githubURL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shriyanss/js-recon",
3
- "version": "1.1.2-alpha.1",
3
+ "version": "1.1.2-alpha.2",
4
4
  "description": "JS Recon Tool",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
@@ -12,7 +12,7 @@
12
12
  "build": "rm -rf build/ && tsc",
13
13
  "start": "node build/index.js",
14
14
  "test": "node build/index.js -h",
15
- "cleanup": "rm -rf build/ output/ .resp_cache.json extracted_urls.txt extracted_urls.json extracted_urls-openapi.json strings.json mapped.json test.js #"
15
+ "cleanup": "rm -rf build output .resp_cache.json extracted_urls{.txt,.json,-openapi.json} strings.json mapped.json test.js shriyanss-js-recon-*.tgz"
16
16
  },
17
17
  "keywords": [],
18
18
  "author": "Shriyans Sudhi",