@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.
- package/index.js +7 -4
- 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
|
-
//
|
|
6
|
+
// 2. Compatibility layer for legacy setups using: const x = require('@aimeloic/monkey-tester')
|
|
6
7
|
module.exports = { endtesterExpress };
|
|
7
8
|
|
|
8
|
-
//
|
|
9
|
-
module.exports.
|
|
10
|
-
|
|
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 };
|