packet-stream-codec
Advanced tools
+130
| dependencies: | ||
| pull-reader: 1.3.1 | ||
| pull-through: 1.0.18 | ||
| devDependencies: | ||
| pull-randomly-split: 1.0.4 | ||
| pull-stream: 3.6.14 | ||
| tape: 4.0.3 | ||
| lockfileVersion: 5.2 | ||
| packages: | ||
| /balanced-match/1.0.0: | ||
| dev: true | ||
| resolution: | ||
| integrity: sha1-ibTRmasr7kneFk6gK4nORi1xt2c= | ||
| /brace-expansion/1.1.11: | ||
| dependencies: | ||
| balanced-match: 1.0.0 | ||
| concat-map: 0.0.1 | ||
| dev: true | ||
| resolution: | ||
| integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== | ||
| /concat-map/0.0.1: | ||
| dev: true | ||
| resolution: | ||
| integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= | ||
| /deep-equal/1.0.1: | ||
| dev: true | ||
| resolution: | ||
| integrity: sha1-9dJgKStmDghO/0zbyfCK0yR0SLU= | ||
| /defined/0.0.0: | ||
| dev: true | ||
| resolution: | ||
| integrity: sha1-817qfXBekzuvE7LwOz+D2SFAOz4= | ||
| /glob/5.0.15: | ||
| dependencies: | ||
| inflight: 1.0.6 | ||
| inherits: 2.0.4 | ||
| minimatch: 3.0.4 | ||
| once: 1.4.0 | ||
| path-is-absolute: 1.0.1 | ||
| dev: true | ||
| resolution: | ||
| integrity: sha1-G8k2ueAvSmA/zCIuz3Yz0wuLk7E= | ||
| /inflight/1.0.6: | ||
| dependencies: | ||
| once: 1.4.0 | ||
| wrappy: 1.0.2 | ||
| dev: true | ||
| resolution: | ||
| integrity: sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= | ||
| /inherits/2.0.4: | ||
| dev: true | ||
| resolution: | ||
| integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== | ||
| /looper/3.0.0: | ||
| dev: false | ||
| resolution: | ||
| integrity: sha1-LvpUw7HLq6m5Su4uWRSwvlf7t0k= | ||
| /minimatch/3.0.4: | ||
| dependencies: | ||
| brace-expansion: 1.1.11 | ||
| dev: true | ||
| resolution: | ||
| integrity: sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== | ||
| /object-inspect/1.0.2: | ||
| dev: true | ||
| resolution: | ||
| integrity: sha1-qXiFtVPldetACevAm92psc0hl5o= | ||
| /once/1.4.0: | ||
| dependencies: | ||
| wrappy: 1.0.2 | ||
| dev: true | ||
| resolution: | ||
| integrity: sha1-WDsap3WWHUsROsF9nFC6753Xa9E= | ||
| /path-is-absolute/1.0.1: | ||
| dev: true | ||
| engines: | ||
| node: '>=0.10.0' | ||
| resolution: | ||
| integrity: sha1-F0uSaHNVNP+8es5r9TpanhtcX18= | ||
| /pull-randomly-split/1.0.4: | ||
| dev: true | ||
| resolution: | ||
| integrity: sha1-BNP3Pnlf8NLSM++9AEeEfw4FiLI= | ||
| /pull-reader/1.3.1: | ||
| dev: false | ||
| resolution: | ||
| integrity: sha512-CBkejkE5nX50SiSEzu0Qoz4POTJMS/mw8G6aj3h3M/RJoKgggLxyF0IyTZ0mmpXFlXRcLmLmIEW4xeYn7AeDYw== | ||
| /pull-stream/3.6.14: | ||
| dev: true | ||
| resolution: | ||
| integrity: sha512-KIqdvpqHHaTUA2mCYcLG1ibEbu/LCKoJZsBWyv9lSYtPkJPBq8m3Hxa103xHi6D2thj5YXa0TqK3L3GUkwgnew== | ||
| /pull-through/1.0.18: | ||
| dependencies: | ||
| looper: 3.0.0 | ||
| dev: false | ||
| resolution: | ||
| integrity: sha1-jdYjFCY+Wc9Qlur7sSeitu8xBzU= | ||
| /resumer/0.0.0: | ||
| dependencies: | ||
| through: 2.3.8 | ||
| dev: true | ||
| resolution: | ||
| integrity: sha1-8ej0YeQGS6Oegq883CqMiT0HZ1k= | ||
| /tape/4.0.3: | ||
| dependencies: | ||
| deep-equal: 1.0.1 | ||
| defined: 0.0.0 | ||
| glob: 5.0.15 | ||
| inherits: 2.0.4 | ||
| object-inspect: 1.0.2 | ||
| resumer: 0.0.0 | ||
| through: 2.3.8 | ||
| dev: true | ||
| hasBin: true | ||
| resolution: | ||
| integrity: sha1-x/KQXVHFRwIyQlKubIMCRDo8srE= | ||
| /through/2.3.8: | ||
| dev: true | ||
| resolution: | ||
| integrity: sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= | ||
| /wrappy/1.0.2: | ||
| dev: true | ||
| resolution: | ||
| integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= | ||
| specifiers: | ||
| pull-randomly-split: ~1.0.4 | ||
| pull-reader: ^1.2.4 | ||
| pull-stream: ^3.2.3 | ||
| pull-through: ^1.0.17 | ||
| tape: ~4.0.0 |
+3
-3
@@ -16,3 +16,3 @@ | ||
| var head = new Buffer(9) | ||
| var head = Buffer.alloc(9) | ||
| var flags = 0 | ||
@@ -29,3 +29,3 @@ var value = msg.value !== undefined ? msg.value : msg.end | ||
| flags = STRING | ||
| value = new Buffer(value) | ||
| value = Buffer.from(value, 'utf-8') | ||
| } | ||
@@ -37,3 +37,3 @@ else if(isBuffer(value)) { | ||
| flags = OBJECT | ||
| value = new Buffer(JSON.stringify(value)) | ||
| value = Buffer.from(JSON.stringify(value), 'utf-8') | ||
| } | ||
@@ -40,0 +40,0 @@ |
+5
-2
| { | ||
| "name": "packet-stream-codec", | ||
| "description": "binary codec for packet-stream", | ||
| "version": "1.1.2", | ||
| "version": "1.1.3", | ||
| "homepage": "https://github.com/dominictarr/packet-stream-codec", | ||
@@ -19,4 +19,7 @@ "repository": { | ||
| }, | ||
| "engines": { | ||
| "node": ">=5.10.0" | ||
| }, | ||
| "scripts": { | ||
| "prepublish": "npm ls && npm test", | ||
| "prepublish": "npm test", | ||
| "test": "set -e; for t in test/*.js; do node $t; done" | ||
@@ -23,0 +26,0 @@ }, |
+3
-3
@@ -20,8 +20,8 @@ | ||
| {req: 1, stream: false, end: false, value: 'whatever'}, //a request | ||
| {req: 2, stream: true, end: false, value: new Buffer('hello')}, //a stream packet | ||
| {req: -2, stream: true, end: false, value: new Buffer('goodbye')}, //a stream response | ||
| {req: 2, stream: true, end: false, value: Buffer.from('hello', 'utf-8')}, //a stream packet | ||
| {req: -2, stream: true, end: false, value: Buffer.from('goodbye', 'utf-8')}, //a stream response | ||
| {req: -3, stream: false, end: true, value: flat(new Error('intentional'))}, | ||
| {req: 2, stream: true, end: true, value: true}, //a stream packet | ||
| {req: -2, stream: true, end: true, value: true}, //a stream response | ||
| {req: 1, stream: false, end: false, value: new Buffer(1024*1024)}, //a large buffer | ||
| {req: 1, stream: false, end: false, value: Buffer.alloc(1024*1024)}, //a large buffer | ||
| "GOODBYE" | ||
@@ -28,0 +28,0 @@ ] |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10939
46.5%7
16.67%1
Infinity%