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

fast-json-stringify

Package Overview
Dependencies
Maintainers
2
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-json-stringify - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

test/nestedObjects.test.js

8

index.js

@@ -27,8 +27,4 @@ 'use strict'

`
// used to support patternProperties and additionalProperties
// they need to check if a field belongs to the properties in the schema
code += `
var properties = ${JSON.stringify(schema.properties)} || {}
`
code += `
${$asString.toString()}

@@ -222,2 +218,3 @@ ${$asStringSmall.toString()}

var code = `
var properties = ${JSON.stringify(schema.properties)} || {}
var keys = Object.keys(obj)

@@ -373,2 +370,3 @@ for (var i = 0; i < keys.length; i++) {

return `
var properties = ${JSON.stringify(schema.properties)} || {}
var keys = Object.keys(obj)

@@ -375,0 +373,0 @@ for (var i = 0; i < keys.length; i++) {

{
"name": "fast-json-stringify",
"version": "1.2.0",
"version": "1.2.1",
"description": "Stringify your JSON at max speed",

@@ -32,10 +32,10 @@ "main": "index.js",

"pre-commit": "^1.2.2",
"proxyquire": "^1.8.0",
"standard": "^11.0.0",
"tap": "^11.1.1",
"proxyquire": "^2.0.0",
"standard": "^11.0.1",
"tap": "^11.1.3",
"uglify-es": "^3.3.10"
},
"dependencies": {
"ajv": "^6.0.0"
"ajv": "^6.4.0"
}
}
# fast-json-stringify&nbsp;&nbsp;[![Build Status](https://travis-ci.org/fastify/fast-json-stringify.svg?branch=master)](https://travis-ci.org/fastify/fast-json-stringify)
[![Greenkeeper badge](https://badges.greenkeeper.io/fastify/fast-json-stringify.svg)](https://greenkeeper.io/)
__fast-json-stringify__ is significantly faster than `JSON.stringify()` for small payloads. Its performance advantage shrinks as your payload grows. It pairs well with [__flatstr__](https://www.npmjs.com/package/flatstr), which triggers a V8 optimization that improves performance when eventually converting the string to a `Buffer`.

@@ -4,0 +6,0 @@

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