Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "cass", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "It rhymes with jax-rs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -31,3 +31,3 @@ # Cass | ||
import { createRouter, GET, PUT } from 'wegweiser'; | ||
import concat from 'concat-stream-promise'; | ||
import parsedBody from 'parsed-body'; | ||
import { createApp } from 'quinn'; | ||
@@ -43,3 +43,3 @@ | ||
PUT('/todos/:id')(async (req, id) => { | ||
const { done } = await req.pipe(concat()).then(JSON.parse); | ||
const { done } = await parsedBody(req); | ||
if (0 === await todos.where({ id }).update({ done })) { | ||
@@ -46,0 +46,0 @@ return; // item not found |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8429
2