Coder Social home page Coder Social logo

antonsamper / hapi-cron Goto Github PK

View Code? Open in Web Editor NEW
42.0 42.0 17.0 121 KB

🕰️ Cron jobs for internal hapi.js routes

Home Page: https://www.npmjs.com/package/hapi-cron

License: BSD 3-Clause "New" or "Revised" License

JavaScript 100.00%
cron hapi plugin

hapi-cron's People

Contributors

agchou avatar antonsamper avatar drouarb avatar greenkeeper[bot] avatar rickysullivan 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hapi-cron's Issues

An in-range update of @hapi/eslint-plugin-hapi is breaking the build 🚨

The devDependency @hapi/eslint-plugin-hapi was updated from 4.3.3 to 4.3.4.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@hapi/eslint-plugin-hapi is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of hapi is breaking the build 🚨

The devDependency hapi was updated from 17.6.1 to 17.6.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

hapi is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 2 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of hapi is breaking the build 🚨

Version 17.5.3 of hapi was just published.

Branch Build failing 🚨
Dependency hapi
Current Version 17.5.2
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

hapi is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 7 commits.

  • da826dd 17.5.3
  • 5414fb9 Mark empty string as text/html. Closes #3782
  • 5bb5b6b Update dependencies. Closes #3807. Closes #3808
  • 939980c Clear response when failed to transmit. Closes #3728
  • 583ea0a Apply global route options to internal routes. Closes #3792
  • e8f3334 Update README.md
  • a2c1cfa Update README.md

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of @hapi/eslint-config-hapi is breaking the build 🚨

The devDependency @hapi/eslint-config-hapi was updated from 12.1.1 to 12.2.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@hapi/eslint-config-hapi is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Commits

The new version differs by 2 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of hoek is breaking the build 🚨

The dependency hoek was updated from 6.0.4 to 6.1.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

hoek is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 13 commits.

  • 542939b 6.1.1
  • 947a326 Ignore symbols in deepEqual() by default. Closes #281
  • 27ac630 6.1.0
  • b3b5134 Merge pull request #281 from kanongil/symbol-support
  • bec8b86 Update docs
  • b159f54 Support symbol properties and keys in cloneWithShallow()
  • 9fa34af Support symbol properties for reach(). Closes #267
  • ea1ee6a Support symbol properties in contain()
  • b6907ac Support symbol properties in clone()
  • c123e61 Merge pull request #279 from Nargonath/changelog
  • f15fd25 Add changelog.md
  • 56f4849 Support enumerable symbol properties in merge()
  • 96ab1bc Support enumerable symbol properties in deepEqual()

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Hapi v17 Support

Overview

If you are not aware yet, Hapi v17 is making the transition from callbacks to async/await, as well as deprecating some other rarely used functionality. This is a breaking change that may make your plugin no longer compatible with the Hapi API.

Changelog

Draft release notes can be found here: hapijs/hapi#3658

Target Release

The target release date for v17 is the beginning of November.

Tasks

  • Reply to this to acknowledge that you are actively maintaining this module and are willing to update it
  • Update plugin to be fully async/await compatible using the v17 branch from Hapi for testing

    Possible dev flow for updating

    • Clone Hapi
    • npm link within the Hapi repo
    • npm link hapi within your plugin repo
    • Your plugin will now be using v17 of Hapi branch for tests
  • Release new major version of your plugin on npm. Please use a major version increment as this will be a breaking change and it would be terrible for it to sneak into current versions of Hapi.

Notes

  • Support is being dropped for all versions of Node <8.0.0.
  • Hapi v16 will continue to be supported for as long as there exists a Node LTS actively being supported that is not compatible with v17.
  • Targeted release date is November 1st, 2017. Please try to have your plugin updated before then.

Version 10 of node.js has been released

Version 10 of Node.js (code name Dubnium) has been released! 🎊

To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:

  • Added the new Node.js version to your .travis.yml
  • The new Node.js version is in-range for the engines in 1 of your package.json files, so that was left alone

If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.

More information on this issue

Greenkeeper has checked the engines key in any package.json file, the .nvmrc file, and the .travis.yml file, if present.

  • engines was only updated if it defined a single version, not a range.
  • .nvmrc was updated to Node.js 10
  • .travis.yml was only changed if there was a root-level node_js that didn’t already include Node.js 10, such as node or lts/*. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.

For many simpler .travis.yml configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of shot is breaking the build 🚨

The devDependency shot was updated from 4.0.6 to 4.0.7.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

shot is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 2 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of cron is breaking the build 🚨

The dependency cron was updated from 1.5.0 to 1.5.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

cron is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 4 commits.

  • 53694c6 v1.5.1
  • f019f2e Merge pull request #389 from ygunayer/numeric-utc-offset
  • 4aa8ca9 Accept 0 as a valid UTC offset
  • 3020d15 Add get next runs example.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

onComplete not getting response

The documentation for this plugin says

onComplete - Function to run after the route has been requested. The function will contain the response from the request 

but it doesn't appear that anything is being passed to the onComplete function. Is this an oversight or is there some other way I am supposed to access the res from the request in the onComplete?

job.onComplete();

this job always logs undefined no matter what I respond with from my route

jobs: [{
            name: 'Refresh Credentials',
            time: '0/10 * * * * * ',
            timezone: 'Europe/London',
            request: {
              method: 'GET',
              url: '/api/auth/credentials',
            },
            onComplete: (response) => {
              console.log('response', response)
            }
          }],

Add option for allowInternals

Right now the plugin requires that the route of the CRON job is public. However for most CRON jobs the route should not be accessible to the outsite world especially since most of them are using also auth: false . The problem is that if we declare the route as isInternal: true the plugin would not be able to call it since the inject method does not have its option allowInternals: true :

const res = await server.inject(job.request);
.

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.