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

cruddle

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cruddle - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

4

CHANGELOG.md

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

# 0.9.1
* Fix default property values overriding manually provided values
# 0.9.0

@@ -2,0 +6,0 @@

5

dist/helpers.js

@@ -44,4 +44,5 @@ "use strict";

var attrOptions = __assign({ path: key, type: attr.type, readOnly: attr.readOnly }, propOptions);
// Check if the internal attribute type is ENUM, if so pre-populate values with relevant enum variants.
if (attr.type.type === modelsafe_1.InternalAttributeType.ENUM) {
// Check if the internal attribute type is ENUM, if so pre-populate values with relevant enum variants
// (if no values have been provided manually).
if (!_.isArray(attrOptions.values) && attr.type.type === modelsafe_1.InternalAttributeType.ENUM) {
attrOptions.values = attr.type.options.values.map(function (v) {

@@ -48,0 +49,0 @@ return {

{
"name": "cruddle",
"version": "0.9.0",
"version": "0.9.1",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "bugs": "https://github.com/creativecuriositystudio/cruddle/issues",

@@ -47,4 +47,5 @@ import * as _ from 'lodash';

// Check if the internal attribute type is ENUM, if so pre-populate values with relevant enum variants.
if (attr.type.type === InternalAttributeType.ENUM) {
// Check if the internal attribute type is ENUM, if so pre-populate values with relevant enum variants
// (if no values have been provided manually).
if (!_.isArray(attrOptions.values) && attr.type.type === InternalAttributeType.ENUM) {
attrOptions.values = (<EnumAttributeTypeOptions> attr.type.options).values.map((v: any) => {

@@ -51,0 +52,0 @@ return {

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