Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/paris

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/paris - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

19

dist/lib/modeling/modeler.js

@@ -79,10 +79,3 @@ import { ModelBase } from "../config/model.base";

propertyEntityValues.forEach(function (propertyEntityValue) { return Object.assign(modelData, propertyEntityValue); });
var model;
try {
model = new entity.entityConstructor(modelData, rawData);
}
catch (e) {
getModelDataError.message = getModelDataError.message + " Error: " + e.message;
throw getModelDataError;
}
var model = instantiateModel();
_this.setModelLinks(model);

@@ -93,5 +86,8 @@ return model;

else {
var model = void 0;
model$ = of(instantiateModel());
}
return entity.readonly ? model$.pipe(map(function (model) { return Object.freeze(model); })) : model$;
function instantiateModel() {
try {
model = new entity.entityConstructor(modelData, rawData);
var model = new entity.entityConstructor(modelData, rawData);
if (Object.isFrozen(model) || Object.isSealed(model))

@@ -102,2 +98,3 @@ console.warn("Can't assign data to " + entity.singularName + ", since it's frozen or sealed.");

model._init(modelData, rawData);
return model;
}

@@ -108,5 +105,3 @@ catch (e) {

}
model$ = of(model);
}
return entity.readonly ? model$.pipe(map(function (model) { return Object.freeze(model); })) : model$;
};

@@ -113,0 +108,0 @@ Modeler.prototype.validateFieldData = function (entityField, rawData) {

{
"name": "@microsoft/paris",
"version": "1.5.0",
"version": "1.5.1",
"description": "Library for the implementation of Domain Driven Design with TypeScript + RxJS",

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

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