@projectinvicta/nails 3.0.10 → 3.0.11

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.10",
3
+ "version": "3.0.11",
4
4
  "description": "A node.js webserver scaffold",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,6 +1,6 @@
1
- import nails from 'nails-boilerplate';
1
+ import Nails from '@projectinvicta/nails';
2
2
 
3
- // See self-documented config files
4
- import service_config from '../config/service.js';
3
+ import service_config from '../config/service.ts';
5
4
 
6
- (await nails( service_config )).startServer();
5
+ const nails = new Nails(service_config);
6
+ await nails.startServer();
@@ -1,5 +1,5 @@
1
1
  import {Controller} from "@projectinvicta/nails";
2
- import User from "../models/User";
2
+ import User from "../models/User.ts";
3
3
 
4
4
  export default class UsersController extends Controller {
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import {Model, DataTypes} from "@projectinvicta/nails";
2
- import Dog from "./Dog";
2
+ import Dog from "./Dog.ts";
3
3
 
4
4
  export const schema = {
5
5
  name: DataTypes.STRING,