@ms-cloudpack/path-utilities 2.8.0 → 2.8.2
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":"formatLocation.d.ts","sourceRoot":"","sources":["../src/formatLocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGxE;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,qBAAqB,GAAG;IAC9B,mEAAmE;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,
|
|
1
|
+
{"version":3,"file":"formatLocation.d.ts","sourceRoot":"","sources":["../src/formatLocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAGxE;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,qBAAqB,GAAG;IAC9B,mEAAmE;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,GACA,MAAM,CASR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatLocation.js","sourceRoot":"","sources":["../src/formatLocation.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB;;;GAGG;AACH,MAAM,UAAU,cAAc,CAC5B,MAGC;IAED,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;IAChD,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,IAAI,IAAI,MAAM,EAAE,CAAC;QACnB,OAAO,GAAG,IAAI,IAAI,IAAI,CAAC,IAAI,MAAM,IAAI,CAAC,EAAE,CAAC;IAC3C,CAAC;IAED,MAAM,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAChE,OAAO,GAAG,QAAQ,GAAG,OAAO,EAAE,CAAC;AACjC,CAAC","sourcesContent":["import type { BundleMessageLocation } from '@ms-cloudpack/common-types';\nimport path from 'path';\n\n/**\n * Format a message location with optional line and column numbers, and possibly a `fromPath` to\n * make it absolute.\n */\nexport function formatLocation(\n params: BundleMessageLocation & {\n /** If provided, join `file` with this path to make it absolute. */\n fromPath?: string;\n },\n) {\n const { file, line, column, fromPath } = params;\n let lineCol = '';\n if (line || column) {\n lineCol = `:${line ?? 1}:${column ?? 0}`;\n }\n\n const filePath = fromPath ? path.resolve(fromPath, file) : file;\n return `${filePath}${lineCol}`;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"formatLocation.js","sourceRoot":"","sources":["../src/formatLocation.ts"],"names":[],"mappings":"AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB;;;GAGG;AACH,MAAM,UAAU,cAAc,CAC5B,MAGC;IAED,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;IAChD,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,IAAI,IAAI,MAAM,EAAE,CAAC;QACnB,OAAO,GAAG,IAAI,IAAI,IAAI,CAAC,IAAI,MAAM,IAAI,CAAC,EAAE,CAAC;IAC3C,CAAC;IAED,MAAM,QAAQ,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAChE,OAAO,GAAG,QAAQ,GAAG,OAAO,EAAE,CAAC;AACjC,CAAC","sourcesContent":["import type { BundleMessageLocation } from '@ms-cloudpack/common-types';\nimport path from 'path';\n\n/**\n * Format a message location with optional line and column numbers, and possibly a `fromPath` to\n * make it absolute.\n */\nexport function formatLocation(\n params: BundleMessageLocation & {\n /** If provided, join `file` with this path to make it absolute. */\n fromPath?: string;\n },\n): string {\n const { file, line, column, fromPath } = params;\n let lineCol = '';\n if (line || column) {\n lineCol = `:${line ?? 1}:${column ?? 0}`;\n }\n\n const filePath = fromPath ? path.resolve(fromPath, file) : file;\n return `${filePath}${lineCol}`;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/path-utilities",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.2",
|
|
4
4
|
"description": "Path utilities for Cloudpack.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"workspace-tools": "^0.38.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@ms-cloudpack/common-types": "^0.
|
|
34
|
+
"@ms-cloudpack/common-types": "^0.24.1",
|
|
35
35
|
"@ms-cloudpack/eslint-plugin-internal": "^0.0.1",
|
|
36
36
|
"@ms-cloudpack/scripts": "^0.0.1",
|
|
37
37
|
"@ms-cloudpack/test-utilities": "^0.5.0"
|