@sap-ux/project-access 1.32.6 → 1.32.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/project/flex-changes.d.ts +12 -0
- package/dist/project/flex-changes.js +24 -0
- package/dist/project/index.d.ts +1 -0
- package/dist/project/index.js +3 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { FileName, DirName, FioriToolsSettings, MinCdsVersionUi5Plugin } from './constants';
|
|
2
2
|
export { getFilePaths } from './file';
|
|
3
|
-
export { addPackageDevDependency, clearCdsModuleCache, createApplicationAccess, createProjectAccess, deleteCapApp, filterDataSourcesByType, findAllApps, findCapProjectRoot, findCapProjects, findFioriArtifacts, findProjectRoot, findRootsForPath, getAllUi5YamlFileNames, getAppRootFromWebappPath, getAppProgrammingLanguage, getAppType, getCapCustomPaths, getCapEnvironment, getCapModelAndServices, getCapServiceName, getCapProjectType, getCdsFiles, getCdsRoots, getCdsServices, getCapI18nFolderNames, getSpecification, getSpecificationPath, getI18nPropertiesPaths, getI18nBundles, getMinUI5VersionFromManifest, getMinUI5VersionAsArray, getMinimumUI5Version, getMtaPath, getMockServerConfig, getMockDataPath, getNodeModulesPath, getProject, getProjectType, getWebappPath, hasUI5CliV3, isCapProject, isCapJavaProject, isCapNodeJsProject, loadModuleFromProject, readCapServiceMetadataEdmx, readUi5Yaml, refreshSpecificationDistTags, toReferenceUri, updatePackageScript, getWorkspaceInfo, hasMinCdsVersion, checkCdsUi5PluginEnabled } from './project';
|
|
3
|
+
export { addPackageDevDependency, clearCdsModuleCache, createApplicationAccess, createProjectAccess, deleteCapApp, filterDataSourcesByType, findAllApps, findCapProjectRoot, findCapProjects, findFioriArtifacts, findProjectRoot, findRootsForPath, getAllUi5YamlFileNames, getAppRootFromWebappPath, getAppProgrammingLanguage, getAppType, getCapCustomPaths, getCapEnvironment, getCapModelAndServices, getCapServiceName, getCapProjectType, getCdsFiles, getCdsRoots, getCdsServices, getCapI18nFolderNames, getSpecification, getSpecificationPath, getI18nPropertiesPaths, getI18nBundles, getMinUI5VersionFromManifest, getMinUI5VersionAsArray, getMinimumUI5Version, getMtaPath, getMockServerConfig, getMockDataPath, getNodeModulesPath, getProject, getProjectType, getWebappPath, hasUI5CliV3, isCapProject, isCapJavaProject, isCapNodeJsProject, loadModuleFromProject, readCapServiceMetadataEdmx, readUi5Yaml, refreshSpecificationDistTags, toReferenceUri, updatePackageScript, getWorkspaceInfo, hasMinCdsVersion, checkCdsUi5PluginEnabled, readFlexChanges } from './project';
|
|
4
4
|
export { execNpmCommand } from './command/npm-command';
|
|
5
5
|
export * from './types';
|
|
6
6
|
export * from './library';
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.readCapServiceMetadataEdmx = exports.loadModuleFromProject = exports.isCapNodeJsProject = exports.isCapJavaProject = exports.isCapProject = exports.hasUI5CliV3 = exports.getWebappPath = exports.getProjectType = exports.getProject = exports.getNodeModulesPath = exports.getMockDataPath = exports.getMockServerConfig = exports.getMtaPath = exports.getMinimumUI5Version = exports.getMinUI5VersionAsArray = exports.getMinUI5VersionFromManifest = exports.getI18nBundles = exports.getI18nPropertiesPaths = exports.getSpecificationPath = exports.getSpecification = exports.getCapI18nFolderNames = exports.getCdsServices = exports.getCdsRoots = exports.getCdsFiles = exports.getCapProjectType = exports.getCapServiceName = exports.getCapModelAndServices = exports.getCapEnvironment = exports.getCapCustomPaths = exports.getAppType = exports.getAppProgrammingLanguage = exports.getAppRootFromWebappPath = exports.getAllUi5YamlFileNames = exports.findRootsForPath = exports.findProjectRoot = exports.findFioriArtifacts = exports.findCapProjects = exports.findCapProjectRoot = exports.findAllApps = exports.filterDataSourcesByType = exports.deleteCapApp = exports.createProjectAccess = exports.createApplicationAccess = exports.clearCdsModuleCache = exports.addPackageDevDependency = exports.getFilePaths = exports.MinCdsVersionUi5Plugin = exports.FioriToolsSettings = exports.DirName = exports.FileName = void 0;
|
|
18
|
-
exports.hasDependency = exports.execNpmCommand = exports.checkCdsUi5PluginEnabled = exports.hasMinCdsVersion = exports.getWorkspaceInfo = exports.updatePackageScript = exports.toReferenceUri = exports.refreshSpecificationDistTags = exports.readUi5Yaml = void 0;
|
|
18
|
+
exports.hasDependency = exports.execNpmCommand = exports.readFlexChanges = exports.checkCdsUi5PluginEnabled = exports.hasMinCdsVersion = exports.getWorkspaceInfo = exports.updatePackageScript = exports.toReferenceUri = exports.refreshSpecificationDistTags = exports.readUi5Yaml = void 0;
|
|
19
19
|
var constants_1 = require("./constants");
|
|
20
20
|
Object.defineProperty(exports, "FileName", { enumerable: true, get: function () { return constants_1.FileName; } });
|
|
21
21
|
Object.defineProperty(exports, "DirName", { enumerable: true, get: function () { return constants_1.DirName; } });
|
|
@@ -76,6 +76,7 @@ Object.defineProperty(exports, "updatePackageScript", { enumerable: true, get: f
|
|
|
76
76
|
Object.defineProperty(exports, "getWorkspaceInfo", { enumerable: true, get: function () { return project_1.getWorkspaceInfo; } });
|
|
77
77
|
Object.defineProperty(exports, "hasMinCdsVersion", { enumerable: true, get: function () { return project_1.hasMinCdsVersion; } });
|
|
78
78
|
Object.defineProperty(exports, "checkCdsUi5PluginEnabled", { enumerable: true, get: function () { return project_1.checkCdsUi5PluginEnabled; } });
|
|
79
|
+
Object.defineProperty(exports, "readFlexChanges", { enumerable: true, get: function () { return project_1.readFlexChanges; } });
|
|
79
80
|
var npm_command_1 = require("./command/npm-command");
|
|
80
81
|
Object.defineProperty(exports, "execNpmCommand", { enumerable: true, get: function () { return npm_command_1.execNpmCommand; } });
|
|
81
82
|
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Editor } from 'mem-fs-editor';
|
|
2
|
+
/**
|
|
3
|
+
* Reads all flex change files from the changes directory.
|
|
4
|
+
*
|
|
5
|
+
* @param changesPath - path to changes directory.
|
|
6
|
+
* @param memFs - optional mem-fs-editor instance.
|
|
7
|
+
* @returns A promise that resolves to an array of flex change files.
|
|
8
|
+
*/
|
|
9
|
+
export declare function readFlexChanges(changesPath: string, memFs?: Editor): Promise<{
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
}>;
|
|
12
|
+
//# sourceMappingURL=flex-changes.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.readFlexChanges = readFlexChanges;
|
|
4
|
+
const node_path_1 = require("node:path");
|
|
5
|
+
const file_1 = require("../file");
|
|
6
|
+
const node_fs_1 = require("node:fs");
|
|
7
|
+
/**
|
|
8
|
+
* Reads all flex change files from the changes directory.
|
|
9
|
+
*
|
|
10
|
+
* @param changesPath - path to changes directory.
|
|
11
|
+
* @param memFs - optional mem-fs-editor instance.
|
|
12
|
+
* @returns A promise that resolves to an array of flex change files.
|
|
13
|
+
*/
|
|
14
|
+
async function readFlexChanges(changesPath, memFs) {
|
|
15
|
+
const changes = {};
|
|
16
|
+
if ((0, node_fs_1.existsSync)(changesPath)) {
|
|
17
|
+
const files = await (0, file_1.readDirectory)(changesPath);
|
|
18
|
+
for (const file of files) {
|
|
19
|
+
changes[file] = await (0, file_1.readFile)((0, node_path_1.join)(changesPath, file), memFs);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return changes;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=flex-changes.js.map
|
package/dist/project/index.d.ts
CHANGED
|
@@ -10,4 +10,5 @@ export { getMtaPath } from './mta';
|
|
|
10
10
|
export { createApplicationAccess, createProjectAccess } from './access';
|
|
11
11
|
export { updatePackageScript, hasUI5CliV3 } from './script';
|
|
12
12
|
export { getSpecification, getSpecificationPath, refreshSpecificationDistTags } from './specification';
|
|
13
|
+
export { readFlexChanges } from './flex-changes';
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/project/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.hasUI5CliV3 = exports.updatePackageScript = exports.createProjectAccess = exports.createApplicationAccess = exports.getMtaPath = exports.getMockDataPath = exports.getMockServerConfig = exports.getAllUi5YamlFileNames = exports.readUi5Yaml = exports.getWebappPath = exports.findRootsForPath = exports.findCapProjectRoot = exports.getAppRootFromWebappPath = exports.findProjectRoot = exports.findFioriArtifacts = exports.findCapProjects = exports.findAllApps = exports.loadModuleFromProject = exports.getProjectType = exports.getProject = exports.getMinimumUI5Version = exports.getMinUI5VersionAsArray = exports.getMinUI5VersionFromManifest = exports.getAppType = exports.getAppProgrammingLanguage = exports.getI18nBundles = exports.getI18nPropertiesPaths = exports.getCapI18nFolderNames = exports.hasDependency = exports.getNodeModulesPath = exports.addPackageDevDependency = exports.filterDataSourcesByType = exports.checkCdsUi5PluginEnabled = exports.hasMinCdsVersion = exports.getWorkspaceInfo = exports.toReferenceUri = exports.readCapServiceMetadataEdmx = exports.isCapNodeJsProject = exports.isCapJavaProject = exports.isCapProject = exports.getCdsServices = exports.getCdsRoots = exports.getCdsFiles = exports.getCapServiceName = exports.getCapProjectType = exports.getCapModelAndServices = exports.getCapEnvironment = exports.getCapCustomPaths = exports.deleteCapApp = exports.clearCdsModuleCache = void 0;
|
|
4
|
-
exports.refreshSpecificationDistTags = exports.getSpecificationPath = exports.getSpecification = void 0;
|
|
4
|
+
exports.readFlexChanges = exports.refreshSpecificationDistTags = exports.getSpecificationPath = exports.getSpecification = void 0;
|
|
5
5
|
var cap_1 = require("./cap");
|
|
6
6
|
Object.defineProperty(exports, "clearCdsModuleCache", { enumerable: true, get: function () { return cap_1.clearCdsModuleCache; } });
|
|
7
7
|
Object.defineProperty(exports, "deleteCapApp", { enumerable: true, get: function () { return cap_1.deleteCapApp; } });
|
|
@@ -67,4 +67,6 @@ var specification_1 = require("./specification");
|
|
|
67
67
|
Object.defineProperty(exports, "getSpecification", { enumerable: true, get: function () { return specification_1.getSpecification; } });
|
|
68
68
|
Object.defineProperty(exports, "getSpecificationPath", { enumerable: true, get: function () { return specification_1.getSpecificationPath; } });
|
|
69
69
|
Object.defineProperty(exports, "refreshSpecificationDistTags", { enumerable: true, get: function () { return specification_1.refreshSpecificationDistTags; } });
|
|
70
|
+
var flex_changes_1 = require("./flex-changes");
|
|
71
|
+
Object.defineProperty(exports, "readFlexChanges", { enumerable: true, get: function () { return flex_changes_1.readFlexChanges; } });
|
|
70
72
|
//# sourceMappingURL=index.js.map
|