@aimeloic/monkey-tester 2.0.9 → 3.0.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 (2) hide show
  1. package/index.js +7 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,10 +1,13 @@
1
1
  'use strict';
2
2
 
3
+ // 1. Core internal require hook (monkey.js uses module.exports)
3
4
  const { endtesterExpress } = require('./monkey.js');
4
5
 
5
- // For backward compatibility with CommonJS projects using require()
6
+ // 2. Compatibility layer for legacy setups using: const x = require('@aimeloic/monkey-tester')
6
7
  module.exports = { endtesterExpress };
7
8
 
8
- // CRITICAL: Explicitly attach to defaults to satisfy Node's ESM interop loader
9
- module.exports.default = { endtesterExpress };
10
- module.exports.endtesterExpress = endtesterExpress;
9
+ // 3. Compatibility layer for ES module environments using: import { endtesterExpress } from '...'
10
+ module.exports.endtesterExpress = endtesterExpress;
11
+
12
+ // 4. Compatibility layer for ES module environments using: import monkeyTester from '...'
13
+ module.exports.default = { endtesterExpress };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aimeloic/monkey-tester",
3
- "version": "2.0.9",
3
+ "version": "3.0.1",
4
4
  "description": "Auto route scanning visual runner dashboard.",
5
5
  "main": "index.js",
6
6
  "type": "module",