roadman 0.1.13 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/befores/express.js +21 -1
- package/dist/befores/express.js.map +1 -1
- package/dist/befores/graphql.js +26 -13
- package/dist/befores/graphql.js.map +1 -1
- package/dist/exampleupload.d.ts +1 -0
- package/dist/exampleupload.js +35 -0
- package/dist/exampleupload.js.map +1 -0
- package/package.json +26 -5
package/dist/befores/express.js
CHANGED
|
@@ -1,15 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
2
21
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
23
|
};
|
|
5
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
25
|
exports.expressRoadman = void 0;
|
|
7
26
|
const ioredis_1 = __importDefault(require("ioredis"));
|
|
27
|
+
const express_1 = __importStar(require("express"));
|
|
8
28
|
const graphql_redis_subscriptions_1 = require("graphql-redis-subscriptions");
|
|
9
29
|
const get_1 = __importDefault(require("lodash/get"));
|
|
10
30
|
const cookie_parser_1 = __importDefault(require("cookie-parser"));
|
|
11
31
|
const cors_1 = __importDefault(require("cors"));
|
|
12
|
-
const express_1 = __importDefault(require("express"));
|
|
13
32
|
const graphql_upload_1 = require("graphql-upload");
|
|
14
33
|
const lodash_1 = require("lodash");
|
|
15
34
|
/**
|
|
@@ -51,6 +70,7 @@ const expressRoadman = async ({ app }) => {
|
|
|
51
70
|
subscriber: new ioredis_1.default(options),
|
|
52
71
|
});
|
|
53
72
|
}
|
|
73
|
+
app.use((0, express_1.json)({ limit: '5mb' }));
|
|
54
74
|
app.use((0, graphql_upload_1.graphqlUploadExpress)({ maxFileSize: 10000000, maxFiles: 10 }));
|
|
55
75
|
app.use((0, cors_1.default)({
|
|
56
76
|
origin: '*',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"express.js","sourceRoot":"","sources":["../../src/befores/express.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"express.js","sourceRoot":"","sources":["../../src/befores/express.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sDAA4C;AAC5C,mDAAsC;AAEtC,6EAAkE;AAElE,qDAA8B;AAC9B,kEAAyC;AACzC,gDAAwB;AACxB,mDAAoD;AACpD,mCAA+B;AAE/B;;;;GAIG;AACI,MAAM,cAAc,GAAG,KAAK,EAAE,EAAC,GAAG,EAAe,EAAyB,EAAE;IAC/E,MAAM,QAAQ,GAAG,IAAA,aAAI,EAAC,OAAO,CAAC,GAAG,EAAE,WAAW,EAAE,EAAE,CAAC,CAAC;IACpD,MAAM,SAAS,GAAG,IAAA,aAAI,EAAC,OAAO,CAAC,GAAG,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC;IAEtD,MAAM,UAAU,GAAG,CAAC,IAAA,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AAG,CAAC,GAAG,CAAC,IAAA,qCAAoB,EAAC,EAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,EAAC,CAAC,CAAC,CAAC;IAErE,GAAG,CAAC,GAAG,CACH,IAAA,cAAI,EAAC;QACD,MAAM,EAAE,GAAG;QACX,WAAW,EAAE,IAAI;KACpB,CAAC,CACL,CAAC;IAEF,GAAG,CAAC,GAAG,CAAC,IAAA,uBAAY,GAAE,CAAC,CAAC;IACxB,GAAG,CAAC,GAAG,CAAC,iBAAO,CAAC,IAAI,EAAE,CAAC,CAAC;IACxB,GAAG,CAAC,GAAG,CAAC,iBAAO,CAAC,UAAU,CAAC,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;IAE9C,GAAG,CAAC,GAAG,CAAC,CAAC,GAAQ,EAAE,GAAQ,EAAE,IAAS,EAAE,EAAE;QACtC,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC;QACpB,IAAI,EAAE,CAAC;IACX,CAAC,CAAC,CAAC;IAEH,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;QACpB,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;IAEH,OAAO,EAAC,GAAG,EAAE,MAAM,EAAC,CAAC;AACzB,CAAC,CAAC;AA9DW,QAAA,cAAc,kBA8DzB;AAEF,kBAAe,sBAAc,CAAC"}
|
package/dist/befores/graphql.js
CHANGED
|
@@ -4,10 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.graphQLRoadman = void 0;
|
|
7
|
+
const apollo_server_core_1 = require("apollo-server-core");
|
|
8
|
+
const graphql_1 = require("graphql");
|
|
9
|
+
const config_1 = require("../config");
|
|
7
10
|
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
8
11
|
const apollo_server_express_1 = require("apollo-server-express");
|
|
12
|
+
const subscriptions_transport_ws_1 = require("subscriptions-transport-ws");
|
|
9
13
|
const type_graphql_1 = require("type-graphql");
|
|
10
|
-
const config_1 = require("../config");
|
|
11
14
|
const http_1 = __importDefault(require("http"));
|
|
12
15
|
/**
|
|
13
16
|
* The last Builder Roadman
|
|
@@ -15,6 +18,7 @@ const http_1 = __importDefault(require("http"));
|
|
|
15
18
|
* @returns AfterRoadmanBuild
|
|
16
19
|
*/
|
|
17
20
|
const graphQLRoadman = async ({ app, pubsub, resolvers, }) => {
|
|
21
|
+
// Schema
|
|
18
22
|
const schema = pubsub
|
|
19
23
|
? (0, type_graphql_1.buildSchemaSync)({
|
|
20
24
|
// @ts-ignore
|
|
@@ -27,28 +31,37 @@ const graphQLRoadman = async ({ app, pubsub, resolvers, }) => {
|
|
|
27
31
|
resolvers,
|
|
28
32
|
skipCheck: true,
|
|
29
33
|
});
|
|
30
|
-
//
|
|
34
|
+
// Create HTTP server and run
|
|
35
|
+
const httpServer = http_1.default.createServer(app);
|
|
36
|
+
const subscriptionServer = subscriptions_transport_ws_1.SubscriptionServer.create({ schema, execute: graphql_1.execute, subscribe: graphql_1.subscribe }, { server: httpServer, path: config_1.graphqlPath });
|
|
37
|
+
// Build apollo server
|
|
31
38
|
const apolloServer = new apollo_server_express_1.ApolloServer({
|
|
32
39
|
schema,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
40
|
+
plugins: [
|
|
41
|
+
{
|
|
42
|
+
async serverWillStart() {
|
|
43
|
+
return {
|
|
44
|
+
async drainServer() {
|
|
45
|
+
subscriptionServer.close();
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
!config_1.isDev
|
|
51
|
+
? (0, apollo_server_core_1.ApolloServerPluginLandingPageDisabled)()
|
|
52
|
+
: (0, apollo_server_core_1.ApolloServerPluginLandingPageGraphQLPlayground)(),
|
|
53
|
+
],
|
|
37
54
|
introspection: true,
|
|
38
|
-
playground: true,
|
|
55
|
+
// playground: true, // enables the actual playground
|
|
39
56
|
context: ({ req, res }) => ({ req, res, pubsub }),
|
|
40
|
-
uploads: false,
|
|
57
|
+
// uploads: false,
|
|
41
58
|
});
|
|
59
|
+
await apolloServer.start();
|
|
42
60
|
apolloServer.applyMiddleware({
|
|
43
61
|
app,
|
|
44
62
|
path: config_1.graphqlPath,
|
|
45
63
|
cors: { origin: '*' },
|
|
46
64
|
});
|
|
47
|
-
// Create HTTP server and run
|
|
48
|
-
const httpServer = http_1.default.createServer(app);
|
|
49
|
-
if (pubsub) {
|
|
50
|
-
apolloServer.installSubscriptionHandlers(httpServer);
|
|
51
|
-
}
|
|
52
65
|
return {
|
|
53
66
|
app,
|
|
54
67
|
apolloServer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../src/befores/graphql.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAsD;AACtD,iEAAmD;AAEnD,+CAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"graphql.js","sourceRoot":"","sources":["../../src/befores/graphql.ts"],"names":[],"mappings":";;;;;;AAAA,2DAG4B;AAC5B,qCAA2C;AAC3C,sCAA6C;AAE7C,sDAAsD;AACtD,iEAAmD;AAEnD,2EAA8D;AAC9D,+CAA6C;AAC7C,gDAAwB;AAExB;;;;GAIG;AACI,MAAM,cAAc,GAAG,KAAK,EAAE,EACjC,GAAG,EACH,MAAM,EACN,SAAS,GACE,EAAyB,EAAE;IACtC,SAAS;IACT,MAAM,MAAM,GAAG,MAAM;QACjB,CAAC,CAAC,IAAA,8BAAe,EAAC;YACZ,aAAa;YACb,SAAS;YACT,MAAM,EAAE,MAAM;YACd,SAAS,EAAE,IAAI;SAClB,CAAC;QACJ,CAAC,CAAC,IAAA,8BAAe,EAAC;YACZ,aAAa;YACb,SAAS;YACT,SAAS,EAAE,IAAI;SAClB,CAAC,CAAC;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target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
9
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const _1 = require(".");
|
|
13
|
+
const type_graphql_1 = require("type-graphql");
|
|
14
|
+
let ExampleResolver = class ExampleResolver {
|
|
15
|
+
async stringUpload(file) {
|
|
16
|
+
console.log('file str', file);
|
|
17
|
+
// fake async in this example
|
|
18
|
+
return ['Apps', 'one', 'two'];
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, type_graphql_1.Query)(() => [String], { nullable: true }),
|
|
23
|
+
__param(0, (0, type_graphql_1.Arg)('fileStr', () => String, { nullable: false }))
|
|
24
|
+
], ExampleResolver.prototype, "stringUpload", null);
|
|
25
|
+
ExampleResolver = __decorate([
|
|
26
|
+
(0, type_graphql_1.Resolver)()
|
|
27
|
+
], ExampleResolver);
|
|
28
|
+
(0, _1.roadman)({ resolvers: [ExampleResolver] })
|
|
29
|
+
.then(() => {
|
|
30
|
+
console.log('roadman started');
|
|
31
|
+
})
|
|
32
|
+
.catch((error) => {
|
|
33
|
+
console.error(error);
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=exampleupload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exampleupload.js","sourceRoot":"","sources":["../src/exampleupload.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,wBAA0B;AAC1B,+CAAkD;AAGlD,IAAM,eAAe,GAArB,MAAM,eAAe;IAEjB,KAAK,CAAC,YAAY,CACmC,IAAY;QAE7D,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QAC9B,6BAA6B;QAC7B,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClC,CAAC;CACJ,CAAA;AAPG;IADC,IAAA,oBAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;IAEnC,WAAA,IAAA,kBAAG,EAAC,SAAS,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,KAAK,EAAC,CAAC,CAAA;mDAKnD;AARC,eAAe;IADpB,IAAA,uBAAQ,GAAE;GACL,eAAe,CASpB;AAED,IAAA,UAAO,EAAC,EAAC,SAAS,EAAE,CAAC,eAAe,CAAC,EAAC,CAAC;KAClC,IAAI,CAAC,GAAG,EAAE;IACP,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AACnC,CAAC,CAAC;KACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACb,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACzB,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "roadman",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"description": "An efficient, and flexible NodeJS library for building backend services.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,19 +10,39 @@
|
|
|
10
10
|
"register/",
|
|
11
11
|
"LICENSE"
|
|
12
12
|
],
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "git://github.com/roadmanjs/roadmanjs.git"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"roadman",
|
|
19
|
+
"roadmanjs",
|
|
20
|
+
"backend",
|
|
21
|
+
"couchbase",
|
|
22
|
+
"couchset",
|
|
23
|
+
"apollo-server-express",
|
|
24
|
+
"graphql",
|
|
25
|
+
"type-graphql",
|
|
26
|
+
"ioredis"
|
|
27
|
+
],
|
|
13
28
|
"author": {
|
|
14
29
|
"name": "Ceddy Muhoza",
|
|
15
30
|
"email": "ceddymuhoza@gmail.com",
|
|
16
31
|
"url": "https://ceddy.org"
|
|
17
32
|
},
|
|
18
33
|
"license": "MIT",
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/roadmanjs/roadmanjs/issues"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/roadmanjs/roadmanjs",
|
|
19
38
|
"private": false,
|
|
20
39
|
"scripts": {
|
|
21
40
|
"lint": "tslint \"src/**/*.ts\" --project tsconfig.json",
|
|
22
41
|
"build": "rimraf dist && ./node_modules/.bin/tsc --skipLibCheck",
|
|
23
42
|
"test": "mocha src/*test.ts --exit",
|
|
24
43
|
"prepublishOnly": "npm run build",
|
|
25
|
-
"eslint": "eslint ./src --fix --ext=ts"
|
|
44
|
+
"eslint": "eslint ./src --fix --ext=ts",
|
|
45
|
+
"eg": "ts-node src/example"
|
|
26
46
|
},
|
|
27
47
|
"lint-staged": {
|
|
28
48
|
"*.{ts,tsx}": [
|
|
@@ -53,7 +73,7 @@
|
|
|
53
73
|
"@typescript-eslint/eslint-plugin": "^3.4.0",
|
|
54
74
|
"@typescript-eslint/parser": "^3.4.0",
|
|
55
75
|
"chai": "^4.2.0",
|
|
56
|
-
"eslint": "
|
|
76
|
+
"eslint": "7.32.0",
|
|
57
77
|
"eslint-config-prettier": "^6.11.0",
|
|
58
78
|
"eslint-loader": "^4.0.2",
|
|
59
79
|
"eslint-plugin-import": "^2.20.2",
|
|
@@ -63,7 +83,7 @@
|
|
|
63
83
|
"eslint-plugin-typescript": "^0.14.0",
|
|
64
84
|
"husky": "^4.2.5",
|
|
65
85
|
"lint-staged": "^10.1.7",
|
|
66
|
-
"mocha": "^
|
|
86
|
+
"mocha": "^9.2.0",
|
|
67
87
|
"prettier": "^2.0.5",
|
|
68
88
|
"rimraf": "^2.5.4",
|
|
69
89
|
"ts-node": "^9.1.1",
|
|
@@ -75,7 +95,7 @@
|
|
|
75
95
|
"typescript": ">=2.0"
|
|
76
96
|
},
|
|
77
97
|
"dependencies": {
|
|
78
|
-
"apollo-server-express": "^
|
|
98
|
+
"apollo-server-express": "^3.6.2",
|
|
79
99
|
"cookie-parser": "^1.4.5",
|
|
80
100
|
"cors": "^2.8.5",
|
|
81
101
|
"debug": "^4.3.1",
|
|
@@ -89,6 +109,7 @@
|
|
|
89
109
|
"jsonwebtoken": "^8.5.1",
|
|
90
110
|
"lodash": "^4.17.20",
|
|
91
111
|
"reflect-metadata": "^0.1.13",
|
|
112
|
+
"subscriptions-transport-ws": "^0.11.0",
|
|
92
113
|
"type-graphql": "^1.1.1",
|
|
93
114
|
"uuid": "^8.3.2"
|
|
94
115
|
}
|