razorframe
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -18,5 +18,5 @@ const { EventEmitter } = require('events'); | ||
enqueue(MSG) { | ||
if (!MSG) throw new Error('Unable to enqueue: must pass in valid msg object!'); | ||
if (!MSG.contents) throw new Error('Unable to enqueue: contents should not be null'); | ||
if (!MSG.eventOut) throw new Error("Unable to enqueue: MSG object must contain valid outbound event name"); | ||
if (!MSG) console.error('Error: must pass in valid msg object!'); | ||
if (!MSG.contents) console.error('Error: contents should not be null'); | ||
if (!MSG.eventOut) console.error("Error: MSG object must contain valid outbound event name"); | ||
@@ -29,3 +29,3 @@ this.storage[this.length] = MSG; | ||
dequeue() { | ||
if (!this.length) throw new Error('Unable to dequeue; message queue is currently empty!'); | ||
if (!this.length) console.error('Error: message queue is currently empty!'); | ||
@@ -32,0 +32,0 @@ let MSG = this.storage[0]; |
{ | ||
"name": "razorframe", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A real-time database streaming library.", | ||
"main": "index.js", | ||
"main": "./lib/Razorbrain.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ "test": "echo \"Error: no test specified\" && exit 1" |
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
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
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
6
4600
1