render-core 1.0.20 → 1.0.22

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/core/cmd/v-ref.js CHANGED
@@ -1,4 +1,3 @@
1
- import { getProxyForInject } from "../proxy/getProxy";
2
1
  export function resolver_Ref(el) {
3
2
  var refs = new Map();
4
3
  for (var i = 0; i < el.length; i++) {
@@ -6,5 +5,5 @@ export function resolver_Ref(el) {
6
5
  refs.set(el[i].getAttribute("ref"), el[i]);
7
6
  }
8
7
  }
9
- return getProxyForInject(refs);
8
+ return refs;
10
9
  }
@@ -1,3 +1,2 @@
1
1
  import { Controller } from "../../class/controller";
2
2
  export declare function getProxyObject(obj: {}, updater: Controller): any;
3
- export declare function getProxyForInject(obj: {}): any;
@@ -1,4 +1,4 @@
1
- import { getSetter, getSetterForInject } from "../../library/setter/setter";
1
+ import { getSetter } from "../../library/setter/setter";
2
2
  export function getProxyObject(obj, updater) {
3
3
  //定义代理方法对象
4
4
  var handel = {};
@@ -7,8 +7,3 @@ export function getProxyObject(obj, updater) {
7
7
  //返回代理对象
8
8
  return new Proxy(obj, handel);
9
9
  }
10
- export function getProxyForInject(obj) {
11
- var handel = {};
12
- handel["set"] = getSetterForInject(obj);
13
- return new Proxy(obj, handel);
14
- }
@@ -1,10 +1,9 @@
1
- import { getProxyForInject } from "../proxy/getProxy";
2
1
  export function resolveProps(node, properties) {
3
2
  if (properties instanceof Array) {
4
- return getProxyForInject(getAllPropsByArray(node, properties));
3
+ return getAllPropsByArray(node, properties);
5
4
  }
6
5
  if (properties instanceof Object) {
7
- return getProxyForInject(getAllPropsByObject(node, properties));
6
+ return getAllPropsByObject(node, properties);
8
7
  }
9
8
  }
10
9
  export function getAllPropsByArray(node, array) {
@@ -1,4 +1,3 @@
1
- import { getProxyForInject } from "../proxy/getProxy";
2
1
  export function resolve_Queries() {
3
2
  var query = new Map();
4
3
  if (location.search !== undefined) {
@@ -9,5 +8,5 @@ export function resolve_Queries() {
9
8
  Reflect.set(query, results[0], results[1]);
10
9
  });
11
10
  }
12
- return getProxyForInject(query);
11
+ return query;
13
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "render-core",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "The router for render-js",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",