@nocobase/database 1.7.0-beta.33 → 1.7.0-beta.34
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.
|
@@ -51,10 +51,12 @@ const _NanoidField = class _NanoidField extends import_field.Field {
|
|
|
51
51
|
bind() {
|
|
52
52
|
super.bind();
|
|
53
53
|
this.on("beforeValidate", this.listener);
|
|
54
|
+
this.on("beforeCreate", this.listener);
|
|
54
55
|
}
|
|
55
56
|
unbind() {
|
|
56
57
|
super.unbind();
|
|
57
58
|
this.off("beforeValidate", this.listener);
|
|
59
|
+
this.off("beforeCreate", this.listener);
|
|
58
60
|
}
|
|
59
61
|
};
|
|
60
62
|
__name(_NanoidField, "NanoidField");
|
package/lib/fields/uuid-field.js
CHANGED
|
@@ -49,10 +49,12 @@ const _UuidField = class _UuidField extends import_field.Field {
|
|
|
49
49
|
bind() {
|
|
50
50
|
super.bind();
|
|
51
51
|
this.on("beforeValidate", this.listener);
|
|
52
|
+
this.on("beforeCreate", this.listener);
|
|
52
53
|
}
|
|
53
54
|
unbind() {
|
|
54
55
|
super.unbind();
|
|
55
56
|
this.off("beforeValidate", this.listener);
|
|
57
|
+
this.off("beforeCreate", this.listener);
|
|
56
58
|
}
|
|
57
59
|
};
|
|
58
60
|
__name(_UuidField, "UuidField");
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/database",
|
|
3
|
-
"version": "1.7.0-beta.
|
|
3
|
+
"version": "1.7.0-beta.34",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
7
7
|
"license": "AGPL-3.0",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@nocobase/logger": "1.7.0-beta.
|
|
10
|
-
"@nocobase/utils": "1.7.0-beta.
|
|
9
|
+
"@nocobase/logger": "1.7.0-beta.34",
|
|
10
|
+
"@nocobase/utils": "1.7.0-beta.34",
|
|
11
11
|
"async-mutex": "^0.3.2",
|
|
12
12
|
"chalk": "^4.1.1",
|
|
13
13
|
"cron-parser": "4.4.0",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"url": "git+https://github.com/nocobase/nocobase.git",
|
|
39
39
|
"directory": "packages/database"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "2795864162d6151f0f8cf33945b0b8b8a4cb20dc"
|
|
42
42
|
}
|