Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

@sinet/validation

Package Overview
Dependencies
10
Maintainers
6
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.14 to 1.3.15-a

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.15a",
"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' );

@@ -14,3 +14,5 @@ 'use strict';

'endDate' : Joi.date().required().description( 'The mc end date' ),
'expireDate' : Joi.date().required().description( 'The mc expire date' )
'expireDate' : Joi.date().required().description( 'The mc expire date' ),
'recordState' : Joi.string().valid( [ 'draft', 'publish' ] ).optional().description( 'The edit state of the mc: e.g. draft, publish' ),
'parentMcId' : Joi.string().guid().optional().description( 'The parent\'s microcredential id, the old version microcredential id' )
};
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc