GithubHelp home page GithubHelp logo

Comments (1)

max-mapper avatar max-mapper commented on August 16, 2024

Thanks, must be a regression in the way I handle json. I'll add a test.

Also I haven't yet added a streaming json parser. I think my last two candidates are JSONStream and oboe.js

Sent from my iPhone

On Nov 18, 2013, at 5:02 AM, Kenan Sulayman [email protected] wrote:

apex:xx ks$ dat init
Initialized dat store at /private/tmp/xx/.dat
apex:xx ks$ echo '{"hello": "world"}' | dat --json
{"_rev":"1-183575eea1905ee592773f88f96f04a2","_id":"2013-11-18T13:01:10.707Z-77dd86b9"}
apex:xx ks$ echo '{"hello": "world"}' | dat --json

/usr/local/lib/node_modules/dat/lib/commands.js:434
        var key = primaryKeys[i].toString()
                               ^
TypeError: Cannot call method 'toString' of undefined
        at checkRows (/usr/local/lib/node_modules/dat/lib/commands.js:434:32)
        at Stream.onWrite (/usr/local/lib/node_modules/dat/lib/commands.js:468:7)
        at Stream.stream.write (/usr/local/lib/node_modules/dat/node_modules/through/index.js:26:11)
        at Stream.ondata (stream.js:51:26)
        at Stream.EventEmitter.emit (events.js:95:17)
        at drain (/usr/local/lib/node_modules/dat/node_modules/through/index.js:36:16)
        at Stream.stream.queue.stream.push (/usr/local/lib/node_modules/dat/node_modules/through/index.js:45:5)
        at Stream.batch (/usr/local/lib/node_modules/dat/node_modules/byte-stream/index.js:33:23)
        at Stream.stream.write (/usr/local/lib/node_modules/dat/node_modules/through/index.js:26:11)
        at Stream.ondata (stream.js:51:26)


Reply to this email directly or view it on GitHub.

from dat.

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.