![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@heroku/hapi-heroku-client
Advanced tools
http client pre-configured to streamline interfacing with heroku's platform API
a hapijs plugin mapping a heroku client to both server.app.heroku
and request.app.heroku
, the latter of which includes the incoming requests Authorization
header. This project is based on wreck. See wreck's documentation for additional options and usages.
As of v4 4XX responses are treated as errors. If you're using this via promises (e.g.Bluebird.promisify
) this is a non-trivial change. 4XX and 5XX responses will now trigger the .catch
clause. This is further complicated in that Bluebird only passes error
to catch and not response
or body
.
npm install --save hapi hapi-heroku-client
const Hapi = require('hapi');
const myServer = new Hapi.Server();
myServer.connection();
myServer.register([
{
register: require('hapi-heroku-client'),
options: {
/* options enumerated below */
'timeout': 5000, /* for example */
'user-agent': 'example-code-1.0.0' /* for another example */
}
}
], function (error) {
if (error) { throw error; }
myServer.route({
method: 'get',
path: '/foo',
handler: function (request,reply) {
const server = request.server;
// fetch unauthenticated API endpoints
server.app.heroku.get('/version', (err, version) => {
reply(version);
});
// or with promises
server.app.heroku.getAsync('/version').then((version) => {
reply(version);
});
// fetch authenticated API endpoint
request.app.heroku.get('/apps', (err, apps) => {
reply(apps);
});
// or with promises
request.app.heroku.getAsync(('/apps') => {
reply(apps);
});
}
});
myServer.start(() => { console.log('your server has started!'); });
}
);
host
-- defaults to api.heroku.comproto
-- defaults to httpstimeout
-- defaults to 15 secondsvariant
-- defaults to 'application/vnd.heroku+json; version=3'user-agent
-- defaults to hapi-heroku-clientHEROKU_API_PROTO
-- defaults to httpsHEROKU_API_HOST
-- defaults to api.heroku.comHTTP_TIMEOUT
-- defaults to 15 secondsFAQs
http client pre-configured to streamline interfacing with heroku's platform API
The npm package @heroku/hapi-heroku-client receives a total of 3 weekly downloads. As such, @heroku/hapi-heroku-client popularity was classified as not popular.
We found that @heroku/hapi-heroku-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 34 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.