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

cloudevents-sdk

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudevents-sdk - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

CHANGELOG.md

5

CONTRIBUTING.md

@@ -15,2 +15,7 @@ # Contributing to CloudEvents' JavaScript SDK

## Changelog
Always update the [CHANGELOG.md](./CHANGELOG.md), following
[this semantics](https://keepachangelog.com/en/1.0.0/).
## Pull Requests

@@ -17,0 +22,0 @@

4

lib/bindings/http/receiver_structured_0_3.js

@@ -54,2 +54,6 @@ const Constants = require("./constants.js");

};
setterByAttribute[Constants.STRUCTURED_ATTRS_03.SUBJECT] = {
name: "subject",
parser: (v) => v
};
setterByAttribute[Constants.STRUCTURED_ATTRS_03.DATA] = {

@@ -56,0 +60,0 @@ name: "data",

4

package.json
{
"name": "cloudevents-sdk",
"version": "0.3.0",
"version": "0.3.1",
"description": "CloudEvents SDK for JavaScript",

@@ -35,3 +35,3 @@ "main": "index.js",

"ajv": "^6.7.0",
"axios": "0.18.0",
"axios": "0.18.1",
"is-empty": "1.2.0",

@@ -38,0 +38,0 @@ "uri-js": "4.2.2",

@@ -8,2 +8,3 @@ [![licence](https://img.shields.io/github/license/cloudevents/sdk-javascript)](http://www.apache.org/licenses/LICENSE-2.0)

[![dependencies](https://david-dm.org/cloudevents/sdk-javascript.svg)](https://david-dm.org/cloudevents/sdk-javascript)
[![vulnerabilities](https://snyk.io/test/github/cloudevents/sdk-javascript/badge.svg)](https://snyk.io/test/github/cloudevents/sdk-javascript)

@@ -16,2 +17,4 @@ # sdk-javascript

__Checkout the [changelog](./CHANGELOG.md) to see what's going on!__
## Contributing

@@ -18,0 +21,0 @@

@@ -12,3 +12,3 @@ var expect = require("chai").expect;

const schemaurl = "http://cloudevents.io/schema.json";
const subject = "subject.ext";
const ceContentType = "application/json";

@@ -122,5 +122,6 @@

.source(source)
.contenttype(ceContentType)
.dataContentType(ceContentType)
.time(now)
.schemaurl(schemaurl)
.subject(subject)
.data(data)

@@ -127,0 +128,0 @@ .toString();

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