@scalar/fastify-api-reference 1.62.0 → 1.62.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/fastifyApiReference.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +165 -1
- package/dist/utils/getJavaScriptFile.d.ts +11 -1
- package/dist/utils/getJavaScriptFile.d.ts.map +1 -1
- package/package.json +6 -7
- package/dist/fastifyApiReference.js +0 -215
- package/dist/js/standalone.js +0 -2385
- package/dist/types.js +0 -1
- package/dist/utils/getJavaScriptFile.js +0 -20
package/dist/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import fs from 'node:fs';
|
|
2
|
-
import path from 'node:path';
|
|
3
|
-
import { fileURLToPath } from 'node:url';
|
|
4
|
-
/**
|
|
5
|
-
* Read the JavaScript file.
|
|
6
|
-
*/
|
|
7
|
-
export function getJavaScriptFile() {
|
|
8
|
-
// Get the directory name
|
|
9
|
-
const dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
10
|
-
// Find the JavaScript file
|
|
11
|
-
const filePath = [
|
|
12
|
-
path.resolve(`${dirname}/js/standalone.js`),
|
|
13
|
-
path.resolve(`${dirname}/../../dist/js/standalone.js`),
|
|
14
|
-
].find((file) => fs.existsSync(file));
|
|
15
|
-
// Throw an error if the file is not found
|
|
16
|
-
if (filePath === undefined) {
|
|
17
|
-
throw new Error(`JavaScript file not found: ${path.resolve(`${dirname}/js/standalone.js`)}`);
|
|
18
|
-
}
|
|
19
|
-
return fs.readFileSync(filePath, 'utf8');
|
|
20
|
-
}
|