tsondb 0.21.3 → 0.21.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.
@@ -1,16 +1,10 @@
1
1
  import { HTTPError } from "../../utils/error.js";
2
2
  import { getValueAtKeyPath } from "./keyPath.js";
3
- // | { entityMapKeyPath: KeyPath; keyPathInEntityMap: KeyPath }
4
3
  const getSortOrderValue = (instanceContent, sortOrder) => {
5
4
  if ("keyPath" in sortOrder) {
6
5
  return getValueAtKeyPath(instanceContent, sortOrder.keyPath);
7
6
  }
8
7
  else {
9
- // const entityMap = instance.getValueAtKeyPath(sortOrder.entityMapKeyPath)
10
- // if (entityMap && typeof entityMap === "object") {
11
- // const nestedInstance = InstanceContent.fromUnknown(entityMap)
12
- // return nestedInstance.getValueAtKeyPath(sortOrder.keyPathInEntityMap)
13
- // }
14
8
  return;
15
9
  }
16
10
  };
@@ -6842,10 +6842,10 @@ const Entity = ()=>{
6842
6842
  /*#__PURE__*/ jsxRuntime_module_u("div", {
6843
6843
  className: "btns",
6844
6844
  children: [
6845
- isReorderableSortOrder(entity.sortOrder) ? null : /*#__PURE__*/ jsxRuntime_module_u("button", {
6845
+ isReorderableSortOrder(entity.sortOrder) ? /*#__PURE__*/ jsxRuntime_module_u("button", {
6846
6846
  onClick: toggleEditMode,
6847
6847
  children: inEditMode ? "Apply new order" : "Reorder"
6848
- }),
6848
+ }) : null,
6849
6849
  /*#__PURE__*/ jsxRuntime_module_u("a", {
6850
6850
  class: "btn btn--primary",
6851
6851
  href: `/entities/${entity.name}/instances/create`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsondb",
3
- "version": "0.21.3",
3
+ "version": "0.21.4",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "Lukas Obermann",