mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-24 00:36:16 -04:00
improve naming in API
This commit is contained in:
parent
638093d40e
commit
a7874cc351
2 changed files with 10 additions and 11 deletions
|
@ -40,7 +40,7 @@ let code = `/**
|
|||
|
||||
import "babel-polyfill";
|
||||
import NodeDish from "./NodeDish";
|
||||
import { wrap, help, bake, explainExludedFunction } from "./api";
|
||||
import { _wrap, help, bake, _explainExludedFunction } from "./api";
|
||||
import {
|
||||
// import as core_ to avoid name clashes after wrap.
|
||||
`;
|
||||
|
@ -74,11 +74,11 @@ function generateChef() {
|
|||
`;
|
||||
|
||||
includedOperations.forEach((op) => {
|
||||
code += ` "${decapitalise(op)}": wrap(core_${op}),\n`;
|
||||
code += ` "${decapitalise(op)}": _wrap(core_${op}),\n`;
|
||||
});
|
||||
|
||||
excludedOperations.forEach((op) => {
|
||||
code += ` "${decapitalise(op)}": explainExludedFunction("${op}"),\n`;
|
||||
code += ` "${decapitalise(op)}": _explainExludedFunction("${op}"),\n`;
|
||||
});
|
||||
|
||||
code += ` };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue