@fabriktor/client 0.0.42 → 0.0.44

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.
@@ -2,7 +2,6 @@ export type PathOptions = {
2
2
  svc: string;
3
3
  col: string;
4
4
  id?: string;
5
- id_key?: string;
6
5
  action?: string;
7
6
  };
8
7
  export declare function buildPath(opts: PathOptions): string;
@@ -3,7 +3,7 @@
3
3
  // Licensed under the Apache License, Version 2.0 (the "License"); you may
4
4
  // not use this file except in compliance with the License. You may obtain
5
5
  // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6
- import { IDKey, PathActions } from "@fabriktor/schema";
6
+ import { PathActions } from "@fabriktor/schema";
7
7
  const pathSep = "/";
8
8
  function clean(v) {
9
9
  return v.replace(/^\/+|\/+$/g, "");
@@ -11,7 +11,7 @@ function clean(v) {
11
11
  export function buildPath(opts) {
12
12
  const out = [opts.svc, opts.col].map(clean);
13
13
  if (opts.id !== undefined) {
14
- out.push(clean(opts.id_key ?? IDKey), encodeURIComponent(opts.id));
14
+ out.push(encodeURIComponent(opts.id));
15
15
  }
16
16
  if (opts.action !== undefined) {
17
17
  out.push(PathActions, clean(opts.action));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabriktor/client",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "description": "![Fabriktor Logo](./img/fabriktor-character.gif)",
5
5
  "type": "module",
6
6
  "exports": {
@@ -18,6 +18,6 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@fabriktor/client": "0.0.25",
21
- "@fabriktor/schema": "0.0.31"
21
+ "@fabriktor/schema": "0.0.32"
22
22
  }
23
23
  }