@roadmanjs/core 0.0.3 → 1.0.2

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/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA0B;AAC1B,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,0CAAwB"}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { ApolloServer } from 'apollo-server-express';
3
2
  import type http from 'http';
4
3
  import type { Application } from 'express';
@@ -10,4 +9,4 @@ export interface RoadmanBuild {
10
9
  httpServer?: http.Server;
11
10
  resolvers?: Function[];
12
11
  }
13
- export declare type RoadMan = (args: RoadmanBuild) => Promise<RoadmanBuild>;
12
+ export type RoadMan = (args: RoadmanBuild) => Promise<RoadmanBuild>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.awaitTo = void 0;
3
+ exports.awaitTo = awaitTo;
4
4
  /**
5
5
  * Async await wrapper for easy error handling
6
6
  * @param { Promise } promise
@@ -26,6 +26,5 @@ function awaitTo(promise, errorExt) {
26
26
  return [err, undefined];
27
27
  });
28
28
  }
29
- exports.awaitTo = awaitTo;
30
29
  exports.default = awaitTo;
31
30
  //# sourceMappingURL=awaitTo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"awaitTo.js","sourceRoot":"","sources":["../../src/utils/awaitTo.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,SAAgB,OAAO,CACnB,OAAmB,EACnB,QAA8B;IAE9B,OAAO,OAAO;SACT,IAAI,CAAY,CAAC,IAAO,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;SAC1C,KAAK,CAAiB,CAAC,GAAM,EAAE,EAAE;QAC9B,IAAI,QAAQ,EAAE;YACV,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;SAChC;QAED,OAAO,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;AACX,CAAC;AAbD,0BAaC;AAED,kBAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"awaitTo.js","sourceRoot":"","sources":["../../src/utils/awaitTo.ts"],"names":[],"mappings":";;AAeA,0BAaC;AA5BD;;;;;;;;;;;;;;GAcG;AACH,SAAgB,OAAO,CACnB,OAAmB,EACnB,QAA8B;IAE9B,OAAO,OAAO;SACT,IAAI,CAAY,CAAC,IAAO,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;SAC1C,KAAK,CAAiB,CAAC,GAAM,EAAE,EAAE;QAC9B,IAAI,QAAQ,EAAE,CAAC;YACX,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QACjC,CAAC;QAED,OAAO,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IAC5B,CAAC,CAAC,CAAC;AACX,CAAC;AAED,kBAAe,OAAO,CAAC"}
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
package/package.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "name": "@roadmanjs/core",
3
- "version": "0.0.3",
4
3
  "description": "Roadman core",
5
4
  "main": "dist/index.js",
6
5
  "types": "dist/index.d.ts",
@@ -19,7 +18,7 @@
19
18
  "private": false,
20
19
  "scripts": {
21
20
  "lint": "tslint \"src/**/*.ts\" --project tsconfig.json",
22
- "build": "rimraf dist && ./node_modules/.bin/tsc --skipLibCheck",
21
+ "build": "rimraf dist && tsc --skipLibCheck",
23
22
  "test": "mocha src/*test.ts --exit",
24
23
  "prepublishOnly": "npm run build",
25
24
  "eslint": "eslint ./src --fix --ext=ts"
@@ -34,43 +33,11 @@
34
33
  "pre-commit": "lint-staged"
35
34
  }
36
35
  },
37
- "devDependencies": {
38
- "@types/chai": "^4.2.14",
39
- "@types/chalk": "^2.2.0",
40
- "@types/debug": "^4.1.5",
41
- "@types/dotenv": "^8.2.0",
42
- "@types/lodash": "^4.14.168",
43
- "@types/mocha": "^8.2.0",
44
- "@types/node": "^10.0.3",
45
- "@types/source-map-support": "^0.4.0",
46
- "@typescript-eslint/eslint-plugin": "^3.4.0",
47
- "@typescript-eslint/parser": "^3.4.0",
48
- "apollo-server-express": "^3.3.0",
49
- "chai": "^4.2.0",
50
- "eslint": "^6.8.0",
51
- "eslint-config-prettier": "^6.11.0",
52
- "eslint-loader": "^4.0.2",
53
- "eslint-plugin-import": "^2.20.2",
54
- "eslint-plugin-json": "^2.1.1",
55
- "eslint-plugin-prettier": "^3.1.4",
56
- "eslint-plugin-simple-import-sort": "^5.0.2",
57
- "eslint-plugin-typescript": "^0.14.0",
58
- "express": "^4.17.1",
59
- "graphql-redis-subscriptions": "^2.4.0",
60
- "husky": "^4.2.5",
61
- "lint-staged": "^10.1.7",
62
- "mocha": "^8.2.1",
63
- "prettier": "^2.0.5",
64
- "rimraf": "^2.5.4",
65
- "ts-node": "^9.1.1",
66
- "tslint": "^5.11.0",
67
- "tslint-config-standard": "^8.0.1",
68
- "typescript": "^4.4.3"
69
- },
70
- "peerDependencies": {
71
- "typescript": ">=2.0"
72
- },
73
36
  "dependencies": {
74
37
  "lodash": "^4.17.20"
75
- }
38
+ },
39
+ "devDependencies": {
40
+ "apollo-server-express": "^3.13.0"
41
+ },
42
+ "version": "1.0.2"
76
43
  }