Skip to content

Commit

Permalink
Renames
Browse files Browse the repository at this point in the history
  • Loading branch information
d3xter666 committed Jun 27, 2024
1 parent a1bce2f commit 02ef905
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/build/definitions/application.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {enhancePatternWithExcludes} from "./_utils.js";
import {enhanceBundleWithDefaults} from "../../validation/validator.js";
import {enhanceBundlesWithDefaults} from "../../validation/validator.js";

/**
* Get tasks and their configuration for a given application project
Expand Down Expand Up @@ -86,7 +86,7 @@ export default function({project, taskUtil, getTask}) {
taskFunction: async ({workspace, dependencies, taskUtil, options}) => {
const generateBundleTask = await getTask("generateBundle");
// Async resolve default values for bundle definitions and options
const bundlesDefaults = await enhanceBundleWithDefaults(bundles, taskUtil.getProject());
const bundlesDefaults = await enhanceBundlesWithDefaults(bundles, taskUtil.getProject());

return bundlesDefaults.reduce(async function(sequence, bundle) {
return sequence.then(function() {
Expand Down
4 changes: 2 additions & 2 deletions lib/build/definitions/library.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {enhancePatternWithExcludes} from "./_utils.js";
import {enhanceBundleWithDefaults} from "../../validation/validator.js";
import {enhanceBundlesWithDefaults} from "../../validation/validator.js";

/**
* Get tasks and their configuration for a given application project
Expand Down Expand Up @@ -121,7 +121,7 @@ export default function({project, taskUtil, getTask}) {
taskFunction: async ({workspace, dependencies, taskUtil, options}) => {
const generateBundleTask = await getTask("generateBundle");
// Async resolve default values for bundle definitions and options
const bundlesDefaults = await enhanceBundleWithDefaults(bundles, taskUtil.getProject());
const bundlesDefaults = await enhanceBundlesWithDefaults(bundles, taskUtil.getProject());

return bundlesDefaults.reduce(function(sequence, bundle) {
return sequence.then(function() {
Expand Down
2 changes: 1 addition & 1 deletion lib/validation/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export async function getDefaults(options) {
* @param {module:@ui5/project/specifications/Project} project The project to get metadata from
* @returns {Promise<object>} The enhanced BundleDefinition & BundleOptions
*/
export async function enhanceBundleWithDefaults(bundles, project) {
export async function enhanceBundlesWithDefaults(bundles, project) {
const config = {
specVersion: `${project.getSpecVersion()}`,
type: `${project.getType()}`,
Expand Down

0 comments on commit 02ef905

Please sign in to comment.