@onylab/common-api 0.1.196 → 0.1.199

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.
@@ -5,66 +5,45 @@
5
5
  <meta http-equiv="Copy-Type" content="text/html; charset=utf-8">
6
6
  <meta name="viewport" content="width=device-width"/>
7
7
  <style type="text/css">
8
- html,
9
- body,
10
- div[style*="margin: 16px 0"] {
8
+ html, body, div[style*="margin: 16px 0"] {
11
9
  margin: 0;
12
10
  padding: 0;
13
11
  border: 0;
14
12
  }
15
-
16
- .ExternalClass,
17
- .ExternalClass p,
18
- .ExternalClass span,
19
- .ExternalClass font,
20
- .ExternalClass td,
21
- .ExternalClass div {
13
+ .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {
22
14
  line-height: 100%;
23
15
  }
24
-
25
- table,
26
- td {
16
+ table, td {
27
17
  border: 0;
28
18
  border-collapse: collapse;
29
19
  margin: 0;
30
20
  padding: 0;
31
21
  }
32
-
33
- a,
34
- span,
35
- td {
22
+ a, span, td {
36
23
  -webkit-font-smoothing: antialiased;
37
24
  -moz-osx-font-smoothing: grayscale;
38
25
  }
39
-
40
26
  img {
41
27
  display: block;
42
28
  border: 0;
43
29
  line-height: 100%;
44
30
  }
45
-
46
31
  img + div {
47
32
  display: none !important;
48
33
  }
49
-
50
34
  a {
51
35
  outline: 0;
52
36
  text-decoration: none;
53
37
  }
54
-
55
38
  a img {
56
39
  border: 0;
57
40
  }
58
-
59
- ol,
60
- ul,
61
- li {
41
+ ol, ul, li {
62
42
  margin: 0;
63
43
  padding: 0;
64
44
  list-style: none;
65
45
  text-indent: 0;
66
46
  }
67
-
68
47
  p {
69
48
  margin-bottom: 20px;
70
49
  margin-left: 0;
@@ -73,14 +52,12 @@
73
52
  padding: 0;
74
53
  text-align: left !important;
75
54
  }
76
-
77
55
  #bodyTable {
78
56
  height: 100%;
79
57
  margin: 0;
80
58
  padding: 0;
81
59
  width: 100%;
82
60
  }
83
-
84
61
  .Email {
85
62
  min-width: 100% !important;
86
63
  width: 100% !important;
@@ -89,13 +66,11 @@
89
66
  -webkit-text-size-adjust: 100%;
90
67
  -ms-text-size-adjust: 100%;
91
68
  }
92
-
93
69
  .Background {
94
70
  min-width: 100%;
95
71
  width: 100%;
96
72
  background-color: #f1f5f9;
97
73
  }
98
-
99
74
  .Wrapper {
100
75
  margin: 0 auto !important;
101
76
  max-width: 600px;
@@ -105,91 +80,70 @@
105
80
  border-radius: 8px;
106
81
  box-shadow: 0 2px 11px 0 rgba(0, 0, 0, 0.15);
107
82
  }
108
-
109
83
  .Spacer {
110
84
  color: #ffffff;
111
85
  font-size: 1px;
112
86
  line-height: 1px;
113
87
  mso-line-height-rule: exactly;
114
88
  }
115
-
116
89
  .Target {
117
90
  font-size: 0;
118
91
  line-height: 0px;
119
92
  mso-line-height-rule: exactly;
120
93
  background-size: 100% 100%;
121
94
  }
122
-
123
95
  .Font {
124
96
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
125
97
  mso-line-height-rule: exactly;
126
98
  vertical-align: middle;
127
99
  }
128
-
129
100
  .Font p span {
130
101
  color: inherit !important;
131
102
  font-size: inherit !important;
132
103
  }
133
-
134
- .Font-title,
135
- .Font-title a {
104
+ .Font-title, .Font-title a {
136
105
  color: #32325d;
137
106
  font-size: 20px;
138
107
  line-height: 28px;
139
108
  }
140
-
141
109
  .Font-body {
142
110
  color: #525f7f;
143
111
  font-size: 14px;
144
112
  line-height: 20px;
145
113
  }
146
-
147
114
  .Font-body a {
148
115
  color: #1f82f8;
149
116
  }
150
-
151
117
  .Font-body em {
152
118
  font-style: italic;
153
119
  }
154
-
155
120
  .Font-body strong {
156
121
  font-weight: bold;
157
122
  }
158
-
159
- .Font-body p,
160
- .Font-body span,
161
- .Font-body li,
162
- .Font-body ol,
163
- .Font-body ul {
123
+ .Font-body p, .Font-body span, .Font-body li, .Font-body ol, .Font-body ul {
164
124
  color: inherit !important;
165
125
  font-size: inherit !important;
166
126
  line-height: inherit !important;
167
127
  text-align: inherit !important;
168
128
  }
169
-
170
129
  .Font-caption {
171
130
  color: #525f7f;
172
131
  font-size: 12px;
173
132
  line-height: 16px;
174
133
  }
175
-
176
134
  .Font-caption a {
177
135
  color: #1f82f8;
178
136
  }
179
-
180
137
  .Font-hr {
181
138
  color: #e6ebf1;
182
139
  }
183
-
184
140
  .Delink a {
185
141
  color: #1f82f8 !important;
186
142
  text-decoration: none !important;
187
143
  }
188
-
189
144
  .Header-logoArea {
190
145
  display: block;
191
146
  }
192
-
193
147
  .Button-wrap a {
194
148
  display: block;
195
149
  padding: 0 12px !important;
@@ -209,41 +163,33 @@
209
163
  vertical-align: middle;
210
164
  white-space: nowrap;
211
165
  }
212
-
213
166
  .Image-content {
214
167
  background-color: #434770;
215
168
  text-align: center;
216
169
  }
217
-
218
170
  .Image-content a {
219
171
  color: #ffffff;
220
172
  font-size: 14px;
221
173
  }
222
-
223
174
  .ListItem-bulletArea {
224
175
  background-color: #8a98a9;
225
176
  }
226
-
227
177
  .Footer {
228
178
  background-color: #2f2f2f;
229
179
  border-bottom-left-radius: 8px;
230
180
  border-bottom-right-radius: 8px;
231
181
  }
232
-
233
182
  .Footer-logoArea {
234
183
  display: block;
235
184
  }
236
185
 
237
186
  @media screen and (max-width: 600px) {
238
- .Email,
239
- .Background {
187
+ .Email, .Background {
240
188
  background-color: #f6f9fc !important;
241
189
  }
242
-
243
190
  *[class="Gmail"] {
244
191
  display: none !important;
245
192
  }
246
-
247
193
  .Wrapper {
248
194
  max-width: 600px !important;
249
195
  min-width: 320px !important;
@@ -251,15 +197,12 @@
251
197
  border-radius: 0 !important;
252
198
  box-shadow: none !important;
253
199
  }
254
-
255
200
  .Spacer-gutter {
256
201
  width: 20px !important;
257
202
  }
258
-
259
203
  .Spacer-emailEnds {
260
204
  height: 0 !important;
261
205
  }
262
-
263
206
  .Target img {
264
207
  display: none !important;
265
208
  height: 0 !important;
@@ -272,102 +215,71 @@
272
215
  font-size: 0 !important;
273
216
  line-height: 0 !important;
274
217
  }
275
-
276
218
  .Target::before {
277
219
  content: "" !important;
278
220
  display: block !important;
279
221
  }
280
-
281
- .Header-logoArea {
222
+ /*.Header-logoArea {
282
223
  height: 28px !important;
283
224
  width: 68px !important;
284
225
  background-image: url("{{base.shop.logo}}") !important;
285
226
  background-size: 68px 28px !important;
286
- }
287
-
288
- .Image-bottomLeft,
289
- .Image-bottomLeft::before,
290
- .Image-bottomRight,
291
- .Image-bottomRight::before,
292
- .Image-topLeft,
293
- .Image-topLeft::before,
294
- .Image-topRight,
295
- .Image-topRight::before {
227
+ }*/
228
+ .Image-bottomLeft, .Image-bottomLeft::before, .Image-bottomRight, .Image-bottomRight::before, .Image-topLeft, .Image-topLeft::before, .Image-topRight, .Image-topRight::before {
296
229
  height: 24px !important;
297
230
  width: 20px !important;
298
231
  }
299
-
300
232
  .Image-bottomLeft {
301
233
  background-image: url("https://burgerbreton.net/cdn/image/email/ui/image--bottomleft--mobile.png") !important;
302
234
  }
303
-
304
235
  .Image-bottomRight {
305
236
  background-image: url("https://burgerbreton.net/cdn/image/email/ui/image--bottomright--mobile.png") !important;
306
237
  }
307
-
308
238
  .Image-topLeft {
309
239
  background-image: url("https://burgerbreton.net/cdn/image/email/ui/image--topleft--mobile.png") !important;
310
240
  }
311
-
312
241
  .Image-topRight {
313
242
  background-image: url("https://burgerbreton.net/cdn/image/email/ui/image--topright--mobile.png") !important;
314
243
  }
315
-
316
- .Image-bottomMiddle,
317
- .Image-bottomMiddle::before,
318
- .Image-topMiddle,
319
- .Image-topMiddle::before {
244
+ .Image-bottomMiddle, .Image-bottomMiddle::before, .Image-topMiddle, .Image-topMiddle::before {
320
245
  height: 24px !important;
321
246
  width: 100% !important;
322
247
  }
323
-
324
248
  .Image-bottomMiddle {
325
249
  background-image: url("https://burgerbreton.net/cdn/image/email/ui/image--bottommiddle--mobile.png") !important;
326
250
  }
327
-
328
251
  .Image-topMiddle {
329
252
  background-image: url("https://burgerbreton.net/cdn/image/email/ui/image--topmiddle--mobile.png") !important;
330
253
  }
331
-
332
- .Image-left,
333
- .Image-left::before,
334
- .Image-right,
335
- .Image-right::before {
254
+ .Image-left, .Image-left::before, .Image-right, .Image-right::before {
336
255
  height: auto !important;
337
256
  width: 20px !important;
338
257
  }
339
-
340
258
  .Image-left {
341
259
  background-image: url("https://burgerbreton.net/cdn/image/email/ui/image--left--mobile.png") !important;
342
260
  }
343
-
344
261
  .Image-right {
345
262
  background-image: url("https://burgerbreton.net/cdn/image/email/ui/image--right--mobile.png") !important;
346
263
  }
347
-
348
264
  .Image-content {
349
265
  height: auto !important;
350
266
  width: 100% !important;
351
267
  }
352
-
353
268
  .Image-contentSource {
354
269
  height: auto !important;
355
270
  min-width: 280px !important;
356
271
  width: 100% !important;
357
272
  }
358
-
359
273
  .Button-area {
360
274
  width: 100% !important;
361
275
  text-align: center !important;
362
276
  }
363
-
364
277
  .ListItem-bulletArea {
365
278
  height: 20px !important;
366
279
  width: 12px !important;
367
280
  background-image: url("https://burgerbreton.net/cdn/image/email/ui/bullet.png") !important;
368
281
  background-size: 12px 20px !important;
369
282
  }
370
-
371
283
  .Footer-logoArea {
372
284
  height: 20px !important;
373
285
  width: 42px !important;
@@ -378,12 +290,8 @@
378
290
  </style>
379
291
  <title>{{ base.subject }}</title>
380
292
  <style type="text/css">
381
- h4 {
382
- text-align: left;
383
- }
384
-
293
+ h4 { text-align: left; }
385
294
  @media screen {
386
-
387
295
  .headerLineTitle {
388
296
  width: 1.5in;
389
297
  display: inline-block;
@@ -393,7 +301,6 @@
393
301
  font-family: "Calibri", "sans-serif";
394
302
  font-weight: bold;
395
303
  }
396
-
397
304
  .headerLineText {
398
305
  display: inline;
399
306
  margin: 0in;
@@ -402,7 +309,6 @@
402
309
  font-family: "Calibri", "sans-serif";
403
310
  font-weight: normal;
404
311
  }
405
-
406
312
  .pageHeader {
407
313
  font-size: 14.0pt;
408
314
  font-family: "Calibri", "sans-serif";
@@ -422,7 +328,6 @@
422
328
  font-family: "Calibri", "sans-serif";
423
329
  font-weight: bold;
424
330
  }
425
-
426
331
  .headerLineText {
427
332
  display: inline;
428
333
  margin: 0in;
@@ -431,7 +336,6 @@
431
336
  font-family: "Calibri", "sans-serif";
432
337
  font-weight: normal;
433
338
  }
434
-
435
339
  .pageHeader {
436
340
  font-size: 14.0pt;
437
341
  font-family: "Calibri", "sans-serif";
@@ -439,7 +343,6 @@
439
343
  visibility: visible;
440
344
  display: block;
441
345
  }
442
-
443
346
  }
444
347
  </style>
445
348
  </head>
@@ -473,11 +376,9 @@
473
376
  </td>
474
377
  <td class="Header-logo"
475
378
  style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;">
476
- <a href="{{base.shop.url}}" class="Header-logoArea Target"
379
+ <a href="{{base.shop.url}}" class="Header-logoArea"
477
380
  style="-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;outline-color:0;text-decoration:none;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;display:block;">
478
- <img
479
- alt="logo" width="150" src="{{base.shop.logo}}"
480
- style="display:block;line-height:100%;border-width:0;margin:0 auto;"/>
381
+ <img alt="logo {{{ base.shop.name }}}" width="150" src="{{base.shop.logo}}" style="display:block;line-height:100%;border-width:0;margin:0 auto;" />
481
382
  </a>
482
383
  </td>
483
384
  <td class="Spacer Spacer-gutter" width="64"
@@ -635,7 +536,7 @@
635
536
  <tr>
636
537
  <td
637
538
  style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;">
638
- <a href="{{ base.shop.social.facebook.url }}" class="Footer-facebookLogo Target" target="_blank"
539
+ <a href="{{ base.shop.social.facebook.url }}" class="Footer-facebookLogo" target="_blank"
639
540
  style="-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;outline-color:0;text-decoration:none;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;">
640
541
  <img alt="facebook icon" height="20" width="20"
641
542
  src="{{ base.shop.social.facebook.logo }}"
@@ -648,7 +549,7 @@
648
549
  </td>
649
550
  <td
650
551
  style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;">
651
- <a href="{{ base.shop.social.instagram.url }}" class="Footer-twitterLogo Target" target="_blank"
552
+ <a href="{{ base.shop.social.instagram.url }}" class="Footer-twitterLogo" target="_blank"
652
553
  style="-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;outline-color:0;text-decoration:none;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;">
653
554
  <img alt="instagram incon" height="20" width="20"
654
555
  src="{{ base.shop.social.instagram.logo }}"
@@ -661,7 +562,7 @@
661
562
  </td>
662
563
  <td
663
564
  style="border-width:0;border-collapse:collapse;margin-top:0;margin-bottom:0;margin-right:0;margin-left:0;padding-top:0;padding-bottom:0;padding-right:0;padding-left:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;">
664
- <a href="{{ base.shop.social.twitter.url }}" class="Footer-twitterLogo Target" target="_blank"
565
+ <a href="{{ base.shop.social.twitter.url }}" class="Footer-twitterLogo" target="_blank"
665
566
  style="-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;outline-color:0;text-decoration:none;font-size:0;line-height:0px;mso-line-height-rule:exactly;background-size:100% 100%;">
666
567
  <img alt="twitter incon" height="20" width="20"
667
568
  src="{{ base.shop.social.twitter.logo }}"
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Common API",
4
4
  "main": "dist/common-api.node.min.js",
5
5
  "types": "dist/common-api.d.ts",
6
- "version": "0.1.196",
6
+ "version": "0.1.199",
7
7
  "author": "Paul M.",
8
8
  "license": "NO LICENSE",
9
9
  "engines": {
@@ -24,11 +24,15 @@
24
24
  "validate": "(npm run compile --silent && npm run lint --silent && npm run test || { exit 1; })"
25
25
  },
26
26
  "dependencies": {
27
- "@sentry/integrations": "^6.12.0",
28
- "@sentry/node": "^6.12.0",
29
- "@sentry/tracing": "^7.6.0",
27
+ "@sentry/integrations": "^7.39.0",
28
+ "@sentry/node": "^7.39.0",
29
+ "@sentry/tracing": "^7.39.0",
30
+ "@types/clean-css": "^4.2.6",
30
31
  "@types/compression": "^1.7.2",
32
+ "@types/html-minifier-terser": "^7.0.0",
31
33
  "axios": "^0.24.0",
34
+ "clean-css": "^5.3.1",
35
+ "color-name": "^1.1.4",
32
36
  "compression": "^1.7.4",
33
37
  "connect-timeout": "^1.9.0",
34
38
  "cors": "^2.8.5",
@@ -37,6 +41,7 @@
37
41
  "express-session": "^1.17.2",
38
42
  "fast-diff": "^1.2.0",
39
43
  "helmet": "^4.6.0",
44
+ "html-minifier-terser": "^7.1.0",
40
45
  "lodash": "^4.17.21",
41
46
  "luxon": "^2.0.2",
42
47
  "mustache": "^4.2.0",
@@ -51,6 +56,7 @@
51
56
  "devDependencies": {
52
57
  "@pamls/eslint-config": "^0.2.17",
53
58
  "@types/chai": "^4.2.21",
59
+ "@types/color-name": "^1.1.1",
54
60
  "@types/connect-timeout": "0.0.35",
55
61
  "@types/cors": "^2.8.12",
56
62
  "@types/express": "^4.17.13",