@graffy/link 0.15.15-alpha.3 → 0.15.15

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.
Files changed (3) hide show
  1. package/index.cjs +5 -3
  2. package/index.mjs +5 -3
  3. package/package.json +2 -2
package/index.cjs CHANGED
@@ -295,13 +295,15 @@ var index = (defs) => (store) => {
295
295
  if (!usedDefs.length)
296
296
  return next(query, options);
297
297
  const result = await next(common.wrap(unwrappedQuery, prefix), options);
298
+ const version = result[0].version;
298
299
  const unwrappedResult = common.unwrap(result, prefix);
299
300
  common.add(unwrappedQuery, common.unwrap(query, prefix));
300
301
  log("finalizing", prefix, unwrappedQuery);
301
- const finalizedResult = common.finalize(unwrappedResult, unwrappedQuery);
302
- log("beforeAddingLinks", prefix, unwrappedResult);
302
+ const finalizedResult = common.finalize(unwrappedResult, unwrappedQuery, version);
303
+ log("beforeAddingLinks", prefix, finalizedResult);
303
304
  linkGraph(finalizedResult, usedDefs);
304
- return common.wrap(finalizedResult, prefix);
305
+ log("afterAddingLinks", prefix, finalizedResult);
306
+ return common.wrap(finalizedResult, prefix, version);
305
307
  });
306
308
  };
307
309
  function clone(tree) {
package/index.mjs CHANGED
@@ -290,13 +290,15 @@ var index = (defs) => (store) => {
290
290
  if (!usedDefs.length)
291
291
  return next(query, options);
292
292
  const result = await next(wrap(unwrappedQuery, prefix), options);
293
+ const version = result[0].version;
293
294
  const unwrappedResult = unwrap(result, prefix);
294
295
  add(unwrappedQuery, unwrap(query, prefix));
295
296
  log("finalizing", prefix, unwrappedQuery);
296
- const finalizedResult = finalize(unwrappedResult, unwrappedQuery);
297
- log("beforeAddingLinks", prefix, unwrappedResult);
297
+ const finalizedResult = finalize(unwrappedResult, unwrappedQuery, version);
298
+ log("beforeAddingLinks", prefix, finalizedResult);
298
299
  linkGraph(finalizedResult, usedDefs);
299
- return wrap(finalizedResult, prefix);
300
+ log("afterAddingLinks", prefix, finalizedResult);
301
+ return wrap(finalizedResult, prefix, version);
300
302
  });
301
303
  };
302
304
  function clone(tree) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graffy/link",
3
3
  "description": "Graffy module for constructing links using an intuitive, declarative notation.",
4
4
  "author": "aravind (https://github.com/aravindet)",
5
- "version": "0.15.15-alpha.3",
5
+ "version": "0.15.15",
6
6
  "main": "./index.cjs",
7
7
  "exports": {
8
8
  "import": "./index.mjs",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "license": "Apache-2.0",
18
18
  "dependencies": {
19
- "@graffy/common": "0.15.15-alpha.3",
19
+ "@graffy/common": "0.15.15",
20
20
  "debug": "^4.3.2"
21
21
  }
22
22
  }