@leyyo/proxy 1.0.1 → 1.0.2

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.
package/README.md CHANGED
@@ -4,12 +4,19 @@ Proxy library for Leyyo framework
4
4
  ## Import
5
5
  - `npm i @leyyo/proxy`
6
6
 
7
- ## Usage (Runtime)
8
7
 
9
8
  ## Test Cases
10
9
  | Test Case | Error | Message | Method |
11
10
  |-----------|----------------|-----------------------------------------------------------|--------------------------------------|
12
11
 
12
+ ## Symbols
13
+ | Symbol | Public | Description |
14
+ |----------------------------|--------|--------------------------------------|
15
+ | `leyyo:proxy:link` | ✅ | proxy map for source |
16
+ | `leyyo:proxy:inherits` | ✅ | predecessor/ancestor of source (new) |
17
+ | `leyyo:proxy:inherited-by` | ✅ | successor/descendant of source (old) |
18
+
19
+
13
20
  ## Standards
14
21
  - Language: `TS`
15
22
  - Eslint: `Yes`
@@ -1 +1 @@
1
- export const KEY_PROXY_LINK = Symbol.for('leyyo::proxy:link');
1
+ export const KEY_PROXY_LINK = Symbol.for('leyyo:proxy:link');
@@ -60,7 +60,7 @@ export interface ProxyHandlerLike {
60
60
  * */
61
61
  getInheritedBy<S>(source: S): S;
62
62
  /**
63
- * has source `inherited by` or `successor`
63
+ * has source `inherited by` or `successor` or `descendant`
64
64
  *
65
65
  * Generics:
66
66
  * - `S`: type of source
@@ -70,7 +70,7 @@ export interface ProxyHandlerLike {
70
70
  * */
71
71
  hasInheritedBy<S>(source: S): boolean;
72
72
  /**
73
- * Sets `inherited by` or `successor`
73
+ * Sets `inherited by` or `successor` or `descendant`
74
74
  *
75
75
  * Generics:
76
76
  * - `S`: type of source
@@ -92,7 +92,7 @@ export interface ProxyHandlerLike {
92
92
  * */
93
93
  getInherits<S>(source: S): S;
94
94
  /**
95
- * has source `inherits` or `predecessor`
95
+ * has source `inherits` or `predecessor` or `ancestor`
96
96
  * *
97
97
  * Generics:
98
98
  * - `S`: type of source
@@ -102,7 +102,7 @@ export interface ProxyHandlerLike {
102
102
  * */
103
103
  hasInherits<S>(source: S): boolean;
104
104
  /**
105
- * Sets `inherits` or `predecessor`
105
+ * Sets `inherits` or `predecessor` or `ancestor`
106
106
  *
107
107
  * Generics:
108
108
  * - `S`: type of source
@@ -1 +1 @@
1
- export declare const NME: string, FQN: string, VER: string, CNF: import("@leyyo/common").LeyyoConfig;
1
+ export declare const NME: string, FQN: string, VER: string;
package/dist/internal.js CHANGED
@@ -1,2 +1,3 @@
1
- import { sysAll } from "@leyyo/common";
2
- export const { pck: { name: NME, fqn: FQN, version: VER }, config: CNF } = sysAll(import.meta.url);
1
+ import { packageJson } from "@leyyo/common";
2
+ // noinspection JSUnusedGlobalSymbols
3
+ export const { name: NME, fqn: FQN, version: VER } = packageJson(import.meta.url);
@@ -1,8 +1,8 @@
1
1
  import { FQN } from "./internal.js";
2
2
  import { getProp, setFqn, setProp } from "@leyyo/common";
3
3
  import { KEY_PROXY_LINK } from "./index.const.js";
4
- const INHERITS = Symbol.for('leyyo::proxy:inherits');
5
- const INHERITED_BY = Symbol.for('leyyo::proxy:inherited-by');
4
+ const INHERITS = Symbol.for('leyyo:proxy:inherits');
5
+ const INHERITED_BY = Symbol.for('leyyo:proxy:inherited-by');
6
6
  class ProxyHandler {
7
7
  // region general
8
8
  /** @inheritDoc */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leyyo/proxy",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Leyyo proxy library",
5
5
  "keywords": [
6
6
  "proxy"
@@ -62,6 +62,6 @@
62
62
  }
63
63
  },
64
64
  "dependencies": {
65
- "@leyyo/common": "^1.3.16"
65
+ "@leyyo/common": "^1.3.18"
66
66
  }
67
67
  }