disable polyfill
parent
165d15b956
commit
e5f466e0ea
2
app.js
2
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();
|
||||
|
|
|
|||
4
app.ts
4
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
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue