Skip to content

Commit

Permalink
Issue 423 - Fix node 14 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
huntharo committed May 22, 2024
1 parent f339f7b commit 6deb614
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/sitemap-index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ import {
SitemapAndIndexStream,
} from '../lib/sitemap-index-stream';
import { streamToPromise } from '../dist';
import { finished } from 'node:stream/promises';
import { finished as finishedCallback } from 'stream';
import { WriteStream } from 'node:fs';
import { promisify } from 'util';

const finished = promisify(finishedCallback);

/* eslint-env jest, jasmine */
function removeFilesArray(files): void {
if (files && files.length) {
Expand Down

0 comments on commit 6deb614

Please sign in to comment.