@lokalise/fastify-extras 21.6.0 → 21.7.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.
@@ -32,7 +32,7 @@ class BackgroundJobsBasedQueueDiscoverer {
32
32
  this.redis = redis;
33
33
  }
34
34
  async discoverQueues() {
35
- return await background_jobs_common_1.AbstractBackgroundJobProcessor.getActiveQueueIds(this.redis);
35
+ return await (0, background_jobs_common_1.backgroundJobProcessorGetActiveQueueIds)(this.redis);
36
36
  }
37
37
  }
38
38
  exports.BackgroundJobsBasedQueueDiscoverer = BackgroundJobsBasedQueueDiscoverer;
@@ -1 +1 @@
1
- {"version":3,"file":"queueDiscoverers.js","sourceRoot":"","sources":["../../../lib/plugins/bull-mq-metrics/queueDiscoverers.ts"],"names":[],"mappings":";;;AAAA,6EAAiF;AAOjF,MAAa,yBAAyB;IAEjB;IACA;IAFnB,YACmB,KAAY,EACZ,YAAoB;QADpB,UAAK,GAAL,KAAK,CAAO;QACZ,iBAAY,GAAZ,YAAY,CAAQ;IACpC,CAAC;IAEJ,KAAK,CAAC,cAAc;QAClB,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC;YACvC,KAAK,EAAE,GAAG,IAAI,CAAC,YAAY,SAAS;SACrC,CAAC,CAAA;QAEF,MAAM,MAAM,GAAG,IAAI,GAAG,EAAU,CAAA;QAChC,IAAI,KAAK,EAAE,MAAM,KAAK,IAAI,UAAU,EAAE,CAAC;YACrC,wDAAwD;YACxD,CAAC;YAAC,KAAkB;iBACjB,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;iBAC/B,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;iBAC1B,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,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C,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;IAClC,CAAC;CACF;AAtBD,8DAsBC;AAED,MAAa,kCAAkC;IAChB;IAA7B,YAA6B,KAAY;QAAZ,UAAK,GAAL,KAAK,CAAO;IAAG,CAAC;IAE7C,KAAK,CAAC,cAAc;QAClB,OAAO,MAAM,IAAA,gEAAuC,EAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAClE,CAAC;CACF;AAND,gFAMC"}
package/package.json CHANGED
@@ -1,90 +1,90 @@
1
1
  {
2
- "name": "@lokalise/fastify-extras",
3
- "version": "21.6.0",
4
- "description": "Opinionated set of fastify plugins, commonly used in Lokalise",
5
- "author": {
6
- "name": "Lokalise",
7
- "url": "https://lokalise.com/"
8
- },
9
- "license": "Apache-2.0",
10
- "repository": {
11
- "type": "git",
12
- "url": "git://github.com/lokalise/fastify-extras.git"
13
- },
14
- "keywords": [
15
- "fastify",
16
- "newrelic",
17
- "bugsnag",
18
- "request-context",
19
- "request-id",
20
- "split-io"
21
- ],
22
- "homepage": "https://github.com/lokalise/fastify-extras",
23
- "files": [
24
- "dist/**",
25
- "LICENSE",
26
- "README.md"
27
- ],
28
- "main": "dist/index.js",
29
- "types": "dist/index.d.ts",
30
- "type": "commonjs",
31
- "publishConfig": {
32
- "access": "public"
33
- },
34
- "scripts": {
35
- "build": "shx rm -rf ./dist && tsc",
36
- "test": "vitest",
37
- "test:coverage": "vitest --coverage",
38
- "test:ci": "npm run lint && npm run test:coverage",
39
- "lint": "biome check . && tsc --project tsconfig.lint.json --noEmit",
40
- "lint:fix": "biome check --write",
41
- "docker:start": "docker compose -f docker-compose.yml up --build -d redis && docker compose -f docker-compose.yml up --build -d wait_for_redis",
42
- "docker:stop": "docker compose -f docker-compose.yml down",
43
- "version": "auto-changelog -p && git add CHANGELOG.md"
44
- },
45
- "dependencies": {
46
- "@bugsnag/js": "^7.22.7",
47
- "@supercharge/promise-pool": "^3.2.0",
48
- "@lokalise/error-utils": "^1.4.0",
49
- "@lokalise/background-jobs-common": "^4.0.1",
50
- "@splitsoftware/splitio": "^10.25.2",
51
- "@amplitude/analytics-node": "^1.3.5",
52
- "fastify-metrics": "^11.0.0",
53
- "fastify-plugin": "^4.5.1",
54
- "toad-cache": "^3.7.0",
55
- "tslib": "^2.6.2"
56
- },
57
- "peerDependencies": {
58
- "fastify": "^4.24.3",
59
- "@fastify/jwt": "^8.0.1",
60
- "newrelic": ">=11.13.0",
61
- "pino": "^9.0.0",
62
- "zod": "^3.22.4",
63
- "bullmq": "^5.8.4",
64
- "ioredis": "^5.4.1"
65
- },
66
- "devDependencies": {
67
- "@lokalise/backend-http-client": "^2.0.1",
68
- "@biomejs/biome": "^1.8.3",
69
- "@lokalise/biome-config": "^1.3.0",
70
- "@lokalise/node-core": "^11.2.0",
71
- "@types/newrelic": "^9.14.4",
72
- "@types/node": "^22.1.0",
73
- "@amplitude/analytics-types": "^2.5.0",
74
- "@vitest/coverage-v8": "^2.0.5",
75
- "auto-changelog": "^2.4.0",
76
- "bullmq": "^5.12.0",
77
- "ioredis": "^5.4.1",
78
- "fastify": "^4.28.1",
79
- "newrelic": "12.0.0",
80
- "pino": "^9.1.0",
81
- "pino-pretty": "^11.2.1",
82
- "shx": "^0.3.4",
83
- "typescript": "^5.5.4",
84
- "vitest": "^2.0.5",
85
- "zod": "^3.23.8"
86
- },
87
- "engines": {
88
- "node": ">=18"
89
- }
2
+ "name": "@lokalise/fastify-extras",
3
+ "version": "21.7.0",
4
+ "description": "Opinionated set of fastify plugins, commonly used in Lokalise",
5
+ "author": {
6
+ "name": "Lokalise",
7
+ "url": "https://lokalise.com/"
8
+ },
9
+ "license": "Apache-2.0",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git://github.com/lokalise/fastify-extras.git"
13
+ },
14
+ "keywords": [
15
+ "fastify",
16
+ "newrelic",
17
+ "bugsnag",
18
+ "request-context",
19
+ "request-id",
20
+ "split-io"
21
+ ],
22
+ "homepage": "https://github.com/lokalise/fastify-extras",
23
+ "files": [
24
+ "dist/**",
25
+ "LICENSE",
26
+ "README.md"
27
+ ],
28
+ "main": "dist/index.js",
29
+ "types": "dist/index.d.ts",
30
+ "type": "commonjs",
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
34
+ "scripts": {
35
+ "build": "shx rm -rf ./dist && tsc",
36
+ "test": "vitest",
37
+ "test:coverage": "vitest --coverage",
38
+ "test:ci": "npm run lint && npm run test:coverage",
39
+ "lint": "biome check . && tsc --project tsconfig.lint.json --noEmit",
40
+ "lint:fix": "biome check --write",
41
+ "docker:start": "docker compose -f docker-compose.yml up --build -d redis && docker compose -f docker-compose.yml up --build -d wait_for_redis",
42
+ "docker:stop": "docker compose -f docker-compose.yml down",
43
+ "version": "auto-changelog -p && git add CHANGELOG.md"
44
+ },
45
+ "dependencies": {
46
+ "@bugsnag/js": "^7.25.0",
47
+ "@supercharge/promise-pool": "^3.2.0",
48
+ "@lokalise/error-utils": "^2.0.0",
49
+ "@lokalise/background-jobs-common": "^7.0.0",
50
+ "@splitsoftware/splitio": "^10.27.0",
51
+ "@amplitude/analytics-node": "^1.3.5",
52
+ "fastify-metrics": "^11.0.0",
53
+ "fastify-plugin": "^4.5.1",
54
+ "toad-cache": "^3.7.0",
55
+ "tslib": "^2.6.3"
56
+ },
57
+ "peerDependencies": {
58
+ "fastify": "^4.24.3",
59
+ "@fastify/jwt": "^8.0.1",
60
+ "newrelic": ">=11.13.0",
61
+ "pino": "^9.0.0",
62
+ "zod": "^3.22.4",
63
+ "bullmq": "^5.8.4",
64
+ "ioredis": "^5.4.1"
65
+ },
66
+ "devDependencies": {
67
+ "@lokalise/backend-http-client": "^2.0.1",
68
+ "@biomejs/biome": "^1.8.3",
69
+ "@lokalise/biome-config": "^1.4.0",
70
+ "@lokalise/node-core": "^11.2.0",
71
+ "@types/newrelic": "^9.14.4",
72
+ "@types/node": "^22.1.0",
73
+ "@amplitude/analytics-types": "^2.5.0",
74
+ "@vitest/coverage-v8": "^2.0.5",
75
+ "auto-changelog": "^2.4.0",
76
+ "bullmq": "^5.12.0",
77
+ "ioredis": "^5.4.1",
78
+ "fastify": "^4.28.1",
79
+ "newrelic": "12.0.0",
80
+ "pino": "^9.1.0",
81
+ "pino-pretty": "^11.2.1",
82
+ "shx": "^0.3.4",
83
+ "typescript": "^5.5.4",
84
+ "vitest": "^2.0.5",
85
+ "zod": "^3.23.8"
86
+ },
87
+ "engines": {
88
+ "node": ">=18"
89
+ }
90
90
  }