@tryghost/mg-beehiiv-api 0.7.8-0 → 0.8.0

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 (40) hide show
  1. package/README.md +69 -7
  2. package/build/index.d.ts +8 -9
  3. package/build/index.js +4 -8
  4. package/build/index.js.map +1 -1
  5. package/build/lib/fetch.d.ts +30 -5
  6. package/build/lib/fetch.js +58 -51
  7. package/build/lib/fetch.js.map +1 -1
  8. package/build/lib/ingest.d.ts +21 -0
  9. package/build/lib/ingest.js +31 -0
  10. package/build/lib/ingest.js.map +1 -0
  11. package/build/lib/map.d.ts +16 -0
  12. package/build/lib/map.js +128 -0
  13. package/build/lib/map.js.map +1 -0
  14. package/build/lib/types.d.ts +42 -0
  15. package/build/lib/types.js +3 -0
  16. package/build/lib/types.js.map +1 -0
  17. package/build/test/fetch.test.js +70 -285
  18. package/build/test/fetch.test.js.map +1 -1
  19. package/build/test/helpers.d.ts +24 -0
  20. package/build/test/helpers.js +72 -0
  21. package/build/test/helpers.js.map +1 -0
  22. package/build/test/index.test.js +7 -9
  23. package/build/test/index.test.js.map +1 -1
  24. package/build/test/ingest.test.js +79 -0
  25. package/build/test/ingest.test.js.map +1 -0
  26. package/build/test/map.test.js +199 -0
  27. package/build/test/map.test.js.map +1 -0
  28. package/package.json +9 -6
  29. package/build/lib/mapper.d.ts +0 -6
  30. package/build/lib/mapper.js +0 -120
  31. package/build/lib/mapper.js.map +0 -1
  32. package/build/lib/process.d.ts +0 -11
  33. package/build/lib/process.js +0 -279
  34. package/build/lib/process.js.map +0 -1
  35. package/build/test/mapper.test.js +0 -295
  36. package/build/test/mapper.test.js.map +0 -1
  37. package/build/test/process.test.js +0 -311
  38. package/build/test/process.test.js.map +0 -1
  39. /package/build/test/{mapper.test.d.ts → ingest.test.d.ts} +0 -0
  40. /package/build/test/{process.test.d.ts → map.test.d.ts} +0 -0
@@ -1,311 +0,0 @@
1
- import assert from 'node:assert/strict';
2
- import { describe, it } from 'node:test';
3
- import { getYouTubeID, isURL, processHTML, removeDuplicateFeatureImage } from '../lib/process.js';
4
- describe('beehiiv API processor', () => {
5
- describe('isURL', () => {
6
- it('returns true for valid HTTP URL', () => {
7
- assert.equal(isURL('https://example.com'), true);
8
- });
9
- it('returns true for valid HTTP URL with path', () => {
10
- assert.equal(isURL('https://example.com/path/to/resource'), true);
11
- });
12
- it('returns false for undefined', () => {
13
- assert.equal(isURL(undefined), false);
14
- });
15
- it('returns false for invalid URL string', () => {
16
- assert.equal(isURL('not-a-url'), false);
17
- });
18
- it('returns false for empty string', () => {
19
- assert.equal(isURL(''), false);
20
- });
21
- });
22
- describe('getYouTubeID', () => {
23
- it('extracts ID from standard youtube.com URL', () => {
24
- const result = getYouTubeID('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
25
- assert.equal(result, 'dQw4w9WgXcQ');
26
- });
27
- it('extracts ID from youtu.be short URL', () => {
28
- const result = getYouTubeID('https://youtu.be/dQw4w9WgXcQ');
29
- assert.equal(result, 'dQw4w9WgXcQ');
30
- });
31
- it('extracts ID from embed URL', () => {
32
- const result = getYouTubeID('https://www.youtube.com/embed/dQw4w9WgXcQ');
33
- assert.equal(result, 'dQw4w9WgXcQ');
34
- });
35
- it('extracts ID from /v/ URL', () => {
36
- const result = getYouTubeID('https://www.youtube.com/v/dQw4w9WgXcQ');
37
- assert.equal(result, 'dQw4w9WgXcQ');
38
- });
39
- it('extracts ID with additional parameters', () => {
40
- const result = getYouTubeID('https://www.youtube.com/watch?v=dQw4w9WgXcQ&feature=youtu.be');
41
- assert.equal(result, 'dQw4w9WgXcQ');
42
- });
43
- it('returns original string when no ID pattern found', () => {
44
- const result = getYouTubeID('https://example.com/video');
45
- assert.equal(result, 'https://example.com/video');
46
- });
47
- });
48
- describe('processHTML', () => {
49
- it('handles post with undefined html by using empty string', () => {
50
- // When post.data.html is undefined, it falls back to empty string via ??
51
- const result = processHTML({ post: { url: 'test', data: {} } });
52
- // Should return empty string without throwing
53
- assert.equal(result, '');
54
- });
55
- it('handles html without content-blocks element', () => {
56
- // When there's no #content-blocks element, contentBlocksHtml falls back to ''
57
- const html = '<div><p>No content blocks here</p></div>';
58
- const result = processHTML({ post: { url: 'test', data: { html } } });
59
- assert.equal(result, '');
60
- });
61
- it('replaces beehiiv subscriber_id variable with a space', () => {
62
- const html = '<div id="content-blocks"><p>Hello {{subscriber_id}}</p></div>';
63
- const result = processHTML({ post: { url: 'test', data: { html } } });
64
- assert.equal(result, '<p>Hello </p>');
65
- });
66
- it('replaces beehiiv rp_refer_url variable with #', () => {
67
- const html = '<div id="content-blocks"><a href="{{rp_refer_url}}">Link</a></div>';
68
- const result = processHTML({ post: { url: 'test', data: { html } } });
69
- assert.equal(result, '<a href="#">Link</a>');
70
- });
71
- it('replaces beehiiv rp_refer_url_no_params variable with #', () => {
72
- const html = '<div id="content-blocks"><a href="{{rp_refer_url_no_params}}">Link</a></div>';
73
- const result = processHTML({ post: { url: 'test', data: { html } } });
74
- assert.equal(result, '<a href="#">Link</a>');
75
- });
76
- it('converts empty divs with border-top to HR', () => {
77
- const html = '<div id="content-blocks"><div style="border-top: 1px solid black"></div></div>';
78
- const result = processHTML({ post: { url: 'test', data: { html } } });
79
- assert.equal(result, '<hr>');
80
- });
81
- it('does not convert divs with content to HR', () => {
82
- const html = '<div id="content-blocks"><div style="border-top: 1px solid black">content</div></div>';
83
- const result = processHTML({ post: { url: 'test', data: { html } } });
84
- assert.equal(result, 'content');
85
- });
86
- it('converts nested padding-left divs to blockquote with paragraph content', () => {
87
- const html = `<div id="content-blocks"><div style="padding-left:19px;"><div style="padding-left:40px;"><div> ❝ </div><div><p>Quote text here.</p></div><div><small>Author Name</small></div></div></div></div>`;
88
- const result = processHTML({ post: { url: 'test', data: { html } } });
89
- assert.equal(result, '<blockquote><p>Quote text here.</p><cite>Author Name</cite></blockquote>');
90
- });
91
- it('converts nested padding-left divs to blockquote without citation when small is empty', () => {
92
- const html = `<div id="content-blocks"><div style="padding-left:19px;"><div style="padding-left:40px;"><div> ❝ </div><div><p>Quote text here.</p></div><div><small></small></div></div></div></div>`;
93
- const result = processHTML({ post: { url: 'test', data: { html } } });
94
- assert.equal(result, '<blockquote><p>Quote text here.</p></blockquote>');
95
- });
96
- it('does not convert nested padding-left divs without paragraphs', () => {
97
- const html = '<div id="content-blocks"><div style="padding-left: 20px"><div style="padding-left: 10px">plain text</div></div></div>';
98
- const result = processHTML({ post: { url: 'test', data: { html } } });
99
- assert.equal(result, '<div>plain text</div>');
100
- });
101
- it('converts subscribe button wrapper to Portal signup button', () => {
102
- const html = '<div id="content-blocks"><div style="padding-bottom:12px;padding-left:15px;padding-right:15px;padding-top:12px;text-align:center;width:100%;word-break:break-word;"><a target="_blank" rel="noopener nofollow noreferrer" href="https://example.beehiiv.com/subscribe"><button style="background-color:#030712;" type="button"> Subscribe </button></a></div></div>';
103
- const result = processHTML({
104
- post: { url: 'test', data: { html } },
105
- options: { subscribeLink: '/#/portal/signup' }
106
- });
107
- assert.equal(result, '<div class="kg-card kg-button-card kg-align-center"><a href="/#/portal/signup" class="kg-btn kg-btn-accent">Subscribe</a></div>');
108
- });
109
- it('converts subscribe button without wrapper div to Portal signup', () => {
110
- const html = '<div id="content-blocks"><a href="https://example.beehiiv.com/subscribe"><button>Subscribe</button></a></div>';
111
- const result = processHTML({
112
- post: { url: 'test', data: { html } },
113
- options: { subscribeLink: '/#/portal/signup' }
114
- });
115
- assert.equal(result, '<div class="kg-card kg-button-card kg-align-center"><a href="/#/portal/signup" class="kg-btn kg-btn-accent">Subscribe</a></div>');
116
- });
117
- it('rewrites comment links when comments enabled', () => {
118
- const html = '<div id="content-blocks"><p>Hello <a href="https://example.beehiiv.com/p/post-slug?comments=true" target="_blank" rel="noopener">Leave a comment</a></p></div>';
119
- const result = processHTML({
120
- post: { url: 'https://example.beehiiv.com/p/post-slug', data: { html } },
121
- options: { comments: true, commentLink: '#ghost-comments-root' }
122
- });
123
- assert.equal(result, '<p>Hello <a href="#ghost-comments-root">Leave a comment</a></p>');
124
- });
125
- it('removes comment links when comments disabled', () => {
126
- const html = '<div id="content-blocks"><p>Hello <a href="https://example.beehiiv.com/p/post-slug?comments=true" target="_blank" rel="noopener">Leave a comment</a></p></div>';
127
- const result = processHTML({
128
- post: { url: 'https://example.beehiiv.com/p/post-slug', data: { html } },
129
- options: { comments: false }
130
- });
131
- assert.equal(result, '<p>Hello </p>');
132
- });
133
- it('leaves comment links from other domains untouched when comments enabled', () => {
134
- const html = '<div id="content-blocks"><p><a href="https://other.beehiiv.com/p/other?comments=true">Comment</a></p></div>';
135
- const result = processHTML({
136
- post: { url: 'https://example.beehiiv.com/p/post-slug', data: { html } },
137
- options: { comments: true, commentLink: '#ghost-comments-root' }
138
- });
139
- assert.equal(result, '<p><a href="https://other.beehiiv.com/p/other?comments=true">Comment</a></p>');
140
- });
141
- it('leaves comment links from other domains untouched when comments disabled', () => {
142
- const html = '<div id="content-blocks"><p><a href="https://other.beehiiv.com/p/other?comments=true">Comment</a></p></div>';
143
- const result = processHTML({
144
- post: { url: 'https://example.beehiiv.com/p/post-slug', data: { html } },
145
- options: { comments: false }
146
- });
147
- assert.equal(result, '<p><a href="https://other.beehiiv.com/p/other?comments=true">Comment</a></p>');
148
- });
149
- it('converts buttons inside anchors to Ghost buttons', () => {
150
- const html = '<div id="content-blocks"><a href="https://example.com"><button>Click me</button></a></div>';
151
- const result = processHTML({ post: { url: 'test', data: { html } } });
152
- assert.equal(result, '<div class="kg-card kg-button-card kg-align-center"><a href="https://example.com" class="kg-btn kg-btn-accent">Click me</a></div>');
153
- });
154
- it('converts generic embeds to bookmark cards', () => {
155
- const html = '<div id="content-blocks"><div class="generic-embed--root"><a href="https://example.com">Link</a><div class="generic-embed--title"><p>Title</p></div><div class="generic-embed--description"><p>Description</p></div><div class="generic-embed--image"><img src="https://example.com/image.jpg" /></div></div></div>';
156
- const result = processHTML({ post: { url: 'test', data: { html } } });
157
- assert.equal(result, '<figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://example.com"><div class="kg-bookmark-content"><div class="kg-bookmark-title">Title</div><div class="kg-bookmark-description">Description</div><div class="kg-bookmark-metadata"></div></div><div class="kg-bookmark-thumbnail"><img src="https://example.com/image.jpg" alt></div></a></figure>');
158
- });
159
- it('handles generic embeds with missing sub-elements without crashing', () => {
160
- const html = '<div id="content-blocks"><div class="generic-embed--root"></div></div>';
161
- const result = processHTML({ post: { url: 'test', data: { html } } });
162
- assert.equal(result, '');
163
- });
164
- it('unwraps audio iframes from tables', () => {
165
- const html = '<div id="content-blocks"><table><tr><td><iframe src="https://audio.beehiiv.com/audio123"></iframe></td></tr></table></div>';
166
- const result = processHTML({ post: { url: 'test', data: { html } } });
167
- assert.equal(result, '<iframe src="https://audio.beehiiv.com/audio123"></iframe>');
168
- });
169
- it('converts YouTube iframes to embed cards', () => {
170
- const html = '<div id="content-blocks"><iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ"></iframe></div>';
171
- const result = processHTML({ post: { url: 'test', data: { html } } });
172
- assert.equal(result, '<figure class="kg-card kg-embed-card"><iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen width="160" height="90"></iframe></figure>');
173
- });
174
- it('converts youtu.be iframes to embed cards', () => {
175
- const html = '<div id="content-blocks"><iframe src="https://youtu.be/FdeioVndUhs"></iframe></div>';
176
- const result = processHTML({ post: { url: 'test', data: { html } } });
177
- assert.equal(result, '<figure class="kg-card kg-embed-card"><iframe src="https://www.youtube.com/embed/FdeioVndUhs?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen width="160" height="90"></iframe></figure>');
178
- });
179
- it('converts subscriber breaks to Ghost paywall cards', () => {
180
- const html = '<div id="content-blocks"><p>Public content</p><div id="subscriber-break"></div><p>Premium content</p></div>';
181
- const result = processHTML({ post: { url: 'test', data: { html } } });
182
- assert.equal(result, '<p>Public content</p><!--members-only--><p>Premium content</p>');
183
- });
184
- it('converts image with caption to Ghost image card', () => {
185
- const html = '<div id="content-blocks"><div style="padding-left:15px;padding-right:15px;"><div style="padding-bottom:20px;padding-top:20px;"><img alt="" src="https://media.beehiiv.com/image.jpg" /><div style="text-align:center;"><small style="font-style:italic;"><p>Caption text here</p></small></div></div></div></div>';
186
- const result = processHTML({ post: { url: 'test', data: { html } } });
187
- assert.equal(result, '<figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://media.beehiiv.com/image.jpg" class="kg-image" alt loading="lazy"><figcaption>Caption text here</figcaption></figure>');
188
- });
189
- it('converts image without caption to Ghost image card', () => {
190
- const html = '<div id="content-blocks"><div style="padding-left:15px;"><div style="padding-bottom:20px;"><img alt="Test" src="https://media.beehiiv.com/photo.jpg" /></div></div></div>';
191
- const result = processHTML({ post: { url: 'test', data: { html } } });
192
- assert.equal(result, '<figure class="kg-card kg-image-card"><img src="https://media.beehiiv.com/photo.jpg" class="kg-image" alt="Test" loading="lazy"></figure>');
193
- });
194
- it('converts image in single div wrapper to Ghost image card', () => {
195
- const html = '<div id="content-blocks"><div><img alt="" src="https://media.beehiiv.com/single.jpg" /></div></div>';
196
- const result = processHTML({ post: { url: 'test', data: { html } } });
197
- assert.equal(result, '<figure class="kg-card kg-image-card"><img src="https://media.beehiiv.com/single.jpg" class="kg-image" alt loading="lazy"></figure>');
198
- });
199
- it('converts image inside non-div wrapper and places card after parent', () => {
200
- const html = '<div id="content-blocks"><p>Text <img alt="" src="https://example.com/img.jpg" /> more text</p></div>';
201
- const result = processHTML({ post: { url: 'test', data: { html } } });
202
- assert.equal(result, '<p>Text more text</p><figure class="kg-card kg-image-card"><img src="https://example.com/img.jpg" class="kg-image" alt loading="lazy"></figure>');
203
- });
204
- it('replaces anchor-wrapped image with image card without leaving empty anchor', () => {
205
- const html = '<div id="content-blocks"><a href="https://example.com/full.jpg"><img src="https://example.com/img.jpg" alt="Photo" /></a></div>';
206
- const result = processHTML({ post: { url: 'test', data: { html } } });
207
- assert.equal(result, '<figure class="kg-card kg-image-card"><img src="https://example.com/img.jpg" class="kg-image" alt="Photo" loading="lazy"></figure>');
208
- });
209
- it('converts sponsored content tables to Ghost HTML cards with text in p tags', () => {
210
- const html = `<div id="content-blocks"><div style="padding: 8px 5px 8px 5px;"><table bgcolor="#1A4D3A" border="0" cellpadding="0" cellspacing="0" width="100%" style="margin:25px 0; border-radius:20px;"><tbody><tr><td align="center" style="padding: 50px 30px;"><div style="color:#1A4D3A; font-size:12px; font-weight:bold; background:#FFFFFF; padding:5px 12px; border-radius:15px; display:inline-block; margin-bottom:20px;"> Sponsored Content </div><br><br><h2 style="color:#FEFEFE;"> Ad Heading </h2><br><br><div style="text-align: center;"><a href="https://example.com"><img src="https://example.com/ad.jpg" alt="Ad image" style="width: 400px;"></a></div><br><br><div style="font-size:20px; line-height:1.6; text-align: left; color: #FEFEFE;"> Some ad text </div><a href="https://example.com" style="display:inline-block; background:#F9FFF6; color:#1A4D3A;">Learn more</a></td></tr></tbody></table></div></div>`;
211
- const result = processHTML({ post: { url: 'test', data: { html } } });
212
- assert.ok(result.startsWith('<!--kg-card-begin: html--><div class="mg-sponsored" data-mg-skip="image-card">'));
213
- assert.ok(result.includes('<p> Sponsored Content </p>'), 'text from divs is wrapped in p tags');
214
- assert.ok(result.includes('<p> Some ad text </p>'), 'ad text from divs is wrapped in p tags');
215
- assert.ok(result.includes('Ad Heading'));
216
- assert.ok(result.includes('<img src="https://example.com/ad.jpg"'), 'image stays as raw img');
217
- assert.ok(!result.includes('kg-image-card'), 'image should not be converted to Ghost image card');
218
- assert.ok(result.includes('Learn more'));
219
- assert.ok(result.endsWith('<!--kg-card-end: html-->'));
220
- });
221
- it('converts sponsored content tables without wrapper div', () => {
222
- const html = `<div id="content-blocks"><table><tbody><tr><td><div> Sponsored Content </div><p>Ad text</p></td></tr></tbody></table></div>`;
223
- const result = processHTML({ post: { url: 'test', data: { html } } });
224
- assert.ok(result.startsWith('<!--kg-card-begin: html--><div class="mg-sponsored" data-mg-skip="image-card">'));
225
- assert.ok(result.includes('<p> Sponsored Content </p>'));
226
- assert.ok(result.includes('Ad text'));
227
- });
228
- it('removes empty divs and preserves image divs in sponsored content', () => {
229
- const html = `<div id="content-blocks"><table><tbody><tr><td><div> Sponsored Content </div><div></div><div style="text-align:center"><a href="https://example.com"><img src="https://example.com/ad.jpg" alt="Ad"></a></div></td></tr></tbody></table></div>`;
230
- const result = processHTML({ post: { url: 'test', data: { html } } });
231
- assert.ok(result.includes('<img src="https://example.com/ad.jpg"'), 'image preserved in div');
232
- assert.ok(result.includes('<p> Sponsored Content </p>'), 'text div converted to p');
233
- });
234
- it('handles sponsored content table without td element', () => {
235
- const html = `<div id="content-blocks"><table><tbody><tr><th> Sponsored Content </th></tr></tbody></table></div>`;
236
- const result = processHTML({ post: { url: 'test', data: { html } } });
237
- assert.ok(result.startsWith('<!--kg-card-begin: html--><div class="mg-sponsored" data-mg-skip="image-card">'));
238
- assert.ok(result.includes('Sponsored Content'));
239
- });
240
- it('removes empty paragraphs', () => {
241
- const html = '<div id="content-blocks"><p></p><p> </p><p>Content</p></div>';
242
- const result = processHTML({ post: { url: 'test', data: { html } } });
243
- assert.equal(result, '<p>Content</p>');
244
- });
245
- it('removes style tags', () => {
246
- const html = '<div id="content-blocks"><style>.foo { color: red; }</style><p>Content</p></div>';
247
- const result = processHTML({ post: { url: 'test', data: { html } } });
248
- assert.equal(result, '<p>Content</p>');
249
- });
250
- it('removes mobile ad elements', () => {
251
- const html = '<div id="content-blocks"><div id="pad-mobile">Ad content</div><p>Content</p></div>';
252
- const result = processHTML({ post: { url: 'test', data: { html } } });
253
- assert.equal(result, '<p>Content</p>');
254
- });
255
- it('removes b and strong tags from headings', () => {
256
- const html = '<div id="content-blocks"><h2><strong>Bold Heading</strong></h2></div>';
257
- const result = processHTML({ post: { url: 'test', data: { html } } });
258
- assert.equal(result, '<h2>Bold Heading</h2>');
259
- });
260
- it('removes style attributes', () => {
261
- const html = '<div id="content-blocks"><p style="color: red;">Content</p></div>';
262
- const result = processHTML({ post: { url: 'test', data: { html } } });
263
- assert.equal(result, '<p>Content</p>');
264
- });
265
- });
266
- describe('removeDuplicateFeatureImage', () => {
267
- it('removes first image when it matches feature image via asset path', () => {
268
- const html = '<img src="https://example.com/uploads/asset/file/123/image.jpg" />';
269
- const featureSrc = 'https://cdn.example.com/uploads/asset/file/123/image.jpg';
270
- const result = removeDuplicateFeatureImage({ html, featureSrc });
271
- assert.equal(result, '');
272
- });
273
- it('removes first image when normalized src matches feature image', () => {
274
- const html = '<img src="https://example.com/fit=scale-down,format=auto,onerror=redirect,quality=80/image.jpg" />';
275
- const featureSrc = 'https://example.com/quality=100/image.jpg';
276
- const result = removeDuplicateFeatureImage({ html, featureSrc });
277
- assert.equal(result, '');
278
- });
279
- it('keeps image when it does not match feature image', () => {
280
- const html = '<img src="https://example.com/different-image.jpg" />';
281
- const featureSrc = 'https://cdn.example.com/uploads/asset/file/123/image.jpg';
282
- const result = removeDuplicateFeatureImage({ html, featureSrc });
283
- assert.equal(result, '<img src="https://example.com/different-image.jpg">');
284
- });
285
- it('removes wrapper element when image inside it matches feature image', () => {
286
- const html = '<figure><img src="https://example.com/uploads/asset/file/123/image.jpg" /></figure>';
287
- const featureSrc = 'https://cdn.example.com/uploads/asset/file/123/image.jpg';
288
- const result = removeDuplicateFeatureImage({ html, featureSrc });
289
- assert.equal(result, '');
290
- });
291
- it('handles html without images', () => {
292
- const html = '<p>No images here</p>';
293
- const featureSrc = 'https://cdn.example.com/image.jpg';
294
- const result = removeDuplicateFeatureImage({ html, featureSrc });
295
- assert.equal(result, '<p>No images here</p>');
296
- });
297
- it('keeps image when neither URL contains /uploads/asset/', () => {
298
- const html = '<img src="https://example.com/image.jpg" />';
299
- const featureSrc = '';
300
- const result = removeDuplicateFeatureImage({ html, featureSrc });
301
- assert.equal(result, '<img src="https://example.com/image.jpg">');
302
- });
303
- it('keeps image when URLs have different asset paths', () => {
304
- const html = '<img src="https://example.com/uploads/asset/file/123/image.jpg" />';
305
- const featureSrc = 'https://cdn.example.com/uploads/asset/file/456/different.jpg';
306
- const result = removeDuplicateFeatureImage({ html, featureSrc });
307
- assert.equal(result, '<img src="https://example.com/uploads/asset/file/123/image.jpg">');
308
- });
309
- });
310
- });
311
- //# sourceMappingURL=process.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"process.test.js","sourceRoot":"","sources":["../../src/test/process.test.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAC,QAAQ,EAAE,EAAE,EAAC,MAAM,WAAW,CAAC;AACvC,OAAO,EAAC,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE,2BAA2B,EAAC,MAAM,mBAAmB,CAAC;AAEhG,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACnC,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;QACnB,EAAE,CAAC,iCAAiC,EAAE,GAAG,EAAE;YACvC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,qBAAqB,CAAC,EAAE,IAAI,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;YACjD,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,sCAAsC,CAAC,EAAE,IAAI,CAAC,CAAC;QACtE,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;YACnC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,KAAK,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,sCAAsC,EAAE,GAAG,EAAE;YAC5C,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,gCA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