robinvdvleuten / shvl Goto Github PK
View Code? Open in Web Editor NEW๐ง Get and set dot-notated properties within an object.
Home Page: https://npm.im/shvl
License: MIT License
๐ง Get and set dot-notated properties within an object.
Home Page: https://npm.im/shvl
License: MIT License
I think return obj[p] || {}
is already enough.
shvl
version: 2.0.1node
version: 12.6.1npm
(or yarn
) version: 6.13.4Problem description:
Snyk reported recently about High Severity: Prototype Pollution in vulnerable module [email protected] . The vuex-persistedstate project depends on shvl and therefore became listed as vulnerable primary dependency in our production project.
https://snyk.io/test/npm/shvl/2.0.1
Could you have a look and provide fix please?
Hi there,
I couldn't find a SECURITY.md
in your repository and am not sure how to best contact you privately to disclose a security issue.
Can you add a SECURITY.md
file with an e-mail to your repository, so that our system can send you the vulnerability details? GitHub suggests that a security policy is the best way to make sure security issues are responsibly disclosed.
Once you've done that, you should receive an e-mail within the next hour with more info.
Thanks! (cc @huntr-helper)
warning in ./node_modules/vuex-persistedstate/dist/vuex-persistedstate.es.js
1:395-396 "export 'default' (imported as 'e') was not found in 'shvl'
Hi, i thing that it should be mentioned in docs that if array is passed as variable it is destructed.
I had "fun" with that half hour until i found error in my code.
So please either make copy of array or mention it in docs.
Thank you.
const obj = {
a: {
b: {
c: 5,
},
},
};
const path = ['a', 'b', 'c'];
set(obj, path, 6);
console.log(obj.a.b); // Object { c: 6 }
set(obj, path, 6);
console.log(obj.a.b); // 6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.