@modernpoacher/halacious 6.2.4 → 6.2.5

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/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ declare module '@modernpoacher/halacious' {
2
+ export const plugin: object
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modernpoacher/halacious",
3
- "version": "6.2.4",
3
+ "version": "6.2.5",
4
4
  "description": "A HAL processor for Hapi",
5
5
  "keywords": [
6
6
  "HAL",
@@ -36,33 +36,33 @@
36
36
  "@hapi/boom": "9.1.0",
37
37
  "@hapi/hoek": "9.0.4",
38
38
  "@hapi/joi": "15.1.1",
39
- "async": "^3.2.3",
39
+ "async": "^3.2.4",
40
40
  "lodash": "^4.17.21",
41
- "marked": "^4.0.12",
41
+ "marked": "^5.0.3",
42
42
  "negotiator": "^0.6.3",
43
43
  "pug": "^3.0.2",
44
- "urijs": "^1.19.8",
44
+ "urijs": "^1.19.11",
45
45
  "url-template": "2.0.8"
46
46
  },
47
47
  "devDependencies": {
48
- "@babel/core": "^7.17.5",
49
- "@babel/eslint-parser": "^7.17.0",
48
+ "@babel/core": "^7.22.1",
49
+ "@babel/eslint-parser": "^7.21.8",
50
50
  "@hapi/hapi": "18.4.1",
51
51
  "@hapi/vision": "6.0.1",
52
- "babel-loader": "^8.2.3",
53
- "chai": "^4.3.6",
52
+ "babel-loader": "^9.1.2",
53
+ "chai": "^4.3.7",
54
54
  "chai-string": "^1.5.0",
55
55
  "cross-env": "^7.0.3",
56
- "eslint": "7.32.0",
57
- "eslint-config-standard": "^16.0.3",
58
- "eslint-plugin-import": "^2.25.4",
59
- "eslint-plugin-mocha": "^10.0.3",
56
+ "eslint": "^8.41.0",
57
+ "eslint-config-standard": "^17.0.0",
58
+ "eslint-plugin-import": "^2.27.5",
59
+ "eslint-plugin-mocha": "^10.1.0",
60
60
  "eslint-plugin-node": "^11.1.0",
61
- "eslint-plugin-promise": "5.2.0",
62
- "husky": "^7.0.4",
63
- "mocha": "^9.2.1",
61
+ "eslint-plugin-promise": "^6.1.1",
62
+ "husky": "^8.0.3",
63
+ "mocha": "^10.2.0",
64
64
  "module-alias": "^2.2.2",
65
- "sinon": "^13.0.1",
65
+ "sinon": "^15.1.0",
66
66
  "sinon-chai": "^3.7.0"
67
67
  },
68
68
  "_moduleAliases": {
@@ -24,7 +24,7 @@ describe('Halacious Plugin', () => {
24
24
  let server
25
25
 
26
26
  beforeEach((done) => {
27
- server = hapi.server({ port: 9090 })
27
+ server = hapi.server({ port: 9191 })
28
28
 
29
29
  done()
30
30
  })
@@ -1686,7 +1686,7 @@ describe('Halacious Plugin', () => {
1686
1686
  .then(() =>
1687
1687
  server.inject({
1688
1688
  method: 'get',
1689
- url: 'http://localhost:9090/api/people/100',
1689
+ url: 'http://localhost:9191/api/people/100',
1690
1690
  headers: { Accept: 'application/hal+json' }
1691
1691
  })
1692
1692
  )
@@ -1694,7 +1694,7 @@ describe('Halacious Plugin', () => {
1694
1694
  const result = JSON.parse(res.payload)
1695
1695
  result._links.self.should.have.property(
1696
1696
  'href',
1697
- 'http://localhost:9090/api/people/100'
1697
+ 'http://localhost:9191/api/people/100'
1698
1698
  )
1699
1699
  })
1700
1700
  .then(done)
@@ -1728,7 +1728,7 @@ describe('Halacious Plugin', () => {
1728
1728
  .then(() =>
1729
1729
  server.inject({
1730
1730
  method: 'get',
1731
- url: 'http://localhost:9090/api/people/100',
1731
+ url: 'http://localhost:9191/api/people/100',
1732
1732
  headers: { Accept: 'application/hal+json' }
1733
1733
  })
1734
1734
  )
@@ -1736,7 +1736,7 @@ describe('Halacious Plugin', () => {
1736
1736
  const result = JSON.parse(res.payload)
1737
1737
  result._links.schedule.should.have.property(
1738
1738
  'href',
1739
- 'http://localhost:9090/api/people/100/schedule'
1739
+ 'http://localhost:9191/api/people/100/schedule'
1740
1740
  )
1741
1741
  })
1742
1742
  .then(done)
@@ -1777,7 +1777,7 @@ describe('Halacious Plugin', () => {
1777
1777
  .then(() =>
1778
1778
  server.inject({
1779
1779
  method: 'get',
1780
- url: 'http://localhost:9090/api/people/100',
1780
+ url: 'http://localhost:9191/api/people/100',
1781
1781
  headers: { Accept: 'application/hal+json' }
1782
1782
  })
1783
1783
  )
@@ -1785,7 +1785,7 @@ describe('Halacious Plugin', () => {
1785
1785
  const result = JSON.parse(res.payload)
1786
1786
  result._embedded['mco:boss']._links.self.should.have.property(
1787
1787
  'href',
1788
- 'http://localhost:9090/api/people/100/boss'
1788
+ 'http://localhost:9191/api/people/100/boss'
1789
1789
  )
1790
1790
  })
1791
1791
  .then(done)
@@ -1818,7 +1818,7 @@ describe('Halacious Plugin', () => {
1818
1818
  .then(() =>
1819
1819
  server.inject({
1820
1820
  method: 'post',
1821
- url: 'http://localhost:9090/api/people',
1821
+ url: 'http://localhost:9191/api/people',
1822
1822
  headers: { Accept: 'application/hal+json' }
1823
1823
  })
1824
1824
  )
@@ -1826,7 +1826,7 @@ describe('Halacious Plugin', () => {
1826
1826
  const result = JSON.parse(res.payload)
1827
1827
  result._links.self.should.have.property(
1828
1828
  'href',
1829
- 'http://localhost:9090/api/people/100'
1829
+ 'http://localhost:9191/api/people/100'
1830
1830
  )
1831
1831
  })
1832
1832
  .then(done)
@@ -1864,7 +1864,7 @@ describe('Halacious Plugin', () => {
1864
1864
  .then(() =>
1865
1865
  server.inject({
1866
1866
  method: 'post',
1867
- url: 'http://localhost:9090/api/people',
1867
+ url: 'http://localhost:9191/api/people',
1868
1868
  headers: { Accept: 'application/hal+json' }
1869
1869
  })
1870
1870
  )
@@ -1873,7 +1873,7 @@ describe('Halacious Plugin', () => {
1873
1873
  result.should.have
1874
1874
  .property('_links')
1875
1875
  .that.has.property('mco:boss')
1876
- .that.has.property('href', 'http://localhost:9090/api/people/101')
1876
+ .that.has.property('href', 'http://localhost:9191/api/people/101')
1877
1877
  })
1878
1878
  .then(done)
1879
1879
  .catch(done)
@@ -2053,7 +2053,7 @@ describe('Halacious Plugin', () => {
2053
2053
  it('should support absolute api root hrefs', (done) => {
2054
2054
  server = new hapi.Server({
2055
2055
  debug: { request: ['*'], log: ['*'] },
2056
- port: 9090
2056
+ port: 9191
2057
2057
  })
2058
2058
 
2059
2059
  server.route({
@@ -16,7 +16,7 @@ describe('Representation Factory', () => {
16
16
  let representationFactory
17
17
 
18
18
  beforeEach((done) => {
19
- server = hapi.server({ port: 9090 })
19
+ server = hapi.server({ port: 9191 })
20
20
 
21
21
  server
22
22
  .register(halacious)
package/types/index.d.ts CHANGED
@@ -19,6 +19,4 @@ declare namespace halacious {
19
19
  }
20
20
  }
21
21
 
22
- declare module '@modernpoacher/halacious' {
23
- export const plugin: object
24
- }
22
+ export default halacious