@ms-cloudpack/package-utilities 13.8.5 → 13.8.7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getEffectiveResolutions.js","sourceRoot":"","sources":["../../../../src/resolveMap/createHelpers/link/getEffectiveResolutions.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CACrC,iBAA0C,EAC1C,iBAAkD;IAElD,IAAI,CAAC,iBAAiB,EAAE,WAAW;QAAE,OAAO,SAAS,CAAC;IACtD,MAAM,eAAe,GAAG,iBAAiB,CAAC,WAAW,CAAC;IAEtD,IAAI,iBAAiB,KAAK,IAAI,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,iBAAiB,CAAC,MAAM,EAAE,CAAC;QACjE,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,CACjC,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAC5F,CAAC;QACF,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"getEffectiveResolutions.js","sourceRoot":"","sources":["../../../../src/resolveMap/createHelpers/link/getEffectiveResolutions.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CACrC,iBAA0C,EAC1C,iBAAkD;IAElD,IAAI,CAAC,iBAAiB,EAAE,WAAW;QAAE,OAAO,SAAS,CAAC;IACtD,MAAM,eAAe,GAAG,iBAAiB,CAAC,WAAW,CAAC;IAEtD,IAAI,iBAAiB,KAAK,IAAI,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,IAAI,iBAAiB,CAAC,MAAM,EAAE,CAAC;QACjE,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,CACjC,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,iBAAiB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAC5F,CAAC;QACF,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;IAC7D,CAAC;IAED,OAAO,eAAe,CAAC;AACzB,CAAC","sourcesContent":["import type { LinkedPath, PackageJson } from '@ms-cloudpack/common-types';\n\n/**\n * Compute the effective resolutions to apply based on ignoreResolutions setting.\n * - ignoreResolutions === true -> ignore all host resolutions (return undefined)\n * - ignoreResolutions is string[] -> ignore only those package entries\n * - otherwise apply all host resolutions\n */\nexport function getEffectiveResolutions(\n appRepoDefinition: PackageJson | undefined,\n ignoreResolutions: LinkedPath['ignoreResolutions'],\n): PackageJson['resolutions'] {\n if (!appRepoDefinition?.resolutions) return undefined;\n const hostResolutions = appRepoDefinition.resolutions;\n\n if (ignoreResolutions === true) {\n return undefined;\n }\n\n if (Array.isArray(ignoreResolutions) && ignoreResolutions.length) {\n const filtered = Object.fromEntries(\n Object.entries(hostResolutions).filter(([pkgName]) => !ignoreResolutions.includes(pkgName)),\n );\n return Object.keys(filtered).length ? filtered : undefined;\n }\n\n return hostResolutions;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/package-utilities",
|
|
3
|
-
"version": "13.8.
|
|
3
|
+
"version": "13.8.7",
|
|
4
4
|
"description": "Utilities for resolving/parsing packages and their imports in Cloudpack",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"test": "cloudpack-scripts test"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@ms-cloudpack/common-types": "^0.34.
|
|
29
|
-
"@ms-cloudpack/json-utilities": "^0.1.
|
|
30
|
-
"@ms-cloudpack/path-string-parsing": "^1.3.
|
|
31
|
-
"@ms-cloudpack/path-utilities": "^3.2.
|
|
32
|
-
"@ms-cloudpack/task-reporter": "^0.21.
|
|
28
|
+
"@ms-cloudpack/common-types": "^0.34.5",
|
|
29
|
+
"@ms-cloudpack/json-utilities": "^0.1.16",
|
|
30
|
+
"@ms-cloudpack/path-string-parsing": "^1.3.5",
|
|
31
|
+
"@ms-cloudpack/path-utilities": "^3.2.16",
|
|
32
|
+
"@ms-cloudpack/task-reporter": "^0.21.5",
|
|
33
33
|
"acorn": "^8.11.2",
|
|
34
34
|
"acorn-walk": "^8.2.1",
|
|
35
35
|
"semver": "^7.6.0",
|