melonykit 0.13.2 → 0.13.3
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/dist/server/_imports.js +3 -11
- package/package.json +2 -4
package/dist/server/_imports.js
CHANGED
|
@@ -2,13 +2,9 @@ import { resolve } from 'node:path';
|
|
|
2
2
|
import { pathToFileURL } from 'node:url';
|
|
3
3
|
import { globSync } from 'glob';
|
|
4
4
|
import debug from './_debug.js';
|
|
5
|
-
import {
|
|
5
|
+
import { invoke, publish, connectClientEvents, sendClientEvent } from './_events.js';
|
|
6
6
|
|
|
7
|
-
export async function importModules(
|
|
8
|
-
srcFolder,
|
|
9
|
-
filePathPatterns,
|
|
10
|
-
callback
|
|
11
|
-
) {
|
|
7
|
+
export async function importModules(srcFolder, filePathPatterns, callback) {
|
|
12
8
|
const cwd = resolve(process.cwd(), srcFolder);
|
|
13
9
|
const filePaths = globSync(filePathPatterns, { cwd, absolute: true });
|
|
14
10
|
|
|
@@ -19,11 +15,7 @@ export async function importModules(
|
|
|
19
15
|
}
|
|
20
16
|
};
|
|
21
17
|
|
|
22
|
-
export async function importRestEndpoints(
|
|
23
|
-
srcFolder,
|
|
24
|
-
filePathPatterns,
|
|
25
|
-
app
|
|
26
|
-
) {
|
|
18
|
+
export async function importRestEndpoints(srcFolder, filePathPatterns, app) {
|
|
27
19
|
await importModules(srcFolder, filePathPatterns, module => {
|
|
28
20
|
const endpoints = Array.isArray(module.default)
|
|
29
21
|
? module.default
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Vadim Hermann",
|
|
3
3
|
"name": "melonykit",
|
|
4
|
-
"version": "0.13.
|
|
4
|
+
"version": "0.13.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Preact based ui and utility functions toolkit",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -19,9 +19,7 @@
|
|
|
19
19
|
"./server": "./dist/server/server.js",
|
|
20
20
|
"./assets/*": "./dist/assets/*"
|
|
21
21
|
},
|
|
22
|
-
"files": [
|
|
23
|
-
"dist"
|
|
24
|
-
],
|
|
22
|
+
"files": ["dist"],
|
|
25
23
|
"publishConfig": {
|
|
26
24
|
"access": "public"
|
|
27
25
|
},
|