@adminforth/i18n 2.0.0 → 2.0.2

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.
@@ -17,18 +17,18 @@ steps:
17
17
  - infisical export --domain https://vault.devforth.io/api --format=dotenv-export --env="prod" > /woodpecker/deploy.vault.env
18
18
 
19
19
  build:
20
- image: node:20
20
+ image: devforth/node20-pnpm:latest
21
21
  when:
22
22
  - event: push
23
23
  commands:
24
24
  - apt update && apt install -y rsync
25
25
  - . /woodpecker/deploy.vault.env
26
- - npm clean-install
26
+ - pnpm install
27
27
  - /bin/bash ./.woodpecker/buildRelease.sh
28
28
  - npm audit signatures
29
29
 
30
30
  release:
31
- image: node:20
31
+ image: devforth/node20-pnpm:latest
32
32
  when:
33
33
  - event:
34
34
  - push
@@ -36,7 +36,7 @@ steps:
36
36
  - main
37
37
  commands:
38
38
  - . /woodpecker/deploy.vault.env
39
- - npx semantic-release
39
+ - pnpm exec semantic-release
40
40
 
41
41
  slack-on-failure:
42
42
  image: curlimages/curl
package/dist/index.js CHANGED
@@ -487,7 +487,7 @@ export default class I18nPlugin extends AdminForthPlugin {
487
487
  return null;
488
488
  }
489
489
  const backgroundJobsPlugin = this.adminforth.getPluginByClassName('BackgroundJobsPlugin');
490
- backgroundJobsPlugin.updateJobFieldsAtomicly(jobId, () => __awaiter(this, void 0, void 0, function* () {
490
+ backgroundJobsPlugin.updateJobFieldsAtomically(jobId, () => __awaiter(this, void 0, void 0, function* () {
491
491
  // do all set / get fields in this function to make state update atomic and there is no conflicts when 2 tasks in parallel do get before set.
492
492
  // don't do long awaits in this callback, since it has exclusive lock.
493
493
  let totalUsedTokens = yield backgroundJobsPlugin.getJobField(jobId, 'totalUsedTokens');
package/index.ts CHANGED
@@ -574,7 +574,7 @@ export default class I18nPlugin extends AdminForthPlugin {
574
574
 
575
575
  const backgroundJobsPlugin = this.adminforth.getPluginByClassName<any>('BackgroundJobsPlugin');
576
576
 
577
- backgroundJobsPlugin.updateJobFieldsAtomicly(jobId, async () => {
577
+ backgroundJobsPlugin.updateJobFieldsAtomically(jobId, async () => {
578
578
  // do all set / get fields in this function to make state update atomic and there is no conflicts when 2 tasks in parallel do get before set.
579
579
  // don't do long awaits in this callback, since it has exclusive lock.
580
580
  let totalUsedTokens = await backgroundJobsPlugin.getJobField(jobId, 'totalUsedTokens');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/i18n",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -9,8 +9,7 @@
9
9
  },
10
10
  "homepage": "https://adminforth.dev/docs/tutorial/Plugins/i18n/",
11
11
  "scripts": {
12
- "build": "tsc && rsync -av --exclude 'node_modules' custom dist/",
13
- "prepare": "npm link adminforth"
12
+ "build": "tsc && rsync -av --exclude 'node_modules' custom dist/"
14
13
  },
15
14
  "repository": {
16
15
  "type": "git",
@@ -39,7 +38,7 @@
39
38
  "p-limit": "^7.3.0"
40
39
  },
41
40
  "peerDependencies": {
42
- "adminforth": "next"
41
+ "adminforth": "^2.24.0"
43
42
  },
44
43
  "devDependencies": {
45
44
  "@types/node": "^22.10.7",
@@ -57,6 +56,7 @@
57
56
  [
58
57
  "semantic-release-slack-bot",
59
58
  {
59
+ "packageName": "@adminforth/i18n",
60
60
  "notifyOnSuccess": true,
61
61
  "notifyOnFail": true,
62
62
  "slackIcon": ":package:",