oz-request 1.0.1 → 1.0.2
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/index.js +0 -5
- package/index.mjs +0 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -282,11 +282,6 @@ function createOzonClient(options) {
|
|
|
282
282
|
}
|
|
283
283
|
try {
|
|
284
284
|
const res = JSON.parse(responseData.toString());
|
|
285
|
-
if (!res.items) {
|
|
286
|
-
console.log('业务错误,重试!');
|
|
287
|
-
resolve('change_cookie');
|
|
288
|
-
return;
|
|
289
|
-
}
|
|
290
285
|
const newCookie = await serializeCookies(jar);
|
|
291
286
|
res.newCookie = newCookie;
|
|
292
287
|
resolve(res);
|
package/index.mjs
CHANGED
|
@@ -270,11 +270,6 @@ export default function createOzonClient(options) {
|
|
|
270
270
|
}
|
|
271
271
|
try {
|
|
272
272
|
const res = JSON.parse(responseData.toString());
|
|
273
|
-
if (!res.items) {
|
|
274
|
-
console.log('业务错误,重试!');
|
|
275
|
-
resolve('change_cookie');
|
|
276
|
-
return;
|
|
277
|
-
}
|
|
278
273
|
const newCookie = await serializeCookies(jar);
|
|
279
274
|
res.newCookie = newCookie;
|
|
280
275
|
resolve(res);
|