microsoft-graph 2.9.2 → 2.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/graphApi.d.ts.map +1 -1
- package/dist/cjs/graphApi.js +16 -3
- package/dist/esm/graphApi.d.ts.map +1 -1
- package/dist/esm/graphApi.js +16 -3
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphApi.d.ts","sourceRoot":"","sources":["../../src/graphApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphApi.d.ts","sourceRoot":"","sources":["../../src/graphApi.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAgB,cAAc,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACzG,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAO/C,eAAO,MAAM,mBAAmB,EAA6C,KAAK,CAAC;AACnF,eAAO,MAAM,QAAQ,qCAAqC,CAAC;AAC3D,eAAO,MAAM,aAAa,4CAAuB,CAAC;AAElD,8KAA8K;AAC9K,wBAAgB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,wBAAwB,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAQvF;AAED,6LAA6L;AAC7L,wBAAsB,QAAQ,CAAC,CAAC,SAAS,cAAc,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAInH;AAED,2DAA2D;AAC3D,wBAAsB,UAAU,CAAC,CAAC,SAAS,cAAc,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAOrH;AAoBD,KAAK,iBAAiB,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,cAAc,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK;CAChE,CAAC"}
|
package/dist/cjs/graphApi.js
CHANGED
|
@@ -8,6 +8,7 @@ exports.operation = operation;
|
|
|
8
8
|
exports.parallel = parallel;
|
|
9
9
|
exports.sequential = sequential;
|
|
10
10
|
const axios_1 = __importDefault(require("axios"));
|
|
11
|
+
const https_proxy_agent_1 = require("https-proxy-agent");
|
|
11
12
|
const InconsistentContextError_ts_1 = __importDefault(require("./errors/InconsistentContextError.js"));
|
|
12
13
|
const InvalidArgumentError_ts_1 = __importDefault(require("./errors/InvalidArgumentError.js"));
|
|
13
14
|
const NeverError_ts_1 = __importDefault(require("./errors/NeverError.js"));
|
|
@@ -127,9 +128,21 @@ async function innerFetch(args) {
|
|
|
127
128
|
let retryAfterMilliseconds = defaultRetryDelayMilliseconds;
|
|
128
129
|
let response = null;
|
|
129
130
|
let attempts = 0; // Track the number of attempts
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
// TODO: Tidy this proxy work-around:
|
|
132
|
+
let instance;
|
|
133
|
+
// biome-ignore lint/complexity/useLiteralKeys: <explanation>
|
|
134
|
+
const httpsProxy = process.env["HTTPS_PROXY"];
|
|
135
|
+
if (httpsProxy) {
|
|
136
|
+
instance = axios_1.default.create({
|
|
137
|
+
proxy: false,
|
|
138
|
+
httpsAgent: new https_proxy_agent_1.HttpsProxyAgent(httpsProxy),
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
instance = axios_1.default.create({
|
|
143
|
+
httpsAgent: options.httpAgent,
|
|
144
|
+
});
|
|
145
|
+
}
|
|
133
146
|
while (attempts < maxRetries) {
|
|
134
147
|
try {
|
|
135
148
|
response = await instance({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphApi.d.ts","sourceRoot":"","sources":["../../src/graphApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"graphApi.d.ts","sourceRoot":"","sources":["../../src/graphApi.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAgB,cAAc,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACzG,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAO/C,eAAO,MAAM,mBAAmB,EAA6C,KAAK,CAAC;AACnF,eAAO,MAAM,QAAQ,qCAAqC,CAAC;AAC3D,eAAO,MAAM,aAAa,4CAAuB,CAAC;AAElD,8KAA8K;AAC9K,wBAAgB,SAAS,CAAC,CAAC,EAAE,UAAU,EAAE,wBAAwB,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAQvF;AAED,6LAA6L;AAC7L,wBAAsB,QAAQ,CAAC,CAAC,SAAS,cAAc,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAInH;AAED,2DAA2D;AAC3D,wBAAsB,UAAU,CAAC,CAAC,SAAS,cAAc,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAOrH;AAoBD,KAAK,iBAAiB,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,cAAc,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK;CAChE,CAAC"}
|
package/dist/esm/graphApi.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import axios from "axios";
|
|
2
|
+
import { HttpsProxyAgent } from "https-proxy-agent";
|
|
2
3
|
import InconsistentContextError from "./errors/InconsistentContextError.js";
|
|
3
4
|
import InvalidArgumentError from "./errors/InvalidArgumentError.js";
|
|
4
5
|
import NeverError from "./errors/NeverError.js";
|
|
@@ -118,9 +119,21 @@ async function innerFetch(args) {
|
|
|
118
119
|
let retryAfterMilliseconds = defaultRetryDelayMilliseconds;
|
|
119
120
|
let response = null;
|
|
120
121
|
let attempts = 0; // Track the number of attempts
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
// TODO: Tidy this proxy work-around:
|
|
123
|
+
let instance;
|
|
124
|
+
// biome-ignore lint/complexity/useLiteralKeys: <explanation>
|
|
125
|
+
const httpsProxy = process.env["HTTPS_PROXY"];
|
|
126
|
+
if (httpsProxy) {
|
|
127
|
+
instance = axios.create({
|
|
128
|
+
proxy: false,
|
|
129
|
+
httpsAgent: new HttpsProxyAgent(httpsProxy),
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
instance = axios.create({
|
|
134
|
+
httpsAgent: options.httpAgent,
|
|
135
|
+
});
|
|
136
|
+
}
|
|
124
137
|
while (attempts < maxRetries) {
|
|
125
138
|
try {
|
|
126
139
|
response = await instance({
|