apply polyfills

deepsource-autofix-76c6eb20
Dan Gowans 2023-01-25 14:54:56 -05:00
parent 0ede73d229
commit 64085b36fc
3 changed files with 3 additions and 3 deletions

View File

@ -1,3 +1,4 @@
import './polyfills.js';
import type * as recordTypes from '../types/recordTypes'; import type * as recordTypes from '../types/recordTypes';
export declare function regenerateApiKey(userName: string): Promise<void>; export declare function regenerateApiKey(userName: string): Promise<void>;
export declare function getApiKey(userName: string): Promise<string>; export declare function getApiKey(userName: string): Promise<string>;

View File

@ -1,3 +1,4 @@
import './polyfills.js';
import fs from 'node:fs/promises'; import fs from 'node:fs/promises';
import { v4 as uuidv4 } from 'uuid'; import { v4 as uuidv4 } from 'uuid';
import Debug from 'debug'; import Debug from 'debug';

View File

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