@arcblock/crawler-middleware 1.4.7 → 1.5.0

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/lib/cjs/index.js CHANGED
@@ -38,6 +38,7 @@ function createSnapshotMiddleware({ endpoint, accessKey, cacheMax = 0, updateInt
38
38
  return next();
39
39
  }
40
40
  const fullUrl = getFullUrl(req);
41
+ // @ts-ignore
41
42
  if (!(0, utils_1.isSpider)(req) || (0, utils_1.isSelfCrawler)(req) || (0, utils_1.isStaticFile)(req)) {
42
43
  return next();
43
44
  }
package/lib/esm/index.js CHANGED
@@ -35,6 +35,7 @@ export function createSnapshotMiddleware({ endpoint, accessKey, cacheMax = 0, up
35
35
  return next();
36
36
  }
37
37
  const fullUrl = getFullUrl(req);
38
+ // @ts-ignore
38
39
  if (!isSpider(req) || isSelfCrawler(req) || isStaticFile(req)) {
39
40
  return next();
40
41
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/crawler-middleware",
3
- "version": "1.4.7",
3
+ "version": "1.5.0",
4
4
  "main": "lib/cjs/index.js",
5
5
  "module": "lib/esm/index.js",
6
6
  "types": "lib/cjs/index.d.ts",
@@ -50,7 +50,7 @@
50
50
  "queue": "^7.0.0",
51
51
  "sqlite3": "^5.1.7",
52
52
  "ufo": "^1.5.4",
53
- "@arcblock/crawler": "1.4.7"
53
+ "@arcblock/crawler": "1.5.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/express": "^4.17.21",