Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit cf105e0

Browse files
committedOct 23, 2020
fix require() in API.js
1 parent 58ba9c8 commit cf105e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎API.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Server code:
6363

6464
```js
6565
const Http = require('http');
66-
const Hawk = require('@hapi/hawk');
66+
const Hawk = require('hawk');
6767

6868

6969
// Credentials lookup function
@@ -120,7 +120,7 @@ Client code:
120120

121121
```js
122122
const Request = require('request');
123-
const Hawk = require('@hapi/hawk');
123+
const Hawk = require('hawk');
124124

125125

126126
// Client credentials
@@ -350,7 +350,7 @@ Server code:
350350

351351
```js
352352
const Http = require('http');
353-
const Hawk = require('@hapi/hawk');
353+
const Hawk = require('hawk');
354354

355355

356356
// Credentials lookup function
@@ -386,7 +386,7 @@ Http.createServer(handler).listen(8000, 'example.com');
386386
Bewit code generation:
387387

388388
```js
389-
const Hawk = require('@hapi/hawk');
389+
const Hawk = require('hawk');
390390

391391

392392
// Client credentials

0 commit comments

Comments
 (0)
This repository has been archived.