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

avsc

Package Overview
Dependencies
Maintainers
1
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

avsc - npm Package Compare versions

Comparing version 4.1.1 to 4.1.2

12

lib/protocols.js

@@ -78,2 +78,3 @@ /* jshint node: true */

opts = opts || {};
var name = attrs.protocol;

@@ -85,6 +86,9 @@ if (!name) {

opts.namespace = attrs.namespace;
} else {
var match = /^(.*)\.[^.]+$/.exec(name);
if (match) {
opts.namespace = match[1];
}
}
if (opts.namespace && !~name.indexOf('.')) {
name = f('%s.%s', opts.namespace, name);
}
name = types.qualify(name, opts.namespace);
if (attrs.types) {

@@ -986,3 +990,3 @@ attrs.types.forEach(function (obj) { types.createType(obj, opts); });

type: 'record',
namespace: opts.namespace,
namespace: opts.namespace || '', // Don't leak request namespace.
fields: attrs.request

@@ -989,0 +993,0 @@ }, opts);

{
"name": "avsc",
"version": "4.1.1",
"version": "4.1.2",
"description": "Avro for JavaScript",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/mtth/avsc",

Sorry, the diff of this file is too big to display

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