@projectinvicta/nails 3.0.9 → 3.0.10

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": "@projectinvicta/nails",
3
- "version": "3.0.9",
3
+ "version": "3.0.10",
4
4
  "description": "A node.js webserver scaffold",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -9,6 +9,10 @@ export const schema = {
9
9
 
10
10
  export default class User extends Model {};
11
11
 
12
- export async function defer() {
12
+ export async function afterInitialize() {
13
+ // Add hooks here
14
+ }
15
+
16
+ export async function afterInitializeAll() {
13
17
  await User.hasMany(Dog);
14
18
  }
@@ -8,6 +8,6 @@ export const schema = {
8
8
 
9
9
  export default class Dog extends Model {};
10
10
 
11
- export async function finalize() {
11
+ export async function afterInitializeAll() {
12
12
  Dog.belongsTo(Owner);
13
13
  }
@@ -7,6 +7,6 @@ export const schema = {
7
7
  };
8
8
  export default class Owner extends Model {};
9
9
 
10
- export async function defer() {
10
+ export async function afterInitializeAll() {
11
11
  Owner.hasMany(Dog);
12
12
  }