@nodegx/backend 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4017,13 +4017,14 @@ function whyNotPrintable(params, body, async) {
4017
4017
  return void 0;
4018
4018
  }
4019
4019
  var fnName = (componentName) => componentName.replace(/^\/?#__cloud__\//, "");
4020
- function collectCode(components) {
4020
+ function collectCode(components, options) {
4021
+ const compile = !options || options.compile !== false;
4021
4022
  const byKey = /* @__PURE__ */ new Map();
4022
4023
  const refusals = [];
4023
4024
  const visit = (component, node) => {
4024
4025
  for (const code of codeOfNode(node)) {
4025
4026
  const site = { fn: fnName(component.name), nodeId: node.id, type: node.type, port: code.port };
4026
- const why = whyNotPrintable(code.params, code.body, code.async);
4027
+ const why = compile ? whyNotPrintable(code.params, code.body, code.async) : void 0;
4027
4028
  if (why) {
4028
4029
  refusals.push({ ...site, reason: why });
4029
4030
  continue;