@golemio/raw 1.1.6 → 1.1.7-dev.1924983468
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.
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.rawRouter = exports.RawRouter = void 0;
|
|
13
4
|
const express_1 = require("@golemio/core/dist/shared/express");
|
|
@@ -24,14 +15,14 @@ class RawRouter {
|
|
|
24
15
|
const plainTextParser = bodyParser.text();
|
|
25
16
|
this.router.post("/:provider_name", plainTextParser, (0, input_gateway_1.checkContentTypeMiddleware)(Object.keys(input_gateway_1.contentTypeToExtension)), this.Post);
|
|
26
17
|
};
|
|
27
|
-
this.Post = (req, res, next) =>
|
|
18
|
+
this.Post = async (req, res, next) => {
|
|
28
19
|
try {
|
|
29
20
|
res.sendStatus(204);
|
|
30
21
|
}
|
|
31
22
|
catch (err) {
|
|
32
23
|
next(err);
|
|
33
24
|
}
|
|
34
|
-
}
|
|
25
|
+
};
|
|
35
26
|
this.initRoutes();
|
|
36
27
|
}
|
|
37
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RawRouter.js","sourceRoot":"","sources":["../../src/input-gateway/RawRouter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RawRouter.js","sourceRoot":"","sources":["../../src/input-gateway/RawRouter.ts"],"names":[],"mappings":";;;AAAA,+DAA4F;AAC5F,oEAAsG;AACtG,MAAM,UAAU,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAE1C,MAAa,SAAS;IAIlB;QAHA,iDAAiD;QAC1C,WAAM,GAAW,IAAA,gBAAM,GAAE,CAAC;QAMjC;;WAEG;QACK,eAAU,GAAG,GAAS,EAAE;YAC5B,MAAM,eAAe,GAAG,UAAU,CAAC,IAAI,EAAE,CAAC;YAE1C,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,iBAAiB,EACjB,eAAe,EACf,IAAA,0CAA0B,EAAC,MAAM,CAAC,IAAI,CAAC,sCAAsB,CAAC,CAAC,EAC/D,IAAI,CAAC,IAAI,CACZ,CAAC;QACN,CAAC,CAAC;QAEM,SAAI,GAAG,KAAK,EAAE,GAAY,EAAE,GAAa,EAAE,IAAkB,EAAiB,EAAE;YACpF,IAAI;gBACA,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;aACvB;YAAC,OAAO,GAAG,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,CAAC;aACb;QACL,CAAC,CAAC;QAvBE,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CAuBJ;AA7BD,8BA6BC;AAED,MAAM,SAAS,GAAG,IAAI,SAAS,EAAE,CAAC,MAAM,CAAC;AAEhC,8BAAS"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/raw",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7-dev.1924983468",
|
|
4
4
|
"description": "Golemio Raw Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
"build": "rimraf ./dist && tspc -p ./tsconfig.build.json",
|
|
9
9
|
"build-minimal": "run-s 'build -- --sourceMap false --declaration false'",
|
|
10
10
|
"build-watch": "run-s 'build -- --watch --preserveWatchOutput'",
|
|
11
|
-
"pretest": "
|
|
11
|
+
"pretest": "",
|
|
12
12
|
"test": "cross-env NODE_ENV=test mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r tsconfig-paths/register --file 'test/setup.ts' 'test/**/*.test.ts'",
|
|
13
13
|
"apidocs-test": "npm run apidocs-test-input",
|
|
14
14
|
"apidocs-test-input": "cross-env NODE_ENV=test golemio swagger api-test --oas docs/openapi-input.yaml --script test/api-docs/input-gateway/server.js",
|
|
15
15
|
"test-debug": "run-s 'test -- --inspect-brk=9230'",
|
|
16
16
|
"code-coverage": "nyc run-s 'test -- -r source-map-support/register'",
|
|
17
17
|
"generate-docs": "typedoc --out docs/typedoc src",
|
|
18
|
-
"lint": "eslint
|
|
18
|
+
"lint": "eslint \"{src,test}/**/*.ts\""
|
|
19
19
|
},
|
|
20
20
|
"keywords": [
|
|
21
21
|
"golemio"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@commitlint/cli": "^11.0.0",
|
|
36
36
|
"@commitlint/config-conventional": "^11.0.0",
|
|
37
37
|
"@golemio/cli": "1.7.0",
|
|
38
|
-
"@golemio/core": "1.
|
|
38
|
+
"@golemio/core": "1.20.11",
|
|
39
39
|
"@golemio/eslint-config": "1.1.2",
|
|
40
40
|
"@types/body-parser": "^1.19.4",
|
|
41
41
|
"@types/chai": "4.2.3",
|