Skip to content

Commit da6aed7

Browse files
committed
Allow using localStorage for humanity check
1 parent 7287963 commit da6aed7

24 files changed

Lines changed: 87 additions & 44 deletions

dist/constructorio-client-javascript-2.74.0.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

dist/constructorio-client-javascript-2.75.0.js

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/ConstructorIO.html

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,6 +1290,46 @@ <h6>Properties</h6>
12901290
</tr>
12911291

12921292

1293+
1294+
<tr>
1295+
1296+
<td class="name"><code>humanityCheckLocation</code></td>
1297+
1298+
1299+
<td class="type">
1300+
1301+
1302+
<span class="param-type">string</span>
1303+
1304+
1305+
1306+
1307+
</td>
1308+
1309+
1310+
<td class="attributes">
1311+
1312+
&lt;optional><br>
1313+
1314+
1315+
1316+
1317+
1318+
</td>
1319+
1320+
1321+
1322+
<td class="default">
1323+
1324+
<code>'session'</code>
1325+
1326+
</td>
1327+
1328+
1329+
<td class="description last">Storage location for the humanity check flag ('session' for sessionStorage, 'local' for localStorage)</td>
1330+
</tr>
1331+
1332+
12931333
</tbody>
12941334
</table>
12951335

@@ -1379,7 +1419,7 @@ <h4 class="name" id="setClientOptions"><span class="type-signature"></span>setCl
13791419

13801420
<dt class="tag-source">Source:</dt>
13811421
<dd class="tag-source"><ul class="dummy"><li>
1382-
<a href="constructorio.js.html">constructorio.js</a>, <a href="constructorio.js.html#line166">line 166</a>
1422+
<a href="constructorio.js.html">constructorio.js</a>, <a href="constructorio.js.html#line169">line 169</a>
13831423
</li></ul></dd>
13841424

13851425

@@ -1745,7 +1785,7 @@ <h6>Properties</h6>
17451785
<br class="clear">
17461786

17471787
<footer>
1748-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Feb 12 2026 22:27:14 GMT+0400 (Gulf Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1788+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Fri Feb 13 2026 23:33:29 GMT+0400 (Gulf Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
17491789
</footer>
17501790

17511791
<script>prettyPrint();</script>

docs/constructorio.js.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ <h1 class="page-title">constructorio.js</h1>
106106
* @param {boolean} [parameters.eventDispatcher.waitForBeacon=true] - Wait for beacon before dispatching events
107107
* @param {object} [parameters.networkParameters] - Parameters relevant to network requests
108108
* @param {number} [parameters.networkParameters.timeout] - Request timeout (in milliseconds) - may be overridden within individual method calls
109+
* @param {string} [parameters.humanityCheckLocation='session'] - Storage location for the humanity check flag ('session' for sessionStorage, 'local' for localStorage)
109110
* @property {object} search - Interface to {@link module:search}
110111
* @property {object} browse - Interface to {@link module:browse}
111112
* @property {object} autocomplete - Interface to {@link module:autocomplete}
@@ -138,6 +139,7 @@ <h1 class="page-title">constructorio.js</h1>
138139
idOptions,
139140
beaconMode,
140141
networkParameters,
142+
humanityCheckLocation,
141143
} = options;
142144

143145
if (!apiKey || typeof apiKey !== 'string') {
@@ -185,6 +187,7 @@ <h1 class="page-title">constructorio.js</h1>
185187
eventDispatcher,
186188
beaconMode: (beaconMode === false) ? false : true, // Defaults to 'true',
187189
networkParameters: networkParameters || {},
190+
humanityCheckLocation: humanityCheckLocation || 'session',
188191
};
189192

190193
// Expose global modules
@@ -269,7 +272,7 @@ <h1 class="page-title">constructorio.js</h1>
269272
<br class="clear">
270273

271274
<footer>
272-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Feb 12 2026 22:27:14 GMT+0400 (Gulf Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
275+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Fri Feb 13 2026 23:33:29 GMT+0400 (Gulf Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
273276
</footer>
274277

275278
<script>prettyPrint();</script>

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ <h2>Development / npm commands</h2>
114114
<br class="clear">
115115

116116
<footer>
117-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Feb 12 2026 22:27:14 GMT+0400 (Gulf Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
117+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Fri Feb 13 2026 23:33:29 GMT+0400 (Gulf Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
118118
</footer>
119119

120120
<script>prettyPrint();</script>

docs/module-agent.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ <h5 class="h5-returns">Returns:</h5>
512512
<br class="clear">
513513

514514
<footer>
515-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Feb 12 2026 22:27:14 GMT+0400 (Gulf Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
515+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Fri Feb 13 2026 23:33:29 GMT+0400 (Gulf Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
516516
</footer>
517517

518518
<script>prettyPrint();</script>

docs/module-assistant.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ <h5 class="h5-returns">Returns:</h5>
410410
<br class="clear">
411411

412412
<footer>
413-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Feb 12 2026 22:27:14 GMT+0400 (Gulf Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
413+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Fri Feb 13 2026 23:33:29 GMT+0400 (Gulf Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
414414
</footer>
415415

416416
<script>prettyPrint();</script>

docs/module-autocomplete.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ <h5 class="h5-returns">Returns:</h5>
851851
<br class="clear">
852852

853853
<footer>
854-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Feb 12 2026 22:27:14 GMT+0400 (Gulf Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
854+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Fri Feb 13 2026 23:33:29 GMT+0400 (Gulf Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
855855
</footer>
856856

857857
<script>prettyPrint();</script>

docs/module-browse.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3189,7 +3189,7 @@ <h5 class="h5-returns">Returns:</h5>
31893189
<br class="clear">
31903190

31913191
<footer>
3192-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Feb 12 2026 22:27:14 GMT+0400 (Gulf Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
3192+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Fri Feb 13 2026 23:33:29 GMT+0400 (Gulf Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
31933193
</footer>
31943194

31953195
<script>prettyPrint();</script>

docs/module-quizzes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2177,7 +2177,7 @@ <h5 class="h5-returns">Returns:</h5>
21772177
<br class="clear">
21782178

21792179
<footer>
2180-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Thu Feb 12 2026 22:27:14 GMT+0400 (Gulf Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
2180+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Fri Feb 13 2026 23:33:29 GMT+0400 (Gulf Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
21812181
</footer>
21822182

21832183
<script>prettyPrint();</script>

0 commit comments

Comments
 (0)