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

@friggframework/api-module-attentive

Package Overview
Dependencies
Maintainers
4
Versions
278
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@friggframework/api-module-attentive - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

31

models/credential.js
const mongoose = require('mongoose');
const MongooseUtil = require('../../../utils/MongooseUtil');
const Parent = require('../../../base/models/Credential');
const { Credential: Parent } = require('@friggframework/module-plugin');
const collectionName = 'AttentiveCredentials';
const parentModelObject = new Parent();
const _schema = new mongoose.Schema({
access_token: { type: String, trim: true, lhEncrypt: true },
id_token: { type: String, trim: true, lhEncrypt: true },
token_type: { type: String, default: 'Bearer' },
expires_in: { type: Number },
const schema = new mongoose.Schema({
access_token: { type: String, trim: true, lhEncrypt: true },
id_token: { type: String, trim: true, lhEncrypt: true },
token_type: { type: String, default: 'Bearer' },
expires_in: { type: Number },
});
const _model = MongooseUtil.createModel(collectionName, _schema, parentModelObject);
class Credential extends Parent {
static Schema = _schema;
static Model = _model;
constructor(model = _model) {
super(model);
}
}
module.exports = Credential;
const Credential = Parent.discriminator('AttentiveCredentials', schema);
module.exports = { Credential };

@@ -1,27 +0,7 @@

'use strict';
const mongoose = require('mongoose');
const MongooseUtil = require('../../../utils/MongooseUtil');
const Parent = require('../../../base/models/Entity');
const { Entity: Parent } = require('@friggframework/module-plugin');
const collectionName = 'AttentiveEntity';
const parentModelObject = new Parent();
const schema = new mongoose.Schema({});
const _schema = new mongoose.Schema({});
const _model = MongooseUtil.createModel(
collectionName,
_schema,
parentModelObject
);
class Entity extends Parent {
static Schema = _schema;
static Model = _model;
constructor(model = _model) {
super(model);
}
}
module.exports = Entity;
const Entity = Parent.discriminator('AttentiveEntity', schema);
module.exports = { Entity };
{
"name": "@friggframework/api-module-attentive",
"version": "0.8.0",
"version": "0.8.1",
"prettier": "@friggframework/prettier-config",

@@ -5,0 +5,0 @@ "description": "",

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