godaddy / godaddy/kubernetes-client

Browser compatibility: make swagger-client not dependent on fs

Open
#337 3 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
JavaScript
Stars
963
Forks
189
PR merge metrics
No merged PRs in 30d

Description

fs is currently called in the swagger client constructor:
https://github.com/godaddy/kubernetes-client/blob/master/lib/swagger-client.js#L106

This causes errors in browser and makes it very difficult to construct a browser-friendly swagger client.

Contributor guide

Open the contributing guide

Research direction

Start at lib/swagger-client.js around line 106, where fs is called in the swagger client constructor. Trace why that dependency is loaded during construction and check the browser-facing construction path. Done means a browser can construct the swagger client without errors caused by fs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
api, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.