querysub 0.29.0 → 0.30.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "querysub",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -27,7 +27,7 @@ export async function replaceFunctions(config: {
27
27
  debugName: "replaceFunctions",
28
28
  watchFunction() {
29
29
  function debugFunction(func: FunctionSpec) {
30
- return `${func.DomainName}:${func.FilePath}:${func.FunctionId}`;
30
+ return `${func.DomainName}:${func.FilePath}:${func.ModuleId}:${func.FunctionId}`;
31
31
  }
32
32
 
33
33
  let { domainName, functions } = config;
@@ -497,7 +497,7 @@ export async function getCallWrites(config: {
497
497
  // }
498
498
  let moduleObject = domainObject.PathFunctionRunner[call.ModuleId];
499
499
  if (!(call.FunctionId in moduleObject.Sources) && Querysub.isAllSynced()) {
500
- throw new Error(`Function not found ${call.DomainName}.${call.ModuleId}.${call.FunctionId}`);
500
+ throw new Error(`Function not found in database ${call.DomainName}.${call.ModuleId}.${call.FunctionId}, have ${JSON.stringify(Object.keys(moduleObject.Sources))}`);
501
501
  }
502
502
  let functionSpec = atomicObjectRead(moduleObject.Sources[call.FunctionId]);
503
503
  return { functionSpec };