@constructor-io/constructorio-node
Advanced tools
+6
-3
| { | ||
| "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 |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
350926
0.12%8979
0.1%