Giter Club home page Giter Club logo

hal-json-normalizer's People

Contributors

carlobeltrame avatar dependabot[bot] avatar pmattmann avatar renovate-bot avatar renovate[bot] avatar usu avatar westende avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hal-json-normalizer's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm babel-eslint Available
npm eslint-loader Unavailable

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update babel monorepo (@babel/core, @babel/preset-env)

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yml
  • actions/checkout v2
  • actions/setup-node v2
  • actions/cache v3
  • actions/checkout v2
  • actions/setup-node v2
  • actions/cache v3
npm
package.json
  • lodash ^4.17.15
  • @babel/core 7.24.9
  • @babel/preset-env 7.24.8
  • @babel/register 7.24.6
  • babel-eslint 10.1.0
  • babel-loader 8.3.0
  • chai 4.5.0
  • eslint 7.32.0
  • eslint-config-airbnb-base 15.0.0
  • eslint-loader 4.0.2
  • eslint-plugin-import 2.29.1
  • mocha 9.2.2
  • nyc 15.1.0
  • rimraf 3.0.2
  • webpack 5.93.0
  • webpack-cli 4.10.0
  • webpack-node-externals 3.0.0
  • node >= 10.13.0

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Normalizer breaks on null values when filterReferences is enabled

Hi,
Nice project! I was taking it for a spin and found that on the API I was dealing with that the normalizer throws an exception on null values.

The exception is thrown in hasSingleKey as Object.keys is called on null.

I can create a pull request if you like. Let me know. My proposal would be to check for null values in isReference.

const json = {
  id: 2620,
  text: 'hello',
  _embedded: {
    question: null,
  },
  _links: {
    prev: {
      href: null,
    },
    self: {
      href: 'http://example.com/entity/1',
    },
  },
};

const result = normalize(json, {
  filterReferences: true,
});

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.