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

@studyportals/sp-lurch-interface

Package Overview
Dependencies
Maintainers
14
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@studyportals/sp-lurch-interface - npm Package Compare versions

Comparing version 2.13.1 to 2.13.3

2

package.json
{
"name": "@studyportals/sp-lurch-interface",
"version": "2.13.1",
"version": "2.13.3",
"description": "Contains Data Transfer Objects required or provided by Lurch through its interface.",

@@ -5,0 +5,0 @@ "scripts": {

@@ -5,5 +5,6 @@ import { SuccessResult } from "@studyportals/sp-r2d2-interface";

readonly organisations: IOrganisation[];
readonly userId: number;
readonly __retrieve_main_organisation_result__: true;
constructor(organisations: IOrganisation[]);
constructor(organisations: IOrganisation[], userId: number);
protected toJSON(): object;
}

@@ -6,5 +6,6 @@ "use strict";

class RetrieveMainOrganisationsResult extends sp_r2d2_interface_1.SuccessResult {
constructor(organisations) {
constructor(organisations, userId) {
super();
this.organisations = organisations;
this.userId = userId;
this.__retrieve_main_organisation_result__ = true;

@@ -16,2 +17,3 @@ }

obj["organisations"] = this.organisations;
obj["userId"] = this.userId;
return obj;

@@ -18,0 +20,0 @@ }

@@ -17,7 +17,7 @@ "use strict";

constructor__TypeGuardInitialized() {
const testInstance = new retrieve_main_organisations_result_class_1.RetrieveMainOrganisationsResult([]);
const testInstance = new retrieve_main_organisations_result_class_1.RetrieveMainOrganisationsResult([], 0);
chai_1.assert.isTrue(testInstance.__retrieve_main_organisation_result__);
}
serialization__TypeGuardSerialized() {
const deserialization = JSON.parse(JSON.stringify(new retrieve_main_organisations_result_class_1.RetrieveMainOrganisationsResult([])));
const deserialization = JSON.parse(JSON.stringify(new retrieve_main_organisations_result_class_1.RetrieveMainOrganisationsResult([], 0)));
chai_1.assert.isTrue(deserialization.__retrieve_main_organisation_result__);

@@ -27,4 +27,6 @@ }

const value = "SomeValue";
const deserialization = JSON.parse(JSON.stringify(new retrieve_main_organisations_result_class_1.RetrieveMainOrganisationsResult(value)));
const userId = 1;
const deserialization = JSON.parse(JSON.stringify(new retrieve_main_organisations_result_class_1.RetrieveMainOrganisationsResult(value, userId)));
chai_1.assert.equal(deserialization.organisations, value);
chai_1.assert.equal(deserialization.userId, userId);
}

@@ -31,0 +33,0 @@ };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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