Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Promise.withResolvers polyfill
Browse files Browse the repository at this point in the history
wojtekmaj committed Apr 30, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 450e21e commit 824f97e
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react-pdf/package.json
Original file line number Diff line number Diff line change
@@ -72,6 +72,7 @@
"@types/react": "*",
"@types/warning": "^3.0.0",
"canvas": "^2.11.2",
"core-js": "^3.37.0",
"cpy-cli": "^5.0.0",
"eslint": "^8.56.0",
"eslint-config-wojtekmaj": "^1.0.0",
1 change: 1 addition & 0 deletions packages/react-pdf/vitest.setup.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { afterEach } from 'vitest';
import { cleanup } from '@testing-library/react';
import '@testing-library/jest-dom/vitest';
import 'core-js/proposals/promise-with-resolvers';

afterEach(() => {
cleanup();
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -1813,6 +1813,13 @@ __metadata:
languageName: node
linkType: hard

"core-js@npm:^3.37.0":
version: 3.37.0
resolution: "core-js@npm:3.37.0"
checksum: 10c0/7e00331f346318ca3f595c08ce9e74ddae744715aef137486c1399163afd79792fb94c3161280863adfdc3e30f8026912d56bd3036f93cacfc689d33e185f2ee
languageName: node
linkType: hard

"cp-file@npm:^10.0.0":
version: 10.0.0
resolution: "cp-file@npm:10.0.0"
@@ -4513,6 +4520,7 @@ __metadata:
"@types/warning": "npm:^3.0.0"
canvas: "npm:^2.11.2"
clsx: "npm:^2.0.0"
core-js: "npm:^3.37.0"
cpy-cli: "npm:^5.0.0"
dequal: "npm:^2.0.3"
eslint: "npm:^8.56.0"

0 comments on commit 824f97e

Please sign in to comment.