New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

wapp-api

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wapp-api - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

16

models/generic-collection.js

@@ -70,5 +70,15 @@ const fetch = require('node-fetch');

data.forEach((element, index) => {
if(this.models.includes(element)){
results.push(element);
return;
if(element.constructor === Object){
if(this.models.includes(element)){
results.push(element);
return;
}
} else if(element.constructor === String){
element = {
meta: {
id: element
}
};
} else {
return;
}

@@ -75,0 +85,0 @@ let found = this.find(element, options);

2

package.json
{
"name": "wapp-api",
"version": "1.0.9",
"version": "1.0.10",
"description": "Helper functions to speed up wapp development process.",

@@ -5,0 +5,0 @@ "main": "wappsto/index.js",

@@ -106,3 +106,3 @@ const WebSocket = require('./stream-polyfill');

if(typeof window === 'object' && window.document && window.WebSocket){
if(!(typeof window === 'object') || !(window.document && window.WebSocket)){
// Add ping timeout

@@ -109,0 +109,0 @@ refreshPingTimer();

Sorry, the diff of this file is too big to display

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