skapi-js 0.0.45 → 0.0.46
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/README.md +1 -1
- package/dist/skapi.js +1 -1
- package/dist/skapi.js.map +1 -1
- package/dist/skapi.module.js +1 -1
- package/dist/skapi.module.js.map +1 -1
- package/package.json +1 -1
- package/src/skapi.ts +3 -5
package/package.json
CHANGED
package/src/skapi.ts
CHANGED
|
@@ -1112,12 +1112,10 @@ export default class Skapi {
|
|
|
1112
1112
|
}): string | FetchResponse {
|
|
1113
1113
|
|
|
1114
1114
|
let { params = {}, url, refresh = false } = option || {};
|
|
1115
|
-
|
|
1116
|
-
if (params.hasOwnProperty('startKey')) {
|
|
1115
|
+
if (params.hasOwnProperty('startKey') && params.startKey) {
|
|
1117
1116
|
if (
|
|
1118
|
-
typeof params.startKey !== 'object' && !Object.keys(params.startKey).length
|
|
1119
|
-
|
|
1120
|
-
params.startKey !== 'end'
|
|
1117
|
+
typeof params.startKey !== 'object' && !Object.keys(params.startKey).length &&
|
|
1118
|
+
params.startKey !== 'start' && params.startKey !== 'end'
|
|
1121
1119
|
) {
|
|
1122
1120
|
throw new SkapiError(`"${params.startKey}" is invalid startKey key.`, { code: 'INVALID_PARAMETER' });
|
|
1123
1121
|
}
|