@tachybase/plugin-print-template 1.3.21 → 1.3.23

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.
@@ -1,7 +1,5 @@
1
1
  module.exports = {
2
- "@tachybase/client": "1.3.21",
3
- "@tachybase/database": "1.3.21",
4
- "@tachybase/server": "1.3.21",
5
- "koa-bodyparser": "4.4.1",
6
- "@tachybase/actions": "1.3.21"
2
+ "@tachybase/client": "1.3.23",
3
+ "@tego/server": "1.3.43",
4
+ "koa-bodyparser": "4.4.1"
7
5
  };
@@ -10,9 +10,9 @@ case `uname` in
10
10
  esac
11
11
 
12
12
  if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/home/runner/work/tego/tego/node_modules/.pnpm/semver@7.7.2/node_modules/semver/bin/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/semver@7.7.2/node_modules/semver/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/semver@7.7.2/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/node_modules"
13
+ export NODE_PATH="/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/semver@7.7.2/node_modules/semver/bin/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/semver@7.7.2/node_modules/semver/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/semver@7.7.2/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/node_modules"
14
14
  else
15
- export NODE_PATH="/home/runner/work/tego/tego/node_modules/.pnpm/semver@7.7.2/node_modules/semver/bin/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/semver@7.7.2/node_modules/semver/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/semver@7.7.2/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/node_modules:$NODE_PATH"
15
+ export NODE_PATH="/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/semver@7.7.2/node_modules/semver/bin/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/semver@7.7.2/node_modules/semver/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/semver@7.7.2/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/node_modules:$NODE_PATH"
16
16
  fi
17
17
  if [ -x "$basedir/node" ]; then
18
18
  exec "$basedir/node" "$basedir/../../../../../semver@7.7.2/node_modules/semver/bin/semver.js" "$@"
@@ -10,9 +10,9 @@ case `uname` in
10
10
  esac
11
11
 
12
12
  if [ -z "$NODE_PATH" ]; then
13
- export NODE_PATH="/home/runner/work/tego/tego/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/bin/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@9.0.1/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/node_modules"
13
+ export NODE_PATH="/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/bin/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/node_modules"
14
14
  else
15
- export NODE_PATH="/home/runner/work/tego/tego/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/bin/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/uuid@9.0.1/node_modules:/home/runner/work/tego/tego/node_modules/.pnpm/node_modules:$NODE_PATH"
15
+ export NODE_PATH="/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/bin/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/uuid@9.0.1/node_modules:/home/runner/work/tego-standard/tego-standard/node_modules/.pnpm/node_modules:$NODE_PATH"
16
16
  fi
17
17
  if [ -x "$basedir/node" ]; then
18
18
  exec "$basedir/node" "$basedir/../../../../../uuid@9.0.1/node_modules/uuid/dist/bin/uuid" "$@"
@@ -1 +1 @@
1
- {"name":"bullmq","version":"5.56.4","description":"Queue for messages and jobs based on Redis","homepage":"https://bullmq.io/","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","types":"./dist/esm/index.d.ts","source":"./src/index.ts","author":"Taskforce.sh Inc.","license":"MIT","keywords":["bull","bullmq","queues","jobs","redis"],"files":["dist"],"scripts":{"build":"npm run pretest && npm run tsc:all && npm run copy:main:type && npm run clean:temp:files && npm run copy:lua && npm run copy:includes:lua","circular:references":"madge --circular --extensions ts ./src","clean:scripts":"rimraf rawScripts src/scripts","clean:temp:files":"rimraf dist/cjs/bullmq.d.ts dist/esm/bullmq.d.ts dist/tsdoc-metadata.json","copy:includes:lua":"cpx \"./src/commands/includes/*.lua\" ./dist/cjs/commands/includes && cpx \"./src/commands/includes/*.lua\" ./dist/esm/commands/includes","copy:lua":"cpx \"./src/commands/*.lua\" ./dist/cjs/commands && cpx \"./src/commands/*.lua\" ./dist/esm/commands","copy:lua:python":"cpx \"./rawScripts/*.lua\" ./python/bullmq/commands","copy:main:type":"cpx \"./dist/esm/classes/main.d.ts\" ./dist/cjs/classes && cpx \"./dist/esm/classes/main-worker.d.ts\" ./dist/cjs/classes","coverage":"nyc --reporter=text --reporter=lcovonly npm run test","cm":"git cz","docs":"typedoc --excludeExternals --excludeProtected --excludePrivate --readme none src/index.ts","docs:json":"typedoc --excludeExternals --excludeProtected --excludePrivate --readme none src/index.ts --json ./apiVersions/v5.json --name v5","dc:up":"docker-compose -f docker-compose.yml up -d","dc:down":"docker-compose -f docker-compose.yml down","dry-run":"npm publish --dry-run","eslint:fix":"./node_modules/.bin/eslint . --fix","generate:raw:scripts":"ts-node --project tsconfig-cjs.json scripts/generateRawScripts.ts","lint":"./node_modules/.bin/eslint .","lint:staged":"lint-staged","prepublishOnly":"npm run build","prepare":"husky install","pretest":"npm run clean:scripts && npm run generate:raw:scripts && npm run transform:commands","prettier":"prettier --config package.json src/**/*.ts","pretty:quick":"pretty-quick --staged","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","test":"NODE_ENV=test ts-mocha -p tsconfig-cjs.json --config ./.mocharc.js","test:watch":"ts-mocha -p tsconfig-cjs.json --paths 'tests/test_*.ts' -w --watch-extensions ts","transform:commands":"node ./scripts/commandTransform.js ./rawScripts ./src/scripts","tsc":"tsc","tsc:all":"tsc && tsc -p tsconfig-cjs.json"},"dependencies":{"cron-parser":"^4.9.0","ioredis":"^5.4.1","msgpackr":"^1.11.2","node-abort-controller":"^3.1.1","semver":"^7.5.4","tslib":"^2.0.0","uuid":"^9.0.0"},"devDependencies":{"@commitlint/cli":"^17.0.3","@commitlint/config-conventional":"^17.0.3","@istanbuljs/nyc-config-typescript":"^1.0.2","@semantic-release/changelog":"^6.0.1","@semantic-release/commit-analyzer":"^13.0.1","@semantic-release/exec":"^6.0.3","@semantic-release/git":"^10.0.1","@semantic-release/github":"^11.0.1","@semantic-release/npm":"^10.0.6","@semantic-release/release-notes-generator":"^10.0.3","@types/chai":"^4.3.1","@types/chai-as-promised":"^7.1.5","@types/lodash.defaults":"^4.2.7","@types/lodash.isarguments":"^3.1.7","@types/mocha":"^5.2.7","@types/msgpack":"^0.0.31","@types/node":"^12.20.25","@types/semver":"^7.3.9","@types/sinon":"^10.0.13","@types/uuid":"^3.4.10","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0","chai":"^4.3.4","chai-as-promised":"^7.1.1","commitizen":"^4.2.5","cpx2":"^8.0.0","coveralls-next":"^4.2.1","eslint":"^9.24.0","eslint-config-prettier":"^8.5.0","eslint-plugin-mocha":"^10.1.0","eslint-plugin-prettier":"4.2.1","eslint-plugin-promise":"^7.2.1","eslint-plugin-tsdoc":"^0.4.0","fast-glob":"^3.3.3","husky":"^8.0.1","istanbul":"^0.4.5","lint-staged":"^15.5.0","madge":"^8.0.0","minimatch":"^9.0.3","mocha":"^11.1.0","mocha-lcov-reporter":"^1.3.0","moment":"^2.29.4","nyc":"^17.1.0","prettier":"^2.7.1","pretty-quick":"^3.1.3","progress":"^2.0.3","rimraf":"^6.0.1","rrule":"^2.6.9","semantic-release":"^24.2.5","sinon":"^18.0.1","test-console":"^2.0.0","ts-mocha":"^11.1.0","ts-node":"^10.7.0","typedoc":"^0.28.2","typescript":"^4.7.4"},"resolutions":{"brace-expansion":"1.1.12"},"nyc":{"extends":"@istanbuljs/nyc-config-typescript","all":true,"check-coverage":true,"include":["src/**/*.ts"],"exclude":["bullmq-tests/test_*.ts"],"lines":80,"functions":80,"branches":70,"statements":80,"watermarks":{"lines":[80,95],"functions":[80,95],"branches":[80,95],"statements":[80,95]}},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"lint-staged":{"*.{js,ts}":"npm run eslint:fix"},"repository":{"type":"git","url":"https://github.com/taskforcesh/bullmq.git"},"release":{"plugins":[["@semantic-release/commit-analyzer",{"releaseRules":[{"message":"*\\[python\\]*","release":false}]}],"@semantic-release/release-notes-generator",["@semantic-release/changelog",{"changelogFile":"docs/gitbook/changelog.md"}],["@semantic-release/exec",{"prepareCmd":"node scripts/updateVersion.js ${nextRelease.version} && yarn build"}],["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"]},"packageManager":"yarn@1.22.22","_lastModified":"2025-07-25T05:53:27.245Z"}
1
+ {"name":"bullmq","version":"5.56.4","description":"Queue for messages and jobs based on Redis","homepage":"https://bullmq.io/","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","types":"./dist/esm/index.d.ts","source":"./src/index.ts","author":"Taskforce.sh Inc.","license":"MIT","keywords":["bull","bullmq","queues","jobs","redis"],"files":["dist"],"scripts":{"build":"npm run pretest && npm run tsc:all && npm run copy:main:type && npm run clean:temp:files && npm run copy:lua && npm run copy:includes:lua","circular:references":"madge --circular --extensions ts ./src","clean:scripts":"rimraf rawScripts src/scripts","clean:temp:files":"rimraf dist/cjs/bullmq.d.ts dist/esm/bullmq.d.ts dist/tsdoc-metadata.json","copy:includes:lua":"cpx \"./src/commands/includes/*.lua\" ./dist/cjs/commands/includes && cpx \"./src/commands/includes/*.lua\" ./dist/esm/commands/includes","copy:lua":"cpx \"./src/commands/*.lua\" ./dist/cjs/commands && cpx \"./src/commands/*.lua\" ./dist/esm/commands","copy:lua:python":"cpx \"./rawScripts/*.lua\" ./python/bullmq/commands","copy:main:type":"cpx \"./dist/esm/classes/main.d.ts\" ./dist/cjs/classes && cpx \"./dist/esm/classes/main-worker.d.ts\" ./dist/cjs/classes","coverage":"nyc --reporter=text --reporter=lcovonly npm run test","cm":"git cz","docs":"typedoc --excludeExternals --excludeProtected --excludePrivate --readme none src/index.ts","docs:json":"typedoc --excludeExternals --excludeProtected --excludePrivate --readme none src/index.ts --json ./apiVersions/v5.json --name v5","dc:up":"docker-compose -f docker-compose.yml up -d","dc:down":"docker-compose -f docker-compose.yml down","dry-run":"npm publish --dry-run","eslint:fix":"./node_modules/.bin/eslint . --fix","generate:raw:scripts":"ts-node --project tsconfig-cjs.json scripts/generateRawScripts.ts","lint":"./node_modules/.bin/eslint .","lint:staged":"lint-staged","prepublishOnly":"npm run build","prepare":"husky install","pretest":"npm run clean:scripts && npm run generate:raw:scripts && npm run transform:commands","prettier":"prettier --config package.json src/**/*.ts","pretty:quick":"pretty-quick --staged","semantic-release":"semantic-release","semantic-release-prepare":"ts-node tools/semantic-release-prepare","test":"NODE_ENV=test ts-mocha -p tsconfig-cjs.json --config ./.mocharc.js","test:watch":"ts-mocha -p tsconfig-cjs.json --paths 'tests/test_*.ts' -w --watch-extensions ts","transform:commands":"node ./scripts/commandTransform.js ./rawScripts ./src/scripts","tsc":"tsc","tsc:all":"tsc && tsc -p tsconfig-cjs.json"},"dependencies":{"cron-parser":"^4.9.0","ioredis":"^5.4.1","msgpackr":"^1.11.2","node-abort-controller":"^3.1.1","semver":"^7.5.4","tslib":"^2.0.0","uuid":"^9.0.0"},"devDependencies":{"@commitlint/cli":"^17.0.3","@commitlint/config-conventional":"^17.0.3","@istanbuljs/nyc-config-typescript":"^1.0.2","@semantic-release/changelog":"^6.0.1","@semantic-release/commit-analyzer":"^13.0.1","@semantic-release/exec":"^6.0.3","@semantic-release/git":"^10.0.1","@semantic-release/github":"^11.0.1","@semantic-release/npm":"^10.0.6","@semantic-release/release-notes-generator":"^10.0.3","@types/chai":"^4.3.1","@types/chai-as-promised":"^7.1.5","@types/lodash.defaults":"^4.2.7","@types/lodash.isarguments":"^3.1.7","@types/mocha":"^5.2.7","@types/msgpack":"^0.0.31","@types/node":"^12.20.25","@types/semver":"^7.3.9","@types/sinon":"^10.0.13","@types/uuid":"^3.4.10","@typescript-eslint/eslint-plugin":"^8.28.0","@typescript-eslint/parser":"^8.28.0","chai":"^4.3.4","chai-as-promised":"^7.1.1","commitizen":"^4.2.5","cpx2":"^8.0.0","coveralls-next":"^4.2.1","eslint":"^9.24.0","eslint-config-prettier":"^8.5.0","eslint-plugin-mocha":"^10.1.0","eslint-plugin-prettier":"4.2.1","eslint-plugin-promise":"^7.2.1","eslint-plugin-tsdoc":"^0.4.0","fast-glob":"^3.3.3","husky":"^8.0.1","istanbul":"^0.4.5","lint-staged":"^15.5.0","madge":"^8.0.0","minimatch":"^9.0.3","mocha":"^11.1.0","mocha-lcov-reporter":"^1.3.0","moment":"^2.29.4","nyc":"^17.1.0","prettier":"^2.7.1","pretty-quick":"^3.1.3","progress":"^2.0.3","rimraf":"^6.0.1","rrule":"^2.6.9","semantic-release":"^24.2.5","sinon":"^18.0.1","test-console":"^2.0.0","ts-mocha":"^11.1.0","ts-node":"^10.7.0","typedoc":"^0.28.2","typescript":"^4.7.4"},"resolutions":{"brace-expansion":"1.1.12"},"nyc":{"extends":"@istanbuljs/nyc-config-typescript","all":true,"check-coverage":true,"include":["src/**/*.ts"],"exclude":["bullmq-tests/test_*.ts"],"lines":80,"functions":80,"branches":70,"statements":80,"watermarks":{"lines":[80,95],"functions":[80,95],"branches":[80,95],"statements":[80,95]}},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"lint-staged":{"*.{js,ts}":"npm run eslint:fix"},"repository":{"type":"git","url":"https://github.com/taskforcesh/bullmq.git"},"release":{"plugins":[["@semantic-release/commit-analyzer",{"releaseRules":[{"message":"*\\[python\\]*","release":false}]}],"@semantic-release/release-notes-generator",["@semantic-release/changelog",{"changelogFile":"docs/gitbook/changelog.md"}],["@semantic-release/exec",{"prepareCmd":"node scripts/updateVersion.js ${nextRelease.version} && yarn build"}],["@semantic-release/npm",{"npmPublish":true}],"@semantic-release/github"]},"packageManager":"yarn@1.22.22","_lastModified":"2025-08-02T21:29:58.857Z"}
@@ -1 +1 @@
1
- {"name":"docxtemplater","version":"3.55.8","author":"Edgar Hipp","description":"Generate docx, pptx, and xlsx from templates (Word, Powerpoint and Excel documents), from Node.js, the Browser and the command line","contributors":[{"name":"Edgar Hipp"}],"main":"js/docxtemplater.js","keywords":["docx","pptx","templates","template","templater","templating","report","xlsx","generation","generate","generator","microsoft office","microsoft word","microsoft powerpoint","microsoft excel","create","make","Office Open XML","creator"],"types":"./js/docxtemplater.d.ts","repository":{"type":"git","url":"git+https://github.com/open-xml-templating/docxtemplater.git"},"dependencies":{"@xmldom/xmldom":"^0.9.6"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.1","@babel/cli":"^7.26.4","@babel/core":"^7.26.0","@babel/eslint-parser":"^7.25.9","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.26.0","@stryker-mutator/core":"^8.7.1","@stryker-mutator/mocha-runner":"^8.7.1","angular-expressions":"^1.4.3","babel-loader":"^9.2.1","chai":"^4.5.0","chalk":"^5.3.0","cross-env":"^7.0.3","diff":"^7.0.0","envify":"^4.1.0","es6-promise":"^4.2.8","eslint":"^9.17.0","eslint_d":"^14.2.2","eslint-formatter-unix":"^8.40.0","eslint-plugin-import":"^2.31.0","eslint-plugin-sort-class-members":"^1.21.0","eslint-plugin-specific-sort":"file:.eslint-rules","finalhandler":"^1.3.1","globals":"^15.13.0","lodash":"^4.17.21","mkdirp":"^3.0.1","mocha":"^10.8.2","nyc":"^17.1.0","pizzip":"^3.1.7","playwright":"^1.49.1","prettier":"^3.4.2","rimraf":"^6.0.1","selenium-standalone":"^10.0.0","serve-static":"^1.15.0","stryker-cli":"^1.0.2","tsd":"^0.31.2","updtr":"^4.1.0","webpack":"^5.97.1","webpack-cli":"^5.1.4"},"license":"MIT","engines":{"node":">=0.10"},"scripts":{"profile":"bash ./profile.bash","preversion":"bash ./preversion.bash","check-casing":"bash ./check-casing.bash","compile":"npm run convertto:es5","browserify:test":"cross-env FILE=test webpack","browserify:lib":"webpack","browserify:min":"cross-env MIN=true webpack","updtr":"updtr --exclude chai mocha","browserify":"npm run browserify:test && npm run browserify:lib && npm run browserify:min","convertto:es5":"rimraf js -rf && mkdirp js && npm run babel && cp es6/*.ts js","convertto:es5:watch":"npm run babel -- --watch","test:coverage":"nyc --reporter=html --reporter=text mocha -- es6/tests/index.js","prettier":"prettier --cache --list-different \"es6/**/!(filenames).js\" \"*.js\" \"*.mjs\" \"es6/*.ts\" \".eslint-rules/*.js\" README.md CHANGELOG.md","prettier:fix":"prettier --cache --write \"es6/**/!(filenames).js\" \"*.js\" \"*.mjs\" \"es6/*.ts\" \".eslint-rules/*.js\" README.md CHANGELOG.md","lint":"eslint_d . --cache && bash ./check-casing.bash && npm run prettier && shfmt -l *.bash","lint:fix":"npm run prettier:fix && bash ./check-casing.bash && eslint_d . --cache && shfmt -l -w *.bash","test:chrome":"cross-env BROWSER=CHROME bash ./webdriver.bash","test:firefox":"cross-env BROWSER=FIREFOX bash ./webdriver.bash","test:browser":"bash ./webdriver.bash","babel":"babel es6 --out-dir js","mocha":"mocha --full-trace --check-leaks js/tests/index.js","test:es6":"mocha --full-trace --check-leaks es6/tests/index.js","test:es6:update-fixtures":"cross-env UPDATE=true mocha --full-trace --check-leaks es6/tests/index.js","test:es6:update-snapshots":"cross-env WRITE_SNAPSHOTS=true mocha --full-trace --check-leaks es6/tests/index.js","test:es6:fast":"cross-env FAST=true mocha --full-trace --check-leaks es6/tests/index.js","test:watch":"cross-env FAST=true mocha --watch --full-trace --check-leaks es6/tests/index.js","test:es6:slow":"cross-env FAST= mocha --full-trace --check-leaks es6/tests/index.js","test":"npm run convertto:es5 && npm run mocha","test:es5":"npm test","test:typings":"cp es6/*.ts js && cp es6/*.ts . && tsd .","test:mutations":"cross-env SPEED_TEST=no stryker run","memorytest":"npm run compile && node --max-old-space-size=8000 js/memory-test.js","verifypublishsize":"bash ./verifypublishsize.bash"},"tsd":{"compilerOptions":{"lib":["DOM"]}},"_lastModified":"2025-07-25T05:53:27.636Z"}
1
+ {"name":"docxtemplater","version":"3.55.8","author":"Edgar Hipp","description":"Generate docx, pptx, and xlsx from templates (Word, Powerpoint and Excel documents), from Node.js, the Browser and the command line","contributors":[{"name":"Edgar Hipp"}],"main":"js/docxtemplater.js","keywords":["docx","pptx","templates","template","templater","templating","report","xlsx","generation","generate","generator","microsoft office","microsoft word","microsoft powerpoint","microsoft excel","create","make","Office Open XML","creator"],"types":"./js/docxtemplater.d.ts","repository":{"type":"git","url":"git+https://github.com/open-xml-templating/docxtemplater.git"},"dependencies":{"@xmldom/xmldom":"^0.9.6"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.1","@babel/cli":"^7.26.4","@babel/core":"^7.26.0","@babel/eslint-parser":"^7.25.9","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.26.0","@stryker-mutator/core":"^8.7.1","@stryker-mutator/mocha-runner":"^8.7.1","angular-expressions":"^1.4.3","babel-loader":"^9.2.1","chai":"^4.5.0","chalk":"^5.3.0","cross-env":"^7.0.3","diff":"^7.0.0","envify":"^4.1.0","es6-promise":"^4.2.8","eslint":"^9.17.0","eslint_d":"^14.2.2","eslint-formatter-unix":"^8.40.0","eslint-plugin-import":"^2.31.0","eslint-plugin-sort-class-members":"^1.21.0","eslint-plugin-specific-sort":"file:.eslint-rules","finalhandler":"^1.3.1","globals":"^15.13.0","lodash":"^4.17.21","mkdirp":"^3.0.1","mocha":"^10.8.2","nyc":"^17.1.0","pizzip":"^3.1.7","playwright":"^1.49.1","prettier":"^3.4.2","rimraf":"^6.0.1","selenium-standalone":"^10.0.0","serve-static":"^1.15.0","stryker-cli":"^1.0.2","tsd":"^0.31.2","updtr":"^4.1.0","webpack":"^5.97.1","webpack-cli":"^5.1.4"},"license":"MIT","engines":{"node":">=0.10"},"scripts":{"profile":"bash ./profile.bash","preversion":"bash ./preversion.bash","check-casing":"bash ./check-casing.bash","compile":"npm run convertto:es5","browserify:test":"cross-env FILE=test webpack","browserify:lib":"webpack","browserify:min":"cross-env MIN=true webpack","updtr":"updtr --exclude chai mocha","browserify":"npm run browserify:test && npm run browserify:lib && npm run browserify:min","convertto:es5":"rimraf js -rf && mkdirp js && npm run babel && cp es6/*.ts js","convertto:es5:watch":"npm run babel -- --watch","test:coverage":"nyc --reporter=html --reporter=text mocha -- es6/tests/index.js","prettier":"prettier --cache --list-different \"es6/**/!(filenames).js\" \"*.js\" \"*.mjs\" \"es6/*.ts\" \".eslint-rules/*.js\" README.md CHANGELOG.md","prettier:fix":"prettier --cache --write \"es6/**/!(filenames).js\" \"*.js\" \"*.mjs\" \"es6/*.ts\" \".eslint-rules/*.js\" README.md CHANGELOG.md","lint":"eslint_d . --cache && bash ./check-casing.bash && npm run prettier && shfmt -l *.bash","lint:fix":"npm run prettier:fix && bash ./check-casing.bash && eslint_d . --cache && shfmt -l -w *.bash","test:chrome":"cross-env BROWSER=CHROME bash ./webdriver.bash","test:firefox":"cross-env BROWSER=FIREFOX bash ./webdriver.bash","test:browser":"bash ./webdriver.bash","babel":"babel es6 --out-dir js","mocha":"mocha --full-trace --check-leaks js/tests/index.js","test:es6":"mocha --full-trace --check-leaks es6/tests/index.js","test:es6:update-fixtures":"cross-env UPDATE=true mocha --full-trace --check-leaks es6/tests/index.js","test:es6:update-snapshots":"cross-env WRITE_SNAPSHOTS=true mocha --full-trace --check-leaks es6/tests/index.js","test:es6:fast":"cross-env FAST=true mocha --full-trace --check-leaks es6/tests/index.js","test:watch":"cross-env FAST=true mocha --watch --full-trace --check-leaks es6/tests/index.js","test:es6:slow":"cross-env FAST= mocha --full-trace --check-leaks es6/tests/index.js","test":"npm run convertto:es5 && npm run mocha","test:es5":"npm test","test:typings":"cp es6/*.ts js && cp es6/*.ts . && tsd .","test:mutations":"cross-env SPEED_TEST=no stryker run","memorytest":"npm run compile && node --max-old-space-size=8000 js/memory-test.js","verifypublishsize":"bash ./verifypublishsize.bash"},"tsd":{"compilerOptions":{"lib":["DOM"]}},"_lastModified":"2025-08-02T21:29:59.297Z"}
@@ -1 +1 @@
1
- {"name":"pizzip","version":"3.1.7","author":"Edgar Hipp","description":"Create, read and edit .zip files synchronously with Javascript","scripts":{"lint:fix":"npm run prettier:fix && npm run eslint:fix","eslint:fix":"eslint --cache 'es6/**/*.js' --fix","prettier:fix":"prettier --cache --write '*.js' 'es6/**/*.js' 'test/test.js' test/node.js 'utils/*.js' 'utils/es6/**/*.js'","browserify:lib":"webpack","babel":"babel es6 --out-dir js","babel:watch":"npm run babel -- --watch","build":"npm run browserify:lib && npm run browserify:lib:min","browserify:lib:min":"cross-env MIN=true webpack","preversion":"npm run babel && npm run build && npm test && npm run utils:build && cp utils/dist/* dist && npm run test:typings","test":"mocha test/test.js","test:watch":"mocha test/test.js --watch","test:typings":"cp es6/*.ts js && tsd js && tsd utils","utils:build":"cd utils && cross-env MIN=true ../node_modules/.bin/webpack && ../node_modules/.bin/webpack && IE=true cross-env MIN=true ../node_modules/.bin/webpack && IE=true ../node_modules/.bin/webpack"},"contributors":[{"name":"Stuart Knightley"},{"name":"Franz Buchinger"},{"name":"António Afonso"},{"name":"David Duponchel"},{"name":"yiminghe"},{"name":"Edgar Hipp"}],"main":"./js/index.js","repository":{"type":"git","url":"https://github.com/open-xml-templating/pizzip"},"keywords":["zip","deflate","inflate"],"devDependencies":{"@babel/cli":"^7.23.4","@babel/core":"^7.23.7","@babel/eslint-parser":"^7.23.3","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.8","acorn":"^8.11.3","babel-loader":"^9.1.3","chai":"^4.3.7","cross-env":"^7.0.3","eslint":"^8.56.0","eslint_d":"^13.1.2","eslint-plugin-import":"^2.29.1","mocha":"^10.2.0","prettier":"^3.2.4","tsd":"^0.30.4","webpack":"^5.89.0","webpack-cli":"^5.1.4"},"dependencies":{"pako":"^2.1.0"},"license":"(MIT OR GPL-3.0)","_lastModified":"2025-07-25T05:53:27.869Z"}
1
+ {"name":"pizzip","version":"3.1.7","author":"Edgar Hipp","description":"Create, read and edit .zip files synchronously with Javascript","scripts":{"lint:fix":"npm run prettier:fix && npm run eslint:fix","eslint:fix":"eslint --cache 'es6/**/*.js' --fix","prettier:fix":"prettier --cache --write '*.js' 'es6/**/*.js' 'test/test.js' test/node.js 'utils/*.js' 'utils/es6/**/*.js'","browserify:lib":"webpack","babel":"babel es6 --out-dir js","babel:watch":"npm run babel -- --watch","build":"npm run browserify:lib && npm run browserify:lib:min","browserify:lib:min":"cross-env MIN=true webpack","preversion":"npm run babel && npm run build && npm test && npm run utils:build && cp utils/dist/* dist && npm run test:typings","test":"mocha test/test.js","test:watch":"mocha test/test.js --watch","test:typings":"cp es6/*.ts js && tsd js && tsd utils","utils:build":"cd utils && cross-env MIN=true ../node_modules/.bin/webpack && ../node_modules/.bin/webpack && IE=true cross-env MIN=true ../node_modules/.bin/webpack && IE=true ../node_modules/.bin/webpack"},"contributors":[{"name":"Stuart Knightley"},{"name":"Franz Buchinger"},{"name":"António Afonso"},{"name":"David Duponchel"},{"name":"yiminghe"},{"name":"Edgar Hipp"}],"main":"./js/index.js","repository":{"type":"git","url":"https://github.com/open-xml-templating/pizzip"},"keywords":["zip","deflate","inflate"],"devDependencies":{"@babel/cli":"^7.23.4","@babel/core":"^7.23.7","@babel/eslint-parser":"^7.23.3","@babel/plugin-proposal-object-rest-spread":"^7.20.7","@babel/preset-env":"^7.23.8","acorn":"^8.11.3","babel-loader":"^9.1.3","chai":"^4.3.7","cross-env":"^7.0.3","eslint":"^8.56.0","eslint_d":"^13.1.2","eslint-plugin-import":"^2.29.1","mocha":"^10.2.0","prettier":"^3.2.4","tsd":"^0.30.4","webpack":"^5.89.0","webpack-cli":"^5.1.4"},"dependencies":{"pako":"^2.1.0"},"license":"(MIT OR GPL-3.0)","_lastModified":"2025-08-02T21:29:59.529Z"}
@@ -1,4 +1,4 @@
1
- import { Context } from '@tachybase/actions';
1
+ import { Context } from '@tego/server';
2
2
  export declare const generate: (ctx: Context) => Promise<Buffer<ArrayBufferLike> | {
3
3
  filePath: string;
4
4
  }>;
@@ -32,9 +32,9 @@ __export(printTemplates_exports, {
32
32
  readPDF: () => readPDF
33
33
  });
34
34
  module.exports = __toCommonJS(printTemplates_exports);
35
- var import_fs = __toESM(require("fs"));
36
- var import_path = __toESM(require("path"));
37
- var import_stream = require("stream");
35
+ var import_node_fs = __toESM(require("node:fs"));
36
+ var import_node_path = __toESM(require("node:path"));
37
+ var import_node_stream = require("node:stream");
38
38
  var import_docxtemplater = __toESM(require("docxtemplater"));
39
39
  var import_inspect_module = __toESM(require("docxtemplater/js/inspect-module"));
40
40
  var import_pizzip = __toESM(require("pizzip"));
@@ -46,7 +46,7 @@ const generate = async (ctx) => {
46
46
  appends: ["template"]
47
47
  });
48
48
  const rawTemplate = template.get();
49
- const templatePath = import_path.default.join(process.env.PWD, rawTemplate.template[0].get().url);
49
+ const templatePath = import_node_path.default.join(process.env.PWD, rawTemplate.template[0].get().url);
50
50
  const data = rawTemplate.testData;
51
51
  try {
52
52
  const buffer = generateDocxFromTemplate(templatePath, data);
@@ -70,16 +70,16 @@ const getTags = async (ctx) => {
70
70
  appends: ["template"]
71
71
  });
72
72
  const rawTemplate = template.get();
73
- const templatePath = import_path.default.join(process.env.PWD, rawTemplate.template[0].get().url);
73
+ const templatePath = import_node_path.default.join(process.env.PWD, rawTemplate.template[0].get().url);
74
74
  try {
75
- const content = import_fs.default.readFileSync(templatePath, "binary");
75
+ const content = import_node_fs.default.readFileSync(templatePath, "binary");
76
76
  const zip = new import_pizzip.default(content);
77
77
  const iModule = new import_inspect_module.default();
78
78
  const doc = new import_docxtemplater.default(zip, { modules: [iModule] });
79
79
  const allTags = iModule.getAllTags();
80
80
  console.log("All tags in the document:", allTags);
81
81
  const tagsJson = JSON.stringify(allTags, null, 2);
82
- const readableStream = new import_stream.Readable({
82
+ const readableStream = new import_node_stream.Readable({
83
83
  read(size) {
84
84
  this.push(tagsJson);
85
85
  this.push(null);
@@ -96,7 +96,7 @@ const getTags = async (ctx) => {
96
96
  };
97
97
  function generateDocxFromTemplate(templatePath, data) {
98
98
  try {
99
- const content = import_fs.default.readFileSync(templatePath, "binary");
99
+ const content = import_node_fs.default.readFileSync(templatePath, "binary");
100
100
  const zip = new import_pizzip.default(content);
101
101
  const doc = new import_docxtemplater.default(zip);
102
102
  doc.setData(data);
@@ -116,7 +116,7 @@ const readPDF = async (ctx) => {
116
116
  });
117
117
  const rawTemplate = template.get();
118
118
  const path2 = rawTemplate.pdf_SavePath;
119
- ctx.body = import_fs.default.readFileSync(path2);
119
+ ctx.body = import_node_fs.default.readFileSync(path2);
120
120
  };
121
121
  // Annotate the CommonJS export names for ESM import in node:
122
122
  0 && (module.exports = {
@@ -1,3 +1,3 @@
1
- import { Context } from '@tachybase/actions';
1
+ import { Context } from '@tego/server';
2
2
  export declare const addConversionJob: (ctx: Context) => Promise<void>;
3
3
  export default addConversionJob;
@@ -31,15 +31,15 @@ __export(producer_exports, {
31
31
  default: () => producer_default
32
32
  });
33
33
  module.exports = __toCommonJS(producer_exports);
34
- var import_fs = __toESM(require("fs"));
35
- var import_os = __toESM(require("os"));
36
- var import_path = __toESM(require("path"));
34
+ var import_node_fs = __toESM(require("node:fs"));
35
+ var import_node_os = __toESM(require("node:os"));
36
+ var import_node_path = __toESM(require("node:path"));
37
37
  var import_bullmq = require("bullmq");
38
38
  var import_printTemplates = require("./printTemplates");
39
39
  function saveBufferToTempFile(buffer) {
40
- const tempDir = import_os.default.tmpdir();
41
- const tempFilePath = import_path.default.join(tempDir, `document-${Date.now()}.docx`);
42
- import_fs.default.writeFileSync(tempFilePath, buffer);
40
+ const tempDir = import_node_os.default.tmpdir();
41
+ const tempFilePath = import_node_path.default.join(tempDir, `document-${Date.now()}.docx`);
42
+ import_node_fs.default.writeFileSync(tempFilePath, buffer);
43
43
  return tempFilePath;
44
44
  }
45
45
  const redisOptions = {
@@ -65,7 +65,7 @@ const addConversionJob = async (ctx) => {
65
65
  }
66
66
  console.log("Generated DOCX file path:", filePath);
67
67
  const id = ctx.action.params.id;
68
- const outputDir = import_path.default.join(process.env.PWD, "storage/uploads");
68
+ const outputDir = import_node_path.default.join(process.env.PWD, "storage/uploads");
69
69
  const job = await pdfConversionQueue.add("convert", { wordFilePath: filePath, outputDir, id });
70
70
  ctx.body = { jobId: job.id };
71
71
  } catch (error) {
@@ -1,4 +1,4 @@
1
- import { Plugin } from '@tachybase/server';
1
+ import { Plugin } from '@tego/server';
2
2
  export declare class PluginPrintTemplateServer extends Plugin {
3
3
  afterAdd(): Promise<void>;
4
4
  beforeLoad(): Promise<void>;
@@ -31,14 +31,14 @@ __export(plugin_exports, {
31
31
  default: () => plugin_default
32
32
  });
33
33
  module.exports = __toCommonJS(plugin_exports);
34
- var import_child_process = require("child_process");
35
- var import_path = __toESM(require("path"));
36
- var import_util = __toESM(require("util"));
37
- var import_server = require("@tachybase/server");
34
+ var import_node_child_process = require("node:child_process");
35
+ var import_node_path = __toESM(require("node:path"));
36
+ var import_node_util = __toESM(require("node:util"));
37
+ var import_server = require("@tego/server");
38
38
  var import_bullmq = require("bullmq");
39
39
  var import_printTemplates = require("./actions/printTemplates");
40
40
  var import_producer = require("./actions/producer");
41
- const execPromise = import_util.default.promisify(import_child_process.exec);
41
+ const execPromise = import_node_util.default.promisify(import_node_child_process.exec);
42
42
  const redisOptions = {
43
43
  port: Number(process.env.REDIS_PORT || 6379),
44
44
  host: process.env.REDIS_HOST || "localhost",
@@ -46,8 +46,8 @@ const redisOptions = {
46
46
  };
47
47
  async function convertDocxToPdf(wordFilePath, outputDir, job, db) {
48
48
  try {
49
- const fileName = import_path.default.basename(wordFilePath, ".docx") + ".pdf";
50
- const pdfFilePath = import_path.default.join(outputDir, fileName);
49
+ const fileName = import_node_path.default.basename(wordFilePath, ".docx") + ".pdf";
50
+ const pdfFilePath = import_node_path.default.join(outputDir, fileName);
51
51
  console.log(`Converting ${wordFilePath} to PDF at ${pdfFilePath}`);
52
52
  const command = `libreoffice --headless --convert-to pdf --outdir "${outputDir}" "${wordFilePath}"`;
53
53
  console.log("commandcommandcommand:", command);
package/package.json CHANGED
@@ -1,26 +1,21 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-print-template",
3
- "version": "1.3.21",
3
+ "version": "1.3.23",
4
4
  "main": "dist/server/index.js",
5
5
  "dependencies": {},
6
6
  "devDependencies": {
7
7
  "@bull-board/api": "^6.11.1",
8
- "@bull-board/koa": "^6.5.3",
8
+ "@bull-board/koa": "^6.11.1",
9
+ "@tachybase/test": "^1.3.43",
10
+ "@tego/client": "^1.3.43",
11
+ "@tego/server": "^1.3.43",
9
12
  "bullmq": "^5.56.4",
10
13
  "docxtemplater": "^3.55.8",
11
14
  "koa-bodyparser": "^4.4.1",
12
15
  "pizzip": "^3.1.7",
13
16
  "typescript": "5.8.3",
14
- "xml2js": "^0.6.2"
17
+ "xml2js": "^0.6.2",
18
+ "@tachybase/client": "1.3.23"
15
19
  },
16
- "peerDependencies": {
17
- "@tachybase/actions": "1.3.21",
18
- "@tachybase/client": "1.3.21",
19
- "@tachybase/database": "1.3.21",
20
- "@tachybase/server": "1.3.21",
21
- "@tachybase/test": "1.3.21"
22
- },
23
- "scripts": {
24
- "build": "tachybase-build --no-dts @tachybase/plugin-print-template"
25
- }
20
+ "scripts": {}
26
21
  }