amqplib 0.5.6 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,29 +1,30 @@
1
+
1
2
  {
2
3
  "name": "amqplib",
3
4
  "homepage": "http://squaremo.github.io/amqp.node/",
4
5
  "main": "./channel_api.js",
5
- "version": "0.5.6",
6
+ "version": "0.8.0",
6
7
  "description": "An AMQP 0-9-1 (e.g., RabbitMQ) library and client.",
7
8
  "repository": {
8
9
  "type": "git",
9
10
  "url": "https://github.com/squaremo/amqp.node.git"
10
11
  },
11
12
  "engines": {
12
- "node": ">=0.8 <=12"
13
+ "node": ">=10"
13
14
  },
14
15
  "dependencies": {
15
16
  "bitsyntax": "~0.1.0",
16
- "bluebird": "^3.5.2",
17
+ "bluebird": "^3.7.2",
17
18
  "buffer-more-ints": "~1.0.0",
18
19
  "readable-stream": "1.x >=1.1.9",
19
- "safe-buffer": "~5.1.2",
20
- "url-parse": "~1.4.3"
20
+ "safe-buffer": "~5.2.1",
21
+ "url-parse": "~1.5.1"
21
22
  },
22
23
  "devDependencies": {
23
24
  "claire": "0.4.1",
24
25
  "istanbul": "0.1.x",
25
26
  "mocha": "^3.5.3",
26
- "uglify-js": "2.6.x"
27
+ "uglify-js": "2.8.x"
27
28
  },
28
29
  "scripts": {
29
30
  "test": "make test",
package/test/frame.js CHANGED
@@ -123,7 +123,7 @@ suite("Parsing", function() {
123
123
  bufs.push(defs.encodeMethod(f.id, 0, f.fields));
124
124
  });
125
125
 
126
- partition(bufs).forEach(input.write.bind(input));
126
+ partition(bufs).forEach(function (chunk) { input.write(chunk); });
127
127
  frames.acceptLoop();
128
128
  if (ex) throw ex;
129
129
  return i === t.length;
package/test/mux.js CHANGED
@@ -41,7 +41,7 @@ test("single input", function(done) {
41
41
  // not 0, it's treated specially by PassThrough for some reason. By
42
42
  // 'specially' I mean it breaks the stream. See e.g.,
43
43
  // https://github.com/isaacs/readable-stream/pull/55
44
- data.forEach(input.write.bind(input));
44
+ data.forEach(function (chunk) { input.write(chunk); });
45
45
 
46
46
  readAllObjects(output, function(vals) {
47
47
  assert.deepEqual(data, vals);
@@ -75,7 +75,7 @@ test("single input, resuming stream", function(done) {
75
75
  return val;
76
76
  }
77
77
 
78
- data.forEach(input.write.bind(input));
78
+ data.forEach(function (chunk) { input.write(chunk); });
79
79
 
80
80
  readAllObjects(output, function(vals) {
81
81
  assert.deepEqual([1,2,3,4,6,7,8,9], vals);
@@ -145,13 +145,13 @@ test("unpipe", function(done) {
145
145
  mux.pipeFrom(input);
146
146
 
147
147
  schedule(function() {
148
- pipedData.forEach(input.write.bind(input));
148
+ pipedData.forEach(function (chunk) { input.write(chunk); });
149
149
 
150
150
  schedule(function() {
151
151
  mux.unpipeFrom(input);
152
152
 
153
153
  schedule(function() {
154
- unpipedData.forEach(input.write.bind(input));
154
+ unpipedData.forEach(function(chunk) { input.write(chunk); });
155
155
  input.end();
156
156
  schedule(function() {
157
157
  // exhaust so that 'end' fires