Current collected state Current
Observed since 20 Oct, 21:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A Next.js API framework
A Next.js API framework
yarn add 9ight next
// pages/api/users.ts
import { Body, Controller, Get, Params, Post } from '9ight';
const db = [];
@Controller('users')
export default class Users {
@Get(':id')
get(@Params() { id }) {
return db[id];
}
@Patch(':id')
update(@Body() body) {
db[id] = Object.assign(db[id], body)
return db[id];
}
@Post()
create(@Body() body) {
db.push({ id: db.length, name: body.name });
return db.slice(-1)
}
@Get()
list() {
return db;
}
}
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.0-canary.6Registry latest | 28 Jan 2020 | 33 | |
| 0.0.0-canary.5 | 28 Jan 2020 | 33 | |
| 0.0.0-canary.4 | 26 Jan 2020 | 29 | |
| 0.0.0-canary.3 | 26 Jan 2020 | 30 | |
| 0.0.0-canary.2 | 26 Jan 2020 | 30 | |
| 0.0.0-canary.1 | 26 Jan 2020 | 30 | |
| 0.0.0-canary.0 | 21 Jan 2020 | 24 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:38 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:b22fdb31f332685bf61ee2a985afef05057e4851ab6e2cc91642e1854230b797