2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-23 03:33:24 +00:00

improve naming in API

This commit is contained in:
d98762625
2019-04-04 11:28:46 +01:00
parent 638093d40e
commit a7874cc351
2 changed files with 10 additions and 11 deletions

View File

@@ -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 += ` };