Skip to content

Commit

Permalink
chore: sync with main (#979)
Browse files Browse the repository at this point in the history
* chore: Removed LTS version (#978)

* chore: removed LTS version

* chore: removing lts from cloudscan

* chore: completely removed LTS

* chore: Update axios to 1.6 to pull in fix for CVE 2023 45857 (#971)

* Update axios to 1.6.0

Fixes CVE-2023-45857

* Explicit type return on Promise

TypeScript's automatic type resolution for the promise returned by the
function in getExponentialBackoffResponseHandler determines that it
returns a Promise<unknown>. This commit forces TypeScript to recognize
that the resolved object is of type Promise<AxiosResponse>.

---------

Co-authored-by: Shubham <tiwarishubham635@gmail.com>

* chore: twilio help changes (#958)

Co-authored-by: Shubham <tiwarishubham635@gmail.com>

* chore: Removing Test Related To Deprecated Endpoint - OAuth (#963)

* removing test in relation to deprecated endpoint

* removingn more oauth refrences

---------

Co-authored-by: sbansla <104902068+sbansla@users.noreply.github.com>

---------

Co-authored-by: Andrew Pietila <149612764+kitu-apietila@users.noreply.github.com>
Co-authored-by: kridai <kridaigoswami@gmail.com>
Co-authored-by: KobeBrooks <55289738+KobeBrooks@users.noreply.github.com>
Co-authored-by: sbansla <104902068+sbansla@users.noreply.github.com>
  • Loading branch information
5 people authored Nov 9, 2023
1 parent 67c54fd commit c61ed8f
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 1,231 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ it can be.

If you have questions about how to use `twilio-node`, please see our
[docs](./README.md), and if you don't find the answer there, please contact
[help@twilio.com](mailto:help@twilio.com) with any issues you have.
[Twilio Support](https://www.twilio.com/help/contact) with any issues you have.

## <a name="issue"></a> Found an Issue?

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (C) 2023, Twilio, Inc. <help@twilio.com>
Copyright (C) 2023, Twilio, Inc. <https://www.twilio.com/help/contact>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"url": "https://github.com/twilio/twilio-node.git"
},
"dependencies": {
"axios": "^0.26.1",
"axios": "^1.6.0",
"dayjs": "^1.11.9",
"https-proxy-agent": "^5.0.0",
"jsonwebtoken": "^9.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/base/RequestClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function getExponentialBackoffResponseHandler(
);
const delay = Math.floor(baseDelay * Math.random()); // Full jitter backoff

return new Promise((resolve) => {
return new Promise((resolve: (value: Promise<AxiosResponse>) => void) => {
setTimeout(() => resolve(axios(config)), delay);
});
}
Expand Down
52 changes: 0 additions & 52 deletions src/rest/Oauth.ts

This file was deleted.

33 changes: 0 additions & 33 deletions src/rest/OauthBase.ts

This file was deleted.

8 changes: 0 additions & 8 deletions src/rest/Twilio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import Microvisor from "./Microvisor";
import Monitor from "./Monitor";
import Notify from "./Notify";
import Numbers from "./Numbers";
import Oauth from "./Oauth";
import Preview from "./Preview";
import Pricing from "./Pricing";
import Proxy from "./Proxy";
Expand Down Expand Up @@ -118,8 +117,6 @@ class Twilio extends Client {
_notify?: Notify;
/** (Twilio.Numbers) - numbers domain */
_numbers?: Numbers;
/** (Twilio.Oauth) - oauth domain */
_oauth?: Oauth;
/** (Twilio.Preview) - preview domain */
_preview?: Preview;
/** (Twilio.Pricing) - pricing domain */
Expand Down Expand Up @@ -188,7 +185,6 @@ class Twilio extends Client {
this.monitor;
this.notify;
this.numbers;
this.oauth;
this.preview;
this.pricing;
this.proxy;
Expand Down Expand Up @@ -314,10 +310,6 @@ class Twilio extends Client {
get numbers(): Numbers {
return this._numbers ?? (this._numbers = new (require("./Numbers"))(this));
}
/** Getter for (Twilio.Oauth) domain */
get oauth(): Oauth {
return this._oauth ?? (this._oauth = new (require("./Oauth"))(this));
}
/** Getter for (Twilio.Preview) domain */
get preview(): Preview {
return this._preview ?? (this._preview = new (require("./Preview"))(this));
Expand Down
74 changes: 0 additions & 74 deletions src/rest/oauth/V1.ts

This file was deleted.

Loading

0 comments on commit c61ed8f

Please sign in to comment.