@connectedxm/zpl-generator 0.0.7 → 0.0.10

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.
Files changed (2) hide show
  1. package/dist/index.es.js +3 -4
  2. package/package.json +9 -2
package/dist/index.es.js CHANGED
@@ -2983,7 +2983,7 @@ const ps = {
2983
2983
  }), Ls = ae.extend({
2984
2984
  type: x("barcode"),
2985
2985
  // ^BY barWidth
2986
- barWidth: g().int().min(4).max(9999),
2986
+ barWidth: g().int().min(1).max(100),
2987
2987
  // ^BC orientation, height, line, lineAbove, checkDigit
2988
2988
  orientation: wt,
2989
2989
  height: g().int().min(1).max(32e3),
@@ -3114,8 +3114,7 @@ function Gs(e, t, n) {
3114
3114
  }
3115
3115
  function Hs(e, t) {
3116
3116
  if (!t) return String(e.defaultValue ?? "");
3117
- let n = [];
3118
- const r = e.sourceLookup.split(",");
3117
+ const n = [], r = e.sourceLookup.split(",");
3119
3118
  for (const o of r) {
3120
3119
  const s = o.split("?").map((c) => c?.trim());
3121
3120
  let i;
@@ -3198,7 +3197,7 @@ function Xs(e, t) {
3198
3197
  function Qs(e, t) {
3199
3198
  if (e.measuredWidth !== void 0 && e.maxWidth > 0)
3200
3199
  return Math.max(1, Math.ceil(e.measuredWidth / e.maxWidth));
3201
- const n = t.split("&"), r = e.charsPerLine ?? 0;
3200
+ const n = t.split("\\&"), r = e.charsPerLine ?? 0;
3202
3201
  return ec(n, r);
3203
3202
  }
3204
3203
  function ec(e, t) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/zpl-generator",
3
- "version": "0.0.7",
3
+ "version": "0.0.10",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -14,7 +14,9 @@
14
14
  "local": "npm run build && npm pack",
15
15
  "test": "vitest run",
16
16
  "test:watch": "vitest",
17
- "upgrade": "ncu -i --format group"
17
+ "upgrade": "ncu -i --format group",
18
+ "lint": "eslint . --ext .ts",
19
+ "lint:fix": "eslint src/**/*.ts --fix"
18
20
  },
19
21
  "files": [
20
22
  "dist"
@@ -26,8 +28,13 @@
26
28
  "minimatch": "^10.2.3"
27
29
  },
28
30
  "devDependencies": {
31
+ "@eslint/js": "^10.0.1",
29
32
  "@types/node": "^22.15.3",
33
+ "@typescript-eslint/eslint-plugin": "^8.57.0",
34
+ "@typescript-eslint/parser": "^8.57.0",
35
+ "eslint": "^10.0.3",
30
36
  "typescript": "^5.9.3",
37
+ "typescript-eslint": "^8.57.0",
31
38
  "vite": "^7.3.1",
32
39
  "vite-plugin-dts": "^4.5.4",
33
40
  "vitest": "^4.0.18"