@constructive-io/knative-job-fn 1.1.0 → 1.2.0

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/esm/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import express from 'express';
2
- import bodyParser from 'body-parser';
3
2
  import http from 'node:http';
4
3
  import https from 'node:https';
5
4
  import { URL } from 'node:url';
@@ -97,7 +96,7 @@ const sendJobCallback = async (ctx, status, errorMessage) => {
97
96
  const logger = createLogger('knative-job-fn');
98
97
  const createJobApp = () => {
99
98
  const app = express();
100
- app.use(bodyParser.json());
99
+ app.use(express.json());
101
100
  // Basic request logging for all incoming job invocations.
102
101
  app.use((req, res, next) => {
103
102
  try {
package/index.js CHANGED
@@ -5,7 +5,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.createJobApp = void 0;
7
7
  const express_1 = __importDefault(require("express"));
8
- const body_parser_1 = __importDefault(require("body-parser"));
9
8
  const node_http_1 = __importDefault(require("node:http"));
10
9
  const node_https_1 = __importDefault(require("node:https"));
11
10
  const node_url_1 = require("node:url");
@@ -103,7 +102,7 @@ const sendJobCallback = async (ctx, status, errorMessage) => {
103
102
  const logger = (0, logger_1.createLogger)('knative-job-fn');
104
103
  const createJobApp = () => {
105
104
  const app = (0, express_1.default)();
106
- app.use(body_parser_1.default.json());
105
+ app.use(express_1.default.json());
107
106
  // Basic request logging for all incoming job invocations.
108
107
  app.use((req, res, next) => {
109
108
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/knative-job-fn",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "knative job fn",
5
5
  "author": "Constructive <developers@constructive.io>",
6
6
  "homepage": "https://github.com/constructive-io/jobs/tree/master/packages/knative-job-fn#readme",
@@ -36,9 +36,8 @@
36
36
  "makage": "^0.1.12"
37
37
  },
38
38
  "dependencies": {
39
- "@pgpmjs/logger": "^2.1.0",
40
- "body-parser": "1.19.0",
39
+ "@pgpmjs/logger": "^2.2.0",
41
40
  "express": "5.2.1"
42
41
  },
43
- "gitHead": "048188f6b43ffaa6146e7694b2b0d35d34cb2945"
42
+ "gitHead": "b758178b808ce0bf451e86c0bd7e92079155db7c"
44
43
  }