0.1.0-alpha.8 • Published 1 year ago
@calculang/introspection-api v0.1.0-alpha.8
introspection api
Given an endpoint builds a relationship graph, and provides information on calculang scopes, functions and respective inputs.
usage
import introspection from '@calculang/introspection-api';
const output = await introspection(entrypoint, options);
output object
The following Map objects are output:
- culfunctions, keyed by `<scope_id>`, values include information on scope and inputs
- cul_scope_ids_to_resource:
<scope_id>
mapped to resource reference - importsources_to_resource: keyed by `<scope_id><(original) source>`, values are replacement resource reference for an import source within the given scope i.e. including cul_scope_id and cul_parent_scope_id query parameters
- culfunctions_input_map: `` mapped to Set of inputs for each calculang function (shortcut to inputs lookup on cul_functions search)
cul_links, a Set of links in relationship graph, is also output, along with dot
(RN).
cul_scope_id_counter and cul_parent_scope_id are for internal use.
More details on Map/Set objects in global_state.js
internals
./src/index.js
contains some technical information in comments.
0.1.0-alpha.7
1 year ago
0.1.0-alpha.8
1 year ago
0.1.0-alpha.6
2 years ago
0.1.0-alpha.5
3 years ago
0.1.0-alpha.4
4 years ago
0.1.0-alpha.3
4 years ago
0.1.0-alpha.2
4 years ago