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

jhipster-core

Package Overview
Dependencies
Maintainers
2
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jhipster-core - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

2

lib/parser/entity_parser.js

@@ -86,2 +86,3 @@ 'use strict';

entities[entityName] = { // todo: make a builder/factory instead!
fluentMethods: true,
relationships: [],

@@ -267,2 +268,3 @@ fields: [],

splitField = extractField(relatedRelationship.injectedFieldInFrom);
relationship.otherEntityRelationshipName = _.lowerFirst(extractField(relatedRelationship.injectedFieldInTo).relationshipName);
relationship.relationshipName = _.camelCase(splitField.relationshipName);

@@ -269,0 +271,0 @@ relationship.otherEntityName = _.lowerFirst(_.camelCase(relatedRelationship.to.name));

2

package.json
{
"name": "jhipster-core",
"version": "1.1.6",
"version": "1.1.7",
"description": "JHipster's own domain language and core objects",

@@ -5,0 +5,0 @@ "main": "module/index.js",

@@ -52,2 +52,5 @@ 'use strict';

expect(Object.keys(content).length).to.eq(8);
for (let i = 0, entities = Object.keys(content); i < entities.length; i++) {
expect(content[entities[i]].fluentMethods).to.eq(true);
}
expect(content.Department.relationships.length).to.eq(2);

@@ -58,2 +61,4 @@ expect(content.Department.fields.length).to.eq(2);

expect(content.Employee.pagination).to.eq('infinite-scroll');
expect(content.Job.relationships[0].otherEntityRelationshipName).to.eq('job');
expect(content.Task.relationships[0].otherEntityRelationshipName).to.eq('chore');
});

@@ -60,0 +65,0 @@ });

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