@ctil/gql 1.1.5 → 1.1.6
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/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4686,9 +4686,6 @@ var CCRequest = class {
|
|
|
4686
4686
|
// ===== 请求逻辑 =====
|
|
4687
4687
|
async request(query2, variables) {
|
|
4688
4688
|
let queryStr = typeof query2 === "string" ? query2 : print(query2);
|
|
4689
|
-
if (!/refreshToken/i.test(queryStr)) {
|
|
4690
|
-
await this.ensureTokenValid();
|
|
4691
|
-
}
|
|
4692
4689
|
const { deviceId, deviceName } = await this.deviceInfoPromise;
|
|
4693
4690
|
let headersWithDevice = Object.fromEntries(
|
|
4694
4691
|
Object.entries({
|
|
@@ -4712,6 +4709,9 @@ var CCRequest = class {
|
|
|
4712
4709
|
}
|
|
4713
4710
|
}
|
|
4714
4711
|
try {
|
|
4712
|
+
if (!/refreshToken/i.test(queryStr)) {
|
|
4713
|
+
await this.ensureTokenValid();
|
|
4714
|
+
}
|
|
4715
4715
|
const res = await this.client.rawRequest(
|
|
4716
4716
|
queryStr,
|
|
4717
4717
|
variables,
|