fix package.json files

This commit is contained in:
Simon Larsen
2022-05-22 13:02:54 +01:00
parent aa4585e0ba
commit 1abe0d08f4
16 changed files with 28 additions and 28 deletions

View File

@@ -4,9 +4,9 @@
"description": "",
"main": "index.js",
"scripts": {
"start": "ts-node index.ts",
"start": "ts-node Index.ts",
"compile": "tsc",
"dev": "ts-node-dev --inspect=0.0.0.0 index.ts",
"dev": "ts-node-dev --inspect=0.0.0.0 Index.ts",
"audit": "npm audit --audit-level=low",
"dep-check": "depcheck ./ --skip-missing=true",
"test": "jest"

View File

@@ -28,7 +28,7 @@
},
"scripts": {
"preinstall": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"start": "ts-node index.ts",
"start": "ts-node Index.ts",
"compile": "tsc",
"dev": "ts-node-dev server.js",
"test": "mocha --exit test/index.ts",

View File

@@ -61,12 +61,11 @@ const setDefaultHeaders: RequestHandler = (
app.use(cors());
app.use(setDefaultHeaders);
app.use();
/*
* Add limit of 10 MB to avoid "Request Entity too large error"
* https://stackoverflow.com/questions/19917401/error-request-entity-too-large
*/
app.use(ExpressJson({ limit: '10mb' }));
app.use(ExpressUrlEncoded({ limit: '10mb' }));

View File

@@ -72,9 +72,9 @@
"winston-slack-webhook-transport": "^2.1.0"
},
"scripts": {
"start": "ts-node index.ts",
"start": "ts-node Index.ts",
"compile": "tsc",
"dev": "ts-node-dev --inspect=0.0.0.0 index.ts --ignore greenlock.d/* -- --staging",
"dev": "ts-node-dev --inspect=0.0.0.0 Index.ts --ignore greenlock.d/* -- --staging",
"test": "nyc --reporter=lcov --reporter=text mocha --exit test/index.ts",
"enterprise-test": "IS_TESTING=true nyc --reporter=lcov --reporter=text mocha --exit test/enterprise.js",
"audit": "npm audit --audit-level=low",

View File

@@ -4,9 +4,9 @@
"description": "A project to handle all probe related processing",
"main": "index.ts",
"scripts": {
"start": "ts-node index.ts",
"start": "ts-node Index.ts",
"compile": "tsc",
"dev": "ts-node-dev --inspect=0.0.0.0 index.ts",
"dev": "ts-node-dev --inspect=0.0.0.0 Index.ts",
"audit": "npm audit --audit-level=low",
"dep-check": "depcheck ./ --skip-missing=true"
},

View File

@@ -5,9 +5,9 @@
"main": "server.js",
"scripts": {
"preinstall": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"start": "ts-node index.ts",
"start": "ts-node Index.ts",
"compile": "tsc",
"dev": "ts-node-dev --inspect=0.0.0.0 index.ts",
"dev": "ts-node-dev --inspect=0.0.0.0 Index.ts",
"test": "mocha --exit test/index.ts",
"audit": "npm audit --audit-level=low",
"dep-check": "depcheck ./ --skip-missing=true --ignores='ejs'"

View File

@@ -3,9 +3,9 @@
"version": "3.0.0",
"scripts": {
"preinstall": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"start": "ts-node index.ts",
"start": "ts-node Index.ts",
"compile": "tsc",
"dev": "ts-node-dev --inspect=0.0.0.0 index.ts",
"dev": "ts-node-dev --inspect=0.0.0.0 Index.ts",
"test": "jest",
"lighthouse-test": "jest --forceExit lighthouse-tests/test/index.test.js --env=node",
"lighthouse": "start-server-and-test http://localhost:1444",

View File

@@ -5,9 +5,9 @@
"main": "server.js",
"scripts": {
"preinstall": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"start": "ts-node index.ts",
"start": "ts-node Index.ts",
"compile": "tsc",
"dev": "ts-node-dev --inspect=0.0.0.0 index.ts",
"dev": "ts-node-dev --inspect=0.0.0.0 Index.ts",
"audit": "npm audit --audit-level=low",
"test": "jest --forceExit --runInBand test",
"dep-check": "depcheck ./ --skip-missing=true --ignores='ejs'"

View File

@@ -4,9 +4,9 @@
"description": "",
"main": "index.js",
"scripts": {
"start": "ts-node index.ts",
"start": "ts-node Index.ts",
"compile": "tsc",
"dev": "ts-node-dev --inspect=0.0.0.0 index.ts",
"dev": "ts-node-dev --inspect=0.0.0.0 Index.ts",
"audit": "npm audit --audit-level=low",
"dep-check": "depcheck ./ --skip-missing=true",
"test": "jest"

View File

@@ -22,9 +22,9 @@
},
"scripts": {
"preinstall": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"start": "ts-node index.ts",
"start": "ts-node Index.ts",
"compile": "tsc",
"dev": "ts-node-dev --inspect=0.0.0.0 index.ts",
"dev": "ts-node-dev --inspect=0.0.0.0 Index.ts",
"test": "mocha --exit test/index.ts",
"audit": "npm audit --audit-level=low",
"dep-check": "depcheck ./ --skip-missing=true --ignores='ejs'"

View File

@@ -25,6 +25,7 @@ import ProjectSmtpConfig from 'Common/Models/ProjectSmtpConfig';
import EmailLog from 'Common/Models/EmailLog';
import Project from 'Common/Models/Project';
export default class MailService {
private static async getGlobalSmtpSettings(): Promise<MailServer> {
const document: GlobalConfig | null =

View File

@@ -4,9 +4,9 @@
"description": "",
"main": "index.js",
"scripts": {
"start": "ts-node index.ts",
"start": "ts-node Index.ts",
"compile": "tsc",
"dev": "ts-node-dev --inspect=0.0.0.0 index.ts",
"dev": "ts-node-dev --inspect=0.0.0.0 Index.ts",
"test": "echo 'no tests'"
},
"author": "",

View File

@@ -5,7 +5,7 @@
"main": "index.ts",
"scripts": {
"preinstall": "npx npm-force-resolutions || echo 'No package-lock.json file. Skipping force resolutions'",
"start": "ts-node index.ts",
"start": "ts-node Index.ts",
"compile": "tsc",
"dev": "ts-node-dev --inspect=0.0.0.0 --max-http-header-size=80000 index.ts",
"test": "jest",

View File

@@ -4,9 +4,9 @@
"description": "A project to handle all resource fetching or update for probes",
"main": "index.ts",
"scripts": {
"start": "ts-node index.ts",
"start": "ts-node Index.ts",
"compile": "tsc",
"dev": "ts-node-dev --inspect=0.0.0.0 index.ts",
"dev": "ts-node-dev --inspect=0.0.0.0 Index.ts",
"audit": "npm audit --audit-level=low",
"dep-check": "depcheck ./ --skip-missing=true",
"test": "jest"

View File

@@ -4,9 +4,9 @@
"description": "A project to handle all realtime processing for OneUptime",
"main": "index.ts",
"scripts": {
"start": "ts-node index.ts",
"start": "ts-node Index.ts",
"compile": "tsc",
"dev": "ts-node-dev --inspect=0.0.0.0 index.ts",
"dev": "ts-node-dev --inspect=0.0.0.0 Index.ts",
"audit": "npm audit --audit-level=low",
"dep-check": "depcheck ./ --skip-missing=true"
},

View File

@@ -4,9 +4,9 @@
"description": "automation script runner",
"main": "index.ts",
"scripts": {
"start": "ts-node index.ts",
"start": "ts-node Index.ts",
"compile": "tsc",
"dev": "ts-node-dev --inspect=0.0.0.0 index.ts",
"dev": "ts-node-dev --inspect=0.0.0.0 Index.ts",
"test": "echo \"Error: no test specified\" && exit 1",
"audit": "npm audit --audit-level=low"
},