@arcblock/crawler 1.4.6 → 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.
@@ -0,0 +1,33 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ /* eslint-disable no-console */
11
+ import { DataTypes } from '@sequelize/core';
12
+ export function up(_a) {
13
+ return __awaiter(this, arguments, void 0, function* ({ context }) {
14
+ console.log('[20251226-job-processing:up] Migrating...');
15
+ yield context.addColumn('jobs', 'processingBy', {
16
+ type: DataTypes.STRING(32),
17
+ allowNull: true,
18
+ });
19
+ yield context.addColumn('jobs', 'processingAt', {
20
+ type: DataTypes.INTEGER,
21
+ allowNull: true,
22
+ });
23
+ console.log('[20251226-job-processing:up] Migrated successfully!');
24
+ });
25
+ }
26
+ export function down(_a) {
27
+ return __awaiter(this, arguments, void 0, function* ({ context }) {
28
+ console.log('[20251226-job-processing:down] Migrating...');
29
+ yield context.removeColumn('jobs', 'processingBy');
30
+ yield context.removeColumn('jobs', 'processingAt');
31
+ console.log('[20251226-job-processing:down] Migrated successfully!');
32
+ });
33
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/crawler",
3
- "version": "1.4.6",
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",
@@ -45,12 +45,12 @@
45
45
  ]
46
46
  },
47
47
  "dependencies": {
48
- "@abtnode/cron": "^1.17.3",
49
- "@abtnode/models": "^1.17.3",
50
- "@abtnode/queue": "^1.17.3",
51
- "@blocklet/logger": "^1.17.3",
48
+ "@abtnode/cron": "^1.17.5",
49
+ "@abtnode/models": "^1.17.5",
50
+ "@abtnode/queue": "^1.17.5",
51
+ "@blocklet/logger": "^1.17.5",
52
52
  "@blocklet/puppeteer": "^22.11.3",
53
- "@blocklet/sdk": "^1.17.3",
53
+ "@blocklet/sdk": "^1.17.5",
54
54
  "@sequelize/core": "7.0.0-alpha.46",
55
55
  "@sequelize/sqlite3": "7.0.0-alpha.46",
56
56
  "axios": "^1.7.9",
@@ -58,6 +58,7 @@
58
58
  "lodash": "^4.17.21",
59
59
  "lru-cache": "^10.4.3",
60
60
  "p-map": "^7.0.3",
61
+ "prom-client": "^15.1.3",
61
62
  "robots-parser": "^3.0.1",
62
63
  "sitemap": "^7.1.2",
63
64
  "sqlite3": "^5.1.7",