Giter VIP home page Giter VIP logo

Comments (11)

entropitor avatar entropitor commented on July 19, 2024 1

We can improve this regex https://github.com/entropitor/dotenv-cli/blob/master/cli.js#L50

This is because of this security issue: #57 (comment)

Feel free to create a PR to fix this

from dotenv-cli.

entropitor avatar entropitor commented on July 19, 2024 1

That's probably in dotenv-expand. This package is just a simple wrapper around that one...

from dotenv-cli.

hendriku avatar hendriku commented on July 19, 2024

Suffering from the same issue :( any workarounds or fixes?

from dotenv-cli.

hendriku avatar hendriku commented on July 19, 2024

Using dotenv-cli v3.2.0 seems to fix this issue.

from dotenv-cli.

hendriku avatar hendriku commented on July 19, 2024

Another workaround is intercepting the dotenv cli command with cross-env to manually pass additional command line arguments
e.g.

dotenv -- cross-env NODE_OPTIONS='--inspect' next dev

from dotenv-cli.

MorisR avatar MorisR commented on July 19, 2024

I think the same bug applies here ( or it might be a different bug 🤔🤔🤔)

Input:

image

Output:

image

from dotenv-cli.

entropitor avatar entropitor commented on July 19, 2024

from dotenv-cli.

MorisR avatar MorisR commented on July 19, 2024

yeah but } shouldn't be part of the default value :/

image
that's from https://www.npmjs.com/package/dotenv-expand

from dotenv-cli.

MorisR avatar MorisR commented on July 19, 2024

p.s. not sure if it's a bug for this package or dotenv-expand

from dotenv-cli.

MorisR avatar MorisR commented on July 19, 2024

motdotla/dotenv-expand#70
yeah... it's a bug there, thanks.

from dotenv-cli.

AndrewAllison avatar AndrewAllison commented on July 19, 2024

Had a crack at a PR #69

from dotenv-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.