hapijs/cookie

Wrong code published to npm

aliismael opened this issue · 3 comments

Dear Colleagues,

When I run

npm install hapi-auth-cookie@7.0.0

I get code that does not look like the one on the master branch on github! I get something like this in the lib/index.js file:

'use strict';

// Load modules

const Boom = require('boom');
const Hoek = require('hoek');
const Joi = require('joi');

// Declare internals

const internals = {};


exports.register = function (server, options, next) {

    server.auth.scheme('cookie', internals.implementation);
    next();
};


exports.register.attributes = {
    pkg: require('../package.json')
};

.....
....
....

Did someone push the wrong code base to npm?

Thanks in advance for your help.

Yours truly,
Ali

@aliismael The code for version 7.0.0 is what was published to npm@7.0.0. I had merged a PR to upgrade this module to support hapi v17 yesterday and just a few minutes ago, cut the release to npm for 8.0.0. My apologies for the confusion.

lock commented

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.