You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

node-express-woodevice

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-express-woodevice - npm Package Compare versions

Comparing version

to
1.0.9

2

package.json
{
"name": "node-express-woodevice",
"version": "1.0.8",
"version": "1.0.9",
"description": "",

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

@@ -25,5 +25,5 @@ const returnModel = require('woo-utilities/returnModel');

var keyInfo = config.keyInfoFunc ? await config.keyInfoFunc(req.body.os) : {};
if (req.body.purchase && req.body.purchase.length) {
var keyInfo = config.keyInfoFunc ? await config.keyInfoFunc(req.body.os) : {};
req.body.purchase.forEach(item => {

@@ -46,3 +46,3 @@ var lastPurchase = purchase

iysContent = config.iysContentFunc ? await config.iysContentFunc(req.body.os, purchase
.filter(x => dateValidate(x.date, keyInfo[x.key].subscriptionPeriod))) : null;
.filter(x => keyInfo[x.key] && dateValidate(x.date, keyInfo[x.key].subscriptionPeriod))) : null;

@@ -49,0 +49,0 @@ deviceRepo.update(req.body.device, {