Socket
Socket
Sign inDemoInstall

@ms-cloudpack/config

Package Overview
Dependencies
Maintainers
3
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ms-cloudpack/config - npm Package Compare versions

Comparing version 0.23.1 to 0.23.2

2

lib/configTemplate.js

@@ -16,3 +16,3 @@ export const configTemplate = {

excludedDependencies: [],
bundlerType: undefined,
bundler: undefined,
bundlerOptions: undefined,

@@ -19,0 +19,0 @@ },

import type { CloudpackConfig, PackageDefinitionTransform } from '@ms-cloudpack/common-types';
/**
* Creates a transform to be registered with a PackageDefinitions registry for using package settings to apply
* package.json transforms.
* Creates a transform to be registered with a PackageDefinitions registry for updating package.json
* based on package settings from the config.
*/
export declare function createPackageSettingsTransform(config: CloudpackConfig): PackageDefinitionTransform;
//# sourceMappingURL=createPackageSettingsTransform.d.ts.map

@@ -5,4 +5,4 @@ import { getPackageSettings } from './getPackageSettings.js';

/**
* Creates a transform to be registered with a PackageDefinitions registry for using package settings to apply
* package.json transforms.
* Creates a transform to be registered with a PackageDefinitions registry for updating package.json
* based on package settings from the config.
*/

@@ -9,0 +9,0 @@ export function createPackageSettingsTransform(config) {

@@ -7,6 +7,2 @@ import type { AppConfig } from '@ms-cloudpack/common-types';

export declare function readAppConfig(appPath: string): Promise<AppConfig>;
/**
* An internal function for processing a config object after reading the json values.
*/
export declare function processDeprecatedValues(config: AppConfig): AppConfig;
//# sourceMappingURL=readAppConfig.d.ts.map

@@ -40,17 +40,20 @@ import { readJson } from '@ms-cloudpack/json-utilities';

/**
* An internal function for processing a config object after reading the json values.
* Delete deprecated values and convert them to the new format. (This mutates the `config` object.)
*/
export function processDeprecatedValues(config) {
const { devServer } = config;
if (devServer) {
// eslint-disable-next-line etc/no-deprecated
const { routes } = devServer;
if (routes) {
config.routes = routes;
// eslint-disable-next-line etc/no-deprecated
delete config.devServer?.routes;
function processDeprecatedValues(config) {
/* eslint-disable etc/no-deprecated */
const { devServer, packageSettings = [] } = config;
if (devServer?.routes) {
config.routes = devServer.routes;
delete devServer.routes;
}
for (const setting of packageSettings) {
if (setting.bundlerType) {
setting.bundler = setting.bundlerType;
delete setting.bundlerType;
}
}
return config;
/* eslint-enable etc/no-deprecated */
}
//# sourceMappingURL=readAppConfig.js.map
{
"name": "@ms-cloudpack/config",
"version": "0.23.1",
"version": "0.23.2",
"description": "Configuration handling for cloudpack.",

@@ -17,5 +17,5 @@ "license": "MIT",

"dependencies": {
"@ms-cloudpack/common-types": "^0.11.0",
"@ms-cloudpack/common-types": "^0.12.0",
"@ms-cloudpack/json-utilities": "^0.1.4",
"@ms-cloudpack/package-utilities": "^7.8.2",
"@ms-cloudpack/package-utilities": "^7.8.3",
"import-meta-resolve": "^4.0.0",

@@ -22,0 +22,0 @@ "semver": "^7.6.0"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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