@ladjs/api 12.0.6 → 12.0.8

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.
Files changed (2) hide show
  1. package/index.js +7 -0
  2. package/package.json +13 -13
package/index.js CHANGED
@@ -160,6 +160,13 @@ class API {
160
160
  // 404 handler
161
161
  app.use(koa404Handler);
162
162
 
163
+ // X-Robots-Tag
164
+ // <https://developers.google.com/search/docs/crawling-indexing/robots-meta-tag>
165
+ app.use((ctx, next) => {
166
+ ctx.set('X-Robots-Tag', 'noindex');
167
+ return next();
168
+ });
169
+
163
170
  // Allow before hooks to get setup
164
171
  if (_.isFunction(this.config.hookBeforeRoutes))
165
172
  this.config.hookBeforeRoutes(app);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ladjs/api",
3
3
  "description": "API server for Lad",
4
- "version": "12.0.6",
4
+ "version": "12.0.8",
5
5
  "author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/ladjs/api/issues",
@@ -13,15 +13,15 @@
13
13
  "dependencies": {
14
14
  "@koa/router": "^12.0.0",
15
15
  "@ladjs/i18n": "^8.0.1",
16
- "@ladjs/koa-simple-ratelimit": "^4.1.0",
16
+ "@ladjs/koa-simple-ratelimit": "^4.1.1",
17
17
  "@ladjs/passport": "^5.0.3",
18
- "@ladjs/redis": "^1.0.7",
18
+ "@ladjs/redis": "^1.1.1",
19
19
  "@ladjs/shared-config": "^8.0.0",
20
20
  "@ladjs/store-ip-address": "^0.0.7",
21
21
  "boolean": "^3.2.0",
22
22
  "express-request-id": "1.4.1",
23
23
  "kcors": "^2.2.2",
24
- "koa": "^2.13.4",
24
+ "koa": "^2.14.1",
25
25
  "koa-404-handler": "^0.1.0",
26
26
  "koa-basic-auth": "^4.0.0",
27
27
  "koa-better-error-handler": "^10.0.7",
@@ -38,24 +38,24 @@
38
38
  "response-time": "^2.3.2"
39
39
  },
40
40
  "devDependencies": {
41
- "@commitlint/cli": "^17.3.0",
42
- "@commitlint/config-conventional": "^17.3.0",
41
+ "@commitlint/cli": "^17.4.0",
42
+ "@commitlint/config-conventional": "^17.4.0",
43
43
  "ava": "^5.1.0",
44
- "axe": "^11.0.0",
45
- "cabin": "^11.0.1",
44
+ "axe": "^11.2.1",
45
+ "cabin": "^11.1.1",
46
46
  "cross-env": "^7.0.3",
47
- "eslint": "^8.28.0",
47
+ "eslint": "^8.31.0",
48
48
  "eslint-config-xo-lass": "^2.0.1",
49
49
  "fixpack": "^4.0.0",
50
- "husky": "^8.0.2",
50
+ "husky": "^8.0.3",
51
51
  "ioredis": "^5.2.4",
52
52
  "ioredis-mock": "^8.2.2",
53
- "lint-staged": "13.0.3",
54
- "mongoose": "^6.7.2",
53
+ "lint-staged": "13.1.0",
54
+ "mongoose": "^6.8.3",
55
55
  "nyc": "^15.1.0",
56
56
  "remark-cli": "^11.0.0",
57
57
  "remark-preset-github": "^4.0.4",
58
- "supertest": "^6.3.1",
58
+ "supertest": "^6.3.3",
59
59
  "xo": "^0.53.1"
60
60
  },
61
61
  "engines": {