@modernpoacher/halacious 6.3.0 → 6.3.1
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 +22 -22
- package/src/index.mjs +0 -1
- package/src/representation.mjs +0 -1
- package/test/plugin.spec.mjs +3 -3
- package/test/representation.spec.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modernpoacher/halacious",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.1",
|
|
4
4
|
"description": "A HAL processor for Hapi",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"HAL",
|
|
@@ -8,9 +8,13 @@
|
|
|
8
8
|
"hypermedia",
|
|
9
9
|
"HATEOAS"
|
|
10
10
|
],
|
|
11
|
-
"type": "module",
|
|
12
11
|
"main": "./src/index.mjs",
|
|
13
|
-
"
|
|
12
|
+
"type": "module",
|
|
13
|
+
"author": {
|
|
14
|
+
"name": "Jonathan Perry for Modern Poacher Limited",
|
|
15
|
+
"email": "modernpoacher@modernpoacher.com",
|
|
16
|
+
"url": "http://modernpoacher.com"
|
|
17
|
+
},
|
|
14
18
|
"contributors": [
|
|
15
19
|
"Brad Leupen"
|
|
16
20
|
],
|
|
@@ -27,7 +31,7 @@
|
|
|
27
31
|
"url": "https://github.com/modernpoacher/halacious/issues"
|
|
28
32
|
},
|
|
29
33
|
"scripts": {
|
|
30
|
-
"lint": "eslint . --ext .mjs
|
|
34
|
+
"lint": "eslint . --ext .mjs,.cjs,.mts,.cts",
|
|
31
35
|
"lint:fix": "npm run lint -- --fix",
|
|
32
36
|
"test": "cross-env NODE_ENV=test mocha test",
|
|
33
37
|
"prepare": "husky install"
|
|
@@ -36,37 +40,33 @@
|
|
|
36
40
|
"@hapi/boom": "9.1.0",
|
|
37
41
|
"@hapi/hoek": "9.0.4",
|
|
38
42
|
"@hapi/joi": "15.1.1",
|
|
39
|
-
"
|
|
40
|
-
"@typescript-eslint/parser": "^5.59.7",
|
|
41
|
-
"async": "^3.2.4",
|
|
42
|
-
"eslint-config-standard-with-typescript": "^34.0.1",
|
|
43
|
+
"async": "^3.2.5",
|
|
43
44
|
"lodash": "^4.17.21",
|
|
44
|
-
"marked": "^
|
|
45
|
-
"marked-gfm-heading-id": "^3.
|
|
46
|
-
"marked-mangle": "^1.
|
|
45
|
+
"marked": "^11.1.1",
|
|
46
|
+
"marked-gfm-heading-id": "^3.1.2",
|
|
47
|
+
"marked-mangle": "^1.1.6",
|
|
47
48
|
"negotiator": "^0.6.3",
|
|
48
49
|
"pug": "^3.0.2",
|
|
49
50
|
"urijs": "^1.19.11",
|
|
50
51
|
"url-template": "2.0.8"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"@babel/core": "^7.
|
|
54
|
-
"@babel/eslint-parser": "^7.
|
|
54
|
+
"@babel/core": "^7.23.7",
|
|
55
|
+
"@babel/eslint-parser": "^7.23.3",
|
|
55
56
|
"@hapi/hapi": "18.4.1",
|
|
56
57
|
"@hapi/vision": "6.0.1",
|
|
57
|
-
"chai": "^
|
|
58
|
+
"@sequencemedia/sinon-chai": "^0.0.6",
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "5.61.0",
|
|
60
|
+
"@typescript-eslint/parser": "5.61.0",
|
|
61
|
+
"chai": "^5.0.0",
|
|
58
62
|
"chai-string": "^1.5.0",
|
|
59
63
|
"cross-env": "^7.0.3",
|
|
60
|
-
"eslint": "^8.
|
|
61
|
-
"eslint-config-standard": "^17.
|
|
62
|
-
"eslint-
|
|
63
|
-
"eslint-plugin-mocha": "^10.1.0",
|
|
64
|
-
"eslint-plugin-node": "^11.1.0",
|
|
65
|
-
"eslint-plugin-promise": "^6.1.1",
|
|
64
|
+
"eslint": "^8.56.0",
|
|
65
|
+
"eslint-config-standard": "^17.1.0",
|
|
66
|
+
"eslint-config-standard-with-typescript": "35.0.0",
|
|
66
67
|
"husky": "^8.0.3",
|
|
67
68
|
"mocha": "^10.2.0",
|
|
68
|
-
"sinon": "^
|
|
69
|
-
"sinon-chai": "^3.7.0"
|
|
69
|
+
"sinon": "^17.0.1"
|
|
70
70
|
},
|
|
71
71
|
"imports": {
|
|
72
72
|
"#halacious/*": "./src/*.mjs",
|
package/src/index.mjs
CHANGED
package/src/representation.mjs
CHANGED
package/test/plugin.spec.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import path from 'path'
|
|
2
2
|
|
|
3
|
-
import chai from 'chai'
|
|
3
|
+
import * as chai from 'chai'
|
|
4
4
|
|
|
5
5
|
import hapi from '@hapi/hapi'
|
|
6
6
|
import vision from '@hapi/vision'
|
|
7
7
|
import sinon from 'sinon'
|
|
8
|
-
import sinonChai from 'sinon-chai'
|
|
8
|
+
import sinonChai from '@sequencemedia/sinon-chai'
|
|
9
9
|
import chaiString from 'chai-string'
|
|
10
10
|
import halacious from '#halacious'
|
|
11
11
|
import { plugin } from '#halacious/plugin'
|
|
@@ -33,7 +33,7 @@ describe('Halacious Plugin', () => {
|
|
|
33
33
|
server.stop().then(done).catch(done)
|
|
34
34
|
})
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
xit('should have a registration function', () => {
|
|
37
37
|
plugin.should.have.property('register')
|
|
38
38
|
plugin.register.should.be.a('Function')
|
|
39
39
|
})
|