@commercetools/importapi-sdk 4.6.0 → 4.6.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 +6 -0
- package/dist/commercetools-importapi-sdk.browser.cjs.js +5 -8
- package/dist/commercetools-importapi-sdk.browser.esm.js +5 -8
- package/dist/commercetools-importapi-sdk.cjs.dev.js +5 -8
- package/dist/commercetools-importapi-sdk.cjs.prod.js +5 -8
- package/dist/commercetools-importapi-sdk.esm.js +5 -8
- package/dist/declarations/src/generated/shared/utils/uri-utils.d.ts +0 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @commercetools/importapi-sdk
|
|
2
2
|
|
|
3
|
+
## 4.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#483](https://github.com/commercetools/commercetools-sdk-typescript/pull/483) [`c87f6bf`](https://github.com/commercetools/commercetools-sdk-typescript/commit/c87f6bf6efd3b7bd66027829378108b1f260a325) Thanks [@github-actions](https://github.com/apps/github-actions)! - Update generated SDKs
|
|
8
|
+
|
|
3
9
|
## 4.6.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -39,7 +39,10 @@ function _defineProperty(obj, key, value) {
|
|
|
39
39
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
40
40
|
*/
|
|
41
41
|
|
|
42
|
-
function
|
|
42
|
+
function isDefined(value) {
|
|
43
|
+
return typeof value !== 'undefined' && value !== null;
|
|
44
|
+
}
|
|
45
|
+
function stringify(object) {
|
|
43
46
|
const params = new URLSearchParams(object);
|
|
44
47
|
for (const [key, value] of Object.entries(object)) {
|
|
45
48
|
if (Array.isArray(value)) {
|
|
@@ -49,12 +52,6 @@ function urlStringifier(object) {
|
|
|
49
52
|
}
|
|
50
53
|
return params.toString();
|
|
51
54
|
}
|
|
52
|
-
function stringifyURLString(object, stringifier = urlStringifier) {
|
|
53
|
-
return urlStringifier(object);
|
|
54
|
-
}
|
|
55
|
-
function isDefined(value) {
|
|
56
|
-
return typeof value !== 'undefined' && value !== null;
|
|
57
|
-
}
|
|
58
55
|
function cleanObject(obj) {
|
|
59
56
|
return Object.keys(obj).reduce((result, key) => {
|
|
60
57
|
const value = obj[key];
|
|
@@ -79,7 +76,7 @@ function cleanObject(obj) {
|
|
|
79
76
|
}
|
|
80
77
|
function formatQueryString(variableMap) {
|
|
81
78
|
const map = cleanObject(variableMap);
|
|
82
|
-
const result =
|
|
79
|
+
const result = stringify(map);
|
|
83
80
|
if (result === '') {
|
|
84
81
|
return '';
|
|
85
82
|
}
|
|
@@ -35,7 +35,10 @@ function _defineProperty(obj, key, value) {
|
|
|
35
35
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
|
-
function
|
|
38
|
+
function isDefined(value) {
|
|
39
|
+
return typeof value !== 'undefined' && value !== null;
|
|
40
|
+
}
|
|
41
|
+
function stringify(object) {
|
|
39
42
|
const params = new URLSearchParams(object);
|
|
40
43
|
for (const [key, value] of Object.entries(object)) {
|
|
41
44
|
if (Array.isArray(value)) {
|
|
@@ -45,12 +48,6 @@ function urlStringifier(object) {
|
|
|
45
48
|
}
|
|
46
49
|
return params.toString();
|
|
47
50
|
}
|
|
48
|
-
function stringifyURLString(object, stringifier = urlStringifier) {
|
|
49
|
-
return urlStringifier(object);
|
|
50
|
-
}
|
|
51
|
-
function isDefined(value) {
|
|
52
|
-
return typeof value !== 'undefined' && value !== null;
|
|
53
|
-
}
|
|
54
51
|
function cleanObject(obj) {
|
|
55
52
|
return Object.keys(obj).reduce((result, key) => {
|
|
56
53
|
const value = obj[key];
|
|
@@ -75,7 +72,7 @@ function cleanObject(obj) {
|
|
|
75
72
|
}
|
|
76
73
|
function formatQueryString(variableMap) {
|
|
77
74
|
const map = cleanObject(variableMap);
|
|
78
|
-
const result =
|
|
75
|
+
const result = stringify(map);
|
|
79
76
|
if (result === '') {
|
|
80
77
|
return '';
|
|
81
78
|
}
|
|
@@ -39,7 +39,10 @@ function _defineProperty(obj, key, value) {
|
|
|
39
39
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
40
40
|
*/
|
|
41
41
|
|
|
42
|
-
function
|
|
42
|
+
function isDefined(value) {
|
|
43
|
+
return typeof value !== 'undefined' && value !== null;
|
|
44
|
+
}
|
|
45
|
+
function stringify(object) {
|
|
43
46
|
const params = new URLSearchParams(object);
|
|
44
47
|
for (const [key, value] of Object.entries(object)) {
|
|
45
48
|
if (Array.isArray(value)) {
|
|
@@ -49,12 +52,6 @@ function urlStringifier(object) {
|
|
|
49
52
|
}
|
|
50
53
|
return params.toString();
|
|
51
54
|
}
|
|
52
|
-
function stringifyURLString(object, stringifier = urlStringifier) {
|
|
53
|
-
return urlStringifier(object);
|
|
54
|
-
}
|
|
55
|
-
function isDefined(value) {
|
|
56
|
-
return typeof value !== 'undefined' && value !== null;
|
|
57
|
-
}
|
|
58
55
|
function cleanObject(obj) {
|
|
59
56
|
return Object.keys(obj).reduce((result, key) => {
|
|
60
57
|
const value = obj[key];
|
|
@@ -79,7 +76,7 @@ function cleanObject(obj) {
|
|
|
79
76
|
}
|
|
80
77
|
function formatQueryString(variableMap) {
|
|
81
78
|
const map = cleanObject(variableMap);
|
|
82
|
-
const result =
|
|
79
|
+
const result = stringify(map);
|
|
83
80
|
if (result === '') {
|
|
84
81
|
return '';
|
|
85
82
|
}
|
|
@@ -39,7 +39,10 @@ function _defineProperty(obj, key, value) {
|
|
|
39
39
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
40
40
|
*/
|
|
41
41
|
|
|
42
|
-
function
|
|
42
|
+
function isDefined(value) {
|
|
43
|
+
return typeof value !== 'undefined' && value !== null;
|
|
44
|
+
}
|
|
45
|
+
function stringify(object) {
|
|
43
46
|
const params = new URLSearchParams(object);
|
|
44
47
|
for (const [key, value] of Object.entries(object)) {
|
|
45
48
|
if (Array.isArray(value)) {
|
|
@@ -49,12 +52,6 @@ function urlStringifier(object) {
|
|
|
49
52
|
}
|
|
50
53
|
return params.toString();
|
|
51
54
|
}
|
|
52
|
-
function stringifyURLString(object, stringifier = urlStringifier) {
|
|
53
|
-
return urlStringifier(object);
|
|
54
|
-
}
|
|
55
|
-
function isDefined(value) {
|
|
56
|
-
return typeof value !== 'undefined' && value !== null;
|
|
57
|
-
}
|
|
58
55
|
function cleanObject(obj) {
|
|
59
56
|
return Object.keys(obj).reduce((result, key) => {
|
|
60
57
|
const value = obj[key];
|
|
@@ -79,7 +76,7 @@ function cleanObject(obj) {
|
|
|
79
76
|
}
|
|
80
77
|
function formatQueryString(variableMap) {
|
|
81
78
|
const map = cleanObject(variableMap);
|
|
82
|
-
const result =
|
|
79
|
+
const result = stringify(map);
|
|
83
80
|
if (result === '') {
|
|
84
81
|
return '';
|
|
85
82
|
}
|
|
@@ -35,7 +35,10 @@ function _defineProperty(obj, key, value) {
|
|
|
35
35
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
36
36
|
*/
|
|
37
37
|
|
|
38
|
-
function
|
|
38
|
+
function isDefined(value) {
|
|
39
|
+
return typeof value !== 'undefined' && value !== null;
|
|
40
|
+
}
|
|
41
|
+
function stringify(object) {
|
|
39
42
|
const params = new URLSearchParams(object);
|
|
40
43
|
for (const [key, value] of Object.entries(object)) {
|
|
41
44
|
if (Array.isArray(value)) {
|
|
@@ -45,12 +48,6 @@ function urlStringifier(object) {
|
|
|
45
48
|
}
|
|
46
49
|
return params.toString();
|
|
47
50
|
}
|
|
48
|
-
function stringifyURLString(object, stringifier = urlStringifier) {
|
|
49
|
-
return urlStringifier(object);
|
|
50
|
-
}
|
|
51
|
-
function isDefined(value) {
|
|
52
|
-
return typeof value !== 'undefined' && value !== null;
|
|
53
|
-
}
|
|
54
51
|
function cleanObject(obj) {
|
|
55
52
|
return Object.keys(obj).reduce((result, key) => {
|
|
56
53
|
const value = obj[key];
|
|
@@ -75,7 +72,7 @@ function cleanObject(obj) {
|
|
|
75
72
|
}
|
|
76
73
|
function formatQueryString(variableMap) {
|
|
77
74
|
const map = cleanObject(variableMap);
|
|
78
|
-
const result =
|
|
75
|
+
const result = stringify(map);
|
|
79
76
|
if (result === '') {
|
|
80
77
|
return '';
|
|
81
78
|
}
|
|
@@ -4,5 +4,4 @@
|
|
|
4
4
|
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
5
|
*/
|
|
6
6
|
import { ClientRequest } from './common-types';
|
|
7
|
-
export declare function stringifyURLString(object: string | Record<string, any> | Array<Array<string>>, stringifier?: (object: string | Record<string, any> | Array<Array<string>> | URLSearchParams) => string): string;
|
|
8
7
|
export declare function buildRelativeUri(commonRequest: ClientRequest): string;
|