@tachybase/plugin-mock-collections 1.6.0 → 1.6.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/dist/externalVersion.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
"@tachybase/client": "1.6.
|
|
3
|
-
"@tachybase/module-collection": "1.6.
|
|
4
|
-
"@tego/server": "1.
|
|
2
|
+
"@tachybase/client": "1.6.1",
|
|
3
|
+
"@tachybase/module-collection": "1.6.1",
|
|
4
|
+
"@tego/server": "1.6.0-alpha.9",
|
|
5
5
|
"lodash": "4.17.21",
|
|
6
6
|
"pg": "8.16.3",
|
|
7
7
|
"dayjs": "1.11.13"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@faker-js/faker","version":"9.9.0","description":"Generate massive amounts of fake contextual data","keywords":["faker","faker.js","fakerjs","faker-js","fake data generator","fake data","fake-data","fake-generator","fake-data-generator","fake content generator","fake contextual data generator","fake contextual data"],"homepage":"https://fakerjs.dev","bugs":{"url":"https://github.com/faker-js/faker/issues"},"repository":{"type":"git","url":"git+https://github.com/faker-js/faker.git"},"funding":[{"type":"opencollective","url":"https://opencollective.com/fakerjs"}],"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./locale/*":{"require":{"types":"./dist/locale/*.d.cts","default":"./dist/locale/*.cjs"},"default":{"types":"./dist/locale/*.d.ts","default":"./dist/locale/*.js"}},"./package.json":"./package.json"},"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","typesVersions":{">=5.0":{".":["./dist/index.d.ts"],"locale/*":["./dist/locale/*.d.ts"]}},"files":["CHANGELOG.md","dist"],"devDependencies":{"@eslint/compat":"1.3.1","@eslint/js":"9.30.0","@stylistic/eslint-plugin":"5.1.0","@types/node":"22.15.34","@types/sanitize-html":"2.16.0","@types/semver":"7.7.0","@types/validator":"13.15.2","@vitest/coverage-v8":"3.2.4","@vitest/eslint-plugin":"1.3.3","@vitest/ui":"3.2.4","@vueuse/core":"13.4.0","commit-and-tag-version":"12.5.1","cypress":"14.5.0","eslint":"9.30.0","eslint-config-prettier":"10.1.5","eslint-plugin-file-progress":"3.0.2","eslint-plugin-jsdoc":"51.3.1","eslint-plugin-prettier":"5.5.1","eslint-plugin-unicorn":"59.0.1","jiti":"2.4.2","npm-run-all2":"7.0.2","prettier":"3.6.2","prettier-plugin-organize-imports":"4.1.0","prettier-plugin-pkg":"0.21.1","sanitize-html":"2.17.0","semver":"7.7.2","ts-morph":"26.0.0","tsup":"8.5.0","tsx":"4.20.3","typescript":"5.8.3","typescript-eslint":"8.35.1","validator":"13.15.15","vitepress":"1.6.3","vitest":"3.2.4","vue":"3.5.17","vue-tsc":"2.2.10"},"engines":{"node":">=18.0.0","npm":">=9.0.0"},"scripts":{"clean":"git clean -fdx --exclude _local","build:clean":"git clean -fX dist","build:code":"tsup-node","build":"run-s build:clean build:code","generate":"run-s generate:locales generate:api-docs","generate:api-docs":"tsx ./scripts/apidocs.ts","generate:locales":"tsx ./scripts/generate-locales.ts","docs:build":"run-s generate:api-docs docs:build:embedded docs:build:run","docs:build:embedded":"tsup-node --entry.faker src/index.ts --format esm --outDir docs/public --no-dts --no-clean","docs:build:run":"vitepress build docs","docs:build:ci":"run-s build docs:build","docs:dev":"run-s generate:api-docs docs:build:embedded docs:dev:run","docs:dev:run":"vitepress dev docs","docs:serve":"vitepress serve docs --port 5173","docs:diff":"tsx ./scripts/diff.ts","docs:test:e2e:ci":"run-s docs:build:ci docs:test:e2e:install docs:test:e2e:run","docs:test:e2e:install":"cypress install","docs:test:e2e:run":"run-p --race docs:serve \"cypress run\"","docs:test:e2e:open":"run-p --race docs:serve \"cypress open\"","format":"prettier --cache --write .","lint":"eslint --cache --cache-strategy content .","ts-check":"tsc","test":"vitest","test:update-snapshots":"vitest run -u","coverage":"vitest run --coverage","integration-test":"vitest -c vitest.it-config.ts","cypress":"cypress","release":"commit-and-tag-version --commit-all","preflight":"pnpm install && run-s generate format lint build test:update-snapshots ts-check"},"_lastModified":"2025-
|
|
1
|
+
{"name":"@faker-js/faker","version":"9.9.0","description":"Generate massive amounts of fake contextual data","keywords":["faker","faker.js","fakerjs","faker-js","fake data generator","fake data","fake-data","fake-generator","fake-data-generator","fake content generator","fake contextual data generator","fake contextual data"],"homepage":"https://fakerjs.dev","bugs":{"url":"https://github.com/faker-js/faker/issues"},"repository":{"type":"git","url":"git+https://github.com/faker-js/faker.git"},"funding":[{"type":"opencollective","url":"https://opencollective.com/fakerjs"}],"license":"MIT","sideEffects":false,"type":"module","exports":{".":{"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"./locale/*":{"require":{"types":"./dist/locale/*.d.cts","default":"./dist/locale/*.cjs"},"default":{"types":"./dist/locale/*.d.ts","default":"./dist/locale/*.js"}},"./package.json":"./package.json"},"main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","typesVersions":{">=5.0":{".":["./dist/index.d.ts"],"locale/*":["./dist/locale/*.d.ts"]}},"files":["CHANGELOG.md","dist"],"devDependencies":{"@eslint/compat":"1.3.1","@eslint/js":"9.30.0","@stylistic/eslint-plugin":"5.1.0","@types/node":"22.15.34","@types/sanitize-html":"2.16.0","@types/semver":"7.7.0","@types/validator":"13.15.2","@vitest/coverage-v8":"3.2.4","@vitest/eslint-plugin":"1.3.3","@vitest/ui":"3.2.4","@vueuse/core":"13.4.0","commit-and-tag-version":"12.5.1","cypress":"14.5.0","eslint":"9.30.0","eslint-config-prettier":"10.1.5","eslint-plugin-file-progress":"3.0.2","eslint-plugin-jsdoc":"51.3.1","eslint-plugin-prettier":"5.5.1","eslint-plugin-unicorn":"59.0.1","jiti":"2.4.2","npm-run-all2":"7.0.2","prettier":"3.6.2","prettier-plugin-organize-imports":"4.1.0","prettier-plugin-pkg":"0.21.1","sanitize-html":"2.17.0","semver":"7.7.2","ts-morph":"26.0.0","tsup":"8.5.0","tsx":"4.20.3","typescript":"5.8.3","typescript-eslint":"8.35.1","validator":"13.15.15","vitepress":"1.6.3","vitest":"3.2.4","vue":"3.5.17","vue-tsc":"2.2.10"},"engines":{"node":">=18.0.0","npm":">=9.0.0"},"scripts":{"clean":"git clean -fdx --exclude _local","build:clean":"git clean -fX dist","build:code":"tsup-node","build":"run-s build:clean build:code","generate":"run-s generate:locales generate:api-docs","generate:api-docs":"tsx ./scripts/apidocs.ts","generate:locales":"tsx ./scripts/generate-locales.ts","docs:build":"run-s generate:api-docs docs:build:embedded docs:build:run","docs:build:embedded":"tsup-node --entry.faker src/index.ts --format esm --outDir docs/public --no-dts --no-clean","docs:build:run":"vitepress build docs","docs:build:ci":"run-s build docs:build","docs:dev":"run-s generate:api-docs docs:build:embedded docs:dev:run","docs:dev:run":"vitepress dev docs","docs:serve":"vitepress serve docs --port 5173","docs:diff":"tsx ./scripts/diff.ts","docs:test:e2e:ci":"run-s docs:build:ci docs:test:e2e:install docs:test:e2e:run","docs:test:e2e:install":"cypress install","docs:test:e2e:run":"run-p --race docs:serve \"cypress run\"","docs:test:e2e:open":"run-p --race docs:serve \"cypress open\"","format":"prettier --cache --write .","lint":"eslint --cache --cache-strategy content .","ts-check":"tsc","test":"vitest","test:update-snapshots":"vitest run -u","coverage":"vitest run --coverage","integration-test":"vitest -c vitest.it-config.ts","cypress":"cypress","release":"commit-and-tag-version --commit-all","preflight":"pnpm install && run-s generate format lint build test:update-snapshots ts-check"},"_lastModified":"2025-12-05T07:15:34.383Z"}
|
package/dist/server/index.js
CHANGED
|
@@ -322,22 +322,22 @@ class PluginMockCollectionsServer extends import_server.Plugin {
|
|
|
322
322
|
const dbName = this.app.db.options.database;
|
|
323
323
|
const externalDB = `${dbName}_external_test`;
|
|
324
324
|
let client = new import_pg.Client({
|
|
325
|
-
user:
|
|
326
|
-
password:
|
|
327
|
-
host:
|
|
328
|
-
database:
|
|
329
|
-
port:
|
|
325
|
+
user: this.app.db.options.username,
|
|
326
|
+
password: this.app.db.options.password,
|
|
327
|
+
host: this.app.db.options.host,
|
|
328
|
+
database: this.app.db.options.database,
|
|
329
|
+
port: this.app.db.options.port
|
|
330
330
|
});
|
|
331
331
|
await client.connect();
|
|
332
332
|
await client.query(`DROP DATABASE IF EXISTS ${externalDB}`);
|
|
333
333
|
await client.query(`CREATE DATABASE ${externalDB}`);
|
|
334
334
|
await client.end();
|
|
335
335
|
client = new import_pg.Client({
|
|
336
|
-
user:
|
|
337
|
-
password:
|
|
338
|
-
host:
|
|
336
|
+
user: this.app.db.options.username,
|
|
337
|
+
password: this.app.db.options.password,
|
|
338
|
+
host: this.app.db.options.host,
|
|
339
339
|
database: externalDB,
|
|
340
|
-
port:
|
|
340
|
+
port: this.app.db.options.port
|
|
341
341
|
});
|
|
342
342
|
await client.connect();
|
|
343
343
|
const sqlFile = import_node_path.default.resolve(__dirname, "./external.sql");
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/plugin-mock-collections",
|
|
3
3
|
"displayName": "mock-collections",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.1",
|
|
5
5
|
"description": "mock-collections",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"main": "./dist/server/index.js",
|
|
8
8
|
"dependencies": {},
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@faker-js/faker": "9.9.0",
|
|
11
|
-
"@tachybase/test": "1.
|
|
12
|
-
"@tego/client": "1.
|
|
13
|
-
"@tego/server": "1.
|
|
11
|
+
"@tachybase/test": "1.6.0-alpha.9",
|
|
12
|
+
"@tego/client": "1.6.0-alpha.9",
|
|
13
|
+
"@tego/server": "1.6.0-alpha.9",
|
|
14
14
|
"dayjs": "1.11.13",
|
|
15
15
|
"lodash": "4.17.21",
|
|
16
16
|
"pg": "^8.16.3",
|
|
17
|
-
"@tachybase/
|
|
18
|
-
"@tachybase/module-
|
|
19
|
-
"@tachybase/
|
|
17
|
+
"@tachybase/module-collection": "1.6.1",
|
|
18
|
+
"@tachybase/module-error-handler": "1.6.1",
|
|
19
|
+
"@tachybase/client": "1.6.1"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {}
|
|
22
22
|
}
|