Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json-server

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-server - npm Package Compare versions

Comparing version 1.0.0-alpha.23 to 1.0.0-beta.0

20

lib/service.js

@@ -206,4 +206,10 @@ import { randomBytes } from 'node:crypto';

case Condition.ne: {
if (!(itemValue != paramValue))
return false;
switch (typeof itemValue) {
case 'number':
return itemValue !== parseInt(paramValue);
case 'string':
return itemValue !== paramValue;
case 'boolean':
return itemValue !== (paramValue === 'true');
}
break;

@@ -213,4 +219,10 @@ }

case Condition.default: {
if (!(itemValue == paramValue))
return false;
switch (typeof itemValue) {
case 'number':
return itemValue === parseInt(paramValue);
case 'string':
return itemValue === paramValue;
case 'boolean':
return itemValue === (paramValue === 'true');
}
}

@@ -217,0 +229,0 @@ }

6

package.json
{
"name": "json-server",
"version": "1.0.0-alpha.23",
"version": "1.0.0-beta.0",
"description": "",

@@ -28,2 +28,6 @@ "type": "module",

"license": "SEE LICENSE IN ./LICENSE",
"repository": {
"type": "git",
"url": "git+https://github.com/typicode/json-server.git"
},
"devDependencies": {

@@ -30,0 +34,0 @@ "@sindresorhus/tsconfig": "^5.0.0",

@@ -1,4 +0,1 @@

> [!IMPORTANT]
> Viewing alpha v1 documentation – usable but expect breaking changes. For stable version, see [here](https://github.com/typicode/json-server/tree/v0)
# json-server

@@ -8,2 +5,7 @@

> [!IMPORTANT]
> Viewing beta v1 documentation – usable but expect breaking changes. For stable version, see [here](https://github.com/typicode/json-server/tree/v0)
👋 _Hey! Using React, Vue or Astro? Check my new project [MistCSS](https://github.com/typicode/mistcss) to write 50% less code._
## Install

@@ -81,8 +83,18 @@

| :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| <a href="https://mockend.com/" target="_blank"><img src="https://jsonplaceholder.typicode.com/mockend.svg" height="70px"></a> |
| <a href="https://mockend.com/" target="_blank"><img src="https://jsonplaceholder.typicode.com/mockend.svg" height="80px"></a> |
| <a href="https://www.storyblok.com/" target="_blank"><img src="https://github.com/typicode/json-server/assets/5502029/c6b10674-4ada-4616-91b8-59d30046b45a" height="40px"></a> |
| <a href="https://betterstack.com/" target="_blank"><img src="https://github.com/typicode/json-server/assets/5502029/44679f8f-9671-470d-b77e-26d90b90cbdc" height="40px"></a> |
| <a href="https://www.globalsoftwarecompanies.com" target="_blank"><img src="https://github.com/typicode/json-server/assets/5502029/d0bb2e9b-9b74-4d91-9c9e-f3c87e152918" height="40px"></a> |
| <a href="https://beeceptor.com/?utm_source=json-server"><img src="https://github.com/typicode/json-server/assets/5502029/57b852a6-60b9-426b-986e-a148e82783c2" height="40px"></a> |
[Become a sponsor and have your company logo here](https://github.com/users/typicode/sponsorship)
## Sponsorware
> [!NOTE]
> This project uses the [Fair Source License](https://fair.io/). Only organizations with 3+ users are kindly asked to contribute a small amount through sponsorship [sponsor](https://github.com/sponsors/typicode) for usage. __This license helps keep the project sustainable and healthy, benefiting everyone.__
>
> For more information, FAQs, and the rationale behind this, visit [https://fair.io/](https://fair.io/).
## Routes

@@ -188,6 +200,6 @@

## License
## Notable differences with v0.17
This project uses the [Fair Source License](https://fair.io/). Note: Only organizations with 3+ users need to contribute a small amount through sponsorship [sponsor](https://github.com/sponsors/typicode) for usage. This license helps keep the project sustainable and healthy, benefiting everyone.
For more information, FAQs, and the rationale behind this, visit [https://fair.io/](https://fair.io/).
- `id` is always a string and will be generated for you if missing
- use `_per_page` with `_page` instead of `_limit`for pagination
- use Chrome's `Network tab > throtling` to delay requests instead of `--delay` CLI option

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc