Socket
Socket
Sign inDemoInstall

asurso

Package Overview
Dependencies
83
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

2

lib/DocumentGenerationClass.js

@@ -1,1 +0,1 @@

import{format}from"date-fns";import{dateValidator,validateSchema}from"./utils.js";import*as yup from"yup";export default class DocumentGenerationClass{async generateStudentTotalReport(a,b,c=this.yearID,d=!1){await validateSchema([["yearId",c,yup.number().required()],["start",a,dateValidator],["end",b,dateValidator],["withLaAssigns",d,yup.bool()]]);const e=a=>format(a,"yyyy-MM-dd"),f={yearId:c,studentId:this.studentID,weekStart:e(a),weekEnd:e(b),withLaAssigns:d},g=await this.fetch(`https://asurso.ru/webapi/student/diary?${new URLSearchParams(f)}`);return g}async getAssignmentDetails(a){await validateSchema([["assignmentID",a,yup.number().required()]]);const b={studentId:this.studentID},c=await this.fetch(`https://asurso.ru/webapi/student/diary/assigns/${a}?${new URLSearchParams(b)}`);return c}}
import{format}from"date-fns";import{dateValidator,validateSchema}from"./utils.js";import*as yup from"yup";export default class DocumentGenerationClass{async generateStudentTotalReport(a,b,c=this.yearID){await validateSchema([["yearId",c,yup.number().required()],["start",a,dateValidator],["end",b,dateValidator]])}}
{
"name": "asurso",
"version": "0.2.0",
"version": "0.2.1",
"type": "module",

@@ -5,0 +5,0 @@ "description": "asurso.ru API wrapper [beta]",

@@ -7,3 +7,3 @@ # Неофициальный API АСУ РСО

![image](https://user-images.githubusercontent.com/59040542/149536440-1409c8a3-3cb6-4dc4-92e3-120db4dbd4b1.png)
![image](https://user-images.githubusercontent.com/59040542/149971284-551c7d68-7ae1-4430-831f-f352aa8b2aae.png)

@@ -10,0 +10,0 @@ <!-- TOC-START -->

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