render-core 1.2.5 → 1.2.6

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 +1 @@
1
- export declare function dataInject(data: any): any;
1
+ export declare function dataInject(data: {}): any;
@@ -1,6 +1,6 @@
1
1
  export function dataInject(data) {
2
2
  var out = {};
3
- var keys = data.getOwnPropertyNames();
3
+ var keys = Object.getOwnPropertyNames(data);
4
4
  keys.forEach(function (value) {
5
5
  out[value] = data[value];
6
6
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "render-core",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "The core of render-js",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",