Giter Site home page Giter Site logo

calibrate's People

Contributors

adrieankhisbe avatar estebanprimost avatar greenkeeperio-bot avatar iostat42 avatar iwasrobbed avatar johnbrett avatar pkat 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  avatar

Watchers

 avatar  avatar  avatar  avatar

calibrate's Issues

Question: Why doesn't the hapi decorator support the "meta" parameter?

I am curious why the hapi decorator does not allow for the 2nd parameter "meta" object.

I can do this in a hapi route handler:

return Calibrate(data, meta);

But I can't do this ("meta" has no effect):

return h.calibrate(data, meta);

Because of this calibrate code:

const calibrateDeocorator = function (data) {
  return internals.calibrate(data);
};
server.decorate('toolkit', 'calibrate', calibrateDeocorator);

Calibrate does not work with latest hapi

When starting hapi server I end up with:

Error: Invalid dependencies options (must be a string or an array of strings) {
  "boom": "~2.6.x",
  "code": "^1.3.0",
  "isdefined": "~1.x.x",
  "0" [1]: -- missing --
}

And its because - decorate.attributes = require('../package.json');
which contains dependencies property that confuses hapi.

It works ok when I replace it with just
decorate.attributes = {name:'calibrate'}

Update to v17

Hi @johnbrett, how are you?

First, I want to say that this is a really good plugin for hapi, thanks for your work.

Are you planning to update it to hapi v17?

Invalid dependencies options (must be a string or array of strings)

Tests fail when I tried updating dependencies. I fixed locally and I will submit a pull request shortly.

Failed tests:

  11) Calibrate decorates the hapi reply interface:

      Invalid dependencies options (must be a string or an array of strings) {
  "boom": "~2.6.x",
  "code": "^1.3.0",
  "isdefined": "~1.x.x",
  "0" [1]: -- missing --
}

[1] "0" must be a string

    "boom": "~2.6.x",
    "code": "^1.3.0",
    "isdefined": "~1.x.x",
    "0" [1]: -- missing --
  }

  [1] "0" must be a string
      at Object.exports.assert (/Users/brian/Documents/dev/nodejs/dev/calibrate_clean/calibrate/node_modules/hapi/node_modules/hoek/lib/index.js:723:11)
      at Object.exports.assert (/Users/brian/Documents/dev/nodejs/dev/calibrate_clean/calibrate/node_modules/hapi/lib/schema.js:15:10)
      at internals.Plugin.register (/Users/brian/Documents/dev/nodejs/dev/calibrate_clean/calibrate/node_modules/hapi/lib/plugin.js:231:16)
      at /Users/brian/Documents/dev/nodejs/dev/calibrate_clean/calibrate/test/index.js:112:12
      at Immediate._onImmediate (/Users/brian/Documents/dev/nodejs/dev/calibrate_clean/calibrate/node_modules/lab/lib/runner.js:453:17)
      at processImmediate [as _immediateCallback] (timers.js:358:17)

Branch clean up

Could you close all the spammed branches from greenkeeper? ๐Ÿ˜ƒ

Suggestion: JSON API standard

The following is a suggestion for enhancing this module. It would be great if you could include an option to structure responses according to the JSON API spec.

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.