Giter VIP home page Giter VIP logo

digitalocean-js's Introduction

Hello there

You've made it to my GitHub Profile! Take a look around and check out what kinds of stuff I'm working on.

What am I working on?

At any given time I've got far too many side projects going on. You can read about my GitHub Graveyard and just know that it's grown since then. ๐Ÿ˜… I am, however, working on a fun new project that I hope to unveil soon! Stay tuned for that.

My current employment

I am a Senior Software Engineer at a great company called Mosaic. There are lots of interesting problems to be solved and I'm loving it. Previously I was a Senior Software Engineer at GoReact and before that a Software Engineer at Domo.

More info about me

Check out my personal website which contains my blog and various projects I've done. Those will give you links to all my other socials.

digitalocean-js's People

Contributors

bentranter avatar dependabot[bot] avatar fritzfr avatar haunted-loaf avatar jaydp17 avatar jbw91 avatar johnbwoodruff avatar kazilotus avatar rhythmbhiwani avatar serdnaley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

digitalocean-js's Issues

Testing

  • I'm submitting a ...
    [ ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

Filter volumes by name only

This Changelog update allows for volumes to be searched for by name only. Update the getBlockStorageByName method to allow region to be optional, and only send region query param if region is present.

Should use Axios instance instead of setting global config

  • I'm submitting a ...
    [*] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    This library pollutes the global/common Axios config with it's own config and then if you want to use Axios in your own project the config from this library gets inherited. What I am talking about is this. My problem is that I am downloading data from an S3 Bucket and the Authorization header that you add gets sent to S3 which returns and 400 error because of it. Also I don't want to inherit any of the axios configuration that this library uses.

Solution

Axios has a special function for this use case called axios.create which will create a new reusable instance where you can put your own headers/configs and stuff.

Rename master to main

Anyone who has a local clone of this repo should do the following:

# Switch to the "master" branch:
$ git checkout master

# Rename it to "main":
$ git branch -m master main

# Get the latest commits (and branches!) from the remote:
$ git fetch

# Remove the existing tracking connection with "origin/master":
$ git branch --unset-upstream

# Create a new tracking connection with the new "origin/main" branch:
$ git branch -u origin/main

Create Droplet from snapshot

  • I'm submitting a ...
    [ ] bug report
    [x] feature request
    [ ] question about the decisions made in the repository
    [x] question about how to use this project

  • Summary
    Hello!
    First, I'd like to say great work here, this is really amazing.

I'm new around here and I'm not sure if this is possible or not already in this project and probably I just have not seen it.

I'd like to be able to create a droplet from a snapshot reference

  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

Managed Database Service

Now that Managed Databases are out of beta, this library needs to implement a ManagedDatabaseService. Here is the documentation regarding the available endpoints to implement. This should follow the same pattern as the rest of the services.

Cleanup unnecessary nested promises in services.

I created a fork of this repo, in order to use it with Deno at tracker1/digitalocean-deno.

One of the things I did, is replace axios with fetch, the other is I cleaned up the services in order to remove the unnecessary nested promises. If you were interested adapting back for use in this repo should be relatively easy... mostly, copying the lib folder, and from there replacing the include... from '*.ts' removing the .ts file suffix. I also renamed the polyfill I made with fetch to request, so I had to rename some of the request data variables to data.

If you're open to merging these changes back in, I can create a pull request for you... the changes to fetch aren't strictly necessary, and could keep axios (changing the instance export name, and keeping the setup), alternatively could use the node-fetch module, and remove it entirely for browsers, and for node after 18.x becomes the LTS release, if you wanted to.

I'm hoping to get it configured for a publish to Denoland ... and possibly getting a browser and node build path... I notice there's only one test file in place, so will try and port those to deno test syntax. If you're at all interested in working together, I'm happy to do so... It seems you know the DO API far better than I do... I mostly just cleaned, removed some extra bits, and minor cleanup.

Input Validation

For methods that take input (e.g. attachVolumeToDroplet) make sure to validate that the right properties are provided, particularly the required ones.

purgeEndpointCache calls wrong Endpoint

  • I'm submitting a ...
    [X] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary
    purgeEndpointCache issues a DELETE on the following endpoint: ${environment_1.API_BASE_URL}/cdn/endpoints/${id}.

This actually deletes that CDN endpoint. There needs to be a /cache at the end, see https://developers.digitalocean.com/documentation/v2/#purge-the-cache-for-an-existing-cdn-endpoint.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.