trm-core 9.10.6 → 10.0.1
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/README.md +20 -0
- package/changelog.txt +11 -0
- package/dist/actions/cg3y/download.js +34 -4
- package/dist/actions/cg3y/index.d.ts +23 -0
- package/dist/actions/cg3y/index.js +13 -10
- package/dist/actions/cg3z/index.d.ts +67 -3
- package/dist/actions/cg3z/index.js +25 -14
- package/dist/actions/cg3z/upload.d.ts +20 -0
- package/dist/actions/cg3z/upload.js +165 -36
- package/dist/actions/checkEngines/analyze.d.ts +11 -0
- package/dist/actions/checkEngines/analyze.js +294 -0
- package/dist/actions/checkEngines/index.d.ts +87 -0
- package/dist/actions/checkEngines/index.js +38 -0
- package/dist/actions/checkEngines/init.d.ts +11 -0
- package/dist/actions/checkEngines/init.js +45 -0
- package/dist/actions/checkPackageDependencies/analyze.d.ts +10 -0
- package/dist/actions/checkPackageDependencies/analyze.js +37 -39
- package/dist/actions/checkPackageDependencies/index.d.ts +56 -0
- package/dist/actions/checkPackageDependencies/index.js +13 -10
- package/dist/actions/checkPackageDependencies/init.d.ts +8 -0
- package/dist/actions/checkPackageDependencies/init.js +24 -2
- package/dist/actions/checkSapEntries/analyze.d.ts +12 -0
- package/dist/actions/checkSapEntries/analyze.js +63 -47
- package/dist/actions/checkSapEntries/index.d.ts +35 -0
- package/dist/actions/checkSapEntries/index.js +12 -10
- package/dist/actions/checkSapEntries/init.d.ts +8 -0
- package/dist/actions/checkSapEntries/init.js +10 -2
- package/dist/actions/commons/IActionContext.d.ts +10 -0
- package/dist/actions/commons/checkServerAuth.d.ts +7 -0
- package/dist/actions/commons/checkServerAuth.js +10 -5
- package/dist/actions/commons/index.d.ts +1 -1
- package/dist/actions/commons/index.js +1 -1
- package/dist/actions/commons/prompts/index.d.ts +1 -0
- package/dist/actions/commons/prompts/index.js +1 -0
- package/dist/actions/commons/prompts/setLandscapeTarget.d.ts +14 -0
- package/dist/actions/commons/prompts/setLandscapeTarget.js +40 -0
- package/dist/actions/commons/prompts/setTransportTarget.d.ts +15 -0
- package/dist/actions/commons/prompts/setTransportTarget.js +20 -2
- package/dist/actions/commons/setSystemPackages.d.ts +7 -0
- package/dist/actions/commons/setSystemPackages.js +12 -2
- package/dist/actions/commons/utils/actionLocks.d.ts +32 -0
- package/dist/actions/commons/utils/actionLocks.js +135 -0
- package/dist/actions/commons/utils/dirtyEntries.d.ts +12 -0
- package/dist/actions/commons/utils/dirtyEntries.js +54 -0
- package/dist/actions/commons/utils/index.d.ts +10 -0
- package/dist/actions/commons/utils/index.js +26 -0
- package/dist/actions/commons/utils/installRegistry.d.ts +18 -0
- package/dist/actions/commons/utils/installRegistry.js +46 -0
- package/dist/actions/commons/utils/installedDependency.d.ts +15 -0
- package/dist/actions/commons/utils/installedDependency.js +30 -0
- package/dist/actions/commons/utils/owningInstallation.d.ts +6 -0
- package/dist/actions/commons/utils/owningInstallation.js +47 -0
- package/dist/actions/commons/utils/packageCleanup.d.ts +168 -0
- package/dist/actions/commons/utils/packageCleanup.js +1017 -0
- package/dist/actions/commons/utils/releaseDeletionTransport.d.ts +5 -0
- package/dist/actions/commons/utils/releaseDeletionTransport.js +67 -0
- package/dist/actions/commons/utils/restoreTransport.d.ts +6 -0
- package/dist/actions/commons/utils/restoreTransport.js +50 -0
- package/dist/actions/commons/utils/retainedWorkflow.d.ts +6 -0
- package/dist/actions/commons/utils/retainedWorkflow.js +49 -0
- package/dist/actions/commons/utils/withScopedPrefix.d.ts +5 -0
- package/dist/actions/commons/utils/withScopedPrefix.js +32 -0
- package/dist/actions/commons/workflowCallbacks.d.ts +21 -0
- package/dist/actions/commons/workflowCallbacks.js +157 -0
- package/dist/actions/index.d.ts +3 -0
- package/dist/actions/index.js +5 -0
- package/dist/actions/install/addNamespace.d.ts +18 -0
- package/dist/actions/install/addNamespace.js +121 -51
- package/dist/actions/install/checkDependants.d.ts +15 -0
- package/dist/actions/install/checkDependants.js +74 -0
- package/dist/actions/install/checkDependencies.d.ts +11 -0
- package/dist/actions/install/checkDependencies.js +32 -13
- package/dist/actions/install/checkDependencyCycles.d.ts +17 -0
- package/dist/actions/install/checkDependencyCycles.js +105 -0
- package/dist/actions/install/checkEngines.d.ts +11 -0
- package/dist/actions/install/checkEngines.js +100 -0
- package/dist/actions/install/checkInstallDevclass.d.ts +24 -0
- package/dist/actions/install/checkInstallDevclass.js +110 -0
- package/dist/actions/install/checkSapEntries.d.ts +9 -0
- package/dist/actions/install/checkSapEntries.js +20 -12
- package/dist/actions/install/checkTransports.d.ts +34 -0
- package/dist/actions/install/checkTransports.js +329 -170
- package/dist/actions/install/cleanupCheckpoint.d.ts +11 -0
- package/dist/actions/install/cleanupCheckpoint.js +62 -0
- package/dist/actions/install/defaultTransportLayer.d.ts +5 -0
- package/dist/actions/install/defaultTransportLayer.js +36 -0
- package/dist/actions/install/executePostActivities.d.ts +6 -0
- package/dist/actions/install/executePostActivities.js +28 -38
- package/dist/actions/install/generateDevclass.d.ts +10 -0
- package/dist/actions/install/generateDevclass.js +66 -20
- package/dist/actions/install/generateLandscapeTransport.d.ts +23 -0
- package/dist/actions/install/generateLandscapeTransport.js +136 -0
- package/dist/actions/install/generateUpdateTransport.d.ts +20 -0
- package/dist/actions/install/generateUpdateTransport.js +122 -0
- package/dist/actions/install/importBatch.d.ts +22 -0
- package/dist/actions/install/importBatch.js +0 -0
- package/dist/actions/install/index.d.ts +273 -44
- package/dist/actions/install/index.js +139 -59
- package/dist/actions/install/init.d.ts +14 -0
- package/dist/actions/install/init.js +215 -108
- package/dist/actions/install/installDependencies.d.ts +14 -0
- package/dist/actions/install/installDependencies.js +122 -45
- package/dist/actions/install/lockResources.d.ts +8 -0
- package/dist/actions/install/lockResources.js +100 -0
- package/dist/actions/install/prepareCust.d.ts +13 -0
- package/dist/actions/install/prepareCust.js +138 -0
- package/dist/actions/install/prepareDevc.d.ts +15 -0
- package/dist/actions/install/prepareDevc.js +113 -0
- package/dist/actions/install/prepareLang.d.ts +13 -0
- package/dist/actions/install/prepareLang.js +110 -0
- package/dist/actions/install/prepareTadir.d.ts +13 -0
- package/dist/actions/install/prepareTadir.js +95 -0
- package/dist/actions/install/releaseLandscapeTransport.d.ts +11 -0
- package/dist/actions/install/releaseLandscapeTransport.js +79 -0
- package/dist/actions/install/setInstallDevclass.d.ts +10 -0
- package/dist/actions/install/setInstallDevclass.js +140 -54
- package/dist/actions/install/updatePackageData.d.ts +9 -0
- package/dist/actions/install/updatePackageData.js +117 -13
- package/dist/actions/installDependency/checkInstalledRelease.d.ts +13 -0
- package/dist/actions/installDependency/checkInstalledRelease.js +50 -0
- package/dist/actions/installDependency/confirmDowngrade.d.ts +11 -0
- package/dist/actions/installDependency/confirmDowngrade.js +53 -0
- package/dist/actions/installDependency/findInstallRelease.d.ts +24 -0
- package/dist/actions/installDependency/findInstallRelease.js +42 -19
- package/dist/actions/installDependency/index.d.ts +64 -3
- package/dist/actions/installDependency/index.js +30 -13
- package/dist/actions/installDependency/init.d.ts +14 -0
- package/dist/actions/installDependency/init.js +24 -3
- package/dist/actions/installDependency/installRelease.d.ts +6 -0
- package/dist/actions/installDependency/installRelease.js +22 -12
- package/dist/actions/publish/enginesUi.d.ts +53 -0
- package/dist/actions/publish/enginesUi.js +289 -0
- package/dist/actions/publish/findDependencies.d.ts +19 -0
- package/dist/actions/publish/findDependencies.js +72 -37
- package/dist/actions/publish/generateCustTransport.d.ts +6 -0
- package/dist/actions/publish/generateCustTransport.js +42 -19
- package/dist/actions/publish/generateDevcTransport.d.ts +6 -0
- package/dist/actions/publish/generateDevcTransport.js +16 -18
- package/dist/actions/publish/generateLangTransport.d.ts +6 -0
- package/dist/actions/publish/generateLangTransport.js +20 -23
- package/dist/actions/publish/generateTadirTransport.d.ts +6 -0
- package/dist/actions/publish/generateTadirTransport.js +18 -17
- package/dist/actions/publish/getSystemEngines.d.ts +27 -0
- package/dist/actions/publish/getSystemEngines.js +112 -0
- package/dist/actions/publish/index.d.ts +162 -37
- package/dist/actions/publish/index.js +51 -34
- package/dist/actions/publish/init.d.ts +28 -0
- package/dist/actions/publish/init.js +304 -120
- package/dist/actions/publish/lockResources.d.ts +4 -0
- package/dist/actions/{install/refreshTmsTxt.js → publish/lockResources.js} +14 -17
- package/dist/actions/publish/publishToRegistry.d.ts +8 -0
- package/dist/actions/publish/publishToRegistry.js +18 -8
- package/dist/actions/publish/releaseTransports.d.ts +6 -0
- package/dist/actions/publish/releaseTransports.js +48 -20
- package/dist/actions/publish/setCustomizingTransports.d.ts +6 -0
- package/dist/actions/publish/setCustomizingTransports.js +227 -101
- package/dist/actions/publish/setManifestValues.d.ts +22 -0
- package/dist/actions/publish/setManifestValues.js +455 -119
- package/dist/actions/publish/setOptionalPublishData.d.ts +11 -0
- package/dist/actions/publish/setOptionalPublishData.js +133 -0
- package/dist/actions/publish/updatePackageData.d.ts +8 -0
- package/dist/actions/publish/updatePackageData.js +20 -7
- package/dist/actions/stopWarning.d.ts +5 -0
- package/dist/actions/stopWarning.js +5 -0
- package/dist/actions/uninstall/checkDependants.d.ts +7 -0
- package/dist/actions/uninstall/checkDependants.js +55 -0
- package/dist/actions/uninstall/forwardDeletionTransport.d.ts +10 -0
- package/dist/actions/uninstall/forwardDeletionTransport.js +51 -0
- package/dist/actions/uninstall/generateDeletionTransport.d.ts +10 -0
- package/dist/actions/uninstall/generateDeletionTransport.js +45 -0
- package/dist/actions/uninstall/index.d.ts +153 -0
- package/dist/actions/uninstall/index.js +141 -0
- package/dist/actions/uninstall/init.d.ts +17 -0
- package/dist/actions/uninstall/init.js +146 -0
- package/dist/actions/uninstall/lockResources.d.ts +4 -0
- package/dist/actions/{publish/setTransportTarget.js → uninstall/lockResources.js} +16 -7
- package/dist/actions/uninstall/removePackageData.d.ts +9 -0
- package/dist/actions/uninstall/removePackageData.js +64 -0
- package/dist/actions/uninstall/uninstallNestedPackages.d.ts +26 -0
- package/dist/actions/uninstall/uninstallNestedPackages.js +174 -0
- package/dist/client/ClientError.d.ts +3 -1
- package/dist/client/ClientError.js +2 -1
- package/dist/client/RESTClient.d.ts +18 -5
- package/dist/client/RESTClient.js +194 -52
- package/dist/client/RESTClientError.d.ts +1 -2
- package/dist/client/RESTClientError.js +3 -2
- package/dist/client/RFCClient.d.ts +28 -7
- package/dist/client/RFCClient.js +325 -77
- package/dist/client/RFCClientError.d.ts +1 -1
- package/dist/client/RFCClientError.js +2 -2
- package/dist/client/TransportEntries.d.ts +8 -0
- package/dist/client/TransportEntries.js +2 -0
- package/dist/client/components/BORM_ID.d.ts +1 -0
- package/dist/client/components/BORM_ID.js +2 -0
- package/dist/client/components/BORM_NAME.d.ts +1 -0
- package/dist/client/components/BORM_NAME.js +2 -0
- package/dist/client/components/BORM_NAMEL.d.ts +1 -0
- package/dist/client/components/BORM_NAMEL.js +2 -0
- package/dist/client/components/BORM_VEND.d.ts +1 -0
- package/dist/client/components/BORM_VEND.js +2 -0
- package/dist/client/components/BORM_VERS.d.ts +1 -0
- package/dist/client/components/BORM_VERS.js +2 -0
- package/dist/client/components/CWBNTNUMM.d.ts +1 -0
- package/dist/client/components/CWBNTNUMM.js +2 -0
- package/dist/client/components/CWBNTSTAT.d.ts +1 -0
- package/dist/client/components/CWBNTSTAT.js +2 -0
- package/dist/client/components/CWBNTVERS.d.ts +1 -0
- package/dist/client/components/CWBNTVERS.js +2 -0
- package/dist/client/components/CWBPRSTAT.d.ts +1 -0
- package/dist/client/components/CWBPRSTAT.js +2 -0
- package/dist/client/components/INSTSTATE.d.ts +1 -0
- package/dist/client/components/INSTSTATE.js +2 -0
- package/dist/client/components/RELC_TYPE.d.ts +1 -0
- package/dist/client/components/RELC_TYPE.js +2 -0
- package/dist/client/components/SAPPATCHLV.d.ts +1 -0
- package/dist/client/components/SAPPATCHLV.js +2 -0
- package/dist/client/components/SAPRELEASE.d.ts +1 -0
- package/dist/client/components/SAPRELEASE.js +2 -0
- package/dist/client/components/SYSYSID.d.ts +1 -0
- package/dist/client/components/SYSYSID.js +2 -0
- package/dist/client/components/ZTRM_INSTALLTR_TYPE.d.ts +1 -0
- package/dist/client/components/ZTRM_INSTALLTR_TYPE.js +2 -0
- package/dist/client/components/index.d.ts +15 -0
- package/dist/client/components/index.js +15 -0
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.js +1 -0
- package/dist/client/messageLog.d.ts +7 -0
- package/dist/client/messageLog.js +21 -0
- package/dist/client/struct/ActionLockKey.d.ts +6 -0
- package/dist/client/struct/ActionLockKey.js +2 -0
- package/dist/client/struct/CVERS.d.ts +7 -0
- package/dist/client/struct/CVERS.js +2 -0
- package/dist/client/struct/CWBNTCUST.d.ts +6 -0
- package/dist/client/struct/CWBNTCUST.js +2 -0
- package/dist/client/struct/CWBNTHEAD.d.ts +5 -0
- package/dist/client/struct/CWBNTHEAD.js +2 -0
- package/dist/client/struct/E070.d.ts +2 -1
- package/dist/client/struct/E071K.d.ts +9 -0
- package/dist/client/struct/E071K.js +2 -0
- package/dist/client/struct/PRDVERS.d.ts +9 -0
- package/dist/client/struct/PRDVERS.js +2 -0
- package/dist/client/struct/SCOMPKDTLN.d.ts +21 -0
- package/dist/client/struct/STMSCALERT.d.ts +21 -0
- package/dist/client/struct/STMSCALERT.js +2 -0
- package/dist/client/struct/STMS_TP_IMPORT.d.ts +14 -0
- package/dist/client/struct/STMS_TP_IMPORT.js +2 -0
- package/dist/client/struct/STMS_TR_REQUEST.d.ts +8 -0
- package/dist/client/struct/STMS_TR_REQUEST.js +2 -0
- package/dist/client/struct/TDEVC.d.ts +38 -0
- package/dist/client/struct/TPLOGPTR.d.ts +13 -0
- package/dist/client/struct/TPLOGPTR.js +2 -0
- package/dist/client/struct/TPSTDOUT.d.ts +3 -0
- package/dist/client/struct/TPSTDOUT.js +2 -0
- package/dist/client/struct/ZTRM_INSTALLTR.d.ts +8 -0
- package/dist/client/struct/ZTRM_INSTALLTR.js +2 -0
- package/dist/client/struct/index.d.ts +12 -0
- package/dist/client/struct/index.js +12 -0
- package/dist/commons/checkCoreTrmDependencies.js +1 -1
- package/dist/commons/getAxiosInstance.js +8 -17
- package/dist/commons/getNodePackage.js +7 -0
- package/dist/commons/getPackageHierarchy.js +2 -0
- package/dist/commons/getPackagesNamespace.d.ts +9 -0
- package/dist/commons/getPackagesNamespace.js +19 -0
- package/dist/commons/index.d.ts +4 -0
- package/dist/commons/index.js +4 -0
- package/dist/commons/packageDataFromTdevc.d.ts +12 -0
- package/dist/commons/packageDataFromTdevc.js +25 -0
- package/dist/commons/resolveCoreVersion.d.ts +10 -0
- package/dist/commons/resolveCoreVersion.js +24 -0
- package/dist/commons/summarizeForLog.d.ts +22 -0
- package/dist/commons/summarizeForLog.js +120 -0
- package/dist/connection/OpenRFCConnect.d.ts +13 -0
- package/dist/connection/OpenRFCConnect.js +23 -0
- package/dist/connection/index.d.ts +1 -0
- package/dist/connection/index.js +17 -0
- package/dist/dependencies/PackageDependencies.d.ts +2 -0
- package/dist/dependencies/PackageDependencies.js +24 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lockfile/Lockfile.d.ts +23 -1
- package/dist/lockfile/Lockfile.js +45 -9
- package/dist/manifest/Manifest.d.ts +9 -5
- package/dist/manifest/Manifest.js +82 -29
- package/dist/manifest/PostActivity.js +3 -3
- package/dist/manifest/TrmManifest.d.ts +0 -2
- package/dist/manifest/TrmManifestBase.d.ts +2 -0
- package/dist/manifest/TrmManifestEngines.d.ts +64 -0
- package/dist/manifest/TrmManifestEngines.js +2 -0
- package/dist/manifest/engines/index.d.ts +2 -0
- package/dist/manifest/engines/index.js +18 -0
- package/dist/manifest/engines/sapRange.d.ts +38 -0
- package/dist/manifest/engines/sapRange.js +135 -0
- package/dist/manifest/engines/validateEngines.d.ts +44 -0
- package/dist/manifest/engines/validateEngines.js +282 -0
- package/dist/manifest/index.d.ts +3 -0
- package/dist/manifest/index.js +3 -0
- package/dist/manifest/sapEntries.d.ts +14 -0
- package/dist/manifest/sapEntries.js +63 -0
- package/dist/protocol/Protocol.js +7 -0
- package/dist/registry/AbstractRegistry.d.ts +18 -3
- package/dist/registry/FileSystem.d.ts +22 -13
- package/dist/registry/FileSystem.js +69 -18
- package/dist/registry/RegistryDeletionTransportUnauthorizedError.d.ts +4 -0
- package/dist/registry/RegistryDeletionTransportUnauthorizedError.js +12 -0
- package/dist/registry/RegistryDeletionTransportUnavailableError.d.ts +9 -0
- package/dist/registry/RegistryDeletionTransportUnavailableError.js +17 -0
- package/dist/registry/RegistryPackageNotFoundError.d.ts +7 -0
- package/dist/registry/RegistryPackageNotFoundError.js +14 -0
- package/dist/registry/RegistryV2.d.ts +15 -5
- package/dist/registry/RegistryV2.js +308 -48
- package/dist/registry/index.d.ts +4 -0
- package/dist/registry/index.js +4 -0
- package/dist/registry/registryKey.d.ts +7 -0
- package/dist/registry/registryKey.js +21 -0
- package/dist/systemConnector/ActionLock.d.ts +1 -0
- package/dist/systemConnector/ActionLock.js +2 -0
- package/dist/systemConnector/ISystemConnector.d.ts +21 -4
- package/dist/systemConnector/ISystemConnectorBase.d.ts +16 -0
- package/dist/systemConnector/InstallTransport.d.ts +6 -0
- package/dist/systemConnector/InstallTransport.js +2 -0
- package/dist/systemConnector/OpenRFCSystemConnector.d.ts +12 -0
- package/dist/systemConnector/OpenRFCSystemConnector.js +51 -0
- package/dist/systemConnector/RESTSystemConnector.d.ts +22 -7
- package/dist/systemConnector/RESTSystemConnector.js +95 -23
- package/dist/systemConnector/RFCConnection.d.ts +0 -1
- package/dist/systemConnector/RFCSystemConnector.d.ts +25 -7
- package/dist/systemConnector/RFCSystemConnector.js +75 -16
- package/dist/systemConnector/SystemConnector.d.ts +38 -6
- package/dist/systemConnector/SystemConnector.js +138 -12
- package/dist/systemConnector/SystemConnectorBase.d.ts +24 -1
- package/dist/systemConnector/SystemConnectorBase.js +174 -22
- package/dist/systemConnector/index.d.ts +3 -0
- package/dist/systemConnector/index.js +3 -0
- package/dist/transport/E071KOwner.d.ts +10 -0
- package/dist/transport/E071KOwner.js +15 -0
- package/dist/transport/R3transLogParser.d.ts +19 -0
- package/dist/transport/R3transLogParser.js +148 -0
- package/dist/transport/Transport.d.ts +36 -3
- package/dist/transport/Transport.js +304 -138
- package/dist/transport/index.d.ts +2 -0
- package/dist/transport/index.js +2 -0
- package/dist/trmPackage/TransportBinary.d.ts +4 -1
- package/dist/trmPackage/TrmArtifact.d.ts +12 -8
- package/dist/trmPackage/TrmArtifact.js +93 -74
- package/dist/trmPackage/TrmPackage.d.ts +20 -6
- package/dist/trmPackage/TrmPackage.js +27 -1
- package/dist/validators/validateDevclass.js +4 -0
- package/package.json +15 -7
- package/dist/actions/commons/trmServerPa.d.ts +0 -3
- package/dist/actions/commons/trmServerPa.js +0 -40
- package/dist/actions/install/checkAlreadyInstalled.d.ts +0 -3
- package/dist/actions/install/checkAlreadyInstalled.js +0 -71
- package/dist/actions/install/checkObjectTypes.d.ts +0 -3
- package/dist/actions/install/checkObjectTypes.js +0 -50
- package/dist/actions/install/checkObjectsLock.d.ts +0 -3
- package/dist/actions/install/checkObjectsLock.js +0 -52
- package/dist/actions/install/generateInstallTransports.d.ts +0 -3
- package/dist/actions/install/generateInstallTransports.js +0 -128
- package/dist/actions/install/importCustTransport.d.ts +0 -3
- package/dist/actions/install/importCustTransport.js +0 -73
- package/dist/actions/install/importDevcTransport.d.ts +0 -3
- package/dist/actions/install/importDevcTransport.js +0 -93
- package/dist/actions/install/importLangTransport.d.ts +0 -3
- package/dist/actions/install/importLangTransport.js +0 -72
- package/dist/actions/install/importTadirTransport.d.ts +0 -3
- package/dist/actions/install/importTadirTransport.js +0 -83
- package/dist/actions/install/readDevc.d.ts +0 -3
- package/dist/actions/install/readDevc.js +0 -33
- package/dist/actions/install/readTadir.d.ts +0 -3
- package/dist/actions/install/readTadir.js +0 -101
- package/dist/actions/install/refreshTmsTxt.d.ts +0 -3
- package/dist/actions/install/releaseInstallTransport.d.ts +0 -3
- package/dist/actions/install/releaseInstallTransport.js +0 -80
- package/dist/actions/publish/checkAllObjectsReleased.d.ts +0 -3
- package/dist/actions/publish/checkAllObjectsReleased.js +0 -46
- package/dist/actions/publish/getSourceCode.d.ts +0 -3
- package/dist/actions/publish/getSourceCode.js +0 -49
- package/dist/actions/publish/setChangelog.d.ts +0 -3
- package/dist/actions/publish/setChangelog.js +0 -69
- package/dist/actions/publish/setDevclass.d.ts +0 -3
- package/dist/actions/publish/setDevclass.js +0 -74
- package/dist/actions/publish/setReadme.d.ts +0 -3
- package/dist/actions/publish/setReadme.js +0 -52
- package/dist/actions/publish/setTransportTarget.d.ts +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CWBNTNUMM = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CWBNTSTAT = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CWBNTVERS = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CWBPRSTAT = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type INSTSTATE = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type RELC_TYPE = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SAPPATCHLV = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SAPRELEASE = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type SYSYSID = string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ZTRM_INSTALLTR_TYPE = string;
|
|
@@ -41,6 +41,7 @@ export * from "./RS38L_FNAME";
|
|
|
41
41
|
export * from "./PNAME";
|
|
42
42
|
export * from "./TRFUNCTION";
|
|
43
43
|
export * from "./RFCDEST";
|
|
44
|
+
export * from "./SYSYSID";
|
|
44
45
|
export * from "./NAMESPACE";
|
|
45
46
|
export * from "./TRNLICENSE";
|
|
46
47
|
export * from "./NSP_TEXT";
|
|
@@ -67,3 +68,17 @@ export * from "./SYDATUM";
|
|
|
67
68
|
export * from "./SYTIME";
|
|
68
69
|
export * from "./DDLANGUAGE";
|
|
69
70
|
export * from "./TARSYSTEM";
|
|
71
|
+
export * from "./SAPRELEASE";
|
|
72
|
+
export * from "./SAPPATCHLV";
|
|
73
|
+
export * from "./RELC_TYPE";
|
|
74
|
+
export * from "./BORM_ID";
|
|
75
|
+
export * from "./BORM_NAME";
|
|
76
|
+
export * from "./BORM_VERS";
|
|
77
|
+
export * from "./BORM_VEND";
|
|
78
|
+
export * from "./BORM_NAMEL";
|
|
79
|
+
export * from "./INSTSTATE";
|
|
80
|
+
export * from "./CWBNTNUMM";
|
|
81
|
+
export * from "./CWBNTSTAT";
|
|
82
|
+
export * from "./CWBPRSTAT";
|
|
83
|
+
export * from "./CWBNTVERS";
|
|
84
|
+
export * from "./ZTRM_INSTALLTR_TYPE";
|
|
@@ -57,6 +57,7 @@ __exportStar(require("./RS38L_FNAME"), exports);
|
|
|
57
57
|
__exportStar(require("./PNAME"), exports);
|
|
58
58
|
__exportStar(require("./TRFUNCTION"), exports);
|
|
59
59
|
__exportStar(require("./RFCDEST"), exports);
|
|
60
|
+
__exportStar(require("./SYSYSID"), exports);
|
|
60
61
|
__exportStar(require("./NAMESPACE"), exports);
|
|
61
62
|
__exportStar(require("./TRNLICENSE"), exports);
|
|
62
63
|
__exportStar(require("./NSP_TEXT"), exports);
|
|
@@ -83,3 +84,17 @@ __exportStar(require("./SYDATUM"), exports);
|
|
|
83
84
|
__exportStar(require("./SYTIME"), exports);
|
|
84
85
|
__exportStar(require("./DDLANGUAGE"), exports);
|
|
85
86
|
__exportStar(require("./TARSYSTEM"), exports);
|
|
87
|
+
__exportStar(require("./SAPRELEASE"), exports);
|
|
88
|
+
__exportStar(require("./SAPPATCHLV"), exports);
|
|
89
|
+
__exportStar(require("./RELC_TYPE"), exports);
|
|
90
|
+
__exportStar(require("./BORM_ID"), exports);
|
|
91
|
+
__exportStar(require("./BORM_NAME"), exports);
|
|
92
|
+
__exportStar(require("./BORM_VERS"), exports);
|
|
93
|
+
__exportStar(require("./BORM_VEND"), exports);
|
|
94
|
+
__exportStar(require("./BORM_NAMEL"), exports);
|
|
95
|
+
__exportStar(require("./INSTSTATE"), exports);
|
|
96
|
+
__exportStar(require("./CWBNTNUMM"), exports);
|
|
97
|
+
__exportStar(require("./CWBNTSTAT"), exports);
|
|
98
|
+
__exportStar(require("./CWBPRSTAT"), exports);
|
|
99
|
+
__exportStar(require("./CWBNTVERS"), exports);
|
|
100
|
+
__exportStar(require("./ZTRM_INSTALLTR_TYPE"), exports);
|
package/dist/client/index.d.ts
CHANGED
package/dist/client/index.js
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ClientError } from "./ClientError";
|
|
2
|
+
/**
|
|
3
|
+
* Normalizes the log attached to a trm-server exception (`/ATRM/CX_EXCEPTION->log( )`).
|
|
4
|
+
* REST returns it as an array of lines, RFC as `TLINE` rows.
|
|
5
|
+
*/
|
|
6
|
+
export declare function parseMessageLog(raw: any): string[] | undefined;
|
|
7
|
+
export declare function logMessageLog(error: ClientError): void;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseMessageLog = parseMessageLog;
|
|
4
|
+
exports.logMessageLog = logMessageLog;
|
|
5
|
+
const trm_commons_1 = require("trm-commons");
|
|
6
|
+
/**
|
|
7
|
+
* Normalizes the log attached to a trm-server exception (`/ATRM/CX_EXCEPTION->log( )`).
|
|
8
|
+
* REST returns it as an array of lines, RFC as `TLINE` rows.
|
|
9
|
+
*/
|
|
10
|
+
function parseMessageLog(raw) {
|
|
11
|
+
if (!Array.isArray(raw)) {
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
const lines = raw.map(line => { var _a; return `${typeof line === 'string' ? line : ((_a = line === null || line === void 0 ? void 0 : line.tdline) !== null && _a !== void 0 ? _a : '')}`.trimEnd(); });
|
|
15
|
+
return lines.some(line => line.length > 0) ? lines : undefined;
|
|
16
|
+
}
|
|
17
|
+
function logMessageLog(error) {
|
|
18
|
+
if (error.messageLog && error.messageLog.length > 0) {
|
|
19
|
+
trm_commons_1.Logger.log(`Exception log:\n${error.messageLog.join('\n')}`, true);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { AS4DATE, AS4TIME, TRKORR, TRFUNCTION, TRSTATUS } from "../components";
|
|
1
|
+
import { AS4DATE, AS4TIME, TRKORR, TRFUNCTION, TRSTATUS, TARSYSTEM } from "../components";
|
|
2
2
|
export type E070 = {
|
|
3
3
|
trkorr: TRKORR;
|
|
4
4
|
trfunction: TRFUNCTION;
|
|
5
5
|
trstatus: TRSTATUS;
|
|
6
6
|
as4Date: AS4DATE;
|
|
7
7
|
as4Time: AS4TIME;
|
|
8
|
+
tarsystem?: TARSYSTEM;
|
|
8
9
|
};
|
|
@@ -5,4 +5,25 @@ export type SCOMPKDTLN = {
|
|
|
5
5
|
as4user: PACKAUTHOR;
|
|
6
6
|
dlvunit: DLVUNIT;
|
|
7
7
|
pdevclass: DEVLAYER;
|
|
8
|
+
language?: string;
|
|
9
|
+
masterlang?: string;
|
|
10
|
+
korrflag?: string;
|
|
11
|
+
component?: string;
|
|
12
|
+
namespace?: string;
|
|
13
|
+
tpclass?: string;
|
|
14
|
+
parentcl?: DEVCLASS;
|
|
15
|
+
perminher?: string;
|
|
16
|
+
intfprefx?: string;
|
|
17
|
+
packtype?: string;
|
|
18
|
+
packkind?: string;
|
|
19
|
+
restricted?: string;
|
|
20
|
+
mainpack?: string;
|
|
21
|
+
srvCheck?: string;
|
|
22
|
+
cliCheck?: string;
|
|
23
|
+
extAlias?: string;
|
|
24
|
+
projectGuid?: string;
|
|
25
|
+
projectId?: string;
|
|
26
|
+
projectPassdown?: string;
|
|
27
|
+
switchId?: string;
|
|
28
|
+
translationDepth?: string;
|
|
8
29
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SYMSGID, SYMSGNO, SYMSGTY, SYMSGV, TMSSYSNAM } from "../components";
|
|
2
|
+
export type STMSCALERT = {
|
|
3
|
+
id: string;
|
|
4
|
+
domnam: string;
|
|
5
|
+
sysnam: TMSSYSNAM;
|
|
6
|
+
client: string;
|
|
7
|
+
service: string;
|
|
8
|
+
function: string;
|
|
9
|
+
error: string;
|
|
10
|
+
severity: string;
|
|
11
|
+
text: string;
|
|
12
|
+
msgid: SYMSGID;
|
|
13
|
+
msgty: SYMSGTY;
|
|
14
|
+
msgno: SYMSGNO;
|
|
15
|
+
msgv1: SYMSGV;
|
|
16
|
+
msgv2: SYMSGV;
|
|
17
|
+
msgv3: SYMSGV;
|
|
18
|
+
msgv4: SYMSGV;
|
|
19
|
+
methodptr: string;
|
|
20
|
+
properties: string;
|
|
21
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { STMSCALERT } from "./STMSCALERT";
|
|
2
|
+
import { STMS_TR_REQUEST } from "./STMS_TR_REQUEST";
|
|
3
|
+
import { TPLOGPTR } from "./TPLOGPTR";
|
|
4
|
+
import { TPSTDOUT } from "./TPSTDOUT";
|
|
5
|
+
export type STMS_TP_IMPORT = {
|
|
6
|
+
request: STMS_TR_REQUEST;
|
|
7
|
+
tpRetCode: string;
|
|
8
|
+
tpAlog: string;
|
|
9
|
+
tpSlog: string;
|
|
10
|
+
tpPid: string;
|
|
11
|
+
tpStdout: TPSTDOUT[];
|
|
12
|
+
tpLogptr: TPLOGPTR[];
|
|
13
|
+
alert: STMSCALERT;
|
|
14
|
+
};
|
|
@@ -5,4 +5,42 @@ export type TDEVC = {
|
|
|
5
5
|
tpclass: TPCLASS;
|
|
6
6
|
dlvunit: DLVUNIT;
|
|
7
7
|
ctext?: AS4TEXT;
|
|
8
|
+
intsys?: string;
|
|
9
|
+
consys?: string;
|
|
10
|
+
korrflag?: string;
|
|
11
|
+
as4user?: string;
|
|
12
|
+
pdevclass?: string;
|
|
13
|
+
component?: string;
|
|
14
|
+
namespace?: string;
|
|
15
|
+
shipment?: string;
|
|
16
|
+
applicat?: string;
|
|
17
|
+
errsevrty?: string;
|
|
18
|
+
perminher?: string;
|
|
19
|
+
intfprefx?: string;
|
|
20
|
+
packtype?: string;
|
|
21
|
+
restricted?: string;
|
|
22
|
+
mainpack?: string;
|
|
23
|
+
createdBy?: string;
|
|
24
|
+
createdOn?: string;
|
|
25
|
+
changedBy?: string;
|
|
26
|
+
changedOn?: string;
|
|
27
|
+
srvCheck?: string;
|
|
28
|
+
cliCheck?: string;
|
|
29
|
+
extAlias?: string;
|
|
30
|
+
projectGuid?: string;
|
|
31
|
+
projectPassdown?: string;
|
|
32
|
+
isEnhanceable?: string;
|
|
33
|
+
packageKind?: string;
|
|
34
|
+
enhancedPackage?: DEVCLASS;
|
|
35
|
+
accessObject?: string;
|
|
36
|
+
defaultIntf?: string;
|
|
37
|
+
inheritCliIntf?: string;
|
|
38
|
+
techChgTstmp?: string;
|
|
39
|
+
overallTstmp?: string;
|
|
40
|
+
encapsulation?: string;
|
|
41
|
+
dclEnabled?: string;
|
|
42
|
+
subKey?: string;
|
|
43
|
+
allowStatic?: string;
|
|
44
|
+
switchId?: string;
|
|
45
|
+
checkRule?: string;
|
|
8
46
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SYDATUM, SYTIME, TRKORR, TRTPSTEP, TR_AS4USER } from "../components";
|
|
2
|
+
export type TPLOGPTR = {
|
|
3
|
+
trkorr: TRKORR;
|
|
4
|
+
owner: TR_AS4USER;
|
|
5
|
+
sysname: string;
|
|
6
|
+
step: TRTPSTEP;
|
|
7
|
+
retcode: string;
|
|
8
|
+
logdate: SYDATUM;
|
|
9
|
+
logtime: SYTIME;
|
|
10
|
+
osuser: TR_AS4USER;
|
|
11
|
+
hostname: string;
|
|
12
|
+
client: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TRKORR, ZTRM_INSTALLTR_TYPE, ZTRM_PACKAGE_NAME, ZTRM_PACKAGE_REGISTRY } from "../components";
|
|
2
|
+
/** Transport imported by an installation, as recorded in `/ATRM/INSTALLTR`. */
|
|
3
|
+
export type ZTRM_INSTALLTR = {
|
|
4
|
+
package_name: ZTRM_PACKAGE_NAME;
|
|
5
|
+
package_registry: ZTRM_PACKAGE_REGISTRY;
|
|
6
|
+
trkorr: TRKORR;
|
|
7
|
+
trm_type: ZTRM_INSTALLTR_TYPE;
|
|
8
|
+
};
|
|
@@ -9,10 +9,12 @@ export * from "./TLINE";
|
|
|
9
9
|
export * from "./TMSCSYS";
|
|
10
10
|
export * from "./E070";
|
|
11
11
|
export * from "./E071";
|
|
12
|
+
export * from "./E071K";
|
|
12
13
|
export * from "./SENVI";
|
|
13
14
|
export * from "./STMSIQREQ";
|
|
14
15
|
export * from "./SCOMPKDTLN";
|
|
15
16
|
export * from "./ZTRM_INSTALLDEVC";
|
|
17
|
+
export * from "./ZTRM_INSTALLTR";
|
|
16
18
|
export * from "./KO100";
|
|
17
19
|
export * from "./T100";
|
|
18
20
|
export * from "./LXE_TT_PACKG_LINE";
|
|
@@ -31,3 +33,13 @@ export * from "./ZTRM_OBJ_LOCK";
|
|
|
31
33
|
export * from "./E07T";
|
|
32
34
|
export * from "./TADIR_KEY";
|
|
33
35
|
export * from "./ZTRM_DIRTY";
|
|
36
|
+
export * from "./STMS_TR_REQUEST";
|
|
37
|
+
export * from "./STMSCALERT";
|
|
38
|
+
export * from "./TPSTDOUT";
|
|
39
|
+
export * from "./TPLOGPTR";
|
|
40
|
+
export * from "./STMS_TP_IMPORT";
|
|
41
|
+
export * from "./ActionLockKey";
|
|
42
|
+
export * from "./CVERS";
|
|
43
|
+
export * from "./PRDVERS";
|
|
44
|
+
export * from "./CWBNTCUST";
|
|
45
|
+
export * from "./CWBNTHEAD";
|
|
@@ -25,10 +25,12 @@ __exportStar(require("./TLINE"), exports);
|
|
|
25
25
|
__exportStar(require("./TMSCSYS"), exports);
|
|
26
26
|
__exportStar(require("./E070"), exports);
|
|
27
27
|
__exportStar(require("./E071"), exports);
|
|
28
|
+
__exportStar(require("./E071K"), exports);
|
|
28
29
|
__exportStar(require("./SENVI"), exports);
|
|
29
30
|
__exportStar(require("./STMSIQREQ"), exports);
|
|
30
31
|
__exportStar(require("./SCOMPKDTLN"), exports);
|
|
31
32
|
__exportStar(require("./ZTRM_INSTALLDEVC"), exports);
|
|
33
|
+
__exportStar(require("./ZTRM_INSTALLTR"), exports);
|
|
32
34
|
__exportStar(require("./KO100"), exports);
|
|
33
35
|
__exportStar(require("./T100"), exports);
|
|
34
36
|
__exportStar(require("./LXE_TT_PACKG_LINE"), exports);
|
|
@@ -47,3 +49,13 @@ __exportStar(require("./ZTRM_OBJ_LOCK"), exports);
|
|
|
47
49
|
__exportStar(require("./E07T"), exports);
|
|
48
50
|
__exportStar(require("./TADIR_KEY"), exports);
|
|
49
51
|
__exportStar(require("./ZTRM_DIRTY"), exports);
|
|
52
|
+
__exportStar(require("./STMS_TR_REQUEST"), exports);
|
|
53
|
+
__exportStar(require("./STMSCALERT"), exports);
|
|
54
|
+
__exportStar(require("./TPSTDOUT"), exports);
|
|
55
|
+
__exportStar(require("./TPLOGPTR"), exports);
|
|
56
|
+
__exportStar(require("./STMS_TP_IMPORT"), exports);
|
|
57
|
+
__exportStar(require("./ActionLockKey"), exports);
|
|
58
|
+
__exportStar(require("./CVERS"), exports);
|
|
59
|
+
__exportStar(require("./PRDVERS"), exports);
|
|
60
|
+
__exportStar(require("./CWBNTCUST"), exports);
|
|
61
|
+
__exportStar(require("./CWBNTHEAD"), exports);
|
|
@@ -35,7 +35,7 @@ function checkCoreTrmDependencies(systemPackages, globalPath) {
|
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
37
37
|
const installedVersion = installedPackage.manifest.get().version;
|
|
38
|
-
if (!(0, semver_1.satisfies)(installedVersion, versionRange)) {
|
|
38
|
+
if (!(0, semver_1.satisfies)(installedVersion, versionRange, { includePrerelease: true })) {
|
|
39
39
|
returnData.versionNotSatisfiedDependencies.push(installedPackage);
|
|
40
40
|
}
|
|
41
41
|
else {
|
|
@@ -10,6 +10,7 @@ const util_1 = require("util");
|
|
|
10
10
|
const trm_commons_1 = require("trm-commons");
|
|
11
11
|
const node_html_parser_1 = require("node-html-parser");
|
|
12
12
|
const crypto_1 = require("crypto");
|
|
13
|
+
const summarizeForLog_1 = require("./summarizeForLog");
|
|
13
14
|
exports.AXIOS_SESSION_HEADER = 'X-TRM-SESSION-ID';
|
|
14
15
|
exports.AXIOS_INTERNAL_HEADER = 'X-TRM-REQUEST-ID';
|
|
15
16
|
function _getInternalId(response) {
|
|
@@ -28,37 +29,27 @@ function getAxiosInstance(config, sCtx, inj) {
|
|
|
28
29
|
if (trm_commons_1.Logger.logger instanceof trm_commons_1.CliLogFileLogger) {
|
|
29
30
|
request.headers.set(exports.AXIOS_SESSION_HEADER, trm_commons_1.Logger.logger.getSessionId());
|
|
30
31
|
}
|
|
31
|
-
var sRequest = `${request.method} ${request.baseURL
|
|
32
|
+
var sRequest = `${request.method} ${(0, summarizeForLog_1.summarizeUrlForLog)(request.baseURL, request.url)}`;
|
|
32
33
|
if (request.params) {
|
|
33
|
-
sRequest += `, parameters: ${(0, util_1.inspect)(request.params, { breakLength: Infinity, compact: true })}`;
|
|
34
|
+
sRequest += `, parameters: ${(0, util_1.inspect)((0, summarizeForLog_1.summarizeForLog)(request.params), { breakLength: Infinity, compact: true })}`;
|
|
34
35
|
}
|
|
35
36
|
if (request.headers.getAuthorization()) {
|
|
36
37
|
sRequest += `, authorization: HIDDEN`;
|
|
37
38
|
}
|
|
38
39
|
if (request.data) {
|
|
39
|
-
sRequest += `, data: ${(0, util_1.inspect)(request.data, { breakLength: Infinity, compact: true })}`;
|
|
40
|
+
sRequest += `, data: ${(0, util_1.inspect)((0, summarizeForLog_1.summarizeForLog)(request.data), { breakLength: Infinity, compact: true })}`;
|
|
40
41
|
}
|
|
41
42
|
trm_commons_1.Logger.log(`${sCtx} AXIOS request ${internalId}: ${sRequest}`, true);
|
|
42
43
|
return request;
|
|
43
44
|
}, (error) => {
|
|
44
|
-
trm_commons_1.Logger.
|
|
45
|
+
trm_commons_1.Logger.log(`${sCtx} AXIOS request error: ${error}`, true);
|
|
45
46
|
return Promise.reject(error);
|
|
46
47
|
});
|
|
47
48
|
instance.interceptors.response.use((response) => {
|
|
48
49
|
const internalId = _getInternalId(response);
|
|
49
50
|
var sResponse = `status: ${response.status}, status text: ${response.statusText}`;
|
|
50
51
|
if (response.data) {
|
|
51
|
-
|
|
52
|
-
try {
|
|
53
|
-
sResponse += `, data: <file of ${response.data.byteLength} bytes>`;
|
|
54
|
-
}
|
|
55
|
-
catch (_a) {
|
|
56
|
-
sResponse += `, data: <file of unknown bytes>`;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
sResponse += `, data: ${(0, util_1.inspect)(response.data, { breakLength: Infinity, compact: true })}`;
|
|
61
|
-
}
|
|
52
|
+
sResponse += `, data: ${(0, util_1.inspect)((0, summarizeForLog_1.summarizeForLog)(response.data), { breakLength: Infinity, compact: true })}`;
|
|
62
53
|
}
|
|
63
54
|
trm_commons_1.Logger.log(`Ending ${sCtx} AXIOS request ${internalId}: ${sResponse}`, true);
|
|
64
55
|
return response;
|
|
@@ -103,11 +94,11 @@ function getAxiosInstance(config, sCtx, inj) {
|
|
|
103
94
|
oError.status = error.response.status;
|
|
104
95
|
oError.response = error.response.data || {};
|
|
105
96
|
oError.axiosError = error;
|
|
106
|
-
trm_commons_1.Logger.
|
|
97
|
+
trm_commons_1.Logger.log(`${sCtx} response id ${internalId} error: ${error} (${JSON.stringify(sError)})`, true);
|
|
107
98
|
return Promise.reject(oError);
|
|
108
99
|
}
|
|
109
100
|
else {
|
|
110
|
-
trm_commons_1.Logger.
|
|
101
|
+
trm_commons_1.Logger.log(`${sCtx} response error: ${error}`, true);
|
|
111
102
|
return Promise.reject(error);
|
|
112
103
|
}
|
|
113
104
|
});
|
|
@@ -20,6 +20,7 @@ function getNodePackage(globalPath, packageName) {
|
|
|
20
20
|
globalPath = (0, trm_commons_1.getGlobalNodeModules)();
|
|
21
21
|
}
|
|
22
22
|
if (__dirname.includes(globalPath)) {
|
|
23
|
+
//prod
|
|
23
24
|
const parts = __dirname.split(node_path_1.sep);
|
|
24
25
|
const index = parts.lastIndexOf("node_modules");
|
|
25
26
|
if (packageName) {
|
|
@@ -27,6 +28,7 @@ function getNodePackage(globalPath, packageName) {
|
|
|
27
28
|
return JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(parts.slice(0, index + 1).join(node_path_1.sep), packageName, 'package.json'), 'utf8'));
|
|
28
29
|
}
|
|
29
30
|
catch (_b) { }
|
|
31
|
+
// try up one folder
|
|
30
32
|
try {
|
|
31
33
|
const data = JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)((0, node_path_1.resolve)(parts.slice(0, index + 1).join(node_path_1.sep), '..'), 'package.json'), 'utf8'));
|
|
32
34
|
if (data.name === packageName) {
|
|
@@ -43,9 +45,11 @@ function getNodePackage(globalPath, packageName) {
|
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
else {
|
|
48
|
+
//dev
|
|
46
49
|
if (!packageName) {
|
|
47
50
|
packageName = 'trm-core';
|
|
48
51
|
}
|
|
52
|
+
//try current directory
|
|
49
53
|
try {
|
|
50
54
|
const data = JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(process.cwd(), 'package.json'), 'utf8'));
|
|
51
55
|
if (data.name === packageName) {
|
|
@@ -53,14 +57,17 @@ function getNodePackage(globalPath, packageName) {
|
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
59
|
catch (_e) { }
|
|
60
|
+
//try node_modules
|
|
56
61
|
try {
|
|
57
62
|
return JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(process.cwd(), 'node_modules', packageName, 'package.json'), 'utf8'));
|
|
58
63
|
}
|
|
59
64
|
catch (_f) { }
|
|
65
|
+
//up one directory
|
|
60
66
|
try {
|
|
61
67
|
return JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)((0, node_path_1.resolve)(process.cwd(), ".."), packageName, 'package.json'), 'utf8'));
|
|
62
68
|
}
|
|
63
69
|
catch (_g) { }
|
|
70
|
+
//up one directory, in node_modules
|
|
64
71
|
try {
|
|
65
72
|
return JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)((0, node_path_1.resolve)(process.cwd(), ".."), 'node_modules', packageName, 'package.json'), 'utf8'));
|
|
66
73
|
}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getPackageHierarchy = getPackageHierarchy;
|
|
4
4
|
function getPackageHierarchy(input, ignoreMultiples) {
|
|
5
5
|
const map = new Map();
|
|
6
|
+
// Build a mapping of devclass to its children
|
|
6
7
|
input.forEach(item => {
|
|
7
8
|
map.set(item.devclass, {
|
|
8
9
|
devclass: item.devclass,
|
|
@@ -10,6 +11,7 @@ function getPackageHierarchy(input, ignoreMultiples) {
|
|
|
10
11
|
});
|
|
11
12
|
});
|
|
12
13
|
const roots = [];
|
|
14
|
+
// Populate the 'sub' arrays based on parentcl
|
|
13
15
|
input.forEach(item => {
|
|
14
16
|
const child = map.get(item.devclass);
|
|
15
17
|
const parent = map.get(item.parentcl);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DEVCLASS } from "../client";
|
|
2
|
+
/**
|
|
3
|
+
* Returns the namespace of a set of SAP packages: the root package namespace, or the only
|
|
4
|
+
* reserved (/NAMESPACE/) namespace used by a subpackage when the root uses Z or Y.
|
|
5
|
+
*
|
|
6
|
+
* Only one reserved namespace is supported: a TRM package carries a single namespace and repair
|
|
7
|
+
* license. Z and Y need no namespace object and can be mixed with it.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getPackagesNamespace(rootDevclass: DEVCLASS, devclasses: DEVCLASS[]): string;
|