mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-10 00:05:11 -04:00
move wrapper to js extension for backwards compatibility
This commit is contained in:
parent
16db8b0b72
commit
e9fcae8c49
2 changed files with 3 additions and 2 deletions
|
@ -27,10 +27,10 @@
|
|||
"type": "git",
|
||||
"url": "https://github.com/gchq/CyberChef/"
|
||||
},
|
||||
"main": "./src/node/wrapper.cjs",
|
||||
"main": "./src/node/wrapper.js",
|
||||
"exports": {
|
||||
"import": "./src/node/index.mjs",
|
||||
"require": "./src/node/wrapper.cjs"
|
||||
"require": "./src/node/wrapper.js"
|
||||
},
|
||||
"bugs": "https://github.com/gchq/CyberChef/issues",
|
||||
"browserslist": [
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
console.log('CJS')
|
||||
/* eslint no-global-assign: ["off"] */
|
||||
require = require("esm")(module);
|
||||
module.exports = require("./index.mjs");
|
Loading…
Add table
Add a link
Reference in a new issue