@ztimson/utils 0.20.12 → 0.21.1

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,3 +1,5 @@
1
+ import { ASet } from './aset.ts';
2
+
1
3
  /**
2
4
  * Available methods:
3
5
  * * - All/Wildcard
@@ -48,19 +50,25 @@ export declare class PathEvent {
48
50
  /** Last sagment of path */
49
51
  name: string;
50
52
  /** List of methods */
51
- methods: Method[];
53
+ methods: ASet<Method>;
52
54
  /** All/Wildcard specified */
53
- all: boolean;
55
+ get all(): boolean;
56
+ set all(v: boolean);
54
57
  /** None specified */
55
- none: boolean;
58
+ get none(): boolean;
59
+ set none(v: boolean);
56
60
  /** Create method specified */
57
- create: boolean;
61
+ get create(): boolean;
62
+ set create(v: boolean);
58
63
  /** Read method specified */
59
- read: boolean;
64
+ get read(): boolean;
65
+ set read(v: boolean);
60
66
  /** Update method specified */
61
- update: boolean;
67
+ get update(): boolean;
68
+ set update(v: boolean);
62
69
  /** Delete method specified */
63
- delete: boolean;
70
+ get delete(): boolean;
71
+ set delete(v: boolean);
64
72
  constructor(Event: string | PathEvent);
65
73
  /**
66
74
  * Combine multiple events into one parsed object. Longest path takes precedent, but all subsequent methods are
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztimson/utils",
3
- "version": "0.20.12",
3
+ "version": "0.21.1",
4
4
  "description": "Utility library",
5
5
  "author": "Zak Timson",
6
6
  "license": "MIT",