node-vault icon indicating copy to clipboard operation
node-vault copied to clipboard

switch to Postman Request from Request

Open pratikpc opened this issue 3 years ago • 4 comments

  1. Maintained fork of Request
  2. Easiest to switch to
  3. No support for request-promise-native so we had to build our own

Need to discuss how to best handle what happens when request-promise already provided and how best to Unit Test

    if (config['request-promise'] != null) {
      return rpObject(options);
    }

PS had to update from Istanbul to NYC. Any coverage testing was breaking on my Windows machine without it

pratikpc avatar Jan 26 '22 09:01 pratikpc

@aviadhahami @kr1sp1n could you look into this?

pratikpc avatar Jan 26 '22 09:01 pratikpc

hey :) overall looks ok, I just can't do anything lib-wise until ownership transfer is complete

https://github.com/kr1sp1n/node-vault/issues/150#issuecomment-1015688481

aviadhahami avatar Jan 26 '22 10:01 aviadhahami

@aviadhahami I wanted to ask you and @kr1sp1n about how to handle it when

  1. Request Promise is already provided
  2. Do we create a new Request-Library option to pass the Request Library?
  3. How to unit test the Postman Request library
    if (config['request-promise'] != null) {
      return rpObject(options);
    }

Currently am using this

pratikpc avatar Jan 26 '22 13:01 pratikpc

tbh I didn't dive into this yet. Will do once ownership is transferred, until then we can't do anything 🤷‍♂️

edit: on quick glance this != null may be the correct solution

aviadhahami avatar Jan 26 '22 13:01 aviadhahami

got the permissions (almost all what I need), trying to get this in asap

aviadhahami avatar Nov 10 '22 17:11 aviadhahami

@pratikpc do you mind updating the base for this PR? :)

aviadhahami avatar May 11 '23 15:05 aviadhahami

Closing in favor of https://github.com/nodevault/node-vault/pull/231

aviadhahami avatar Jul 19 '23 17:07 aviadhahami