Releases: franciscop/server
Releases · franciscop/server
1.0.17
1.0.16
Added hook for options within a plugin options so you can have a subschema in a plugin option schema. Example:
// For the plugin @server/auth
module.exports = {
name: 'auth',
callback: { type: String },
options: {
facebook: {
// Note: these 2 should be not needed in the future
default: {},
extend: true,
// This is the new thing that you can do:
options: {
id: { type: String, env: 'FACEBOOK_ID' },
secret: { type: String, env: 'FACEBOOK_SECRET' }
}
}
}
};Then when using the plugin it will be like this:
server({
auth: {
facebook: {
id: 'whatever',
secret: 'whatever'
}
}
});But of course for this specific example you'd use the .env:
# .env
FACEBOOK_ID=whatever
FACEBOOK_SECRET=whatever1.0.15
Added session to the sockets. Fixed test and docs for jsonp
1.0.14
Added session globally so stores can be created based on that
1.0.13
Fixed rare bug where some error handling might throw an error
1.0.12
1.0.10
1.0.9
Better error handling and warnings when there is no response from the server.
1.0.8
Not published on npm, published on 1.0.9 instead.