@ldo/test-solid-server 1.0.0-alpha.14 → 1.0.0-alpha.22
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/cjs/createServer.js
CHANGED
|
@@ -37,6 +37,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.createApp = createApp;
|
|
38
38
|
const path = __importStar(require("path"));
|
|
39
39
|
const community_server_1 = require("@solid/community-server");
|
|
40
|
+
const node_path_1 = require("node:path");
|
|
41
|
+
const node_url_1 = require("node:url");
|
|
42
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
const __dirname = (0, node_path_1.dirname)((0, node_url_1.fileURLToPath)(import.meta.url));
|
|
40
45
|
async function createApp(port, customConfigPath) {
|
|
41
46
|
if (process.env.SERVER) {
|
|
42
47
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createServer.js","sourceRoot":"","sources":["../../src/createServer.ts"],"names":[],"mappings":";AAAA,uJAAuJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"createServer.js","sourceRoot":"","sources":["../../src/createServer.ts"],"names":[],"mappings":";AAAA,uJAAuJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYvJ,8BA0BC;AApCD,2CAA6B;AAE7B,8DAAuE;AACvE,yCAAoC;AACpC,uCAAyC;AAEzC,6DAA6D;AAC7D,aAAa;AACb,MAAM,SAAS,GAAG,IAAA,mBAAO,EAAC,IAAA,wBAAa,EAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAEnD,KAAK,UAAU,SAAS,CAC7B,IAAY,EACZ,gBAAyB;IAEzB,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;QACvB,OAAO;YACL,KAAK,EAAE,GAAG,EAAE,GAAE,CAAC;YACf,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC;SACR,CAAC;IACX,CAAC;IACD,MAAM,SAAS,GAAG,IAAI,4BAAS,EAAE,CAAC;IAElC,OAAO,SAAS,CAAC,MAAM,CAAC;QACtB,gBAAgB,EAAE;YAChB,cAAc,EAAE,IAAA,oCAAiB,EAAC,EAAE,CAAC;YACrC,YAAY,EAAE,KAAK;SACpB;QACD,MAAM,EAAE,gBAAgB,IAAI,IAAA,oCAAiB,EAAC,uBAAuB,CAAC;QACtE,gBAAgB,EAAE,EAAE;QACpB,SAAS,EAAE;YACT,IAAI,EAAE,IAAI;YACV,YAAY,EAAE,KAAK;YACnB,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,EAAE,qBAAqB,CAAC;YAClE,YAAY,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,IAAI,EAAE,CAAC;SACpD;KACF,CAAC,CAAC;AACL,CAAC"}
|
package/dist/esm/createServer.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
// Taken from https://github.com/comunica/comunica/blob/b237be4265c353a62a876187d9e21e3bc05123a3/engines/query-sparql/test/QuerySparql-solid-test.ts#L9
|
|
2
2
|
import * as path from "path";
|
|
3
3
|
import { AppRunner, resolveModulePath } from "@solid/community-server";
|
|
4
|
+
import { dirname } from "node:path";
|
|
5
|
+
import { fileURLToPath } from "node:url";
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
4
9
|
export async function createApp(port, customConfigPath) {
|
|
5
10
|
if (process.env.SERVER) {
|
|
6
11
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createServer.js","sourceRoot":"","sources":["../../src/createServer.ts"],"names":[],"mappings":"AAAA,uJAAuJ;AAEvJ,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,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CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createServer.d.ts","sourceRoot":"","sources":["../../src/createServer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"createServer.d.ts","sourceRoot":"","sources":["../../src/createServer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AASnD,wBAAsB,SAAS,CAC7B,IAAI,EAAE,MAAM,EACZ,gBAAgB,CAAC,EAAE,MAAM,GACxB,OAAO,CAAC,GAAG,CAAC,CAuBd"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ldo/test-solid-server",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.22",
|
|
4
4
|
"description": "A solid server to be used in jest tests",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cjs/index.js",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "a5b477f627fe9a1d9f9be8dae5a0fab441dcd7e5"
|
|
48
48
|
}
|
package/src/createServer.ts
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
import * as path from "path";
|
|
4
4
|
import type { App } from "@solid/community-server";
|
|
5
5
|
import { AppRunner, resolveModulePath } from "@solid/community-server";
|
|
6
|
+
import { dirname } from "node:path";
|
|
7
|
+
import { fileURLToPath } from "node:url";
|
|
8
|
+
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
6
12
|
|
|
7
13
|
export async function createApp(
|
|
8
14
|
port: number,
|