@commercetools/ts-client 1.1.1 → 1.2.1
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/CHANGELOG.md +12 -0
- package/dist/commercetools-ts-client.browser.cjs.js +24 -8
- package/dist/commercetools-ts-client.browser.esm.js +24 -8
- package/dist/commercetools-ts-client.cjs.d.ts +1 -1
- package/dist/commercetools-ts-client.cjs.dev.js +24 -8
- package/dist/commercetools-ts-client.cjs.prod.js +24 -8
- package/dist/commercetools-ts-client.esm.js +24 -8
- package/package.json +4 -4
- package/dist/commercetools-ts-client.cjs.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @commercetools/ts-client
|
|
2
2
|
|
|
3
|
+
## 1.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#684](https://github.com/commercetools/commercetools-sdk-typescript/pull/684) [`a1b43c0`](https://github.com/commercetools/commercetools-sdk-typescript/commit/a1b43c048fac3eba3d53470314b61d36e74f0a51) Thanks [@ajimae](https://github.com/ajimae)! - Fix bug 'Error not throw' for sdk-client-v3
|
|
8
|
+
|
|
9
|
+
## 1.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#645](https://github.com/commercetools/commercetools-sdk-typescript/pull/645) [`bfbdfe6`](https://github.com/commercetools/commercetools-sdk-typescript/commit/bfbdfe65042f2b8d011d40859c9542666187dd22) Thanks [@lojzatran](https://github.com/lojzatran)! - Add Datadog APM to SDK
|
|
14
|
+
|
|
3
15
|
## 1.1.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -25,7 +25,7 @@ function toPrimitive(t, r) {
|
|
|
25
25
|
|
|
26
26
|
function toPropertyKey(t) {
|
|
27
27
|
var i = toPrimitive(t, "string");
|
|
28
|
-
return "symbol" == typeof i ? i :
|
|
28
|
+
return "symbol" == typeof i ? i : i + "";
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
function _defineProperty(obj, key, value) {
|
|
@@ -331,6 +331,14 @@ function store(initVal) {
|
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
+
function isDefined(value) {
|
|
335
|
+
return typeof value !== 'undefined' && value !== null;
|
|
336
|
+
}
|
|
337
|
+
function clean(value) {
|
|
338
|
+
if (!isDefined(value)) return '';
|
|
339
|
+
if (typeof value == 'string') return value;
|
|
340
|
+
return Object.fromEntries(Object.entries(value).filter(([_, value]) => ![null, undefined, ''].includes(value)));
|
|
341
|
+
}
|
|
334
342
|
function urlParser(url) {
|
|
335
343
|
const object = {};
|
|
336
344
|
const data = new URLSearchParams(url);
|
|
@@ -344,11 +352,13 @@ function urlParser(url) {
|
|
|
344
352
|
return object;
|
|
345
353
|
}
|
|
346
354
|
function urlStringifier(object) {
|
|
355
|
+
object = clean(object);
|
|
356
|
+
if (!object) return '';
|
|
347
357
|
const params = new URLSearchParams(object);
|
|
348
358
|
for (const [key, value] of Object.entries(object)) {
|
|
349
359
|
if (Array.isArray(value)) {
|
|
350
360
|
params.delete(key);
|
|
351
|
-
value.filter(
|
|
361
|
+
value.filter(isDefined).forEach(v => params.append(key, v));
|
|
352
362
|
}
|
|
353
363
|
}
|
|
354
364
|
return params.toString();
|
|
@@ -357,7 +367,7 @@ function parseURLString(url, parser = urlParser) {
|
|
|
357
367
|
return parser(url);
|
|
358
368
|
}
|
|
359
369
|
function stringifyURLString(object, stringifier = urlStringifier) {
|
|
360
|
-
return
|
|
370
|
+
return stringifier(object);
|
|
361
371
|
}
|
|
362
372
|
|
|
363
373
|
// import { validateUserAgentOptions } from '../utils'
|
|
@@ -1230,7 +1240,7 @@ function createQueueMiddleware$1({
|
|
|
1230
1240
|
|
|
1231
1241
|
var packageJson = {
|
|
1232
1242
|
name: "@commercetools/ts-client",
|
|
1233
|
-
version: "1.
|
|
1243
|
+
version: "1.2.1",
|
|
1234
1244
|
engines: {
|
|
1235
1245
|
node: ">=14"
|
|
1236
1246
|
},
|
|
@@ -1266,7 +1276,7 @@ var packageJson = {
|
|
|
1266
1276
|
"abort-controller": "3.0.0",
|
|
1267
1277
|
buffer: "^6.0.3",
|
|
1268
1278
|
"node-fetch": "^2.6.1",
|
|
1269
|
-
uuid: "9.0.
|
|
1279
|
+
uuid: "9.0.1"
|
|
1270
1280
|
},
|
|
1271
1281
|
files: [
|
|
1272
1282
|
"dist",
|
|
@@ -1281,8 +1291,8 @@ var packageJson = {
|
|
|
1281
1291
|
},
|
|
1282
1292
|
devDependencies: {
|
|
1283
1293
|
"common-tags": "1.8.2",
|
|
1284
|
-
dotenv: "16.
|
|
1285
|
-
jest: "29.
|
|
1294
|
+
dotenv: "16.4.5",
|
|
1295
|
+
jest: "29.7.0",
|
|
1286
1296
|
nock: "12.0.3",
|
|
1287
1297
|
"organize-imports-cli": "0.10.0"
|
|
1288
1298
|
},
|
|
@@ -1462,7 +1472,13 @@ function createClient(middlewares) {
|
|
|
1462
1472
|
reject,
|
|
1463
1473
|
resolve,
|
|
1464
1474
|
...request
|
|
1465
|
-
}).then(
|
|
1475
|
+
}).then(res => {
|
|
1476
|
+
if (res.error) {
|
|
1477
|
+
reject(res.error);
|
|
1478
|
+
} else {
|
|
1479
|
+
resolve(res);
|
|
1480
|
+
}
|
|
1481
|
+
}).catch(reject);
|
|
1466
1482
|
});
|
|
1467
1483
|
}
|
|
1468
1484
|
};
|
|
@@ -16,7 +16,7 @@ function toPrimitive(t, r) {
|
|
|
16
16
|
|
|
17
17
|
function toPropertyKey(t) {
|
|
18
18
|
var i = toPrimitive(t, "string");
|
|
19
|
-
return "symbol" == typeof i ? i :
|
|
19
|
+
return "symbol" == typeof i ? i : i + "";
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
function _defineProperty(obj, key, value) {
|
|
@@ -322,6 +322,14 @@ function store(initVal) {
|
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
+
function isDefined(value) {
|
|
326
|
+
return typeof value !== 'undefined' && value !== null;
|
|
327
|
+
}
|
|
328
|
+
function clean(value) {
|
|
329
|
+
if (!isDefined(value)) return '';
|
|
330
|
+
if (typeof value == 'string') return value;
|
|
331
|
+
return Object.fromEntries(Object.entries(value).filter(([_, value]) => ![null, undefined, ''].includes(value)));
|
|
332
|
+
}
|
|
325
333
|
function urlParser(url) {
|
|
326
334
|
const object = {};
|
|
327
335
|
const data = new URLSearchParams(url);
|
|
@@ -335,11 +343,13 @@ function urlParser(url) {
|
|
|
335
343
|
return object;
|
|
336
344
|
}
|
|
337
345
|
function urlStringifier(object) {
|
|
346
|
+
object = clean(object);
|
|
347
|
+
if (!object) return '';
|
|
338
348
|
const params = new URLSearchParams(object);
|
|
339
349
|
for (const [key, value] of Object.entries(object)) {
|
|
340
350
|
if (Array.isArray(value)) {
|
|
341
351
|
params.delete(key);
|
|
342
|
-
value.filter(
|
|
352
|
+
value.filter(isDefined).forEach(v => params.append(key, v));
|
|
343
353
|
}
|
|
344
354
|
}
|
|
345
355
|
return params.toString();
|
|
@@ -348,7 +358,7 @@ function parseURLString(url, parser = urlParser) {
|
|
|
348
358
|
return parser(url);
|
|
349
359
|
}
|
|
350
360
|
function stringifyURLString(object, stringifier = urlStringifier) {
|
|
351
|
-
return
|
|
361
|
+
return stringifier(object);
|
|
352
362
|
}
|
|
353
363
|
|
|
354
364
|
// import { validateUserAgentOptions } from '../utils'
|
|
@@ -1221,7 +1231,7 @@ function createQueueMiddleware$1({
|
|
|
1221
1231
|
|
|
1222
1232
|
var packageJson = {
|
|
1223
1233
|
name: "@commercetools/ts-client",
|
|
1224
|
-
version: "1.
|
|
1234
|
+
version: "1.2.1",
|
|
1225
1235
|
engines: {
|
|
1226
1236
|
node: ">=14"
|
|
1227
1237
|
},
|
|
@@ -1257,7 +1267,7 @@ var packageJson = {
|
|
|
1257
1267
|
"abort-controller": "3.0.0",
|
|
1258
1268
|
buffer: "^6.0.3",
|
|
1259
1269
|
"node-fetch": "^2.6.1",
|
|
1260
|
-
uuid: "9.0.
|
|
1270
|
+
uuid: "9.0.1"
|
|
1261
1271
|
},
|
|
1262
1272
|
files: [
|
|
1263
1273
|
"dist",
|
|
@@ -1272,8 +1282,8 @@ var packageJson = {
|
|
|
1272
1282
|
},
|
|
1273
1283
|
devDependencies: {
|
|
1274
1284
|
"common-tags": "1.8.2",
|
|
1275
|
-
dotenv: "16.
|
|
1276
|
-
jest: "29.
|
|
1285
|
+
dotenv: "16.4.5",
|
|
1286
|
+
jest: "29.7.0",
|
|
1277
1287
|
nock: "12.0.3",
|
|
1278
1288
|
"organize-imports-cli": "0.10.0"
|
|
1279
1289
|
},
|
|
@@ -1453,7 +1463,13 @@ function createClient(middlewares) {
|
|
|
1453
1463
|
reject,
|
|
1454
1464
|
resolve,
|
|
1455
1465
|
...request
|
|
1456
|
-
}).then(
|
|
1466
|
+
}).then(res => {
|
|
1467
|
+
if (res.error) {
|
|
1468
|
+
reject(res.error);
|
|
1469
|
+
} else {
|
|
1470
|
+
resolve(res);
|
|
1471
|
+
}
|
|
1472
|
+
}).catch(reject);
|
|
1457
1473
|
});
|
|
1458
1474
|
}
|
|
1459
1475
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./declarations/src/index";
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVyY2V0b29scy10cy1jbGllbnQuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuL2RlY2xhcmF0aW9ucy9zcmMvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
|
|
@@ -25,7 +25,7 @@ function toPrimitive(t, r) {
|
|
|
25
25
|
|
|
26
26
|
function toPropertyKey(t) {
|
|
27
27
|
var i = toPrimitive(t, "string");
|
|
28
|
-
return "symbol" == typeof i ? i :
|
|
28
|
+
return "symbol" == typeof i ? i : i + "";
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
function _defineProperty(obj, key, value) {
|
|
@@ -331,6 +331,14 @@ function store(initVal) {
|
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
+
function isDefined(value) {
|
|
335
|
+
return typeof value !== 'undefined' && value !== null;
|
|
336
|
+
}
|
|
337
|
+
function clean(value) {
|
|
338
|
+
if (!isDefined(value)) return '';
|
|
339
|
+
if (typeof value == 'string') return value;
|
|
340
|
+
return Object.fromEntries(Object.entries(value).filter(([_, value]) => ![null, undefined, ''].includes(value)));
|
|
341
|
+
}
|
|
334
342
|
function urlParser(url) {
|
|
335
343
|
const object = {};
|
|
336
344
|
const data = new URLSearchParams(url);
|
|
@@ -344,11 +352,13 @@ function urlParser(url) {
|
|
|
344
352
|
return object;
|
|
345
353
|
}
|
|
346
354
|
function urlStringifier(object) {
|
|
355
|
+
object = clean(object);
|
|
356
|
+
if (!object) return '';
|
|
347
357
|
const params = new URLSearchParams(object);
|
|
348
358
|
for (const [key, value] of Object.entries(object)) {
|
|
349
359
|
if (Array.isArray(value)) {
|
|
350
360
|
params.delete(key);
|
|
351
|
-
value.filter(
|
|
361
|
+
value.filter(isDefined).forEach(v => params.append(key, v));
|
|
352
362
|
}
|
|
353
363
|
}
|
|
354
364
|
return params.toString();
|
|
@@ -357,7 +367,7 @@ function parseURLString(url, parser = urlParser) {
|
|
|
357
367
|
return parser(url);
|
|
358
368
|
}
|
|
359
369
|
function stringifyURLString(object, stringifier = urlStringifier) {
|
|
360
|
-
return
|
|
370
|
+
return stringifier(object);
|
|
361
371
|
}
|
|
362
372
|
|
|
363
373
|
// import { validateUserAgentOptions } from '../utils'
|
|
@@ -1230,7 +1240,7 @@ function createQueueMiddleware$1({
|
|
|
1230
1240
|
|
|
1231
1241
|
var packageJson = {
|
|
1232
1242
|
name: "@commercetools/ts-client",
|
|
1233
|
-
version: "1.
|
|
1243
|
+
version: "1.2.1",
|
|
1234
1244
|
engines: {
|
|
1235
1245
|
node: ">=14"
|
|
1236
1246
|
},
|
|
@@ -1266,7 +1276,7 @@ var packageJson = {
|
|
|
1266
1276
|
"abort-controller": "3.0.0",
|
|
1267
1277
|
buffer: "^6.0.3",
|
|
1268
1278
|
"node-fetch": "^2.6.1",
|
|
1269
|
-
uuid: "9.0.
|
|
1279
|
+
uuid: "9.0.1"
|
|
1270
1280
|
},
|
|
1271
1281
|
files: [
|
|
1272
1282
|
"dist",
|
|
@@ -1281,8 +1291,8 @@ var packageJson = {
|
|
|
1281
1291
|
},
|
|
1282
1292
|
devDependencies: {
|
|
1283
1293
|
"common-tags": "1.8.2",
|
|
1284
|
-
dotenv: "16.
|
|
1285
|
-
jest: "29.
|
|
1294
|
+
dotenv: "16.4.5",
|
|
1295
|
+
jest: "29.7.0",
|
|
1286
1296
|
nock: "12.0.3",
|
|
1287
1297
|
"organize-imports-cli": "0.10.0"
|
|
1288
1298
|
},
|
|
@@ -1462,7 +1472,13 @@ function createClient(middlewares) {
|
|
|
1462
1472
|
reject,
|
|
1463
1473
|
resolve,
|
|
1464
1474
|
...request
|
|
1465
|
-
}).then(
|
|
1475
|
+
}).then(res => {
|
|
1476
|
+
if (res.error) {
|
|
1477
|
+
reject(res.error);
|
|
1478
|
+
} else {
|
|
1479
|
+
resolve(res);
|
|
1480
|
+
}
|
|
1481
|
+
}).catch(reject);
|
|
1466
1482
|
});
|
|
1467
1483
|
}
|
|
1468
1484
|
};
|
|
@@ -25,7 +25,7 @@ function toPrimitive(t, r) {
|
|
|
25
25
|
|
|
26
26
|
function toPropertyKey(t) {
|
|
27
27
|
var i = toPrimitive(t, "string");
|
|
28
|
-
return "symbol" == typeof i ? i :
|
|
28
|
+
return "symbol" == typeof i ? i : i + "";
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
function _defineProperty(obj, key, value) {
|
|
@@ -331,6 +331,14 @@ function store(initVal) {
|
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
333
|
|
|
334
|
+
function isDefined(value) {
|
|
335
|
+
return typeof value !== 'undefined' && value !== null;
|
|
336
|
+
}
|
|
337
|
+
function clean(value) {
|
|
338
|
+
if (!isDefined(value)) return '';
|
|
339
|
+
if (typeof value == 'string') return value;
|
|
340
|
+
return Object.fromEntries(Object.entries(value).filter(([_, value]) => ![null, undefined, ''].includes(value)));
|
|
341
|
+
}
|
|
334
342
|
function urlParser(url) {
|
|
335
343
|
const object = {};
|
|
336
344
|
const data = new URLSearchParams(url);
|
|
@@ -344,11 +352,13 @@ function urlParser(url) {
|
|
|
344
352
|
return object;
|
|
345
353
|
}
|
|
346
354
|
function urlStringifier(object) {
|
|
355
|
+
object = clean(object);
|
|
356
|
+
if (!object) return '';
|
|
347
357
|
const params = new URLSearchParams(object);
|
|
348
358
|
for (const [key, value] of Object.entries(object)) {
|
|
349
359
|
if (Array.isArray(value)) {
|
|
350
360
|
params.delete(key);
|
|
351
|
-
value.filter(
|
|
361
|
+
value.filter(isDefined).forEach(v => params.append(key, v));
|
|
352
362
|
}
|
|
353
363
|
}
|
|
354
364
|
return params.toString();
|
|
@@ -357,7 +367,7 @@ function parseURLString(url, parser = urlParser) {
|
|
|
357
367
|
return parser(url);
|
|
358
368
|
}
|
|
359
369
|
function stringifyURLString(object, stringifier = urlStringifier) {
|
|
360
|
-
return
|
|
370
|
+
return stringifier(object);
|
|
361
371
|
}
|
|
362
372
|
|
|
363
373
|
// import { validateUserAgentOptions } from '../utils'
|
|
@@ -1230,7 +1240,7 @@ function createQueueMiddleware$1({
|
|
|
1230
1240
|
|
|
1231
1241
|
var packageJson = {
|
|
1232
1242
|
name: "@commercetools/ts-client",
|
|
1233
|
-
version: "1.
|
|
1243
|
+
version: "1.2.1",
|
|
1234
1244
|
engines: {
|
|
1235
1245
|
node: ">=14"
|
|
1236
1246
|
},
|
|
@@ -1266,7 +1276,7 @@ var packageJson = {
|
|
|
1266
1276
|
"abort-controller": "3.0.0",
|
|
1267
1277
|
buffer: "^6.0.3",
|
|
1268
1278
|
"node-fetch": "^2.6.1",
|
|
1269
|
-
uuid: "9.0.
|
|
1279
|
+
uuid: "9.0.1"
|
|
1270
1280
|
},
|
|
1271
1281
|
files: [
|
|
1272
1282
|
"dist",
|
|
@@ -1281,8 +1291,8 @@ var packageJson = {
|
|
|
1281
1291
|
},
|
|
1282
1292
|
devDependencies: {
|
|
1283
1293
|
"common-tags": "1.8.2",
|
|
1284
|
-
dotenv: "16.
|
|
1285
|
-
jest: "29.
|
|
1294
|
+
dotenv: "16.4.5",
|
|
1295
|
+
jest: "29.7.0",
|
|
1286
1296
|
nock: "12.0.3",
|
|
1287
1297
|
"organize-imports-cli": "0.10.0"
|
|
1288
1298
|
},
|
|
@@ -1462,7 +1472,13 @@ function createClient(middlewares) {
|
|
|
1462
1472
|
reject,
|
|
1463
1473
|
resolve,
|
|
1464
1474
|
...request
|
|
1465
|
-
}).then(
|
|
1475
|
+
}).then(res => {
|
|
1476
|
+
if (res.error) {
|
|
1477
|
+
reject(res.error);
|
|
1478
|
+
} else {
|
|
1479
|
+
resolve(res);
|
|
1480
|
+
}
|
|
1481
|
+
}).catch(reject);
|
|
1466
1482
|
});
|
|
1467
1483
|
}
|
|
1468
1484
|
};
|
|
@@ -16,7 +16,7 @@ function toPrimitive(t, r) {
|
|
|
16
16
|
|
|
17
17
|
function toPropertyKey(t) {
|
|
18
18
|
var i = toPrimitive(t, "string");
|
|
19
|
-
return "symbol" == typeof i ? i :
|
|
19
|
+
return "symbol" == typeof i ? i : i + "";
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
function _defineProperty(obj, key, value) {
|
|
@@ -322,6 +322,14 @@ function store(initVal) {
|
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
+
function isDefined(value) {
|
|
326
|
+
return typeof value !== 'undefined' && value !== null;
|
|
327
|
+
}
|
|
328
|
+
function clean(value) {
|
|
329
|
+
if (!isDefined(value)) return '';
|
|
330
|
+
if (typeof value == 'string') return value;
|
|
331
|
+
return Object.fromEntries(Object.entries(value).filter(([_, value]) => ![null, undefined, ''].includes(value)));
|
|
332
|
+
}
|
|
325
333
|
function urlParser(url) {
|
|
326
334
|
const object = {};
|
|
327
335
|
const data = new URLSearchParams(url);
|
|
@@ -335,11 +343,13 @@ function urlParser(url) {
|
|
|
335
343
|
return object;
|
|
336
344
|
}
|
|
337
345
|
function urlStringifier(object) {
|
|
346
|
+
object = clean(object);
|
|
347
|
+
if (!object) return '';
|
|
338
348
|
const params = new URLSearchParams(object);
|
|
339
349
|
for (const [key, value] of Object.entries(object)) {
|
|
340
350
|
if (Array.isArray(value)) {
|
|
341
351
|
params.delete(key);
|
|
342
|
-
value.filter(
|
|
352
|
+
value.filter(isDefined).forEach(v => params.append(key, v));
|
|
343
353
|
}
|
|
344
354
|
}
|
|
345
355
|
return params.toString();
|
|
@@ -348,7 +358,7 @@ function parseURLString(url, parser = urlParser) {
|
|
|
348
358
|
return parser(url);
|
|
349
359
|
}
|
|
350
360
|
function stringifyURLString(object, stringifier = urlStringifier) {
|
|
351
|
-
return
|
|
361
|
+
return stringifier(object);
|
|
352
362
|
}
|
|
353
363
|
|
|
354
364
|
// import { validateUserAgentOptions } from '../utils'
|
|
@@ -1221,7 +1231,7 @@ function createQueueMiddleware$1({
|
|
|
1221
1231
|
|
|
1222
1232
|
var packageJson = {
|
|
1223
1233
|
name: "@commercetools/ts-client",
|
|
1224
|
-
version: "1.
|
|
1234
|
+
version: "1.2.1",
|
|
1225
1235
|
engines: {
|
|
1226
1236
|
node: ">=14"
|
|
1227
1237
|
},
|
|
@@ -1257,7 +1267,7 @@ var packageJson = {
|
|
|
1257
1267
|
"abort-controller": "3.0.0",
|
|
1258
1268
|
buffer: "^6.0.3",
|
|
1259
1269
|
"node-fetch": "^2.6.1",
|
|
1260
|
-
uuid: "9.0.
|
|
1270
|
+
uuid: "9.0.1"
|
|
1261
1271
|
},
|
|
1262
1272
|
files: [
|
|
1263
1273
|
"dist",
|
|
@@ -1272,8 +1282,8 @@ var packageJson = {
|
|
|
1272
1282
|
},
|
|
1273
1283
|
devDependencies: {
|
|
1274
1284
|
"common-tags": "1.8.2",
|
|
1275
|
-
dotenv: "16.
|
|
1276
|
-
jest: "29.
|
|
1285
|
+
dotenv: "16.4.5",
|
|
1286
|
+
jest: "29.7.0",
|
|
1277
1287
|
nock: "12.0.3",
|
|
1278
1288
|
"organize-imports-cli": "0.10.0"
|
|
1279
1289
|
},
|
|
@@ -1453,7 +1463,13 @@ function createClient(middlewares) {
|
|
|
1453
1463
|
reject,
|
|
1454
1464
|
resolve,
|
|
1455
1465
|
...request
|
|
1456
|
-
}).then(
|
|
1466
|
+
}).then(res => {
|
|
1467
|
+
if (res.error) {
|
|
1468
|
+
reject(res.error);
|
|
1469
|
+
} else {
|
|
1470
|
+
resolve(res);
|
|
1471
|
+
}
|
|
1472
|
+
}).catch(reject);
|
|
1457
1473
|
});
|
|
1458
1474
|
}
|
|
1459
1475
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools/ts-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=14"
|
|
6
6
|
},
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"abort-controller": "3.0.0",
|
|
37
37
|
"buffer": "^6.0.3",
|
|
38
38
|
"node-fetch": "^2.6.1",
|
|
39
|
-
"uuid": "9.0.
|
|
39
|
+
"uuid": "9.0.1"
|
|
40
40
|
},
|
|
41
41
|
"files": ["dist", "CHANGELOG.md"],
|
|
42
42
|
"author": "Chukwuemeka Ajima <meeky.ae@gmail.com>",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"common-tags": "1.8.2",
|
|
51
|
-
"dotenv": "16.
|
|
52
|
-
"jest": "29.
|
|
51
|
+
"dotenv": "16.4.5",
|
|
52
|
+
"jest": "29.7.0",
|
|
53
53
|
"nock": "12.0.3",
|
|
54
54
|
"organize-imports-cli": "0.10.0"
|
|
55
55
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commercetools-ts-client.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}
|