@qikdev/sdk 0.1.205 → 0.1.206
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/package.json +1 -1
- package/src/api/qik.content.js +4 -4
- package/src/version.js +1 -1
package/package.json
CHANGED
package/src/api/qik.content.js
CHANGED
|
@@ -99,7 +99,7 @@ export default function (qik) {
|
|
|
99
99
|
allowing for fast selection of specific content types, by default will return as an array
|
|
100
100
|
* @param {Boolean} options.reload Force glossary to reload and not be cached.
|
|
101
101
|
If false will retrieve content type data from the in memory cache
|
|
102
|
-
* @param {Boolean} options.
|
|
102
|
+
* @param {Boolean} options.uncompressed Use the uncompressed endpoint
|
|
103
103
|
* @example
|
|
104
104
|
*
|
|
105
105
|
* const { article, profile } = await sdk.content.glossary({hash:true});
|
|
@@ -111,6 +111,8 @@ export default function (qik) {
|
|
|
111
111
|
|
|
112
112
|
// Check if we already have the glossary cached
|
|
113
113
|
let cached = glossaryCache.get("glossary");
|
|
114
|
+
const uncompressed = !!options.uncompressed;
|
|
115
|
+
let compressed = !uncompressed;
|
|
114
116
|
var reload = options.refresh || options.reload || !cached;
|
|
115
117
|
|
|
116
118
|
// If we are forcing a reload
|
|
@@ -119,9 +121,7 @@ export default function (qik) {
|
|
|
119
121
|
service.loadingGlossary = true;
|
|
120
122
|
|
|
121
123
|
// Use compressed endpoint if requested
|
|
122
|
-
const endpoint =
|
|
123
|
-
? `/glossary/compressed`
|
|
124
|
-
: `/glossary`;
|
|
124
|
+
const endpoint = compressed ? `/glossary/compressed` : `/glossary`;
|
|
125
125
|
inflightGlossaryRequest = qik.api.get(endpoint, { cache: false });
|
|
126
126
|
inflightGlossaryRequest.then(resolveRequest, resolveRequest);
|
|
127
127
|
function resolveRequest() {
|
package/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = "0.1.
|
|
1
|
+
export const version = "0.1.206";
|