Supported Dependencies
FunctionGraph supports standard libraries and third-party dependencies.
When using standard libraries, you can import them to your inline code, or package and upload them to FunctionGraph.
FunctionGraph provides built-in third-party components, as described in Table 1 and Table 2. You can import these components to your inline code in the same way as you import standard libraries.
Name |
Description |
Version |
---|---|---|
q |
Asynchronous method encapsulation |
1.5.1 |
co |
Asynchronous process control |
4.6.0 |
lodash |
Common tool and method library |
4.17.10 |
esdk-obs-nodejs |
OBS sdk |
2.1.5 |
express |
Simplified web-based application development framework |
4.16.4 |
fgs-express |
Provides a Node.js application framework for FunctionGraph and APIG to run serverless applications and REST APIs. This component provides an example of using the Express framework to build serverless web applications or services and RESTful APIs. |
1.0.1 |
request |
Simplifies HTTP invocation and supports HTTPS and redirection. |
2.88.0 |
For other third-party libraries not listed in the preceding tables, package and upload them to an OBS bucket or on the function details page. For details, see How Do I Create a Dependency on the FunctionGraph Console? These libraries will then be used in your function code.