@twin.org/qr 0.0.2-next.9 → 0.0.3-next.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.
Files changed (66) hide show
  1. package/dist/es/data/qrAlphaNumeric.js +79 -0
  2. package/dist/es/data/qrAlphaNumeric.js.map +1 -0
  3. package/dist/es/data/qrByte8.js +63 -0
  4. package/dist/es/data/qrByte8.js.map +1 -0
  5. package/dist/es/data/qrDataBase.js +102 -0
  6. package/dist/es/data/qrDataBase.js.map +1 -0
  7. package/dist/es/data/qrNumber.js +73 -0
  8. package/dist/es/data/qrNumber.js.map +1 -0
  9. package/dist/es/helpers/bitBuffer.js +79 -0
  10. package/dist/es/helpers/bitBuffer.js.map +1 -0
  11. package/dist/es/helpers/mathHelper.js +71 -0
  12. package/dist/es/helpers/mathHelper.js.map +1 -0
  13. package/dist/es/helpers/polynomial.js +117 -0
  14. package/dist/es/helpers/polynomial.js.map +1 -0
  15. package/dist/es/helpers/qrHelper.js +269 -0
  16. package/dist/es/helpers/qrHelper.js.map +1 -0
  17. package/dist/es/helpers/rsBlock.js +293 -0
  18. package/dist/es/helpers/rsBlock.js.map +1 -0
  19. package/dist/es/index.js +12 -0
  20. package/dist/es/index.js.map +1 -0
  21. package/dist/es/models/IBitmapRendererOptions.js +2 -0
  22. package/dist/es/models/IBitmapRendererOptions.js.map +1 -0
  23. package/dist/es/models/IRendererOptions.js +4 -0
  24. package/dist/es/models/IRendererOptions.js.map +1 -0
  25. package/dist/es/models/ITextRendererOptions.js +2 -0
  26. package/dist/es/models/ITextRendererOptions.js.map +1 -0
  27. package/dist/es/models/errorCorrectLevel.js +26 -0
  28. package/dist/es/models/errorCorrectLevel.js.map +1 -0
  29. package/dist/es/models/maskPattern.js +42 -0
  30. package/dist/es/models/maskPattern.js.map +1 -0
  31. package/dist/es/models/qrCellData.js +2 -0
  32. package/dist/es/models/qrCellData.js.map +1 -0
  33. package/dist/es/models/qrDataMode.js +22 -0
  34. package/dist/es/models/qrDataMode.js.map +1 -0
  35. package/dist/es/qr.js +551 -0
  36. package/dist/es/qr.js.map +1 -0
  37. package/dist/es/renderers/jpegRenderer.js +80 -0
  38. package/dist/es/renderers/jpegRenderer.js.map +1 -0
  39. package/dist/es/renderers/pngRenderer.js +80 -0
  40. package/dist/es/renderers/pngRenderer.js.map +1 -0
  41. package/dist/es/renderers/textRenderer.js +65 -0
  42. package/dist/es/renderers/textRenderer.js.map +1 -0
  43. package/dist/types/data/qrAlphaNumeric.d.ts +6 -2
  44. package/dist/types/data/qrByte8.d.ts +2 -2
  45. package/dist/types/{models → data}/qrDataBase.d.ts +7 -4
  46. package/dist/types/data/qrNumber.d.ts +6 -2
  47. package/dist/types/helpers/mathHelper.d.ts +4 -0
  48. package/dist/types/helpers/polynomial.d.ts +1 -1
  49. package/dist/types/helpers/qrHelper.d.ts +7 -3
  50. package/dist/types/helpers/rsBlock.d.ts +5 -1
  51. package/dist/types/index.d.ts +9 -9
  52. package/dist/types/models/IBitmapRendererOptions.d.ts +1 -1
  53. package/dist/types/models/ITextRendererOptions.d.ts +1 -1
  54. package/dist/types/qr.d.ts +6 -2
  55. package/dist/types/renderers/jpegRenderer.d.ts +6 -2
  56. package/dist/types/renderers/pngRenderer.d.ts +6 -2
  57. package/dist/types/renderers/textRenderer.d.ts +6 -2
  58. package/docs/changelog.md +296 -0
  59. package/docs/reference/classes/JpegRenderer.md +8 -0
  60. package/docs/reference/classes/PngRenderer.md +8 -0
  61. package/docs/reference/classes/QR.md +8 -0
  62. package/docs/reference/classes/TextRenderer.md +8 -0
  63. package/locales/en.json +9 -9
  64. package/package.json +20 -11
  65. package/dist/cjs/index.cjs +0 -1999
  66. package/dist/esm/index.mjs +0 -1993
package/docs/changelog.md CHANGED
@@ -1,5 +1,301 @@
1
1
  # @twin.org/qr - Changelog
2
2
 
3
+ ## [0.0.3-next.2](https://github.com/twinfoundation/framework/compare/qr-v0.0.3-next.1...qr-v0.0.3-next.2) (2025-11-12)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **qr:** Synchronize repo versions
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/core bumped from 0.0.3-next.1 to 0.0.3-next.2
16
+ * @twin.org/image bumped from 0.0.3-next.1 to 0.0.3-next.2
17
+ * @twin.org/nameof bumped from 0.0.3-next.1 to 0.0.3-next.2
18
+ * devDependencies
19
+ * @twin.org/nameof-transformer bumped from 0.0.3-next.1 to 0.0.3-next.2
20
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.3-next.1 to 0.0.3-next.2
21
+ * @twin.org/validate-locales bumped from 0.0.3-next.1 to 0.0.3-next.2
22
+
23
+ ## [0.0.3-next.1](https://github.com/twinfoundation/framework/compare/qr-v0.0.3-next.0...qr-v0.0.3-next.1) (2025-11-10)
24
+
25
+
26
+ ### Features
27
+
28
+ * add context id features ([#206](https://github.com/twinfoundation/framework/issues/206)) ([ef0d4ee](https://github.com/twinfoundation/framework/commit/ef0d4ee11a4f5fc6cc6f52a4958ce905c04ee13b))
29
+ * add guards arrayEndsWith and arrayStartsWith ([95d875e](https://github.com/twinfoundation/framework/commit/95d875ec8ccb4713c145fdde941d4cfedcec2ed3))
30
+ * eslint migration to flat config ([74427d7](https://github.com/twinfoundation/framework/commit/74427d78d342167f7850e49ab87269326355befe))
31
+ * locales validation ([#197](https://github.com/twinfoundation/framework/issues/197)) ([55fdadb](https://github.com/twinfoundation/framework/commit/55fdadb13595ce0047f787bd1d4135d429a99f12))
32
+ * relocate core packages from tools ([bcab8f3](https://github.com/twinfoundation/framework/commit/bcab8f3160442ea4fcaf442947462504f3d6a17d))
33
+ * update dependencies ([f3bd015](https://github.com/twinfoundation/framework/commit/f3bd015efd169196b7e0335f5cab876ba6ca1d75))
34
+ * use cause instead of inner for errors ([1f4acc4](https://github.com/twinfoundation/framework/commit/1f4acc4d7a6b71a134d9547da9bf40de1e1e49da))
35
+ * use new shared store mechanism ([#131](https://github.com/twinfoundation/framework/issues/131)) ([934385b](https://github.com/twinfoundation/framework/commit/934385b2fbaf9f5c00a505ebf9d093bd5a425f55))
36
+
37
+
38
+ ### Dependencies
39
+
40
+ * The following workspace dependencies were updated
41
+ * dependencies
42
+ * @twin.org/core bumped from 0.0.3-next.0 to 0.0.3-next.1
43
+ * @twin.org/image bumped from 0.0.3-next.0 to 0.0.3-next.1
44
+ * @twin.org/nameof bumped from 0.0.3-next.0 to 0.0.3-next.1
45
+ * devDependencies
46
+ * @twin.org/nameof-transformer bumped from 0.0.3-next.0 to 0.0.3-next.1
47
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.3-next.0 to 0.0.3-next.1
48
+ * @twin.org/validate-locales bumped from 0.0.3-next.0 to 0.0.3-next.1
49
+
50
+ ## [0.0.2-next.22](https://github.com/twinfoundation/framework/compare/qr-v0.0.2-next.21...qr-v0.0.2-next.22) (2025-10-10)
51
+
52
+
53
+ ### Miscellaneous Chores
54
+
55
+ * **qr:** Synchronize repo versions
56
+
57
+
58
+ ### Dependencies
59
+
60
+ * The following workspace dependencies were updated
61
+ * dependencies
62
+ * @twin.org/core bumped from 0.0.2-next.21 to 0.0.2-next.22
63
+ * @twin.org/image bumped from 0.0.2-next.21 to 0.0.2-next.22
64
+ * @twin.org/nameof bumped from 0.0.2-next.21 to 0.0.2-next.22
65
+ * devDependencies
66
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.21 to 0.0.2-next.22
67
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.21 to 0.0.2-next.22
68
+ * @twin.org/validate-locales bumped from 0.0.2-next.21 to 0.0.2-next.22
69
+
70
+ ## [0.0.2-next.21](https://github.com/twinfoundation/framework/compare/qr-v0.0.2-next.20...qr-v0.0.2-next.21) (2025-10-09)
71
+
72
+
73
+ ### Features
74
+
75
+ * locales validation ([#197](https://github.com/twinfoundation/framework/issues/197)) ([55fdadb](https://github.com/twinfoundation/framework/commit/55fdadb13595ce0047f787bd1d4135d429a99f12))
76
+
77
+
78
+ ### Dependencies
79
+
80
+ * The following workspace dependencies were updated
81
+ * dependencies
82
+ * @twin.org/core bumped from 0.0.2-next.20 to 0.0.2-next.21
83
+ * @twin.org/image bumped from 0.0.2-next.20 to 0.0.2-next.21
84
+ * @twin.org/nameof bumped from 0.0.2-next.20 to 0.0.2-next.21
85
+ * devDependencies
86
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.20 to 0.0.2-next.21
87
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.20 to 0.0.2-next.21
88
+ * @twin.org/validate-locales bumped from 0.0.2-next.20 to 0.0.2-next.21
89
+
90
+ ## [0.0.2-next.20](https://github.com/twinfoundation/framework/compare/qr-v0.0.2-next.19...qr-v0.0.2-next.20) (2025-10-02)
91
+
92
+
93
+ ### Miscellaneous Chores
94
+
95
+ * **qr:** Synchronize repo versions
96
+
97
+
98
+ ### Dependencies
99
+
100
+ * The following workspace dependencies were updated
101
+ * dependencies
102
+ * @twin.org/core bumped from 0.0.2-next.19 to 0.0.2-next.20
103
+ * @twin.org/image bumped from 0.0.2-next.19 to 0.0.2-next.20
104
+ * @twin.org/nameof bumped from 0.0.2-next.19 to 0.0.2-next.20
105
+ * devDependencies
106
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.19 to 0.0.2-next.20
107
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.19 to 0.0.2-next.20
108
+
109
+ ## [0.0.2-next.19](https://github.com/twinfoundation/framework/compare/qr-v0.0.2-next.18...qr-v0.0.2-next.19) (2025-09-30)
110
+
111
+
112
+ ### Miscellaneous Chores
113
+
114
+ * **qr:** Synchronize repo versions
115
+
116
+
117
+ ### Dependencies
118
+
119
+ * The following workspace dependencies were updated
120
+ * dependencies
121
+ * @twin.org/core bumped from 0.0.2-next.18 to 0.0.2-next.19
122
+ * @twin.org/image bumped from 0.0.2-next.18 to 0.0.2-next.19
123
+ * @twin.org/nameof bumped from 0.0.2-next.18 to 0.0.2-next.19
124
+ * devDependencies
125
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.18 to 0.0.2-next.19
126
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.18 to 0.0.2-next.19
127
+
128
+ ## [0.0.2-next.18](https://github.com/twinfoundation/framework/compare/qr-v0.0.2-next.17...qr-v0.0.2-next.18) (2025-09-29)
129
+
130
+
131
+ ### Miscellaneous Chores
132
+
133
+ * **qr:** Synchronize repo versions
134
+
135
+
136
+ ### Dependencies
137
+
138
+ * The following workspace dependencies were updated
139
+ * dependencies
140
+ * @twin.org/core bumped from 0.0.2-next.17 to 0.0.2-next.18
141
+ * @twin.org/image bumped from 0.0.2-next.17 to 0.0.2-next.18
142
+ * @twin.org/nameof bumped from 0.0.2-next.17 to 0.0.2-next.18
143
+ * devDependencies
144
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.17 to 0.0.2-next.18
145
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.17 to 0.0.2-next.18
146
+
147
+ ## [0.0.2-next.17](https://github.com/twinfoundation/framework/compare/qr-v0.0.2-next.16...qr-v0.0.2-next.17) (2025-09-29)
148
+
149
+
150
+ ### Miscellaneous Chores
151
+
152
+ * **qr:** Synchronize repo versions
153
+
154
+
155
+ ### Dependencies
156
+
157
+ * The following workspace dependencies were updated
158
+ * dependencies
159
+ * @twin.org/core bumped from 0.0.2-next.16 to 0.0.2-next.17
160
+ * @twin.org/image bumped from 0.0.2-next.16 to 0.0.2-next.17
161
+ * @twin.org/nameof bumped from 0.0.2-next.16 to 0.0.2-next.17
162
+ * devDependencies
163
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.16 to 0.0.2-next.17
164
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.16 to 0.0.2-next.17
165
+
166
+ ## [0.0.2-next.16](https://github.com/twinfoundation/framework/compare/qr-v0.0.2-next.15...qr-v0.0.2-next.16) (2025-09-28)
167
+
168
+
169
+ ### Miscellaneous Chores
170
+
171
+ * **qr:** Synchronize repo versions
172
+
173
+
174
+ ### Dependencies
175
+
176
+ * The following workspace dependencies were updated
177
+ * dependencies
178
+ * @twin.org/core bumped from 0.0.2-next.15 to 0.0.2-next.16
179
+ * @twin.org/image bumped from 0.0.2-next.15 to 0.0.2-next.16
180
+ * @twin.org/nameof bumped from 0.0.2-next.15 to 0.0.2-next.16
181
+ * devDependencies
182
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.15 to 0.0.2-next.16
183
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.15 to 0.0.2-next.16
184
+
185
+ ## [0.0.2-next.15](https://github.com/twinfoundation/framework/compare/qr-v0.0.2-next.14...qr-v0.0.2-next.15) (2025-09-22)
186
+
187
+
188
+ ### Miscellaneous Chores
189
+
190
+ * **qr:** Synchronize repo versions
191
+
192
+
193
+ ### Dependencies
194
+
195
+ * The following workspace dependencies were updated
196
+ * dependencies
197
+ * @twin.org/core bumped from 0.0.2-next.14 to 0.0.2-next.15
198
+ * @twin.org/image bumped from 0.0.2-next.14 to 0.0.2-next.15
199
+ * @twin.org/nameof bumped from 0.0.2-next.14 to 0.0.2-next.15
200
+ * devDependencies
201
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.14 to 0.0.2-next.15
202
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.14 to 0.0.2-next.15
203
+
204
+ ## [0.0.2-next.14](https://github.com/twinfoundation/framework/compare/qr-v0.0.2-next.13...qr-v0.0.2-next.14) (2025-09-22)
205
+
206
+
207
+ ### Miscellaneous Chores
208
+
209
+ * **qr:** Synchronize repo versions
210
+
211
+
212
+ ### Dependencies
213
+
214
+ * The following workspace dependencies were updated
215
+ * dependencies
216
+ * @twin.org/core bumped from 0.0.2-next.13 to 0.0.2-next.14
217
+ * @twin.org/image bumped from 0.0.2-next.13 to 0.0.2-next.14
218
+ * @twin.org/nameof bumped from 0.0.2-next.13 to 0.0.2-next.14
219
+ * devDependencies
220
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.13 to 0.0.2-next.14
221
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.13 to 0.0.2-next.14
222
+
223
+ ## [0.0.2-next.13](https://github.com/twinfoundation/framework/compare/qr-v0.0.2-next.12...qr-v0.0.2-next.13) (2025-09-22)
224
+
225
+
226
+ ### Miscellaneous Chores
227
+
228
+ * **qr:** Synchronize repo versions
229
+
230
+
231
+ ### Dependencies
232
+
233
+ * The following workspace dependencies were updated
234
+ * dependencies
235
+ * @twin.org/core bumped from 0.0.2-next.12 to 0.0.2-next.13
236
+ * @twin.org/image bumped from 0.0.2-next.12 to 0.0.2-next.13
237
+ * @twin.org/nameof bumped from 0.0.2-next.12 to 0.0.2-next.13
238
+ * devDependencies
239
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.12 to 0.0.2-next.13
240
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.12 to 0.0.2-next.13
241
+
242
+ ## [0.0.2-next.12](https://github.com/twinfoundation/framework/compare/qr-v0.0.2-next.11...qr-v0.0.2-next.12) (2025-09-15)
243
+
244
+
245
+ ### Miscellaneous Chores
246
+
247
+ * **qr:** Synchronize repo versions
248
+
249
+
250
+ ### Dependencies
251
+
252
+ * The following workspace dependencies were updated
253
+ * dependencies
254
+ * @twin.org/core bumped from 0.0.2-next.11 to 0.0.2-next.12
255
+ * @twin.org/image bumped from 0.0.2-next.11 to 0.0.2-next.12
256
+ * @twin.org/nameof bumped from 0.0.2-next.11 to 0.0.2-next.12
257
+ * devDependencies
258
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.11 to 0.0.2-next.12
259
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.11 to 0.0.2-next.12
260
+
261
+ ## [0.0.2-next.11](https://github.com/twinfoundation/framework/compare/qr-v0.0.2-next.10...qr-v0.0.2-next.11) (2025-09-15)
262
+
263
+
264
+ ### Miscellaneous Chores
265
+
266
+ * **qr:** Synchronize repo versions
267
+
268
+
269
+ ### Dependencies
270
+
271
+ * The following workspace dependencies were updated
272
+ * dependencies
273
+ * @twin.org/core bumped from 0.0.2-next.10 to 0.0.2-next.11
274
+ * @twin.org/image bumped from 0.0.2-next.10 to 0.0.2-next.11
275
+ * @twin.org/nameof bumped from 0.0.2-next.10 to 0.0.2-next.11
276
+ * devDependencies
277
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.10 to 0.0.2-next.11
278
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.10 to 0.0.2-next.11
279
+
280
+ ## [0.0.2-next.10](https://github.com/twinfoundation/framework/compare/qr-v0.0.2-next.9...qr-v0.0.2-next.10) (2025-09-11)
281
+
282
+
283
+ ### Miscellaneous Chores
284
+
285
+ * **qr:** Synchronize repo versions
286
+
287
+
288
+ ### Dependencies
289
+
290
+ * The following workspace dependencies were updated
291
+ * dependencies
292
+ * @twin.org/core bumped from 0.0.2-next.9 to 0.0.2-next.10
293
+ * @twin.org/image bumped from 0.0.2-next.9 to 0.0.2-next.10
294
+ * @twin.org/nameof bumped from 0.0.2-next.9 to 0.0.2-next.10
295
+ * devDependencies
296
+ * @twin.org/nameof-transformer bumped from 0.0.2-next.9 to 0.0.2-next.10
297
+ * @twin.org/nameof-vitest-plugin bumped from 0.0.2-next.9 to 0.0.2-next.10
298
+
3
299
  ## [0.0.2-next.9](https://github.com/twinfoundation/framework/compare/qr-v0.0.2-next.8...qr-v0.0.2-next.9) (2025-09-08)
4
300
 
5
301
 
@@ -12,6 +12,14 @@ Class to render qr data as jpeg.
12
12
 
13
13
  `JpegRenderer`
14
14
 
15
+ ## Properties
16
+
17
+ ### CLASS\_NAME
18
+
19
+ > `readonly` `static` **CLASS\_NAME**: `string`
20
+
21
+ Runtime name for the class.
22
+
15
23
  ## Methods
16
24
 
17
25
  ### render()
@@ -12,6 +12,14 @@ Class to render qr data as png.
12
12
 
13
13
  `PngRenderer`
14
14
 
15
+ ## Properties
16
+
17
+ ### CLASS\_NAME
18
+
19
+ > `readonly` `static` **CLASS\_NAME**: `string`
20
+
21
+ Runtime name for the class.
22
+
15
23
  ## Methods
16
24
 
17
25
  ### render()
@@ -33,6 +33,14 @@ Create a new instance of QR.
33
33
 
34
34
  Error if the typeNumber is invalid.
35
35
 
36
+ ## Properties
37
+
38
+ ### CLASS\_NAME
39
+
40
+ > `readonly` `static` **CLASS\_NAME**: `string`
41
+
42
+ Runtime name for the class.
43
+
36
44
  ## Methods
37
45
 
38
46
  ### addText()
@@ -12,6 +12,14 @@ Class to render qr data as text.
12
12
 
13
13
  `TextRenderer`
14
14
 
15
+ ## Properties
16
+
17
+ ### CLASS\_NAME
18
+
19
+ > `readonly` `static` **CLASS\_NAME**: `string`
20
+
21
+ Runtime name for the class.
22
+
15
23
  ## Methods
16
24
 
17
25
  ### render()
package/locales/en.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "error": {
3
- "qr": {
3
+ "qR": {
4
4
  "typeNumberRange": "The typeNumber parameter should be a number >= 0 and <= 40, it is {typeNumber}",
5
5
  "dataOverflow": "There is not enough space in the QR code to store the data, {lengthInBits} > {totalDataCount}, try increasing the typeNumber from {typeNumber}, or use 0 for auto detect",
6
6
  "typeNumberOverflow": "There is not enough space in the QR code to store the data, {lengthInBits} > {totalDataCount}, typeNumber cannot be greater than 40"
@@ -10,21 +10,21 @@
10
10
  "marginSizeZero": "The marginSize must be a number >= 0, it is \"{marginSize}\""
11
11
  },
12
12
  "qRAlphaNumeric": {
13
- "illegalCharacter ": "Illegal character in string \"{value}\""
13
+ "illegalCharacter": "Illegal character in string \"{value}\""
14
14
  },
15
15
  "qRNumber": {
16
- "illegalCharacter ": "Illegal character in string \"{value}\""
16
+ "illegalCharacter": "Illegal character in string \"{value}\""
17
17
  },
18
18
  "mathHelper": {
19
- "lessThanOne ": "The value can not be less than 1, it is \"{value}\""
19
+ "lessThanOne": "The value can not be less than 1, it is \"{value}\""
20
20
  },
21
- "qrHelper": {
22
- "correctionLevelRange ": "The errorCorrectLevel parameter should be one of the following: \"L\", \"M\", \"Q\", \"H\", it is \"{errorCorrectLevel}\"",
23
- "modeRange ": "The mode parameter should be one of the following: \"Byte\", \"Numeric\", \"Alphanumeric\", it is \"{mode}\"",
24
- "maskPatternRange ": "The maskPattern parameter should be a number >= 0 and <= 7, it is \"{maskPattern}\""
21
+ "qRHelper": {
22
+ "correctionLevelRange": "The errorCorrectLevel parameter should be one of the following: \"L\", \"M\", \"Q\", \"H\", it is \"{errorCorrectLevel}\"",
23
+ "modeRange": "The mode parameter should be one of the following: \"Byte\", \"Numeric\", \"Alphanumeric\", it is \"{mode}\"",
24
+ "maskPatternRange": "The maskPattern parameter should be a number >= 0 and <= 7, it is \"{maskPattern}\""
25
25
  },
26
26
  "rSBlock": {
27
- "correctionLevelRange ": "The errorCorrectLevel parameter should be one of the following: \"L\", \"M\", \"Q\", \"H\", it is \"{errorCorrectLevel}\""
27
+ "correctionLevelRange": "The errorCorrectLevel parameter should be one of the following: \"L\", \"M\", \"Q\", \"H\", it is \"{errorCorrectLevel}\""
28
28
  },
29
29
  "qRDataBase": {
30
30
  "invalidMode": "Invalid mode {mode} for typeNumber {typeNumber}",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/qr",
3
- "version": "0.0.2-next.9",
3
+ "version": "0.0.3-next.2",
4
4
  "description": "Package for creating QR codes",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,25 +14,34 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/core": "0.0.2-next.9",
18
- "@twin.org/image": "0.0.2-next.9",
19
- "@twin.org/nameof": "0.0.2-next.9"
17
+ "@twin.org/core": "0.0.3-next.2",
18
+ "@twin.org/image": "0.0.3-next.2",
19
+ "@twin.org/nameof": "0.0.3-next.2"
20
20
  },
21
- "main": "./dist/cjs/index.cjs",
22
- "module": "./dist/esm/index.mjs",
21
+ "main": "./dist/es/index.js",
23
22
  "types": "./dist/types/index.d.ts",
24
23
  "exports": {
25
24
  ".": {
26
25
  "types": "./dist/types/index.d.ts",
27
- "require": "./dist/cjs/index.cjs",
28
- "import": "./dist/esm/index.mjs"
26
+ "import": "./dist/es/index.js",
27
+ "default": "./dist/es/index.js"
29
28
  }
30
29
  },
31
30
  "files": [
32
- "dist/cjs",
33
- "dist/esm",
31
+ "dist/es",
34
32
  "dist/types",
35
33
  "locales",
36
34
  "docs"
37
- ]
35
+ ],
36
+ "keywords": [
37
+ "twin",
38
+ "trade",
39
+ "iota",
40
+ "framework",
41
+ "blockchain"
42
+ ],
43
+ "bugs": {
44
+ "url": "git+https://github.com/twinfoundation/framework/issues"
45
+ },
46
+ "homepage": "https://twindev.org"
38
47
  }