Permalink
Browse files

add constants.js, undo package.json changes

  • Loading branch information...
1 parent 8d8830b commit 573626eeee46b9aa20588f40d306a22e6e9006c3 @jamescarr jamescarr committed May 31, 2012
Showing with 32 additions and 1 deletion.
  1. +32 −0 constants.js
  2. +0 −1 package.json
View
@@ -0,0 +1,32 @@
+module.exports = {
+ AMQPTypes: Object.freeze({
+ STRING: 'S'.charCodeAt(0)
+ , INTEGER: 'I'.charCodeAt(0)
+ , HASH: 'F'.charCodeAt(0)
+ , TIME: 'T'.charCodeAt(0)
+ , DECIMAL: 'D'.charCodeAt(0)
+ , BOOLEAN: 't'.charCodeAt(0)
+ , SIGNED_8BIT: 'b'.charCodeAt(0)
+ , SIGNED_16BIT: 's'.charCodeAt(0)
+ , SIGNED_64BIT: 'l'.charCodeAt(0)
+ , _32BIT_FLOAT: 'f'.charCodeAt(0)
+ , _64BIT_FLOAT: 'd'.charCodeAt(0)
+ , VOID: 'v'.charCodeAt(0)
+ , BYTE_ARRAY: 'x'.charCodeAt(0)
+ , ARRAY: 'A'.charCodeAt(0)
+ , TEN: '10'.charCodeAt(0)
+ , BOOLEAN_TRUE: '\x01'
+ , BOOLEAN_FALSE:'\x00'
+
+ })
+ , Indicators: Object.freeze({
+ FRAME_END: 206
+ })
+ , FrameType: Object.freeze({
+ METHOD: 1
+ , HEADER: 2
+ , BODY: 3
+ , HEARTBEAT: 8
+ })
+}
+
View
@@ -26,7 +26,6 @@
{ "url" : "http://github.com/postwait/node-amqp/issues"
}
, "main" : "./amqp"
-, "test" : "node test.js"
, "engines" : { "node" : "0.4 || 0.5 || 0.6" }
, "licenses" :
[ { "type" : "MIT"

0 comments on commit 573626e

Please sign in to comment.