Safety first, unsafe second (s/load/unsafeLoad/g;s/safeLoad/load/g)
See original GitHub issueThanks very much for your work! As said in the README, the project started out as a port of PyYAML. The origins of js-yaml are still visible because some bad decisions in PyYAML have also made it into this rewrite. Mainly that the default load
function is unsafe and the safe variant is called safeLoad
.
Check the proposal in https://bitbucket.org/ruamel/yaml/issues/6/make-the-default-load-and-dump-methods is which I would also propose here. This would be a break, sure, but that is what semantic versioning is for 😉
Refer to https://github.com/yaml/pyyaml/issues/5 which includes many examples and a talk why this is bad.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
OSHA Worker Rights and Protections
If you believe working conditions are unsafe or unhealthful, you may file a confidential complaint with OSHA and ask for an inspection.
Read more >Safety is Third, Not First, and We All Know It Should Be - JEMS
Apparatus positioning, reflective garments, and scene lighting may mitigate this risk; however, impaired drivers, adverse weather conditions, ...
Read more >National Safety Council - Save lives, from the workplace to ...
NSC offers traditional and adaptive first aid online training as an affordable, convenient option for individuals whose work assignments make it difficult to ......
Read more >Safety First | US EPA
Following basic safety precautions helps to keep you and other bystanders ... first responders in identifying and controlling the hazardous ...
Read more >Hierarchy of Controls | NIOSH - CDC
When other control methods are unable to reduce the hazardous exposure to safe levels, employers must provide PPE. This includes:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Solved by https://github.com/nodeca/js-yaml/commit/1d7d7e929a9331bdff0d70c4ae0d3363ee0f4215
See #331.