Socket
Socket
Sign inDemoInstall

ui5-tooling-transpile

Package Overview
Dependencies
201
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.3.1 to 3.3.2

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [3.3.2](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/ui5-tooling-transpile@3.3.1...ui5-tooling-transpile@3.3.2) (2023-12-15)
### Bug Fixes
* **ui5-tooling-transpile:** more usage of UI5 Tooling V3 APIs ([#923](https://github.com/ui5-community/ui5-ecosystem-showcase/issues/923)) ([380e96c](https://github.com/ui5-community/ui5-ecosystem-showcase/commit/380e96c322f4b770e5b5481d085f8273998d531a))
## [3.3.1](https://github.com/ui5-community/ui5-ecosystem-showcase/compare/ui5-tooling-transpile@3.3.0...ui5-tooling-transpile@3.3.1) (2023-12-10)

@@ -8,0 +19,0 @@

25

lib/task.js

@@ -37,11 +37,4 @@ /* eslint-disable jsdoc/check-param-names */

// TODO: should we accept the full glob pattern as param or just the file pattern?
const allResources = await workspace.byGlob(`/**/*${config.filePattern}`);
// determine root project
let rootProject;
if (allResources.length > 0) {
rootProject =
typeof allResources[0].getProject === "function" ? allResources[0].getProject() : allResources[0]._project;
}
const rootProject = taskUtil.getProject();

@@ -81,2 +74,5 @@ // if the TypeScript interfaces should be created, launch the ts-interface-generator in watch mode

// TODO: should we accept the full glob pattern as param or just the file pattern?
const allResources = await workspace.byGlob(`/**/*${config.filePattern}`);
// transpile the TypeScript resources and collect the code

@@ -336,8 +332,3 @@ const sourcesMap = {};

// determine the virtual resource base path
let virBasePath;
if (typeof rootProject?.getNamespace === "function") {
virBasePath = `/resources/${rootProject.getNamespace()}`;
} else if (rootProject?.metadata?.namespace) {
virBasePath = `/resources/${rootProject.metadata.namespace}`;
}
let virBasePath = `/resources/${rootProject.getNamespace()}`;
// generate the index.d.ts content

@@ -362,4 +353,6 @@ const indexDtsContent = Object.keys(sourcesMap)

`// Generated with TypeScript ${ts.version || "unknown"} / ${
rootProject?.framework?.name || "UI5"
} ${rootProject?.framework?.version || "unknown"}${typeDefPkgJsons.length > 0 ? " using:" : ""}`
rootProject.getFrameworkName() || "UI5"
} ${rootProject.getFrameworkVersion() || "unknown"}${
typeDefPkgJsons.length > 0 ? " using:" : ""
}`
);

@@ -366,0 +359,0 @@ const indexDtsFile = resourceFactory.createResource({

{
"name": "ui5-tooling-transpile",
"version": "3.3.1",
"version": "3.3.2",
"description": "UI5 tooling extensions to transpile code",

@@ -46,3 +46,3 @@ "author": "Jorge Martins, Peter Muessig",

},
"gitHead": "035b27d4b261799f585b8d2d86308e2025398866"
"gitHead": "d4520e3857615ac4a82e84200872f99ca7a5f413"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc