@abtnode/auth 1.8.21 → 1.8.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.
@@ -37,12 +37,20 @@ const createPassportSvg = ({
37
37
  const svgXML = `<svg width="${width}" height="${height}" viewBox="0 0 424 564" fill="none" xmlns="http://www.w3.org/2000/svg">
38
38
  <rect x="1" y="1" width="422" height="562" rx="21" fill="url(#paint0_linear_6_342)"/>
39
39
  <text x="360" y="65" fill="white" xml:space="preserve" font-family="Roboto,Helvetica" font-size="${(() => {
40
- if (title.length >= 6) {
41
- return 24;
40
+ if (title.length >= 12) {
41
+ return 12;
42
+ }
43
+
44
+ if (title.length >= 10) {
45
+ return 14;
42
46
  }
43
47
 
44
48
  if (title.length >= 8) {
45
- return 20;
49
+ return 18;
50
+ }
51
+
52
+ if (title.length >= 6) {
53
+ return 24;
46
54
  }
47
55
 
48
56
  return 28;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.21",
6
+ "version": "1.8.23",
7
7
  "description": "Simple lib to manage auth in ABT Node",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -20,13 +20,13 @@
20
20
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
- "@abtnode/constant": "1.8.21",
24
- "@abtnode/logger": "1.8.21",
25
- "@abtnode/util": "1.8.21",
23
+ "@abtnode/constant": "1.8.23",
24
+ "@abtnode/logger": "1.8.23",
25
+ "@abtnode/util": "1.8.23",
26
26
  "@arcblock/did": "1.17.19",
27
27
  "@arcblock/jwt": "^1.17.19",
28
28
  "@arcblock/vc": "1.17.19",
29
- "@blocklet/meta": "1.8.21",
29
+ "@blocklet/meta": "1.8.23",
30
30
  "@ocap/client": "1.17.19",
31
31
  "@ocap/mcrypto": "1.17.19",
32
32
  "@ocap/util": "1.17.19",
@@ -41,5 +41,5 @@
41
41
  "devDependencies": {
42
42
  "jest": "^27.5.1"
43
43
  },
44
- "gitHead": "f990cddd5ef18ece7ada5d7573b8e0652d74abdc"
44
+ "gitHead": "539a32437cf0d01d4cf12afd0dd8276716467527"
45
45
  }