From 64085b36fcdb83eedbd2efd8e9cceeca244c5653 Mon Sep 17 00:00:00 2001 From: Dan Gowans Date: Wed, 25 Jan 2023 14:54:56 -0500 Subject: [PATCH] apply polyfills --- helpers/functions.api.d.ts | 1 + helpers/functions.api.js | 1 + helpers/functions.api.ts | 4 +--- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helpers/functions.api.d.ts b/helpers/functions.api.d.ts index d5f58abc..1440191d 100644 --- a/helpers/functions.api.d.ts +++ b/helpers/functions.api.d.ts @@ -1,3 +1,4 @@ +import './polyfills.js'; import type * as recordTypes from '../types/recordTypes'; export declare function regenerateApiKey(userName: string): Promise; export declare function getApiKey(userName: string): Promise; diff --git a/helpers/functions.api.js b/helpers/functions.api.js index 1ebb75f3..62576861 100644 --- a/helpers/functions.api.js +++ b/helpers/functions.api.js @@ -1,3 +1,4 @@ +import './polyfills.js'; import fs from 'node:fs/promises'; import { v4 as uuidv4 } from 'uuid'; import Debug from 'debug'; diff --git a/helpers/functions.api.ts b/helpers/functions.api.ts index 6d8721af..82de8605 100644 --- a/helpers/functions.api.ts +++ b/helpers/functions.api.ts @@ -1,4 +1,4 @@ -// import { applyPolyfills } from './polyfills.js' +import './polyfills.js' import fs from 'node:fs/promises' 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') -// applyPolyfills() - const apiKeyPath = 'data/apiKeys.json' let apiKeys: Record