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.27.0 to 0.27.1

2

lib/checkMatch.d.ts

@@ -10,3 +10,3 @@ import type { PackageSettings } from '@ms-cloudpack/common-types';

version: string;
/** The match to check against. */
/** The match to check against. For an array, returns true if any entries match. */
match: PackageSettings['match'];

@@ -13,0 +13,0 @@ /** If true, require an exact match for the name (don't process wildcards). */

@@ -7,2 +7,5 @@ import { satisfies } from 'semver';

const { name, version, match, exactMatch } = params;
if (Array.isArray(match)) {
return match.some((m) => checkMatch({ ...params, match: m }));
}
let matchName;

@@ -9,0 +12,0 @@ let matchVersion;

@@ -10,3 +10,3 @@ import { getPackageSettings } from './getPackageSettings.js';

return async ({ definition, packagePath, packages }) => {
const { name = '', version = '' } = definition;
const { name, version } = definition;
const { userPackageSettings, generatedPackageSettings } = getPackageSettings({

@@ -13,0 +13,0 @@ name,

@@ -13,5 +13,2 @@ import { isExternalPackage } from '@ms-cloudpack/package-utilities';

const definition = await packages.get(packagePath);
if (!definition || !definition.name || !definition.version) {
throw new Error(`Valid package definition not found for ${packagePath}`);
}
const { name, version } = definition;

@@ -18,0 +15,0 @@ let generatedPackageSettings = getGeneratedPackageSettings({

@@ -29,20 +29,20 @@ import { readAppConfig } from './readAppConfig.js';

let definition;
if (routes?.length) {
for (const route of routes) {
const shorthandRoute = route;
const renderedRoute = route;
renderedRoute.entry = ensureArray(shorthandRoute.entry)?.map((filePath) => expandRouteEntry({
filePath,
appPath,
}));
// eslint-disable-next-line etc/no-deprecated
if (shorthandRoute.exportEntry) {
if (!definition) {
// We can't use PackageDefinitions.get here because we're reading the config, and definitions
// cache requires config resulting in a cycle.
definition = await readJson(path.join(appPath, 'package.json'));
}
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
expandDeprecatedExportEntry(route, definition, appPath);
if (!routes?.length) {
return;
}
for (const route of routes) {
const shorthandRoute = route;
const renderedRoute = route;
renderedRoute.entry = ensureArray(shorthandRoute.entry)?.map((filePath) => expandRouteEntry({
filePath,
appPath,
}));
// eslint-disable-next-line etc/no-deprecated
if (shorthandRoute.exportEntry) {
if (!definition) {
// We can't use PackageDefinitions.get here because we're reading the config, and definitions
// cache requires config resulting in a cycle.
definition = (await readJson(path.join(appPath, 'package.json')));
}
expandDeprecatedExportEntry(route, definition, appPath);
}

@@ -49,0 +49,0 @@ }

{
"name": "@ms-cloudpack/config",
"version": "0.27.0",
"version": "0.27.1",
"description": "Configuration handling for cloudpack.",

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

"dependencies": {
"@ms-cloudpack/common-types": "^0.18.0",
"@ms-cloudpack/common-types": "^0.19.0",
"@ms-cloudpack/json-utilities": "^0.1.7",
"@ms-cloudpack/package-utilities": "^9.0.5",
"@ms-cloudpack/path-utilities": "^2.7.36",
"@ms-cloudpack/package-utilities": "^10.0.0",
"@ms-cloudpack/path-utilities": "^2.7.37",
"import-meta-resolve": "^4.0.0",

@@ -23,0 +23,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

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