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

@memberjunction/core

Package Overview
Dependencies
Maintainers
3
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@memberjunction/core - npm Package Compare versions

Comparing version 0.9.44 to 0.9.45

16

dist/generic/baseEntity.js

@@ -107,3 +107,17 @@ "use strict";

else if (fieldInfo.DefaultValue) {
this.Value = fieldInfo.DefaultValue;
if (fieldInfo.TSType === entityInfo_1.EntityFieldTSType.Boolean) {
// special handling for booleans as we don't want a string passed into a boolean field, we want a true boolean
if (fieldInfo.DefaultValue === "1" || fieldInfo.DefaultValue === "true")
this.Value = true;
else
this.Value = false;
}
else if (fieldInfo.TSType === entityInfo_1.EntityFieldTSType.Number) {
// special handling for numbers as we don't want a string passed into a value for a numeric field
this.Value = Number(fieldInfo.DefaultValue);
}
else {
// for strings and dates, we're good to just set the value
this.Value = fieldInfo.DefaultValue;
}
this._NeverSet = true; // set this back to true because we are setting the default value and we want to be able to set this ONCE from BaseEntity when we load

@@ -110,0 +124,0 @@ }

4

package.json
{
"name": "@memberjunction/core",
"version": "0.9.44",
"version": "0.9.45",
"description": "MemberJunction: Core Library including Metadata, Application, Entity Retrieval and Manipulation, and Utilities",

@@ -22,4 +22,4 @@ "main": "dist/index.js",

"dependencies": {
"@memberjunction/global": "^0.9.44"
"@memberjunction/global": "^0.9.45"
}
}

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