From 95c3527d1e72595e0f64d5cd2367c82e136d9b71 Mon Sep 17 00:00:00 2001 From: Cedric van Putten Date: Sat, 16 Mar 2024 03:48:38 +0100 Subject: [PATCH] refactor: drop `expo-atlas/middleware` entry point --- middleware.d.ts | 1 - middleware.js | 1 - package.json | 2 -- src/index.ts | 4 ++-- src/middleware.ts | 2 -- 5 files changed, 2 insertions(+), 8 deletions(-) delete mode 100644 middleware.d.ts delete mode 100644 middleware.js delete mode 100644 src/middleware.ts diff --git a/middleware.d.ts b/middleware.d.ts deleted file mode 100644 index b9b0cff..0000000 --- a/middleware.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './build/src/middleware'; diff --git a/middleware.js b/middleware.js deleted file mode 100644 index 7229ab7..0000000 --- a/middleware.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('./build/src/middleware.js'); diff --git a/package.json b/package.json index 60050a9..db50b5b 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,6 @@ "expo-module.config.json", "metro.js", "metro.d.ts", - "middleware.js", - "middleware.d.js", "webui/dist" ], "homepage": "https://github.com/byCedric/expo-atlas", diff --git a/src/index.ts b/src/index.ts index 940c6b6..a6f840b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,10 +1,10 @@ import './utils/global'; export type * from './data/types'; - export { MetroGraphSource } from './data/MetroGraphSource'; export { StatsFileSource } from './data/StatsFileSource'; export { AtlasError, AtlasValidationError } from './utils/errors'; -export { createStatsFile, validateStatsFile, getStatsMetdata, getStatsPath } from './utils/stats'; +export { createAtlasMiddleware } from './utils/middleware'; export { fuzzyFilterModules } from './utils/search'; +export { createStatsFile, validateStatsFile, getStatsMetdata, getStatsPath } from './utils/stats'; diff --git a/src/middleware.ts b/src/middleware.ts deleted file mode 100644 index 3e2106b..0000000 --- a/src/middleware.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { MetroGraphSource } from './data/MetroGraphSource'; -export { createAtlasMiddleware } from './utils/middleware';