Git Product home page Git Product logo

query-registry's People

Contributors

dependabot[bot] avatar renovate-bot avatar velut avatar

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

Watchers

 avatar  avatar

query-registry's Issues

Library is not compatible with Node 8.9.3

/.../node_modules/query-registry/dist/query-registry.cjs.development.js:747
  } catch {}
          ^
SyntaxError: Unexpected token {

/usr/share/gcui/node_modules/query-registry/dist/query-registry.cjs.development.js:139
    } catch {}
SyntaxError: Unexpected token {

it should be catch (err) { } as per MDN

Update vulnerable dependency

# npm audit report

parse-path  <5.0.0
Severity: high
Authorization Bypass in parse-path - https://github.com/advisories/GHSA-3j8f-xvm3-ffx4
No fix available
node_modules/parse-path
  parse-url  3.0.0 - 6.0.5
  Depends on vulnerable versions of parse-path
  node_modules/parse-url
    git-up  2.1.0 - 5.0.0
    Depends on vulnerable versions of parse-url
    node_modules/git-up
      git-url-parse  11.0.0 - 11.6.0
      Depends on vulnerable versions of git-up
      node_modules/git-url-parse
        query-registry  *
        Depends on vulnerable versions of git-url-parse
        node_modules/query-registry

5 high severity vulnerabilities

TSConfig library setting `dom` causing issues on Node-only compilations

Hello!

I am using query-registry version 2.6.0. In my tsconfig.json, I don't have "dom" as one of elements in "library" entry, because my library not aimed to be used in browsers.

Running tsc causes the following errors:

    node_modules/query-registry/dist/utils/errors.d.ts(11,24): error TS2304: Cannot find name 'Response'.
    node_modules/query-registry/dist/utils/errors.d.ts(16,15): error TS2304: Cannot find name 'Response'.

This is because Response is not part of globals in Node as it is in browser.

I can do workaround by creating new .d.ts file with the following content:

// fix-qr.d.ts
declare global {
  // To fix compilation errors with query-registry module
  interface Response {}
}

// To fix error:
// Augmentations for the global scope can only be directly nested in external modules or ambient module declarations.ts(2669)
export {};

So this bug is not blocker. But not particularly nice either.

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this 💪.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here is some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Invalid npm token.

The npm token configured in the NPM_TOKEN environment variable must be a valid token allowing to publish to the registry https://registry.npmjs.org/.

If you are using Two-Factor Authentication, make configure the auth-only level is supported. semantic-release cannot publish with the default auth-and-writes level.

Please make sure to set the NPM_TOKEN environment variable in your CI with the exact value of the npm token.


Good luck with your project ✨

Your semantic-release bot 📦🚀

Does it work with NextJS?

Hi,

I'm trying to get this library working with NextJS in the browser.
I'm getting an import error:

error - ./pages/index.tsx:2:0
Module not found: Can't resolve 'query-registry'
  1 | import PageLoader from "../components/pageLoader"
> 2 | import { getPackageManifest } from "query-registry";
  3 | 
  4 | export default function Profile() {
  5 | 

https://nextjs.org/docs/messages/module-not-found

Please note that it is usable server side, but on the client side as stated in the readme.md.

Any idea why it doesn't work on the client side?

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.