update @unraid/core and move pubsub to core

Signed-off-by: Alexis Tyler <xo@wvvw.me>
This commit is contained in:
Alexis Tyler
2019-08-17 14:13:49 +09:30
parent ddc8c3643e
commit 09cf2cd4ff
4 changed files with 7 additions and 16 deletions

View File

@@ -1,11 +0,0 @@
/*
* Copyright 2019 Lime Technology Inc. All rights reserved.
* Written by: Alexis Tyler
*/
module.exports = function ($injector) {
const { PubSub } = $injector.resolve('apollo-server');
const pubsub = new PubSub();
return pubsub;
};

View File

@@ -21,8 +21,8 @@ module.exports = function (GraphQLJSON, GraphQLLong, GraphQLUUID, pubsub) {
};
// // Recieve test messages.
// pubsub.subscribe('ping', (...rest) => {
// console.log(`CHANNEL: ping DATA: ${JSON.stringify(rest, null, 2)}`);
// pubsub.subscribe('users', (...rest) => {
// console.log(`CHANNEL: users DATA: ${JSON.stringify(rest, null, 2)}`);
// })
return {

View File

@@ -9,7 +9,7 @@
"dev": "STATES_CWD=$(pwd)/../core/test/fixtures/states CORE_CWD=$(pwd)/../core/ PLUGINS_CWD=$(pwd)/../plugins/ nodemon -e js,graphql --signal SIGINT index.js"
},
"dependencies": {
"@unraid/core": "unraid/core#3639d66",
"@unraid/core": "unraid/core#2c9580c",
"accesscontrol": "^2.2.1",
"am": "^1.0.1",
"apollo-datasource-rest": "^0.6.1",

View File

@@ -362,11 +362,12 @@
dependencies:
"@types/node" "*"
"@unraid/core@unraid/core#3639d66":
"@unraid/core@unraid/core#2c9580c":
version "1.0.0"
resolved "git+ssh://git@github.com/unraid/core.git#3639d6608c992deb409d3880359f243f5b52b537"
resolved "git+ssh://git@github.com/unraid/core.git#2c9580cc8c358c2d157c99d58d143cd541684471"
dependencies:
accesscontrol "^2.2.1"
apollo-server "^2.8.1"
bcryptjs "^2.4.3"
better-stack-traces "^1.1.0"
bolus OmgImAlexis/bolus#71e4d3c
@@ -388,6 +389,7 @@
get-server-address "^1.0.1"
glob "^7.1.4"
globby "^9.2.0"
graphql "^14.4.2"
htpasswd-js "^1.0.2"
ini "^1.3.5"
is-plain-object "^3.0.0"