Giter Club home page Giter Club logo

fastpath's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

fastpath's Issues

Cannot descend beyond a filtered target

Fastpath seems to be incapable of descending into objects targeted with a filter. Add the following test to bookstore-test.js to see this happening:

    t.test('should be able to parse simple object refs', function (t) {

        var exp = '$..book[?(@.isbn)].title',
            tr = fastpath(exp);
        t.deepEqual(tr.evaluate(obj), jsonPath.eval(obj, exp));
        t.end();
    });

jsonpath correctly returns the titles of the books, but fastpath returns the book objects themselves.

Istanbul test coverage is broken in es6 branch

When I do npm run cover, I get this

index.js -> dist/index.js
lib/fastPath.js -> dist/lib/fastPath.js
Transformation error; return original code
{ [Error: Line 1: Unexpected reserved word]
  index: 15,
  lineNumber: 1,
  column: 16,
  description: 'Unexpected reserved word' }
Transformation error; return original code
{ [Error: Line 182: Unexpected token {]
  index: 4473,
  lineNumber: 182,
  column: 20,
  description: 'Unexpected token {' }
TAP version 13
# bookstore
# should be able to parse simple object refs
ok 1 should be equivalent
# should be able to parse simple object refs
ok 2 should be equivalent
# should be able to parse simple object refs
ok 3 should be equivalent
....
....
....
....
ok 47 should be equivalent
# should test named patterns
ok 48 should be equivalent
No coverage information was collected, exit without writing coverage information

1..48
# tests 48
# pass  48

# ok

License

Hi all,

I would really like to use this at work, since it would make life a lot easier. However the fact that you have not included any licensing information in the repo or the readme, prevents me from doing this.

Could you please add an explicit license. Once you have that, I can get approval for the software and you can expect me to also start contributing.

Thanks!

Performance Issue

While starting my new project over comparejs, I have written performance tests for fastPath, I observed an issue. You can check it here.

I thought to share with you, in case you want to have a look.

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.