beanstalkd-protocol
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -100,2 +100,10 @@ 'use strict'; | ||
if (!spec) { | ||
return [remainder, { | ||
[key]: identifier, | ||
args: {}, | ||
unknown: true | ||
}]; | ||
} | ||
if (spec.parts.length > 1) { | ||
@@ -102,0 +110,0 @@ for (let i = 0; i < spec.parts.length - 1; i++) { |
{ | ||
"name": "beanstalkd-protocol", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Beanstalkd protocol parser for Node.js/Javascript", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -42,2 +42,6 @@ import BeanstalkdProtocol from '../../src/index'; | ||
it('parses unknown ERROR', function () { | ||
expect(protocol.parseReply(new Buffer('UNKNOWN_ERROR\r\n')), 'to equal', [null, {reply: 'UNKNOWN_ERROR', args: {}, unknown: true}]); | ||
}); | ||
it('parses RESERVED reply over two buffers', function () { | ||
@@ -44,0 +48,0 @@ let data = new Buffer(JSON.stringify({ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30899
623
0