@js-recon/js-recon 1.4.1-beta.2 → 1.4.1

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.
Files changed (60) hide show
  1. package/.claude-sync/hooks/post-merge +4 -0
  2. package/.claude-sync/merge-agentic.sh +77 -0
  3. package/.github/workflows/promote-js-recon.yml +25 -2
  4. package/CHANGELOG.md +10 -0
  5. package/build/globalConfig.js +1 -1
  6. package/build/globalConfig.js.map +1 -1
  7. package/build/lazyLoad/angular/angular_getFromMainJs.js +11 -29
  8. package/build/lazyLoad/angular/angular_getFromMainJs.js.map +1 -1
  9. package/build/lazyLoad/angular/angular_recursiveChunkImports.js +104 -0
  10. package/build/lazyLoad/angular/angular_recursiveChunkImports.js.map +1 -0
  11. package/build/lazyLoad/index.js +15 -9
  12. package/build/lazyLoad/index.js.map +1 -1
  13. package/build/lazyLoad/methodFilter.js +1 -1
  14. package/build/lazyLoad/methodFilter.js.map +1 -1
  15. package/build/lazyLoad/next_js/NextJsCrawler.js +5 -5
  16. package/build/lazyLoad/next_js/NextJsCrawler.js.map +1 -1
  17. package/build/lazyLoad/next_js/next_GetLazyResourcesWebpackJs.js +9 -8
  18. package/build/lazyLoad/next_js/next_GetLazyResourcesWebpackJs.js.map +1 -1
  19. package/build/lazyLoad/next_js/next_bruteForceJsFiles.js +4 -3
  20. package/build/lazyLoad/next_js/next_bruteForceJsFiles.js.map +1 -1
  21. package/build/lazyLoad/next_js/next_parseLayoutJs.js +31 -31
  22. package/build/lazyLoad/next_js/next_parseLayoutJs.js.map +1 -1
  23. package/build/lazyLoad/next_js/next_promiseResolve.js +4 -3
  24. package/build/lazyLoad/next_js/next_promiseResolve.js.map +1 -1
  25. package/build/lazyLoad/next_js/next_scriptTagsSubsequentRequests.js +7 -8
  26. package/build/lazyLoad/next_js/next_scriptTagsSubsequentRequests.js.map +1 -1
  27. package/build/lazyLoad/nuxt_js/nuxt_stringAnalysisJSFiles.js +6 -7
  28. package/build/lazyLoad/nuxt_js/nuxt_stringAnalysisJSFiles.js.map +1 -1
  29. package/build/lazyLoad/react/react_followImports.js +9 -8
  30. package/build/lazyLoad/react/react_followImports.js.map +1 -1
  31. package/build/lazyLoad/react/react_sourcemapUrls.js +5 -11
  32. package/build/lazyLoad/react/react_sourcemapUrls.js.map +1 -1
  33. package/build/lazyLoad/react/react_webpackChunkPaths.js +7 -6
  34. package/build/lazyLoad/react/react_webpackChunkPaths.js.map +1 -1
  35. package/build/lazyLoad/svelte/svelte_discoverPagesFromJs.js +13 -12
  36. package/build/lazyLoad/svelte/svelte_discoverPagesFromJs.js.map +1 -1
  37. package/build/lazyLoad/svelte/svelte_stringAnalysisJSFiles.js +6 -7
  38. package/build/lazyLoad/svelte/svelte_stringAnalysisJSFiles.js.map +1 -1
  39. package/build/lazyLoad/vue/vue_discoverJsFiles.js +6 -6
  40. package/build/lazyLoad/vue/vue_discoverJsFiles.js.map +1 -1
  41. package/build/lazyLoad/vue/vue_getClientSidePaths.js +8 -7
  42. package/build/lazyLoad/vue/vue_getClientSidePaths.js.map +1 -1
  43. package/build/lazyLoad/vue/vue_jsImports.js +16 -16
  44. package/build/lazyLoad/vue/vue_jsImports.js.map +1 -1
  45. package/build/lazyLoad/vue/vue_reconstructSourceMaps.js +5 -4
  46. package/build/lazyLoad/vue/vue_reconstructSourceMaps.js.map +1 -1
  47. package/build/lazyLoad/vue/vue_recursiveClientSidePathDownload.js +8 -1
  48. package/build/lazyLoad/vue/vue_recursiveClientSidePathDownload.js.map +1 -1
  49. package/build/lazyLoad/vue/vue_stringJsFiles.js +15 -8
  50. package/build/lazyLoad/vue/vue_stringJsFiles.js.map +1 -1
  51. package/build/lazyLoad/vue/vue_viteMapDeps.js +6 -5
  52. package/build/lazyLoad/vue/vue_viteMapDeps.js.map +1 -1
  53. package/build/refactor/index.js +23 -28
  54. package/build/refactor/index.js.map +1 -1
  55. package/build/run/index.js +20 -2
  56. package/build/run/index.js.map +1 -1
  57. package/build/utility/concurrency.js +35 -0
  58. package/build/utility/concurrency.js.map +1 -0
  59. package/package.json +6 -3
  60. package/patches/puppeteer-extra-plugin-user-data-dir+2.4.1.patch +31 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"concurrency.js","sourceRoot":"","sources":["../../src/utility/concurrency.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAC9B,KAAU,EACV,OAAe,EACf,MAAiD,EACpC,EAAE;IACf,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAE/B,IAAI,MAAM,GAAG,CAAC,CAAC;IACf,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IAEjE,MAAM,SAAS,GAAG,GAAS,EAAE;QACzB,OAAO,MAAM,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;YAC3B,MAAM,KAAK,GAAG,MAAM,EAAE,CAAC;YACvB,IAAI,CAAC;gBACD,MAAM,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC;YACtC,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACX,4EAA4E;gBAC5E,gEAAgE;gBAChE,OAAO,CAAC,KAAK,CAAC,2DAA2D,KAAK,KAAK,GAAG,EAAE,CAAC,CAAC;YAC9F,CAAC;QACL,CAAC;IACL,CAAC,CAAA,CAAC;IAEF,MAAM,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;AAC9E,CAAC,CAAA,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@js-recon/js-recon",
3
- "version": "1.4.1-beta.2",
3
+ "version": "1.4.1",
4
4
  "description": "JS Recon Tool",
5
5
  "main": "build/index.js",
6
6
  "type": "module",
@@ -14,6 +14,7 @@
14
14
  "test": "vitest run",
15
15
  "test:watch": "vitest",
16
16
  "test:build": "node build/index.js -h",
17
+ "postinstall": "patch-package",
17
18
  "cleanup": "rm -rf build output output_refactored .resp_cache.json endpoints.json extracted_urls{.txt,.json,-openapi.json} strings.json mapped{-openapi.json,.json,-openapi.postman_collection.json} analyze.json test{.yaml,.js} js-recon-js-recon-*.tgz js-recon.db report.{html,md} js_recon_run_output *_test.js extracted/ research.json results* out.* && tsc"
18
19
  },
19
20
  "keywords": [],
@@ -40,6 +41,7 @@
40
41
  "datatables.net": "^2.3.6",
41
42
  "datatables.net-dt": "^2.3.6",
42
43
  "esquery": "^1.6.0",
44
+ "extract-zip": "^2.0.1",
43
45
  "fs": "^0.0.2",
44
46
  "graphql": "^16.14.1",
45
47
  "highlight.js": "^11.11.1",
@@ -48,9 +50,9 @@
48
50
  "md5": "^2.3.0",
49
51
  "ollama": "^0.6.3",
50
52
  "openai": "^5.8.2",
53
+ "patch-package": "^8.0.1",
51
54
  "path": "^0.12.7",
52
55
  "prettier": "^3.7.4",
53
- "extract-zip": "^2.0.1",
54
56
  "puppeteer": "^25.0.2",
55
57
  "puppeteer-extra": "^3.3.6",
56
58
  "puppeteer-extra-plugin-stealth": "^2.11.2",
@@ -61,7 +63,8 @@
61
63
  "zod": "^3.23.8"
62
64
  },
63
65
  "overrides": {
64
- "@hono/node-server": "^2.0.11"
66
+ "@hono/node-server": "^2.0.11",
67
+ "rimraf": "^6.0.1"
65
68
  },
66
69
  "repository": {
67
70
  "type": "git",
@@ -0,0 +1,31 @@
1
+ diff --git a/node_modules/puppeteer-extra-plugin-user-data-dir/index.js b/node_modules/puppeteer-extra-plugin-user-data-dir/index.js
2
+ index 935505a..86754d3 100644
3
+ --- a/node_modules/puppeteer-extra-plugin-user-data-dir/index.js
4
+ +++ b/node_modules/puppeteer-extra-plugin-user-data-dir/index.js
5
+ @@ -5,7 +5,6 @@ const fs = require('fs')
6
+ const fse = require('fs-extra')
7
+ const os = require('os')
8
+ const path = require('path')
9
+ -const rimraf = require('rimraf')
10
+ const debug = require('debug')('puppeteer-extra-plugin:user-data-dir')
11
+ const mkdtempAsync = util.promisify(fs.mkdtemp)
12
+ const { PuppeteerExtraPlugin } = require('puppeteer-extra-plugin')
13
+ @@ -71,12 +70,14 @@ class Plugin extends PuppeteerExtraPlugin {
14
+ return
15
+ }
16
+
17
+ - // We're using rimraf here because it throw errors and don't seem to freeze the process
18
+ - // If ressources busy or locked by chrome try again 4 times, then give up. overall a timout of 400ms
19
+ - rimraf(
20
+ + // We're using fs.rm here because it throws errors and doesn't seem to freeze the process
21
+ + // If resources are busy or locked by chrome, retry a few times, then give up.
22
+ + fs.rm(
23
+ this._userDataDir,
24
+ {
25
+ - maxBusyTries: 4
26
+ + recursive: true,
27
+ + force: true,
28
+ + maxRetries: 4
29
+ },
30
+ err => {
31
+ debug(err)