Add node-forge crypto libraries (#5597)
This commit is contained in:
parent
75c439f66d
commit
d4f3d49681
|
|
@ -91,6 +91,7 @@
|
|||
"moment": "^2.24.0",
|
||||
"moment-timezone": "^0.5.27",
|
||||
"nanoid": "^2.0.4",
|
||||
"node-forge": "^0.10.0",
|
||||
"node-sass": "^6.0.1",
|
||||
"normalizr": "^3.3.0",
|
||||
"path-to-regexp": "^6.2.0",
|
||||
|
|
@ -205,6 +206,7 @@
|
|||
"@types/jest": "^24.0.22",
|
||||
"@types/jshint": "^2.12.0",
|
||||
"@types/marked": "^1.2.2",
|
||||
"@types/node-forge": "^0.10.0",
|
||||
"@types/react-beautiful-dnd": "^11.0.4",
|
||||
"@types/react-select": "^3.0.5",
|
||||
"@types/react-tabs": "^2.3.1",
|
||||
|
|
|
|||
11263
app/client/src/constants/defs/forge.json
Normal file
11263
app/client/src/constants/defs/forge.json
Normal file
File diff suppressed because it is too large
Load Diff
|
|
@ -9,6 +9,7 @@ import { WidgetProps } from "widgets/BaseWidget";
|
|||
import parser from "fast-xml-parser";
|
||||
import { Severity } from "entities/AppsmithConsole";
|
||||
import { getEntityNameAndPropertyPath } from "workers/evaluationUtils";
|
||||
import forge from "node-forge";
|
||||
|
||||
export type DependencyMap = Record<string, Array<string>>;
|
||||
|
||||
|
|
@ -140,6 +141,15 @@ export const extraLibraries: ExtraLibrary[] = [
|
|||
docsURL: "https://github.com/NaturalIntelligence/fast-xml-parser",
|
||||
displayName: "xmlParser",
|
||||
},
|
||||
{
|
||||
accessor: "forge",
|
||||
// We are removing some functionalities of node-forge because they wont
|
||||
// work in the worker thread
|
||||
lib: _.omit(forge, ["tls", "http", "xhr", "socket", "task"]),
|
||||
version: "0.10.0",
|
||||
docsURL: "https://github.com/digitalbazaar/forge",
|
||||
displayName: "forge",
|
||||
},
|
||||
];
|
||||
|
||||
export interface DynamicPath {
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import lodash from "constants/defs/lodash.json";
|
|||
import base64 from "constants/defs/base64-js.json";
|
||||
import moment from "constants/defs/moment.json";
|
||||
import xmlJs from "constants/defs/xmlParser.json";
|
||||
import forge from "constants/defs/forge.json";
|
||||
import { dataTreeTypeDefCreator } from "utils/autocomplete/dataTreeTypeDefCreator";
|
||||
import { customTreeTypeDefCreator } from "utils/autocomplete/customTreeTypeDefCreator";
|
||||
import CodeMirror, { Hint, Pos, cmpPos } from "codemirror";
|
||||
|
|
@ -15,7 +16,7 @@ import {
|
|||
isDynamicValue,
|
||||
} from "utils/DynamicBindingUtils";
|
||||
|
||||
const DEFS = [ecma, lodash, base64, moment, xmlJs];
|
||||
const DEFS = [ecma, lodash, base64, moment, xmlJs, forge];
|
||||
const bigDoc = 250;
|
||||
const cls = "CodeMirror-Tern-";
|
||||
const hintDelay = 1700;
|
||||
|
|
|
|||
|
|
@ -3758,6 +3758,13 @@
|
|||
dependencies:
|
||||
"@types/node" "*"
|
||||
|
||||
"@types/node-forge@^0.10.0":
|
||||
version "0.10.0"
|
||||
resolved "https://registry.yarnpkg.com/@types/node-forge/-/node-forge-0.10.0.tgz#14888032a0e873a746b3a7f2b320b44d19ccb104"
|
||||
integrity sha512-qxCPxN/6s/kY4Xud/1T6gIQtJjRz09UWSA8fTEfUXu4rC9EkFt4KA3s8bYLvkNJmIEWlVeuhZ1CFl7F5rp3FCA==
|
||||
dependencies:
|
||||
"@types/node" "*"
|
||||
|
||||
"@types/node@*":
|
||||
version "14.11.8"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.11.8.tgz#fe2012f2355e4ce08bca44aeb3abbb21cf88d33f"
|
||||
|
|
@ -12298,6 +12305,7 @@ node-fetch@^1.0.1:
|
|||
node-forge@^0.10.0:
|
||||
version "0.10.0"
|
||||
resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-0.10.0.tgz#32dea2afb3e9926f02ee5ce8794902691a676bf3"
|
||||
integrity sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA==
|
||||
|
||||
node-gyp@^7.1.0:
|
||||
version "7.1.2"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user