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

@fastify/csrf

Package Overview
Dependencies
Maintainers
20
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastify/csrf - npm Package Compare versions

Comparing version 6.2.0 to 6.3.0

.gitattributes

1

benchmark/create.js

@@ -0,1 +1,2 @@

'use strict'

@@ -2,0 +3,0 @@ /**

8

benchmark/index.js

@@ -1,5 +0,7 @@

const fs = require('fs')
const path = require('path')
const spawn = require('child_process').spawn
'use strict'
const fs = require('node:fs')
const path = require('node:path')
const spawn = require('node:child_process').spawn
const exe = process.argv[0]

@@ -6,0 +8,0 @@ const cwd = process.cwd()

@@ -0,1 +1,2 @@

'use strict'

@@ -2,0 +3,0 @@ /**

@@ -0,1 +1,2 @@

'use strict'

@@ -2,0 +3,0 @@ /**

@@ -11,3 +11,3 @@ 'use strict'

const crypto = require('crypto')
const crypto = require('node:crypto')

@@ -14,0 +14,0 @@ /**

{
"name": "@fastify/csrf",
"description": "primary logic behind csrf tokens",
"version": "6.2.0",
"version": "6.3.0",
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",
"main": "index.js",
"type": "commonjs",
"types": "types/index.d.ts",

@@ -29,3 +30,3 @@ "contributors": [

"devDependencies": {
"@types/node": "^18.14.6",
"@types/node": "^20.1.0",
"beautify-benchmark": "^0.2.4",

@@ -35,3 +36,3 @@ "benchmark": "^2.1.4",

"tap": "^16.3.0",
"tsd": "^0.25.0"
"tsd": "^0.29.0"
},

@@ -38,0 +39,0 @@ "keywords": [

@@ -79,7 +79,7 @@ 'use strict'

const Tokens = mock('..', {
crypto: {
'node:crypto': {
randomBytes: (_size, cb) => {
cb(new Error('oh no'))
},
createHash: require('crypto').createHash
createHash: require('node:crypto').createHash
}

@@ -98,7 +98,7 @@ })

const Tokens = mock('..', {
crypto: {
'node:crypto': {
randomBytes: (size, cb) => {
cb(new Error('oh no'))
},
createHash: require('crypto').createHash
createHash: require('node:crypto').createHash
}

@@ -105,0 +105,0 @@ })

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