phecda-core 2.0.0-alpha.6 → 2.0.0-alpha.7

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.
@@ -389,8 +389,13 @@ var Phecda = (() => {
389
389
  DataMap[key] = value;
390
390
  }
391
391
  __name(Provide, "Provide");
392
+ var EmptyProxy = new Proxy(Empty, {
393
+ apply() {
394
+ return EmptyProxy;
395
+ }
396
+ });
392
397
  function Inject(key) {
393
- return DataMap[key] || (() => Empty);
398
+ return DataMap[key] || EmptyProxy;
394
399
  }
395
400
  __name(Inject, "Inject");
396
401
 
package/dist/index.js CHANGED
@@ -389,8 +389,13 @@ function Provide(key, value) {
389
389
  DataMap[key] = value;
390
390
  }
391
391
  __name(Provide, "Provide");
392
+ var EmptyProxy = new Proxy(Empty, {
393
+ apply() {
394
+ return EmptyProxy;
395
+ }
396
+ });
392
397
  function Inject(key) {
393
- return DataMap[key] || (() => Empty);
398
+ return DataMap[key] || EmptyProxy;
394
399
  }
395
400
  __name(Inject, "Inject");
396
401
 
package/dist/index.mjs CHANGED
@@ -298,8 +298,13 @@ function Provide(key, value) {
298
298
  DataMap[key] = value;
299
299
  }
300
300
  __name(Provide, "Provide");
301
+ var EmptyProxy = new Proxy(Empty, {
302
+ apply() {
303
+ return EmptyProxy;
304
+ }
305
+ });
301
306
  function Inject(key) {
302
- return DataMap[key] || (() => Empty);
307
+ return DataMap[key] || EmptyProxy;
303
308
  }
304
309
  __name(Inject, "Inject");
305
310
 
@@ -105,6 +105,14 @@ var Phecda = (() => {
105
105
  };
106
106
  }
107
107
  __name(Pipe, "Pipe");
108
+ function Empty(_target) {
109
+ }
110
+ __name(Empty, "Empty");
111
+ var EmptyProxy = new Proxy(Empty, {
112
+ apply() {
113
+ return EmptyProxy;
114
+ }
115
+ });
108
116
 
109
117
  // src/preset/rule.ts
110
118
  function isOption() {
@@ -105,6 +105,14 @@ function Pipe(v) {
105
105
  };
106
106
  }
107
107
  __name(Pipe, "Pipe");
108
+ function Empty(_target) {
109
+ }
110
+ __name(Empty, "Empty");
111
+ var EmptyProxy = new Proxy(Empty, {
112
+ apply() {
113
+ return EmptyProxy;
114
+ }
115
+ });
108
116
 
109
117
  // src/preset/rule.ts
110
118
  function isOption() {
@@ -64,6 +64,14 @@ function Pipe(v) {
64
64
  };
65
65
  }
66
66
  __name(Pipe, "Pipe");
67
+ function Empty(_target) {
68
+ }
69
+ __name(Empty, "Empty");
70
+ var EmptyProxy = new Proxy(Empty, {
71
+ apply() {
72
+ return EmptyProxy;
73
+ }
74
+ });
67
75
 
68
76
  // src/preset/rule.ts
69
77
  function isOption() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phecda-core",
3
- "version": "2.0.0-alpha.6",
3
+ "version": "2.0.0-alpha.7",
4
4
  "description": "provide base function and abstract limit to other phecda module ",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",