@bonniernews/fake-tool-api
Advanced tools
Comparing version 1.1.3 to 1.1.4
10
index.js
@@ -510,3 +510,7 @@ import nock from "nock"; | ||
} | ||
return [ 200, content, { "sequence-number": ofType[id].sequenceNumber } ]; | ||
const headers = { "sequence-number": ofType[id].sequenceNumber }; | ||
if (workingCopiesByType[type]?.[id]) { | ||
headers["working-copy-exists"] = true; | ||
} | ||
return [ 200, content, headers ]; | ||
} | ||
@@ -617,3 +621,3 @@ | ||
if (body.q) { | ||
const fields = ["title", "text"]; | ||
const fields = [ "title", "text" ]; | ||
let parts = []; | ||
@@ -623,3 +627,3 @@ if (body.prefixMatchAllTerms) { | ||
.split(" ") | ||
.filter((p) => p.length > 0) | ||
.filter((p) => p.length > 0); | ||
} | ||
@@ -626,0 +630,0 @@ |
{ | ||
"name": "@bonniernews/fake-tool-api", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"type": "module", | ||
@@ -29,2 +29,2 @@ "description": "Mocked Bonnier News tool api, for use in automated tests", | ||
} | ||
} | ||
} |
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
24336
756
0