Giter VIP home page Giter VIP logo

jq-wasm's People

Contributors

pboutes avatar plinde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

jq-wasm's Issues

zero width space character causes jq call to fail

Describe the bug

When calling the worker with an object containing a zero width space character, jq processing fails

To Reproduce
Steps to reproduce the behavior:

  1. run server
  2. paste json containing zero space character (\u200B)
  3. bug

Expected behavior
jq processing works

Actual behavior
jq processing fails

Additional context
temp fix provided

function removeZeroWidthSpaces(obj) {
    // Define the zero-width space Unicode
    const zeroWidthSpace = /\u200B/g;

    for (let key in obj) {
        if (typeof obj[key] === 'string') {
            obj[key] = obj[key].replace(zeroWidthSpace, '');
        } else if (typeof obj[key] === 'object' && obj[key] !== null) {
            removeZeroWidthSpaces(obj[key]);
        }
    }
}

`emcc: error: no input files` when running `make all`

Hi @pboutes,

I was trying to compile jq to wasm with your project but when I launch make all, I have this issue:

emcc: warning: jq.o is not a valid input file [-Winvalid-input]
emcc: error: no input files
note that input files without a known suffix are ignored, make sure your input files end with one of: ('.c', '.i', '.cpp', '.cxx', '.cc', '.c++', '.CPP', '.CXX', '.C', '.CC', '.C++', '.ii', '.m', '.mi', '.mm', '.mii', '/dev/null', '.S', '.bc', '.o', '.obj', '.lo', '.dylib', '.so', '.a', '.ll', '.s', '.h', '.hxx', '.hpp', '.hh', '.H', '.HXX', '.HPP', '.HH')
make: *** [wasm] Error 1

Any idea how to fix it, maybe?

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.