@warlock.js/cascade 4.1.6 → 4.1.8
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/esm/cli/commands/migrate-export-sql.mjs +1 -1
- package/esm/cli/commands/migrate-list.mjs +1 -1
- package/esm/cli/commands/migrate-rollback.mjs +1 -1
- package/esm/cli/commands/migrate.mjs +1 -1
- package/esm/cli/connection-from-env.mjs +1 -1
- package/esm/cli/index.mjs +1 -1
- package/esm/cli/load-migrations.mjs +1 -1
- package/esm/cli/printers.mjs +1 -1
- package/esm/cli/setup-logger.mjs +1 -1
- package/esm/cli/with-cli-connection.mjs +1 -1
- package/esm/cli.mjs +1 -1
- package/esm/context/database-data-source-context.d.mts +1 -1
- package/esm/context/database-data-source-context.mjs +1 -1
- package/esm/context/database-transaction-context.d.mts +1 -1
- package/esm/context/database-transaction-context.mjs +1 -1
- package/esm/contracts/database-driver.contract.d.mts +1 -1
- package/esm/contracts/database-id-generator.contract.d.mts +1 -1
- package/esm/contracts/database-remover.contract.d.mts +1 -1
- package/esm/contracts/database-restorer.contract.d.mts +1 -1
- package/esm/contracts/database-writer.contract.d.mts +1 -1
- package/esm/contracts/driver-blueprint.contract.d.mts +1 -1
- package/esm/contracts/migration-driver.contract.d.mts +1 -1
- package/esm/contracts/query-builder.contract.d.mts +1 -1
- package/esm/contracts/sync-adapter.contract.d.mts +1 -1
- package/esm/data-source/data-source-registry.d.mts +1 -1
- package/esm/data-source/data-source-registry.mjs +1 -1
- package/esm/data-source/data-source.d.mts +1 -1
- package/esm/data-source/data-source.mjs +1 -1
- package/esm/database-dirty-tracker.d.mts +1 -1
- package/esm/database-dirty-tracker.mjs +1 -1
- package/esm/drivers/mongodb/mongodb-blueprint.mjs +1 -1
- package/esm/drivers/mongodb/mongodb-driver.d.mts +1 -1
- package/esm/drivers/mongodb/mongodb-driver.mjs +1 -1
- package/esm/drivers/mongodb/mongodb-id-generator.d.mts +1 -1
- package/esm/drivers/mongodb/mongodb-id-generator.mjs +1 -1
- package/esm/drivers/mongodb/mongodb-migration-driver.d.mts +1 -1
- package/esm/drivers/mongodb/mongodb-migration-driver.mjs +1 -1
- package/esm/drivers/mongodb/mongodb-query-builder.d.mts +1 -1
- package/esm/drivers/mongodb/mongodb-query-builder.mjs +1 -1
- package/esm/drivers/mongodb/mongodb-query-operations.d.mts +1 -1
- package/esm/drivers/mongodb/mongodb-query-operations.mjs +1 -1
- package/esm/drivers/mongodb/mongodb-query-parser.d.mts +1 -1
- package/esm/drivers/mongodb/mongodb-query-parser.mjs +1 -1
- package/esm/drivers/mongodb/mongodb-sync-adapter.d.mts +1 -1
- package/esm/drivers/mongodb/mongodb-sync-adapter.mjs +1 -1
- package/esm/drivers/mongodb/types.d.mts +1 -1
- package/esm/drivers/postgres/postgres-blueprint.d.mts +1 -1
- package/esm/drivers/postgres/postgres-blueprint.mjs +1 -1
- package/esm/drivers/postgres/postgres-dialect.d.mts +1 -1
- package/esm/drivers/postgres/postgres-dialect.mjs +1 -1
- package/esm/drivers/postgres/postgres-driver.d.mts +1 -1
- package/esm/drivers/postgres/postgres-driver.mjs +1 -1
- package/esm/drivers/postgres/postgres-migration-driver.d.mts +1 -1
- package/esm/drivers/postgres/postgres-migration-driver.mjs +1 -1
- package/esm/drivers/postgres/postgres-query-builder.d.mts +1 -1
- package/esm/drivers/postgres/postgres-query-builder.mjs +1 -1
- package/esm/drivers/postgres/postgres-query-parser.d.mts +1 -1
- package/esm/drivers/postgres/postgres-query-parser.mjs +1 -1
- package/esm/drivers/postgres/postgres-sql-serializer.mjs +1 -1
- package/esm/drivers/postgres/postgres-sync-adapter.d.mts +1 -1
- package/esm/drivers/postgres/postgres-sync-adapter.mjs +1 -1
- package/esm/drivers/postgres/types.d.mts +1 -1
- package/esm/drivers/sql/sql-dialect.contract.d.mts +1 -1
- package/esm/drivers/sql/sql-types.d.mts +1 -1
- package/esm/errors/missing-data-source.error.d.mts +1 -1
- package/esm/errors/missing-data-source.error.mjs +1 -1
- package/esm/errors/transaction-rollback.error.d.mts +1 -1
- package/esm/errors/transaction-rollback.error.mjs +1 -1
- package/esm/events/model-events.d.mts +1 -1
- package/esm/events/model-events.mjs +1 -1
- package/esm/expressions/aggregate-expressions.d.mts +1 -1
- package/esm/expressions/aggregate-expressions.mjs +1 -1
- package/esm/index.d.mts +3 -1
- package/esm/migration/column-builder.d.mts +1 -1
- package/esm/migration/column-builder.mjs +1 -1
- package/esm/migration/column-helpers.d.mts +1 -1
- package/esm/migration/column-helpers.mjs +1 -1
- package/esm/migration/foreign-key-builder.d.mts +1 -1
- package/esm/migration/foreign-key-builder.mjs +1 -1
- package/esm/migration/migration-runner.d.mts +1 -1
- package/esm/migration/migration-runner.mjs +1 -1
- package/esm/migration/migration.d.mts +1 -1
- package/esm/migration/migration.mjs +1 -1
- package/esm/migration/sql-grammar.mjs +1 -1
- package/esm/migration/sql-serializer.d.mts +1 -1
- package/esm/migration/sql-serializer.mjs +1 -1
- package/esm/migration/types.d.mts +1 -1
- package/esm/model/methods/accessor-methods.mjs +1 -1
- package/esm/model/methods/delete-methods.mjs +1 -1
- package/esm/model/methods/dirty-methods.mjs +1 -1
- package/esm/model/methods/hydration-methods.mjs +1 -1
- package/esm/model/methods/instance-event-methods.mjs +1 -1
- package/esm/model/methods/meta-methods.mjs +1 -1
- package/esm/model/methods/pivot-methods.mjs +1 -1
- package/esm/model/methods/query-methods.mjs +1 -1
- package/esm/model/methods/restore-methods.mjs +1 -1
- package/esm/model/methods/scope-methods.mjs +1 -1
- package/esm/model/methods/serialization-methods.mjs +1 -1
- package/esm/model/methods/static-event-methods.mjs +1 -1
- package/esm/model/methods/write-methods.mjs +1 -1
- package/esm/model/model.d.mts +1 -1
- package/esm/model/model.mjs +1 -1
- package/esm/model/model.types.d.mts +1 -1
- package/esm/model/register-model.d.mts +1 -1
- package/esm/model/register-model.mjs +1 -1
- package/esm/model/relation-decorators.d.mts +1 -1
- package/esm/model/relation-decorators.mjs +1 -1
- package/esm/operations/database.d.mts +1 -1
- package/esm/operations/database.mjs +1 -1
- package/esm/operations/migrations.d.mts +1 -1
- package/esm/operations/migrations.mjs +1 -1
- package/esm/query-builder/query-builder.d.mts +1 -1
- package/esm/query-builder/query-builder.mjs +1 -1
- package/esm/relations/key-conventions.mjs +1 -1
- package/esm/relations/pivot-operations.d.mts +1 -1
- package/esm/relations/pivot-operations.mjs +1 -1
- package/esm/relations/relation-hydrator.d.mts +1 -1
- package/esm/relations/relation-hydrator.mjs +1 -1
- package/esm/relations/relation-loader.d.mts +1 -1
- package/esm/relations/relation-loader.mjs +1 -1
- package/esm/relations/types.d.mts +1 -1
- package/esm/remover/database-remover.d.mts +1 -1
- package/esm/remover/database-remover.mjs +1 -1
- package/esm/restorer/database-restorer.d.mts +1 -1
- package/esm/restorer/database-restorer.mjs +1 -1
- package/esm/sql-database-dirty-tracker.d.mts +1 -1
- package/esm/sql-database-dirty-tracker.mjs +1 -1
- package/esm/sync/model-events.mjs +1 -1
- package/esm/sync/model-sync-operation.d.mts +1 -1
- package/esm/sync/model-sync-operation.mjs +1 -1
- package/esm/sync/model-sync.d.mts +1 -1
- package/esm/sync/model-sync.mjs +1 -1
- package/esm/sync/sync-context.d.mts +1 -1
- package/esm/sync/sync-context.mjs +1 -1
- package/esm/sync/sync-manager.d.mts +1 -1
- package/esm/sync/sync-manager.mjs +1 -1
- package/esm/sync/types.d.mts +1 -1
- package/esm/types.d.mts +1 -1
- package/esm/utils/connect-to-database.d.mts +1 -1
- package/esm/utils/connect-to-database.mjs +1 -1
- package/esm/utils/database-writer.utils.d.mts +1 -1
- package/esm/utils/database-writer.utils.mjs +1 -1
- package/esm/utils/define-model.d.mts +1 -1
- package/esm/utils/define-model.mjs +1 -1
- package/esm/utils/is-valid-date-value.mjs +1 -1
- package/esm/utils/once-connected.d.mts +1 -1
- package/esm/utils/once-connected.mjs +1 -1
- package/esm/validation/database-seal-plugins.mjs +1 -1
- package/esm/validation/database-writer-validation-error.d.mts +1 -1
- package/esm/validation/database-writer-validation-error.mjs +1 -1
- package/esm/validation/mutators/embed-mutator.mjs +1 -1
- package/esm/validation/plugins/database-rules-plugin.d.mts +1 -1
- package/esm/validation/plugins/database-rules-plugin.mjs +1 -1
- package/esm/validation/plugins/embed-validator-plugin.d.mts +1 -1
- package/esm/validation/plugins/embed-validator-plugin.mjs +1 -1
- package/esm/validation/rules/database-model-rule.mjs +1 -1
- package/esm/validation/rules/exists-rule.mjs +1 -1
- package/esm/validation/rules/unique-rule.mjs +1 -1
- package/esm/validation/transformers/embed-model-transformer.mjs +1 -1
- package/esm/validation/types.d.mts +1 -1
- package/esm/validation/validators/embed-validator.d.mts +1 -1
- package/esm/validation/validators/embed-validator.mjs +1 -1
- package/esm/writer/database-writer.d.mts +1 -1
- package/esm/writer/database-writer.mjs +1 -1
- package/package.json +4 -4
|
@@ -3,7 +3,7 @@ import { DEFAULT_MAX_SYNC_DEPTH } from "./sync-context.mjs";
|
|
|
3
3
|
import { SyncManager } from "./sync-manager.mjs";
|
|
4
4
|
import events from "@mongez/events";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/cascade/src/sync/model-sync-operation.ts
|
|
7
7
|
/**
|
|
8
8
|
* Model sync operation class.
|
|
9
9
|
*
|
|
@@ -2,7 +2,7 @@ import { ChildModel } from "../model/model.types.mjs";
|
|
|
2
2
|
import { ModelSyncContract, ModelSyncOperationContract } from "./types.mjs";
|
|
3
3
|
import { Model } from "../model/model.mjs";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/cascade/src/sync/model-sync.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* ModelSync facade implementation.
|
|
8
8
|
*
|
package/esm/sync/model-sync.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { SyncConfig, SyncResult } from "./types.mjs";
|
|
|
3
3
|
import { Model } from "../model/model.mjs";
|
|
4
4
|
import { DriverContract } from "../contracts/database-driver.contract.mjs";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/cascade/src/sync/sync-manager.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* Manages sync operations across models with multi-level support.
|
|
9
9
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DEFAULT_MAX_SYNC_DEPTH, SyncContextManager } from "./sync-context.mjs";
|
|
2
2
|
import { Model } from "../model/model.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/cascade/src/sync/sync-manager.ts
|
|
5
5
|
/**
|
|
6
6
|
* Manages sync operations across models with multi-level support.
|
|
7
7
|
*/
|
package/esm/sync/types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChildModel } from "../model/model.types.mjs";
|
|
2
2
|
import { Model } from "../model/model.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/cascade/src/sync/types.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Context information for a sync operation.
|
|
7
7
|
* Tracks the source, target, chain, and results of a sync operation.
|
package/esm/types.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { DeleteStrategy, MigrationDefaults, ModelDefaults, RelationDefaults } fr
|
|
|
2
2
|
import { DriverContract, TransactionContext } from "../contracts/database-driver.contract.mjs";
|
|
3
3
|
import { DataSource } from "../data-source/data-source.mjs";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/cascade/src/utils/connect-to-database.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Supported database driver types.
|
|
8
8
|
*/
|
|
@@ -4,7 +4,7 @@ import { MongoDbDriver } from "../drivers/mongodb/mongodb-driver.mjs";
|
|
|
4
4
|
import { PostgresDriver } from "../drivers/postgres/postgres-driver.mjs";
|
|
5
5
|
import "../drivers/postgres/index.mjs";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../@warlock.js/cascade/src/utils/connect-to-database.ts
|
|
8
8
|
/**
|
|
9
9
|
* Connect to a database and register the data source.
|
|
10
10
|
*
|
|
@@ -3,7 +3,7 @@ import { ModelSchema } from "../model/model.types.mjs";
|
|
|
3
3
|
import { Model } from "../model/model.mjs";
|
|
4
4
|
import { Infer, ObjectValidator } from "@warlock.js/seal";
|
|
5
5
|
|
|
6
|
-
//#region
|
|
6
|
+
//#region ../@warlock.js/cascade/src/utils/define-model.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* Configuration options for defining a model.
|
|
9
9
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { registerModelInRegistry } from "../model/register-model.mjs";
|
|
2
2
|
import { Model } from "../model/model.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/cascade/src/utils/define-model.ts
|
|
5
5
|
/**
|
|
6
6
|
* Define a model with a clean, concise API.
|
|
7
7
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { dataSourceRegistry } from "../data-source/data-source-registry.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/cascade/src/utils/once-connected.ts
|
|
4
4
|
/**
|
|
5
5
|
* Execute a callback once the driver is connected.
|
|
6
6
|
*
|
|
@@ -2,7 +2,7 @@ import { databaseRulesPlugin } from "./plugins/database-rules-plugin.mjs";
|
|
|
2
2
|
import { embedValidator } from "./plugins/embed-validator-plugin.mjs";
|
|
3
3
|
import { registerPlugin } from "@warlock.js/seal";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/cascade/src/validation/database-seal-plugins.ts
|
|
6
6
|
registerPlugin(embedValidator);
|
|
7
7
|
registerPlugin(databaseRulesPlugin);
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ValidationResult } from "@warlock.js/seal";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/cascade/src/validation/database-writer-validation-error.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Error thrown when model validation fails during database write operations.
|
|
6
6
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { colors } from "@mongez/copper";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/cascade/src/validation/database-writer-validation-error.ts
|
|
4
4
|
/**
|
|
5
5
|
* Error thrown when model validation fails during database write operations.
|
|
6
6
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getModelFromRegistry } from "../../model/register-model.mjs";
|
|
2
2
|
import { Model } from "../../model/model.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/cascade/src/validation/mutators/embed-mutator.ts
|
|
5
5
|
const databaseModelMutator = async (value, context) => {
|
|
6
6
|
let { model: ModelClass } = context?.options || {};
|
|
7
7
|
if (typeof ModelClass === "string") ModelClass = getModelFromRegistry(ModelClass);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChildModel } from "../../model/model.types.mjs";
|
|
2
2
|
import { Model } from "../../model/model.mjs";
|
|
3
3
|
import { ExistsRuleOptions, UniqueRuleOptions } from "../types.mjs";
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/cascade/src/validation/plugins/database-rules-plugin.d.ts
|
|
5
5
|
declare module "@warlock.js/seal" {
|
|
6
6
|
interface ScalarValidator {
|
|
7
7
|
/** Value must be unique in database */
|
|
@@ -2,7 +2,7 @@ import { existsRule } from "../rules/exists-rule.mjs";
|
|
|
2
2
|
import { uniqueRule } from "../rules/unique-rule.mjs";
|
|
3
3
|
import { NumberValidator, ScalarValidator, StringValidator } from "@warlock.js/seal";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/cascade/src/validation/plugins/database-rules-plugin.ts
|
|
6
6
|
/**
|
|
7
7
|
* Cascade's database-rules plugin for Seal.
|
|
8
8
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChildModel } from "../../model/model.types.mjs";
|
|
2
2
|
import { EmbedModelValidator } from "../validators/embed-validator.mjs";
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/cascade/src/validation/plugins/embed-validator-plugin.d.ts
|
|
4
4
|
type EmbedOptions = {
|
|
5
5
|
errorMessage?: string;
|
|
6
6
|
embed?: string | string[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmbedModelValidator } from "../validators/embed-validator.mjs";
|
|
2
2
|
import { v } from "@warlock.js/seal";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/cascade/src/validation/plugins/embed-validator-plugin.ts
|
|
5
5
|
/**
|
|
6
6
|
* File validation plugin for Seal
|
|
7
7
|
*/
|
|
@@ -2,7 +2,7 @@ import { getModelFromRegistry } from "../../model/register-model.mjs";
|
|
|
2
2
|
import { Model } from "../../model/model.mjs";
|
|
3
3
|
import { VALID_RULE, invalidRule } from "@warlock.js/seal";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/cascade/src/validation/rules/database-model-rule.ts
|
|
6
6
|
const databaseModelRule = {
|
|
7
7
|
name: "databaseModel",
|
|
8
8
|
defaultErrorMessage: "The :input must be a valid :model model",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveModelClass } from "../../model/register-model.mjs";
|
|
2
2
|
import { VALID_RULE, invalidRule } from "@warlock.js/seal";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/cascade/src/validation/rules/exists-rule.ts
|
|
5
5
|
/**
|
|
6
6
|
* Validates that a record exists in the database for the given column/value.
|
|
7
7
|
*
|
|
@@ -2,7 +2,7 @@ import { resolveModelClass } from "../../model/register-model.mjs";
|
|
|
2
2
|
import { get } from "@mongez/reinforcements";
|
|
3
3
|
import { VALID_RULE, invalidRule } from "@warlock.js/seal";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/cascade/src/validation/rules/unique-rule.ts
|
|
6
6
|
/**
|
|
7
7
|
* Validates that a value is unique against a database column.
|
|
8
8
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Model } from "../../model/model.mjs";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region ../@warlock.js/cascade/src/validation/transformers/embed-model-transformer.ts
|
|
4
4
|
const databaseModelTransformer = (value, context) => {
|
|
5
5
|
const embed = context.options.embed ?? "embedData";
|
|
6
6
|
if (value instanceof Model === false && !Array.isArray(value)) return value;
|
|
@@ -2,7 +2,7 @@ import { ChildModel } from "../model/model.types.mjs";
|
|
|
2
2
|
import { Model } from "../model/model.mjs";
|
|
3
3
|
import { QueryBuilderContract } from "../contracts/query-builder.contract.mjs";
|
|
4
4
|
|
|
5
|
-
//#region
|
|
5
|
+
//#region ../@warlock.js/cascade/src/validation/types.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* Base options shared by all database-backed validation rules.
|
|
8
8
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChildModel } from "../../model/model.types.mjs";
|
|
2
2
|
import { BaseValidator } from "@warlock.js/seal";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/cascade/src/validation/validators/embed-validator.d.ts
|
|
5
5
|
declare class EmbedModelValidator extends BaseValidator {
|
|
6
6
|
/**
|
|
7
7
|
* Check if value is a string type
|
|
@@ -4,7 +4,7 @@ import { databaseModelTransformer } from "../transformers/embed-model-transforme
|
|
|
4
4
|
import { Model } from "../../model/model.mjs";
|
|
5
5
|
import { BaseValidator, arrayRule } from "@warlock.js/seal";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../@warlock.js/cascade/src/validation/validators/embed-validator.ts
|
|
8
8
|
var EmbedModelValidator = class extends BaseValidator {
|
|
9
9
|
/**
|
|
10
10
|
* Check if value is a string type
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Model } from "../model/model.mjs";
|
|
2
2
|
import { WriterContract, WriterOptions, WriterResult } from "../contracts/database-writer.contract.mjs";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region ../@warlock.js/cascade/src/writer/database-writer.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Database writer service that orchestrates model persistence.
|
|
7
7
|
*
|
|
@@ -4,7 +4,7 @@ import "../validation/index.mjs";
|
|
|
4
4
|
import events from "@mongez/events";
|
|
5
5
|
import { getSealConfig, v } from "@warlock.js/seal";
|
|
6
6
|
|
|
7
|
-
//#region
|
|
7
|
+
//#region ../@warlock.js/cascade/src/writer/database-writer.ts
|
|
8
8
|
/**
|
|
9
9
|
* Database writer service that orchestrates model persistence.
|
|
10
10
|
*
|
package/package.json
CHANGED
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"@mongez/events": "^2.2.6",
|
|
28
28
|
"@mongez/reinforcements": "^3.2.0",
|
|
29
29
|
"@mongez/supportive-is": "^2.1.3",
|
|
30
|
-
"@warlock.js/context": "
|
|
31
|
-
"@warlock.js/logger": "
|
|
32
|
-
"@warlock.js/seal": "
|
|
30
|
+
"@warlock.js/context": "*",
|
|
31
|
+
"@warlock.js/logger": "*",
|
|
32
|
+
"@warlock.js/seal": "*",
|
|
33
33
|
"citty": "^0.2.2",
|
|
34
34
|
"fast-glob": "^3.3.3"
|
|
35
35
|
},
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"bin": {
|
|
41
41
|
"cascade": "bin/cascade.js"
|
|
42
42
|
},
|
|
43
|
-
"version": "4.1.
|
|
43
|
+
"version": "4.1.8",
|
|
44
44
|
"type": "module",
|
|
45
45
|
"main": "./esm/index.mjs",
|
|
46
46
|
"module": "./esm/index.mjs",
|