Socket
Socket
Sign inDemoInstall

@sinet/validation

Package Overview
Dependencies
Maintainers
6
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sinet/validation - npm Package Compare versions

Comparing version 1.3.14 to 1.3.15

schemas/goals/index.js

25

index.js
'use strict';
var validations = {
'action' : require( './schemas/action' ),
'authentication' : require( './schemas/authentication' ),
'libraries' : require( './schemas/libraries' ),
'lti' : require( './schemas/lti' ),
'mc' : require( './schemas/mc' ),
'observation' : require( './schemas/observation' ),
'user' : require( './schemas/user' )
};
var fs = require( 'fs' );
var path = require( 'path' );
var schemaBasePath = path.join( __dirname, 'schemas' );
var schemas = fs.readdirSync( schemaBasePath );
module.exports = validations;
function validations () {
var returnObj = {};
schemas.forEach( function ( value ) {
returnObj[ value ] = require( path.join( schemaBasePath, value ) );
} );
return returnObj;
}
module.exports = validations();

11

package.json
{
"name": "@sinet/validation",
"version": "1.3.14",
"version": "1.3.15",
"description": "",

@@ -22,9 +22,10 @@ "main": "index.js",

"devDependencies": {
"@sinet/coding-conventions": "^3.0.0",
"eslint": "^3.9.1",
"nsp": "^1.0.3"
"@sinet/coding-conventions" : "^3.0.0",
"eslint" : "^3.9.1",
"nsp" : "^1.0.3"
},
"dependencies": {
"joi": "^9.0.4"
"joi" : "^9.0.4",
"path" : "^0.12.7"
}
}
'use strict';
var Joi = require( 'joi' );
module.exports = {
'PersonnelId' : Joi.number().integer().required().description( 'The user\'s id' ),
'ClientId' : Joi.number().integer().required().description( 'The id of the school' ),
'DistrictId' : Joi.number().integer().required().description( 'The id of the district' )
};
module.exports = require( '../user/credentials' );
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