New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fastify-cloudevents

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-cloudevents - npm Package Compare versions

Comparing version 0.4.0 to 1.0.0

12

CHANGELOG.md
# Change Log
## [1.0.0](https://github.com/smartiniOnGitHub/fastify-cloudevents/releases/tag/1.0.0) (2019-03-26)
Summary Changelog:
- Updated all dependencies
- Note that this release number means that the plugin is stable,
and for Fastify v1
- Test example server scripts under load, using
[clinic](https://www.npmjs.com/package/clinic) and
[autocannon](https://www.npmjs.com/package/autocannon),
to ensure that there aren't memory leaks, slowness, or other problems
- Small updates in code and examples
- Pin dependency on cloudevent to '0.4.x'
## [0.4.0](https://github.com/smartiniOnGitHub/fastify-cloudevents/releases/tag/0.4.0) (2019-03-16)

@@ -4,0 +16,0 @@ Summary Changelog:

6

example/example-enhanced.js

@@ -86,3 +86,3 @@ /*

{
timestamp: Math.floor(Date.now()),
timestamp: Date.now(),
description: 'Fastify server startup begin',

@@ -173,3 +173,3 @@ version: fastifyVersion,

{
timestamp: Math.floor(Date.now()),
timestamp: Date.now(),
status: 'listening',

@@ -210,3 +210,3 @@ ...processInfoAsData,

{
timestamp: Math.floor(Date.now()),
timestamp: Date.now(),
status: 'ready',

@@ -213,0 +213,0 @@ ...processInfoAsData

@@ -90,3 +90,3 @@ /*

{
timestamp: Math.floor(Date.now()),
timestamp: Date.now(),
status: 'listening',

@@ -111,3 +111,3 @@ hostname: hostname,

{
timestamp: Math.floor(Date.now()),
timestamp: Date.now(),
status: 'ready',

@@ -114,0 +114,0 @@ hostname: hostname,

{
"name": "fastify-cloudevents",
"version": "0.4.0",
"version": "1.0.0",
"description": "Fastify Plugin to serialize events in the CloudEvents standard format",

@@ -18,4 +18,4 @@ "main": "src/plugin",

"fastify-plugin": "^1.5.0",
"fast-json-stringify": "^1.11.3",
"cloudevent": "^0.4.0"
"fast-json-stringify": "^1.11.4",
"cloudevent": "~0.4.0"
},

@@ -25,3 +25,3 @@ "devDependencies": {

"standard": "^12.0.1",
"tap": "^12.6.0"
"tap": "^12.6.1"
},

@@ -28,0 +28,0 @@ "peerDependencies": {},

@@ -116,13 +116,21 @@ /*

function buildSourceUrl (url = '') {
if (serverUrlMode === null || serverUrlMode === 'pluginAndRequestSimplified') {
return serverUrl + CloudEventTransformer.uriStripArguments(url)
} else if (serverUrlMode === 'pluginAndRequestUrl') {
return serverUrl + url
} else if (serverUrlMode === 'pluginServerUrl') {
return serverUrl
} else if (serverUrlMode === 'requestUrl') {
return url
} else {
throw new Error(`Illegal value for serverUrlMode: '${serverUrlMode}'`)
let sourceUrl
switch (serverUrlMode) {
case null:
case 'pluginAndRequestSimplified':
sourceUrl = serverUrl + CloudEventTransformer.uriStripArguments(url)
break
case 'pluginAndRequestUrl':
sourceUrl = serverUrl + url
break
case 'pluginServerUrl':
sourceUrl = serverUrl
break
case 'requestUrl':
sourceUrl = url
break
default:
throw new Error(`Illegal value for serverUrlMode: '${serverUrlMode}'`)
}
return sourceUrl
}

@@ -129,0 +137,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