🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@constructor-io/constructorio-node

Package Overview
Dependencies
Maintainers
6
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@constructor-io/constructorio-node - npm Package Compare versions

Comparing version
5.3.2
to
5.4.0
+6
-3
package.json
{
"name": "@constructor-io/constructorio-node",
"version": "5.3.2",
"version": "5.4.0",
"description": "Constructor.io Node.js client",

@@ -8,4 +8,3 @@ "main": "src/constructorio.js",

"scripts": {
"verify-node-version": "chmod +x ./scripts/verify-node-version.sh && ./scripts/verify-node-version.sh",
"version": "npm run verify-node-version && npm run docs && git add ./docs/*",
"version": "npm run docs && git add ./docs/*",
"check-license": "license-checker --production --onlyAllow 'Apache-2.0;BSD-3-Clause;MIT;0BSD;BSD-2-Clause'",

@@ -68,3 +67,7 @@ "lint": "eslint 'src/**/*.js' 'spec/**/*.js' 'src/**/*.d.ts'",

"directory": "src/types/tests"
},
"volta": {
"node": "22.18.0",
"npm": "10.9.3"
}
}

@@ -47,3 +47,3 @@ /* eslint-disable max-len */

if (parameters) {
const { section, answers, quizVersionId, quizSessionId, filters, resultsPerPage, page } = parameters;
const { section, answers, quizVersionId, quizSessionId, filters, resultsPerPage, page, skipTracking } = parameters;

@@ -65,2 +65,7 @@ // Pull section from parameters

// Pull skip_tracking from parameters
if (skipTracking) {
queryParams.skip_tracking = skipTracking;
}
if (!helpers.isNil(page)) {

@@ -117,2 +122,3 @@ queryParams.page = page;

* @param {string} [parameters.quizSessionId] - Session identifier for the quiz. Session ID will be returned with the first request and it should be passed with subsequent requests. More information can be found [here]{@link https://docs.constructor.com/reference/configuration-quizzes}
* @param {boolean} [parameters.skipTracking] - If true, tracking for this question will be skipped. This is useful for preloading the first question of a quiz
* @param {object} [userParameters] - Parameters relevant to the user request

@@ -119,0 +125,0 @@ * @param {number} [userParameters.sessionId] - Session ID, utilized to personalize results

@@ -167,2 +167,3 @@ export * from './autocomplete';

image_url?: string;
/** @deprecated This field is deprecated and will be removed in a future version. */
facets?: Record<string, string[] | number[]>;

@@ -169,0 +170,0 @@ group_ids?: string[];

@@ -24,2 +24,6 @@ import { Nullable, UserParameters } from './index.d';

export interface NextQuestionQuizzesParameters extends QuizzesParameters {
skipTracking?: boolean;
}
export interface QuizzesResultsParameters extends QuizzesParameters {

@@ -39,3 +43,3 @@ answers: any[];

quizId: string,
parameters?: QuizzesParameters,
parameters?: NextQuestionQuizzesParameters,
userParameters?: UserParameters,

@@ -42,0 +46,0 @@ networkParameters?: NetworkParameters