Socket
Socket
Sign inDemoInstall

qlobber

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qlobber - npm Package Compare versions

Comparing version 0.8.0 to 0.9.0

38

lib/qlobber.js

@@ -122,3 +122,3 @@ /**

this._wildcard_some = options.wildcard_some || '#';
this._trie = new Map();
this._trie = {};
}

@@ -164,3 +164,3 @@

{
st = sub_trie.get(this._separator);
st = sub_trie[this._separator];

@@ -173,3 +173,3 @@ if (st)

{
sub_trie.set(this._separator, this._initial_value(val));
sub_trie[this._separator] = this._initial_value(val);
}

@@ -181,8 +181,8 @@

word = words[i];
st = sub_trie.get(word);
st = sub_trie[word];
if (!st)
{
st = new Map();
sub_trie.set(word, st);
st = {};
sub_trie[word] = st;
}

@@ -195,7 +195,7 @@

{
var st, word;
var st, word, w;
if (i === words.length)
{
st = sub_trie.get(this._separator);
st = sub_trie[this._separator];

@@ -206,3 +206,3 @@ if (st &&

{
sub_trie.delete(this._separator);
delete sub_trie[this._separator];
}

@@ -214,3 +214,3 @@

word = words[i];
st = sub_trie.get(word);
st = sub_trie[word];

@@ -224,6 +224,8 @@ if (!st)

if (st.size === 0)
for (w in st)
{
sub_trie.delete(word);
return;
}
delete sub_trie[word];
};

@@ -235,3 +237,3 @@

for (w of st.keys())
for (w in st)
{

@@ -255,3 +257,3 @@ if (w !== this._separator)

st = sub_trie.get(this._wildcard_some);
st = sub_trie[this._wildcard_some];

@@ -268,3 +270,3 @@ if (st)

{
st = sub_trie.get(this._separator);
st = sub_trie[this._separator];

@@ -296,3 +298,3 @@ if (st)

{
st = sub_trie.get(word);
st = sub_trie[word];

@@ -307,3 +309,3 @@ if (st)

{
st = sub_trie.get(this._wildcard_one);
st = sub_trie[this._wildcard_one];

@@ -378,3 +380,3 @@ if (st)

{
this._trie = new Map();
this._trie = {};
return this;

@@ -381,0 +383,0 @@ };

{
"name": "qlobber",
"description": "Node.js globbing for amqp-like topics",
"version": "0.8.0",
"version": "0.9.0",
"homepage": "https://github.com/davedoesdev/qlobber",

@@ -6,0 +6,0 @@ "author": {

@@ -53,11 +53,11 @@ /*globals rabbitmq_test_bindings : false,

var k, r = {};
for (k of t.keys())
for (k in t)
{
if (k === '.')
{
r[k] = Array.from(t.get(k));
r[k] = Array.from(t[k]);
}
else
{
r[k] = get_trie(matcher, t.get(k));
r[k] = get_trie(matcher, t[k]);
}

@@ -116,3 +116,3 @@ }

expect(matcher.get_trie().size).to.equal(0);
expect(matcher.get_trie()).to.eql({});

@@ -119,0 +119,0 @@ rabbitmq_expected_results_after_clear.forEach(function (test)

@@ -50,11 +50,11 @@ /*globals rabbitmq_test_bindings : false,

var k, r = {};
for (k of t.keys())
for (k in t)
{
if (k === '.')
{
r[k] = t.get(k);
r[k] = t[k];
}
else
{
r[k] = get_trie(matcher, t.get(k));
r[k] = get_trie(matcher, t[k]);
}

@@ -111,3 +111,3 @@ }

expect(matcher.get_trie().size).to.equal(0);
expect(matcher.get_trie()).to.eql({});

@@ -114,0 +114,0 @@ rabbitmq_expected_results_after_clear.forEach(function (test)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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