Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

razorframe

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

razorframe - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.npmignore

8

lib/Razorframe.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc