🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

nativemodels

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativemodels - npm Package Compare versions

Comparing version
2.4.2
to
2.5.0
+9
-6
lib/proxyHandler.js

@@ -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"
}