@guren/orm 2.16.0 → 2.16.2
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/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2650,6 +2650,7 @@ var Model = class Model {
|
|
|
2650
2650
|
const lifecycle = modelLifecycle(this.name, "update", this.hooks, this.observers);
|
|
2651
2651
|
await lifecycle.before(payload);
|
|
2652
2652
|
const result = await this.newQuery(writeOptions).where(where)[PREPARED_UPDATE](payload);
|
|
2653
|
+
if (result == null) return result;
|
|
2653
2654
|
await lifecycle.after(result);
|
|
2654
2655
|
return this.applyReadTransforms(result);
|
|
2655
2656
|
}
|
|
@@ -3349,7 +3350,7 @@ const DECLARATION_SUFFIXES = [
|
|
|
3349
3350
|
".d.cts"
|
|
3350
3351
|
];
|
|
3351
3352
|
function isSeederCandidate(name) {
|
|
3352
|
-
return SUPPORTED_EXTENSIONS.has(extname(name)) && !DECLARATION_SUFFIXES.some((suffix) => name.endsWith(suffix));
|
|
3353
|
+
return !name.startsWith(".") && SUPPORTED_EXTENSIONS.has(extname(name)) && !DECLARATION_SUFFIXES.some((suffix) => name.endsWith(suffix));
|
|
3353
3354
|
}
|
|
3354
3355
|
function normalizeSeeder(candidate) {
|
|
3355
3356
|
if (!candidate) return;
|