xl-public-utils 1.0.3 → 1.0.4

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "xl-public-utils",
3
- "version": "1.0.3",
4
- "description": "一些通用的方法",
3
+ "version": "1.0.4",
4
+ "description": "",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
7
7
  "types": "index.d.ts",
package/src/bwip-js.mjs CHANGED
@@ -234,7 +234,9 @@ function _Render(encoder, options, drawing) {
234
234
  }
235
235
  // We use mm rather than inches for height - except pharmacode2 height
236
236
  // which is already in mm.
237
- if (+bwippopts.height && encoder != bwipp_pharmacode2) {
237
+ // exludes bwipp_pharmacode2
238
+ // if (+bwippopts.height && encoder != bwipp_pharmacode2) {
239
+ if (+bwippopts.height) {
238
240
  bwippopts.height = bwippopts.height / 25.4 || 0.5;
239
241
  }
240
242
  // Likewise, width
package/src/qrcode.mjs CHANGED
@@ -110,6 +110,6 @@ export function generateQRCodeWithText(content, options = {}) {
110
110
  }
111
111
  return canvas.toDataURL('image/png')
112
112
  } catch (e) {
113
- return false
113
+ throw(e);
114
114
  }
115
115
  }