Skip to content

fix for webpack and node-fetch#36

Open
ParcelSolutions wants to merge 2 commits into
adobe:masterfrom
ParcelSolutions:fix-for-webpack
Open

fix for webpack and node-fetch#36
ParcelSolutions wants to merge 2 commits into
adobe:masterfrom
ParcelSolutions:fix-for-webpack

Conversation

@ParcelSolutions

@ParcelSolutions ParcelSolutions commented Oct 29, 2020

Copy link
Copy Markdown

node-fetch/node-fetch#450

Description

use default in require of node-fetch, so it will work with webpack
webpack is often used to create openwhisk builds.

see for details:
node-fetch/node-fetch#450

Fixes # (issue)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@tmathern tmathern requested review from tmathern and removed request for tmathern February 2, 2021 23:08
@codecov

codecov Bot commented Sep 29, 2021

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@alexkli alexkli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this is a bit safer (in case we change the node-fetch version in package.json and the .default is no longer there)?

https://github.com/Flagsmith/flagsmith-nodejs-client/pull/21/files#diff-537b33488a6027f3f9f309df24d9af4c6819c635cdae1d650245a259e4f8e335R1

@alexkli alexkli added this to the v3 milestone Apr 28, 2022
@alexkli alexkli added the contribution PR from an external contributor label Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution PR from an external contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants