Skip to content

Commit 6d5440d

Browse files
feat(package): use @Hapi org hapi dependencies
BREAKING CHANGE: Switch to the @Hapi org dependencies
1 parent cd365b7 commit 6d5440d

File tree

9 files changed

+1176
-2290
lines changed

9 files changed

+1176
-2290
lines changed

lib/controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Hapi from 'hapi';
2-
import { AnySchema } from 'joi';
1+
import Hapi from '@hapi/hapi';
2+
import { AnySchema } from '@hapi/joi';
33

44
type ControllerAction = Hapi.Lifecycle.Method;
55

lib/plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import Hapi, { Plugin } from 'hapi';
1+
import Hapi, { Plugin } from '@hapi/hapi';
22
import ResourceRouter, { Route, SubscriptionRoute, ResourceRouterOptions } from './resource_router';
33
// @ts-ignore
44
import packageJson from '../package.json';
55
import { Controller, ControllerClass } from './controller';
66

7-
declare module 'hapi' {
7+
declare module '@hapi/hapi' {
88
export interface Server {
99
resources: () => ResourceRouter;
1010
}

lib/resource_router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Hapi from 'hapi';
1+
import Hapi from '@hapi/hapi';
22
import {
33
JoiThing,
44
Controller,

0 commit comments

Comments
 (0)