@jskit-ai/database-runtime-mysql 0.1.159 → 0.1.161
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/database-runtime-mysql",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.161",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test"
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"./shared/dialect": "./src/shared/dialect.js"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@jskit-ai/database-runtime": "0.1.
|
|
16
|
-
"@jskit-ai/kernel": "0.1.
|
|
15
|
+
"@jskit-ai/database-runtime": "0.1.163",
|
|
16
|
+
"@jskit-ai/kernel": "0.1.163",
|
|
17
17
|
"mysql2": "^3.11.2"
|
|
18
18
|
},
|
|
19
19
|
"jskit": {
|
|
@@ -5,14 +5,19 @@ import test from "node:test";
|
|
|
5
5
|
const patternUrl = new URL("../patterns/mysql-application/", import.meta.url);
|
|
6
6
|
|
|
7
7
|
test("MySQL application pattern is driver-fixed and questionnaire-free", async () => {
|
|
8
|
-
const [document, manifestSource, knexfile] = await Promise.all([
|
|
8
|
+
const [document, manifestSource, packageSource, knexfile] = await Promise.all([
|
|
9
9
|
readFile(new URL("PATTERN.md", patternUrl), "utf8"),
|
|
10
10
|
readFile(new URL("example/package.json", patternUrl), "utf8"),
|
|
11
|
+
readFile(new URL("../package.json", import.meta.url), "utf8"),
|
|
11
12
|
readFile(new URL("example/knexfile.js", patternUrl), "utf8")
|
|
12
13
|
]);
|
|
13
14
|
const manifest = JSON.parse(manifestSource);
|
|
15
|
+
const packageManifest = JSON.parse(packageSource);
|
|
14
16
|
|
|
15
|
-
assert.equal(
|
|
17
|
+
assert.equal(
|
|
18
|
+
manifest.dependencies["@jskit-ai/database-runtime-mysql"],
|
|
19
|
+
packageManifest.version
|
|
20
|
+
);
|
|
16
21
|
assert.match(knexfile, /client: "mysql2"/u);
|
|
17
22
|
assert.doesNotMatch(`${document}\n${knexfile}`, /promptLabel|promptHint|\$\{option:/u);
|
|
18
23
|
});
|