nativemodels
Advanced tools
@@ -12,8 +12,11 @@ /* eslint max-params: off */ | ||
| const getOwnPropertyDescriptor = (schema, target, property) => ({ | ||
| configurable: true, | ||
| enumerable: true, | ||
| value: schema[property].fn ? undefined : target[property], | ||
| writable: true, | ||
| }); | ||
| const getOwnPropertyDescriptor = (schema, target, property) => | ||
| schema[property] | ||
| ? { | ||
| configurable: true, | ||
| enumerable: true, | ||
| value: schema[property] && !schema[property].fn ? target[property] : undefined, | ||
| writable: true, | ||
| } | ||
| : undefined; | ||
@@ -20,0 +23,0 @@ const ownKeys = (schema, target) => [...Object.keys(target), ...Object.keys(schema).filter((key) => schema[key].fn)]; |
+9
-5
@@ -14,2 +14,3 @@ { | ||
| "eslint-plugin-react": "^7.12.4", | ||
| "gh-pages": "^2.0.1", | ||
| "husky": "^1.2.0", | ||
@@ -20,2 +21,3 @@ "jest": "^23.6.0", | ||
| "lint-staged": "^8.0.0", | ||
| "lodash.isequal": "^4.5.0", | ||
| "prettier": "^1.14.3" | ||
@@ -34,2 +36,5 @@ }, | ||
| "lint-staged": { | ||
| "ignore": [ | ||
| "site/**" | ||
| ], | ||
| "linters": { | ||
@@ -42,6 +47,3 @@ "*.js": [ | ||
| ] | ||
| }, | ||
| "ignore": [ | ||
| "site/**" | ||
| ] | ||
| } | ||
| }, | ||
@@ -59,6 +61,8 @@ "main": "index.js", | ||
| "prettify": "prettier --config ./.prettierrc.json --write \"src/**\"", | ||
| "site": "cd site && bundle exec jekyll server", | ||
| "site:deploy": "gh-pages --dist site", | ||
| "staged": "lint-staged", | ||
| "test": "jest --coverage" | ||
| }, | ||
| "version": "2.4.2" | ||
| "version": "2.5.0" | ||
| } |
39400
0.55%629
0.48%13
18.18%