From 4f79d29533e7d2efa07a48766900eefca663faf7 Mon Sep 17 00:00:00 2001 From: kitimark Date: Sat, 3 Feb 2024 18:56:25 +0700 Subject: [PATCH] test: fix media query style loss when it's compiled --- README.md | 1 + lib/mailer.service.spec.ts | 2 +- .../handlebars-template-media-query.hbs | 2 +- package.json | 2 +- pnpm-lock.yaml | 100 ++++++++++++++++-- 5 files changed, 97 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 036f71b3..36936d8d 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ you can find all the documentation [here](https://nest-modules.github.io/mailer/ * [Juan Echeverry](https://github.com/juandav) * [Pat McGowan](https://github.com/p-mcgowan) * [Paweł Partyka](https://github.com/partyka95) +* [Wasutan Kitijerapat](https://github.com/kitimark) ### License diff --git a/lib/mailer.service.spec.ts b/lib/mailer.service.spec.ts index 2a0b14f3..56390634 100644 --- a/lib/mailer.service.spec.ts +++ b/lib/mailer.service.spec.ts @@ -286,7 +286,7 @@ describe('MailerService', () => { '@media only screen and (max-width:350px)', ); expect(lastMail.data.html?.toString().replace(/\n/g, '')).toContain( - `

Handlebars test template. by Nest-modules TM

`.replace(/\n/g, ''), + `

Handlebars test template. by Nest-modules TM

` ); }); diff --git a/lib/test-templates/handlebars-template-media-query.hbs b/lib/test-templates/handlebars-template-media-query.hbs index 37958a26..579f882f 100644 --- a/lib/test-templates/handlebars-template-media-query.hbs +++ b/lib/test-templates/handlebars-template-media-query.hbs @@ -1,4 +1,4 @@ - diff --git a/package.json b/package.json index 221829ff..4edb975e 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ ] }, "dependencies": { - "@css-inline/css-inline": "0.12.1", + "@css-inline/css-inline": "0.13.0", "glob": "10.3.10", "mjml": "4.14.1", "preview-email": "3.0.19" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index acb8ba1f..3f42068b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,9 +5,9 @@ settings: excludeLinksFromLockfile: false dependencies: - css-inline: - specifier: 0.11.2 - version: 0.11.2 + '@css-inline/css-inline': + specifier: 0.13.0 + version: 0.13.0 glob: specifier: 10.3.10 version: 10.3.10 @@ -250,6 +250,7 @@ packages: /@babel/helper-string-parser@7.23.4: resolution: {integrity: sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==} engines: {node: '>=6.9.0'} + requiresBuild: true /@babel/helper-validator-identifier@7.22.20: resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} @@ -645,6 +646,92 @@ packages: '@jridgewell/trace-mapping': 0.3.9 dev: true + /@css-inline/css-inline-darwin-arm64@0.13.0: + resolution: {integrity: sha512-A4QvlZdhp8v+3IHKF/UftRf5GrAVUMEHCGRuk2Dx594xn/UR4ieh+B70aMm5rfONh2hv5mlR9UcoYAkVpEQ99g==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: false + optional: true + + /@css-inline/css-inline-darwin-x64@0.13.0: + resolution: {integrity: sha512-px9z4ypzeECMyBEtlrNzTMpA1tnw5MmMIiMkBRhb8UGRr2pOBZY3yd/eEIxWzVVSPt0aIjVDwUOJ3+d0Z+BskA==} + engines: {node: '>= 10'} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: false + optional: true + + /@css-inline/css-inline-linux-arm-gnueabihf@0.13.0: + resolution: {integrity: sha512-+uo0coLQNgk/AKeOB8mXSRd8VIlUg38zRSB9B9q0ior9oBCDPtEdn1HuCSvWxHoOSJ8QNNk+uwbz0zW4CETzFw==} + engines: {node: '>= 10'} + cpu: [arm] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@css-inline/css-inline-linux-arm64-gnu@0.13.0: + resolution: {integrity: sha512-GVrsFbY5l0Hxyzxsm5S5JPGObvHm/Ybf2wZgnWBsQigxqGtr1FL535HaTwEnq6aHOpH3f08gR5Vx33gB7jG4pw==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@css-inline/css-inline-linux-arm64-musl@0.13.0: + resolution: {integrity: sha512-V5h5+CRnE01EgoafI/kyjEcM8zvN+sKLnp17Aq9LqQfsut7mO3i72d8g/xeVC37DCLoGQFLvDCzbze2NbF2dIQ==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@css-inline/css-inline-linux-x64-gnu@0.13.0: + resolution: {integrity: sha512-vbRV++73MW7dvz/AIbozkv4R68/k/sEp57hno/L6lx034VYxpCwdfqtGN4D0W1TOTzdr2b6qBOGNZ1oLKQZOQQ==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@css-inline/css-inline-linux-x64-musl@0.13.0: + resolution: {integrity: sha512-2tCnwU23W/yMs9cGc2/i2jd9y2pjuntx0a5OytqX7s9fvUtmI3nc0Od6wuf51LnmdU+XAU8HLT9pZppsQiwPfQ==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@css-inline/css-inline-win32-x64-msvc@0.13.0: + resolution: {integrity: sha512-6VFhFSXp4FH+NzJhLd6fFi7jKCPvIRW+vq0tV+CPuiQ3zPzMfC9nIk8sB/1VJR8EcvBAjMV53YnacuDjRFRT9g==} + engines: {node: '>= 10'} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: false + optional: true + + /@css-inline/css-inline@0.13.0: + resolution: {integrity: sha512-ZozAXBiW1I8hf6eW5eTNqhxUdNOBxrNNxxUnQRiKQpWcs5ORuGaiWwV5focMBTJ5WXGN+Z8VLP93BOwWFPzCJw==} + engines: {node: '>= 10'} + optionalDependencies: + '@css-inline/css-inline-darwin-arm64': 0.13.0 + '@css-inline/css-inline-darwin-x64': 0.13.0 + '@css-inline/css-inline-linux-arm-gnueabihf': 0.13.0 + '@css-inline/css-inline-linux-arm64-gnu': 0.13.0 + '@css-inline/css-inline-linux-arm64-musl': 0.13.0 + '@css-inline/css-inline-linux-x64-gnu': 0.13.0 + '@css-inline/css-inline-linux-x64-musl': 0.13.0 + '@css-inline/css-inline-win32-x64-msvc': 0.13.0 + dev: false + /@eslint-community/eslint-utils@4.4.0(eslint@8.56.0): resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -2282,6 +2369,7 @@ packages: /color-convert@2.0.1: resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} engines: {node: '>=7.0.0'} + requiresBuild: true dependencies: color-name: 1.1.4 @@ -2291,6 +2379,7 @@ packages: /color-name@1.1.4: resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + requiresBuild: true /color-support@1.1.3: resolution: {integrity: sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==} @@ -2664,10 +2753,6 @@ packages: type-fest: 1.4.0 dev: true - /css-inline@0.11.2: - resolution: {integrity: sha512-c/oie5Yqa2lVRwUO7A8nd3c3r0x7yE6MQH2PPB/R1LaUb6ohZD7vNXj23fod5y4QNsNhsQi98/AWfUwo1K6R7g==} - dev: false - /css-select@5.1.0: resolution: {integrity: sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==} dependencies: @@ -7237,6 +7322,7 @@ packages: /to-fast-properties@2.0.0: resolution: {integrity: sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==} engines: {node: '>=4'} + requiresBuild: true /to-regex-range@5.0.1: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}