diff --git a/app.js b/app.js index 1616f5e6..010b3775 100644 --- a/app.js +++ b/app.js @@ -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(); diff --git a/app.ts b/app.ts index d91c8cc4..c063d930 100644 --- a/app.ts +++ b/app.ts @@ -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 diff --git a/helpers/functions.api.js b/helpers/functions.api.js index 9d9f13b0..1ebb75f3 100644 --- a/helpers/functions.api.js +++ b/helpers/functions.api.js @@ -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() { diff --git a/helpers/functions.api.ts b/helpers/functions.api.ts index 69229691..6d8721af 100644 --- a/helpers/functions.api.ts +++ b/helpers/functions.api.ts @@ -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 diff --git a/helpers/functions.config.js b/helpers/functions.config.js index 03ccdd62..5395d750 100644 --- a/helpers/functions.config.js +++ b/helpers/functions.config.js @@ -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'); diff --git a/helpers/functions.config.ts b/helpers/functions.config.ts index 8633616e..8363aeb9 100644 --- a/helpers/functions.config.ts +++ b/helpers/functions.config.ts @@ -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