@graffy/link 0.16.0-alpha.4 → 0.16.0-alpha.6

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 +1 -1
  2. package/index.mjs +2 -2
  3. package/package.json +2 -2
package/index.cjs CHANGED
@@ -334,6 +334,6 @@ const index = (defs) => (store) => {
334
334
  });
335
335
  };
336
336
  function clone(tree) {
337
- return common.deserialize(common.serialize(tree));
337
+ return common.unpack(JSON.parse(JSON.stringify(common.pack(tree))));
338
338
  }
339
339
  module.exports = index;
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { encodePath, splitRef, findFirst, cmp, unwrap, merge, wrap, splitArgs, encodeArgs, decodeArgs, isBranch, add, MIN_KEY, encodeQuery, finalize, deserialize, serialize } from "@graffy/common";
1
+ import { encodePath, splitRef, findFirst, cmp, unwrap, merge, wrap, splitArgs, encodeArgs, decodeArgs, isBranch, add, MIN_KEY, encodeQuery, finalize, unpack, pack } from "@graffy/common";
2
2
  import debug from "debug";
3
3
  function linkGraph(rootGraph, defs) {
4
4
  let version = rootGraph[0].version;
@@ -331,7 +331,7 @@ const index = (defs) => (store) => {
331
331
  });
332
332
  };
333
333
  function clone(tree) {
334
- return deserialize(serialize(tree));
334
+ return unpack(JSON.parse(JSON.stringify(pack(tree))));
335
335
  }
336
336
  export {
337
337
  index as default
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.16.0-alpha.4",
5
+ "version": "0.16.0-alpha.6",
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.16.0-alpha.4",
19
+ "@graffy/common": "0.16.0-alpha.6",
20
20
  "debug": "^4.3.3"
21
21
  }
22
22
  }