Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape "." in key #6

Open
mjb1632 opened this issue May 30, 2019 · 0 comments
Open

Escape "." in key #6

mjb1632 opened this issue May 30, 2019 · 0 comments

Comments

@mjb1632
Copy link

mjb1632 commented May 30, 2019

Using this to modify package.json dependencies.

The problem is that it fails for one dependency "zone.js".

Instead of replacing the value for "zone.js" a new key is being created:
"zone": {
"js": "x.y.z"
}

My quick hack is to convert "." to "|" before passing to dot-object. After returning, replace the pipes back to periods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant