Socket
Socket
Sign inDemoInstall

@oracle/oraclejet-tooling

Package Overview
Dependencies
Maintainers
8
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oracle/oraclejet-tooling - npm Package Compare versions

Comparing version 12.1.1 to 12.1.2

22

lib/mainJsInjector.js

@@ -53,3 +53,4 @@ /**

if (config.mainPathMapping) {
injectContent = _getInjectContent(buildType, config.mainPathMapping);
const pathMapping = (buildType === 'release') ? _restorePathMapping(config.mainPathMapping) : config.mainPathMapping;
injectContent = _getInjectContent(buildType, pathMapping);
injectContent = injectContent.replace(/'/g, '"');

@@ -229,2 +230,21 @@ injectContent = injectContent.replace(/\\/g, '/');

/**
In rjsConfigGenerator we assign "empty:" value
to the path mapping for already optimized components
we need to restore it here to get a correct path injected into
bundle.js file
@param {object} pathsObj object with path mappings
@return {object} restored path mappings object
**/
function _restorePathMapping(pathsObj) {
const componentCache = util.getComponentsCache();
const properties = Object.getOwnPropertyNames(pathsObj);
properties.forEach((property) => {
if (pathsObj[property] === "'empty:'" && componentCache[property].pathMap) {
pathsObj[property] = `"${componentCache[property].pathMap}"`; // eslint-disable-line no-param-reassign
delete componentCache[property].pathMap;
}
});
return pathsObj;
}

@@ -231,0 +251,0 @@ module.exports = {

@@ -270,2 +270,7 @@ /**

if (buildType === 'release' && _isMinified(exchangeComponent, version)) {
// Assign the path to "empty:" to avoid re-optimization of the same code
// causing errors. Keep a copy of the path to already optimized component
// to be restored during path injection in mainJsInjector.js in function
// _replaceReleasePath:
exchangeComponents[exchangeComponent].pathMap = path.join(exchangeComponentPath, 'min');
exchangeComponentPath = 'empty:';

@@ -272,0 +277,0 @@ }

2

lib/templates/pack/component.json
{
"name": "@pack@",
"version": "1.0.0",
"jetVersion": "12.1.1",
"jetVersion": "12.1.2",
"type": "pack",

@@ -6,0 +6,0 @@ "displayName": "A user friendly, translatable name of the pack.",

{
"name": "@oracle/oraclejet-tooling",
"version": "12.1.1",
"version": "12.1.2",
"license": "UPL-1.0",

@@ -5,0 +5,0 @@ "description": "Programmatic API to build and serve Oracle JET web and mobile applications",

@@ -1,2 +0,2 @@

# @oracle/oraclejet-tooling 12.1.1
# @oracle/oraclejet-tooling 12.1.2

@@ -9,3 +9,3 @@ ## About the tooling API

## Installation
This module will be automatically installed when you scaffold a web or hybrid mobile app following the [Oracle JET Developers Guide](http://www.oracle.com/pls/topic/lookup?ctx=jet1211&id=homepage).
This module will be automatically installed when you scaffold a web or hybrid mobile app following the [Oracle JET Developers Guide](http://www.oracle.com/pls/topic/lookup?ctx=jet1212&id=homepage).

@@ -12,0 +12,0 @@ ## [Contributing](https://github.com/oracle/oraclejet-tooling/blob/master/CONTRIBUTING.md)

## Release Notes for oraclejet-tooling ##
### 12.1.1
### 12.1.2

@@ -5,0 +5,0 @@ ### 11.0.0

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