disable polyfill

deepsource-autofix-76c6eb20
Dan Gowans 2023-01-25 14:33:39 -05:00
parent 165d15b956
commit e5f466e0ea
6 changed files with 6 additions and 12 deletions

2
app.js
View File

@ -1,4 +1,3 @@
import { applyPolyfills } from './helpers/polyfills.js';
import createError from 'http-errors';
import express from 'express';
import compression from 'compression';
@ -31,7 +30,6 @@ import { getSafeRedirectURL } from './helpers/functions.authentication.js';
import debug from 'debug';
import { useTestDatabases } from './data/databasePaths.js';
const debugApp = debug('lot-occupancy-system:app');
applyPolyfills();
databaseInitializer.initializeDatabase();
const _dirname = '.';
export const app = express();

4
app.ts
View File

@ -1,4 +1,4 @@
import { applyPolyfills } from './helpers/polyfills.js'
// import { applyPolyfills } from './helpers/polyfills.js'
import createError from 'http-errors'
import express, { type RequestHandler } from 'express'
@ -45,7 +45,7 @@ const debugApp = debug('lot-occupancy-system:app')
* Apply Polyfills
*/
applyPolyfills()
// applyPolyfills()
/*
* INITIALIZE THE DATABASE

View File

@ -1,9 +1,7 @@
import { applyPolyfills } from './polyfills.js';
import fs from 'node:fs/promises';
import { v4 as uuidv4 } from 'uuid';
import Debug from 'debug';
const debug = Debug('lot-occupancy-system:functions.api');
applyPolyfills();
const apiKeyPath = 'data/apiKeys.json';
let apiKeys;
async function loadApiKeys() {

View File

@ -1,4 +1,4 @@
import { applyPolyfills } from './polyfills.js'
// import { applyPolyfills } from './polyfills.js'
import fs from 'node:fs/promises'
import { v4 as uuidv4 } from 'uuid'
@ -9,7 +9,7 @@ import type * as recordTypes from '../types/recordTypes'
const debug = Debug('lot-occupancy-system:functions.api')
applyPolyfills()
// applyPolyfills()
const apiKeyPath = 'data/apiKeys.json'
let apiKeys: Record<string, string>

View File

@ -1,6 +1,4 @@
import { applyPolyfills } from './polyfills.js';
import { config } from '../data/config.js';
applyPolyfills();
const configFallbackValues = new Map();
configFallbackValues.set('application.applicationName', 'Lot Occupancy System');
configFallbackValues.set('application.backgroundURL', '/images/cemetery-background.jpg');

View File

@ -1,12 +1,12 @@
/* eslint-disable @typescript-eslint/indent, node/no-unpublished-import */
import { applyPolyfills } from './polyfills.js'
// import { applyPolyfills } from './polyfills.js'
import { config } from '../data/config.js'
import type * as configTypes from '../types/configTypes'
applyPolyfills()
// applyPolyfills()
/*
* SET UP FALLBACK VALUES