@squaredup/plugin-common
Advanced tools
+12
-8
| { | ||
| "name": "@squaredup/plugin-common", | ||
| "version": "2.2.1", | ||
| "version": "2.2.2", | ||
| "description": "Common functions that can be used by any plugin", | ||
| "type": "module", | ||
| "main": "index.js", | ||
| "scripts": { | ||
| "preinstall": "npx only-allow pnpm", | ||
| "test": "vitest --reporter=verbose --reporter=junit --outputFile.junit=tests_output/junit.xml", | ||
| "fast": "pnpm i --frozen-lockfile", | ||
| "lint": "eslint ." | ||
| }, | ||
| "files": [ | ||
| "index.js", | ||
| "README.md" | ||
| ], | ||
| "author": "SquaredUp", | ||
@@ -29,3 +27,9 @@ "license": "ISC", | ||
| "serialize-error": "^10.0.0" | ||
| }, | ||
| "scripts": { | ||
| "preinstall": "npx only-allow pnpm", | ||
| "test": "vitest --reporter=verbose --reporter=junit --outputFile.junit=tests_output/junit.xml", | ||
| "fast": "pnpm i --frozen-lockfile", | ||
| "lint": "eslint ." | ||
| } | ||
| } | ||
| } |
| { | ||
| "recommendations": [ | ||
| "dbaeumer.vscode-eslint", | ||
| "esbenp.prettier-vscode", | ||
| "streetsidesoftware.code-spell-checker", | ||
| "vitest.explorer" | ||
| ], | ||
| } |
| { | ||
| "compilerOptions": { | ||
| "lib": ["ES2021"] | ||
| } | ||
| } |
| <?xml version="1.0" encoding="UTF-8" ?> | ||
| <testsuites name="vitest tests" tests="139" failures="0" errors="0" time="229.165"> | ||
| <testsuite name="tests/isValidVertex.test.js" timestamp="2026-05-01T11:56:57.195Z" hostname="SQUP-LT6TCPND4" tests="47" failures="0" errors="0" skipped="0" time="0.016892"> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > should return true when an vertex with valid inV, label, and outV passed" time="0.0017675"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Missing vertex properties > should return false when an vertex with 'name' missing is passed" time="0.0016702"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Missing vertex properties > should return false when an vertex with 'sourceId' missing is passed" time="0.0002338"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Missing vertex properties > should return false when an vertex with 'sourceName' missing is passed" time="0.0001982"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Missing vertex properties > should return false when an vertex with 'type' missing is passed" time="0.0002283"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Missing vertex properties > should return false when an vertex with 'sourceType' missing is passed" time="0.0001599"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Missing vertex properties > should log an error when an vertex with 'name' missing is passed" time="0.0016203"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Missing vertex properties > should log an error when an vertex with 'sourceId' missing is passed" time="0.0003003"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Missing vertex properties > should log an error when an vertex with 'sourceName' missing is passed" time="0.0003715"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Missing vertex properties > should log an error when an vertex with 'type' missing is passed" time="0.000321"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Missing vertex properties > should log an error when an vertex with 'sourceType' missing is passed" time="0.0003248"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should return false when an vertex with 'name' of type 'number' passed" time="0.0002033"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should return false when an vertex with 'name' of type 'object' passed" time="0.0002427"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should return false when an vertex with 'name' of type 'null' passed" time="0.0001751"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should return false when an vertex with 'sourceId' of type 'number' passed" time="0.0001512"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should return false when an vertex with 'sourceId' of type 'object' passed" time="0.0002046"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should return false when an vertex with 'sourceId' of type 'null' passed" time="0.0001501"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should return false when an vertex with 'sourceName' of type 'number' passed" time="0.0001341"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should return false when an vertex with 'sourceName' of type 'object' passed" time="0.0001493"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should return false when an vertex with 'sourceName' of type 'null' passed" time="0.0001611"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should return false when an vertex with 'type' of type 'number' passed" time="0.0001944"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should return false when an vertex with 'type' of type 'object' passed" time="0.0001481"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should return false when an vertex with 'type' of type 'null' passed" time="0.0001296"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should return false when an vertex with 'sourceType' of type 'number' passed" time="0.0006956"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should return false when an vertex with 'sourceType' of type 'object' passed" time="0.0001314"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should return false when an vertex with 'sourceType' of type 'null' passed" time="0.000112"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should log an error when an vertex with 'name' of type 'number' passed" time="0.0002577"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should log an error when an vertex with 'name' of type 'object' passed" time="0.0002715"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should log an error when an vertex with 'name' of type 'null' passed" time="0.0001968"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should log an error when an vertex with 'sourceId' of type 'number' passed" time="0.0002259"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should log an error when an vertex with 'sourceId' of type 'object' passed" time="0.0002459"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should log an error when an vertex with 'sourceId' of type 'null' passed" time="0.0002336"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should log an error when an vertex with 'sourceName' of type 'number' passed" time="0.000178"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should log an error when an vertex with 'sourceName' of type 'object' passed" time="0.0002153"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should log an error when an vertex with 'sourceName' of type 'null' passed" time="0.0001626"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should log an error when an vertex with 'type' of type 'number' passed" time="0.0001579"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should log an error when an vertex with 'type' of type 'object' passed" time="0.0001568"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should log an error when an vertex with 'type' of type 'null' passed" time="0.0001397"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should log an error when an vertex with 'sourceType' of type 'number' passed" time="0.0001505"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should log an error when an vertex with 'sourceType' of type 'object' passed" time="0.0006402"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex properties > should log an error when an vertex with 'sourceType' of type 'null' passed" time="0.000158"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex > should return false when no vertex is passed" time="0.0001534"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex > should log an error when no vertex is passed" time="0.0001827"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex > should return false when an invalid vertex of type 'number' is passed" time="0.0002241"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid vertex > should log an error when an invalid vertex of type 'number' is passed" time="0.0001706"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid context > should throw when no context passed" time="0.0007108"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidVertex.test.js" name="isValidVertex > Invalid context > should throw when no log object passed" time="0.0002022"> | ||
| </testcase> | ||
| </testsuite> | ||
| <testsuite name="tests/getRedactedJsonString.test.js" timestamp="2026-05-01T11:56:57.239Z" hostname="SQUP-LT6TCPND4" tests="8" failures="0" errors="0" skipped="0" time="0.0039927"> | ||
| <testcase classname="tests/getRedactedJsonString.test.js" name="getRedactedJsonString > Handles bare strings" time="0.0012704"> | ||
| </testcase> | ||
| <testcase classname="tests/getRedactedJsonString.test.js" name="getRedactedJsonString > Handles bare numbers" time="0.0002648"> | ||
| </testcase> | ||
| <testcase classname="tests/getRedactedJsonString.test.js" name="getRedactedJsonString > Handles bare booleans" time="0.0001352"> | ||
| </testcase> | ||
| <testcase classname="tests/getRedactedJsonString.test.js" name="getRedactedJsonString > Handles simple objects" time="0.0002029"> | ||
| </testcase> | ||
| <testcase classname="tests/getRedactedJsonString.test.js" name="getRedactedJsonString > Removes sensitive properties in simple objects" time="0.0002199"> | ||
| </testcase> | ||
| <testcase classname="tests/getRedactedJsonString.test.js" name="getRedactedJsonString > Removes sensitive properties in nested objects" time="0.0002164"> | ||
| </testcase> | ||
| <testcase classname="tests/getRedactedJsonString.test.js" name="getRedactedJsonString > Removes sensitive properties in nested objects with circularities" time="0.0001705"> | ||
| </testcase> | ||
| <testcase classname="tests/getRedactedJsonString.test.js" name="getRedactedJsonString > Removes properties passed in by caller" time="0.000152"> | ||
| </testcase> | ||
| </testsuite> | ||
| <testsuite name="tests/isValidEdge.test.js" timestamp="2026-05-01T11:56:57.248Z" hostname="SQUP-LT6TCPND4" tests="31" failures="0" errors="0" skipped="0" time="0.0145011"> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > should return true when an edge with valid inV, label, and outV passed" time="0.001662"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Missing edge properties > should return false when an edge with 'inV' missing is passed" time="0.0005653"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Missing edge properties > should return false when an edge with 'label' missing is passed" time="0.0002203"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Missing edge properties > should return false when an edge with 'outV' missing is passed" time="0.000389"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Missing edge properties > should log an error when an edge with 'inV' missing is passed" time="0.0020518"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Missing edge properties > should log an error when an edge with 'label' missing is passed" time="0.0003423"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Missing edge properties > should log an error when an edge with 'outV' missing is passed" time="0.0003853"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should return false when an edge with 'inV' of type 'number' passed" time="0.000216"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should return false when an edge with 'inV' of type 'object' passed" time="0.0002443"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should return false when an edge with 'inV' of type 'null' passed" time="0.0001856"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should return false when an edge with 'label' of type 'number' passed" time="0.0001639"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should return false when an edge with 'label' of type 'object' passed" time="0.000146"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should return false when an edge with 'label' of type 'null' passed" time="0.0002458"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should return false when an edge with 'outV' of type 'number' passed" time="0.0001864"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should return false when an edge with 'outV' of type 'object' passed" time="0.0001481"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should return false when an edge with 'outV' of type 'null' passed" time="0.0001998"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should log an error when an edge with 'inV' of type 'number' passed" time="0.0002999"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should log an error when an edge with 'inV' of type 'object' passed" time="0.0003152"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should log an error when an edge with 'inV' of type 'null' passed" time="0.0003104"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should log an error when an edge with 'label' of type 'number' passed" time="0.0002772"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should log an error when an edge with 'label' of type 'object' passed" time="0.0002957"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should log an error when an edge with 'label' of type 'null' passed" time="0.0003085"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should log an error when an edge with 'outV' of type 'number' passed" time="0.0002594"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should log an error when an edge with 'outV' of type 'object' passed" time="0.0002691"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge properties > should log an error when an edge with 'outV' of type 'null' passed" time="0.0006615"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge > should return false when no edge is passed" time="0.0001649"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge > should log an error when no edge is passed" time="0.0001854"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge > should return false when an invalid edge of type 'number' is passed" time="0.000204"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid edge > should log an error when an invalid edge of type 'number' is passed" time="0.0002019"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid context > should throw when no context passed" time="0.000716"> | ||
| </testcase> | ||
| <testcase classname="tests/isValidEdge.test.js" name="isValidEdge > Invalid context > should throw when no log object passed" time="0.000221"> | ||
| </testcase> | ||
| </testsuite> | ||
| <testsuite name="tests/warningTracker.test.js" timestamp="2026-05-01T11:56:57.274Z" hostname="SQUP-LT6TCPND4" tests="12" failures="0" errors="0" skipped="0" time="0.0106397"> | ||
| <testcase classname="tests/warningTracker.test.js" name="warningTracker > should return a valid function" time="0.0021456"> | ||
| </testcase> | ||
| <testcase classname="tests/warningTracker.test.js" name="warningTracker > should report a warning when a fresh warning is passed" time="0.0013613"> | ||
| </testcase> | ||
| <testcase classname="tests/warningTracker.test.js" name="warningTracker > should report distinct warnings when multiple messages passed" time="0.000378"> | ||
| </testcase> | ||
| <testcase classname="tests/warningTracker.test.js" name="warningTracker > should debug the message when a warning is passed twice" time="0.0015032"> | ||
| </testcase> | ||
| <testcase classname="tests/warningTracker.test.js" name="warningTracker > should report the message once, when a warning is passed twice" time="0.0003797"> | ||
| </testcase> | ||
| <testcase classname="tests/warningTracker.test.js" name="warningTracker > should debug the message once, when a warning is passed twice" time="0.0007158"> | ||
| </testcase> | ||
| <testcase classname="tests/warningTracker.test.js" name="warningTracker > should debug the message once, when a warning is passed three times" time="0.0002519"> | ||
| </testcase> | ||
| <testcase classname="tests/warningTracker.test.js" name="warningTracker > should pass any object when reporting a message once" time="0.000511"> | ||
| </testcase> | ||
| <testcase classname="tests/warningTracker.test.js" name="warningTracker > should pass any object when reporting a message twice" time="0.0003819"> | ||
| </testcase> | ||
| <testcase classname="tests/warningTracker.test.js" name="warningTracker > should pass the appropriate objects when reporting a message twice" time="0.0009179"> | ||
| </testcase> | ||
| <testcase classname="tests/warningTracker.test.js" name="warningTracker > should throw when an invalid context object is passed" time="0.0006994"> | ||
| </testcase> | ||
| <testcase classname="tests/warningTracker.test.js" name="warningTracker > should throw when an empty context object is passed" time="0.0002961"> | ||
| </testcase> | ||
| </testsuite> | ||
| <testsuite name="tests/pageApi.test.js" timestamp="2026-05-01T11:56:57.286Z" hostname="SQUP-LT6TCPND4" tests="13" failures="0" errors="0" skipped="0" time="0.0052371"> | ||
| <testcase classname="tests/pageApi.test.js" name="pageAPI > setup tests > should return an object" time="0.0010764"> | ||
| </testcase> | ||
| <testcase classname="tests/pageApi.test.js" name="pageAPI > setup tests > should return a get function" time="0.0001658"> | ||
| </testcase> | ||
| <testcase classname="tests/pageApi.test.js" name="pageAPI > setup tests > should return a set function" time="0.0001653"> | ||
| </testcase> | ||
| <testcase classname="tests/pageApi.test.js" name="pageAPI > setup tests > should return a clear function" time="0.0001588"> | ||
| </testcase> | ||
| <testcase classname="tests/pageApi.test.js" name="pageAPI > content tests > should not throw when get called wih an unset value" time="0.0007751"> | ||
| </testcase> | ||
| <testcase classname="tests/pageApi.test.js" name="pageAPI > content tests > should return undefined when get called with an unset value" time="0.0003326"> | ||
| </testcase> | ||
| <testcase classname="tests/pageApi.test.js" name="pageAPI > content tests > should set a value into pagingContext when using set" time="0.0001706"> | ||
| </testcase> | ||
| <testcase classname="tests/pageApi.test.js" name="pageAPI > content tests > should set an object value into pagingContext when using set" time="0.000119"> | ||
| </testcase> | ||
| <testcase classname="tests/pageApi.test.js" name="pageAPI > content tests > should return a previously set value when using get" time="0.0001701"> | ||
| </testcase> | ||
| <testcase classname="tests/pageApi.test.js" name="pageAPI > content tests > should overwrite a previously set value when using set" time="0.0001423"> | ||
| </testcase> | ||
| <testcase classname="tests/pageApi.test.js" name="pageAPI > content tests > should remove any values in pagingContext when clear called" time="0.0001428"> | ||
| </testcase> | ||
| <testcase classname="tests/pageApi.test.js" name="pageAPI > content tests > should not throw when getting a null key" time="0.0002024"> | ||
| </testcase> | ||
| <testcase classname="tests/pageApi.test.js" name="pageAPI > content tests > should not throw when setting a null key" time="0.0002932"> | ||
| </testcase> | ||
| </testsuite> | ||
| <testsuite name="tests/getCommonRetryAfter.test.js" timestamp="2026-05-01T11:56:57.298Z" hostname="SQUP-LT6TCPND4" tests="6" failures="0" errors="0" skipped="0" time="0.0046159"> | ||
| <testcase classname="tests/getCommonRetryAfter.test.js" name="getCommonRetryAfter > should return null if headers is not an object" time="0.0012434"> | ||
| </testcase> | ||
| <testcase classname="tests/getCommonRetryAfter.test.js" name="getCommonRetryAfter > should return null if no retry-after headers are present" time="0.0002013"> | ||
| </testcase> | ||
| <testcase classname="tests/getCommonRetryAfter.test.js" name="getCommonRetryAfter > should return null if retry-after headers are present but not numbers" time="0.0003011"> | ||
| </testcase> | ||
| <testcase classname="tests/getCommonRetryAfter.test.js" name="getCommonRetryAfter > should return the retry-after value as a number" time="0.0002383"> | ||
| </testcase> | ||
| <testcase classname="tests/getCommonRetryAfter.test.js" name="getCommonRetryAfter > should return the largest retry-after value when multiple headers are present" time="0.000955"> | ||
| </testcase> | ||
| <testcase classname="tests/getCommonRetryAfter.test.js" name="getCommonRetryAfter > should handle a mix of valid and invalid retry-after values" time="0.0001952"> | ||
| </testcase> | ||
| </testsuite> | ||
| <testsuite name="tests/deGremlin.test.js" timestamp="2026-05-01T11:56:57.305Z" hostname="SQUP-LT6TCPND4" tests="6" failures="0" errors="0" skipped="0" time="0.0068603"> | ||
| <testcase classname="tests/deGremlin.test.js" name="deGremlin > should return a string when given a string" time="0.0019777"> | ||
| </testcase> | ||
| <testcase classname="tests/deGremlin.test.js" name="deGremlin > should return the expected string when given a string" time="0.0004711"> | ||
| </testcase> | ||
| <testcase classname="tests/deGremlin.test.js" name="deGremlin > should return a string when given string[]" time="0.0002976"> | ||
| </testcase> | ||
| <testcase classname="tests/deGremlin.test.js" name="deGremlin > should return the expected string when given string[]" time="0.0003823"> | ||
| </testcase> | ||
| <testcase classname="tests/deGremlin.test.js" name="deGremlin > should return the first string when given multiple values in string[]" time="0.0005837"> | ||
| </testcase> | ||
| <testcase classname="tests/deGremlin.test.js" name="deGremlin > should not throw when given a null value" time="0.0012589"> | ||
| </testcase> | ||
| </testsuite> | ||
| <testsuite name="tests/axiosLogInterceptors.test.js" timestamp="2026-05-01T11:56:57.311Z" hostname="SQUP-LT6TCPND4" tests="8" failures="0" errors="0" skipped="0" time="0.0072592"> | ||
| <testcase classname="tests/axiosLogInterceptors.test.js" name="'Request Interceptors' > should return an array" time="0.0012227"> | ||
| </testcase> | ||
| <testcase classname="tests/axiosLogInterceptors.test.js" name="'Request Interceptors' > should return the expected array" time="0.0008118"> | ||
| </testcase> | ||
| <testcase classname="tests/axiosLogInterceptors.test.js" name="'Request Interceptors' > should throw when no context provided" time="0.0007469"> | ||
| </testcase> | ||
| <testcase classname="tests/axiosLogInterceptors.test.js" name="'Request Interceptors' > should throw when invalid context provided" time="0.0002112"> | ||
| </testcase> | ||
| <testcase classname="tests/axiosLogInterceptors.test.js" name="'Response Interceptors' > should return an array" time="0.0001866"> | ||
| </testcase> | ||
| <testcase classname="tests/axiosLogInterceptors.test.js" name="'Response Interceptors' > should return the expected array" time="0.0001613"> | ||
| </testcase> | ||
| <testcase classname="tests/axiosLogInterceptors.test.js" name="'Response Interceptors' > should throw when no context provided" time="0.0001937"> | ||
| </testcase> | ||
| <testcase classname="tests/axiosLogInterceptors.test.js" name="'Response Interceptors' > should throw when invalid context provided" time="0.0001432"> | ||
| </testcase> | ||
| </testsuite> | ||
| <testsuite name="tests/getBase64Auth.test.js" timestamp="2026-05-01T11:56:57.318Z" hostname="SQUP-LT6TCPND4" tests="6" failures="0" errors="0" skipped="0" time="0.005769"> | ||
| <testcase classname="tests/getBase64Auth.test.js" name="getBase64Auth > should return a string" time="0.0016699"> | ||
| </testcase> | ||
| <testcase classname="tests/getBase64Auth.test.js" name="getBase64Auth > should return the expected string" time="0.0002817"> | ||
| </testcase> | ||
| <testcase classname="tests/getBase64Auth.test.js" name="getBase64Auth > should not throw when given a null username" time="0.0011379"> | ||
| </testcase> | ||
| <testcase classname="tests/getBase64Auth.test.js" name="getBase64Auth > should not throw when given a null password" time="0.0003538"> | ||
| </testcase> | ||
| <testcase classname="tests/getBase64Auth.test.js" name="getBase64Auth > should not throw when given a null values" time="0.0004413"> | ||
| </testcase> | ||
| <testcase classname="tests/getBase64Auth.test.js" name="getBase64Auth > should not throw when given objects" time="0.0002947"> | ||
| </testcase> | ||
| </testsuite> | ||
| <testsuite name="tests/generatePkcePair.test.js" timestamp="2026-05-01T11:56:57.324Z" hostname="SQUP-LT6TCPND4" tests="2" failures="0" errors="0" skipped="0" time="0.0057795"> | ||
| <testcase classname="tests/generatePkcePair.test.js" name="generatePkcePair > should return an object" time="0.0027427"> | ||
| </testcase> | ||
| <testcase classname="tests/generatePkcePair.test.js" name="generatePkcePair > should return the expected object" time="0.001688"> | ||
| </testcase> | ||
| </testsuite> | ||
| </testsuites> |
| import { defineConfig } from 'vitest/config'; | ||
| export default defineConfig({ | ||
| test: {} | ||
| }); |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Unstable ownership
Supply chain riskA new collaborator has begun publishing package versions. Package stability and security risk may be elevated.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
1
-50%0
-100%27870
-53.26%3
-57.14%579
-2.53%