@component-compass/plugin-core 0.1.17 → 0.1.19
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.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/owner-utils.js +3 -2
- package/dist/owner-utils.js.map +1 -1
- package/dist/posix.d.ts +2 -0
- package/dist/posix.js +5 -0
- package/dist/posix.js.map +1 -0
- package/dist/via-types.d.ts +5 -3
- package/package.json +5 -1
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export type { TagName, WrapperId, IndexedComponent, Loc, WarningCode, Warning, S
|
|
|
8
8
|
export { asTagName, asWrapperId, emptyLocalIndex } from "./scan-types.js";
|
|
9
9
|
export type { Enrichment, AuthoredLeafPayload } from "./enrichment.js";
|
|
10
10
|
export { normalizeOwnerPath } from "./owner-utils.js";
|
|
11
|
+
export { posixPath } from "./posix.js";
|
|
11
12
|
export { logicalKeyFor, hashLogicalKey, computeLogicalId } from "./logical-id.js";
|
|
12
13
|
export { computeOccurrenceId } from "./occurrence-id.js";
|
|
13
14
|
export { projectPropUsages, classifyExprText } from "./project-props.js";
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ export { manifestJsonSchema } from "./schema.js";
|
|
|
4
4
|
export { ManifestBuilder } from "./builder.js";
|
|
5
5
|
export { asTagName, asWrapperId, emptyLocalIndex } from "./scan-types.js";
|
|
6
6
|
export { normalizeOwnerPath } from "./owner-utils.js";
|
|
7
|
+
export { posixPath } from "./posix.js";
|
|
7
8
|
export { logicalKeyFor, hashLogicalKey, computeLogicalId } from "./logical-id.js";
|
|
8
9
|
export { computeOccurrenceId } from "./occurrence-id.js";
|
|
9
10
|
export { projectPropUsages, classifyExprText } from "./project-props.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAa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O,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGzE,cAAc,mBAAmB,CAAC;AAGlC,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/owner-utils.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { relative, isAbsolute } from "node:path";
|
|
2
|
+
import { posixPath } from "./posix.js";
|
|
2
3
|
/**
|
|
3
4
|
* Normalize a file path to the form used as keys in `LocalDefinitionIndex.byPath`.
|
|
4
5
|
*
|
|
@@ -10,7 +11,7 @@ import { relative, isAbsolute } from "node:path";
|
|
|
10
11
|
*/
|
|
11
12
|
export function normalizeOwnerPath(file, repoRoot) {
|
|
12
13
|
if (!repoRoot || !isAbsolute(file))
|
|
13
|
-
return file
|
|
14
|
-
return relative(repoRoot, file)
|
|
14
|
+
return posixPath(file);
|
|
15
|
+
return posixPath(relative(repoRoot, file));
|
|
15
16
|
}
|
|
16
17
|
//# sourceMappingURL=owner-utils.js.map
|
package/dist/owner-utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"owner-utils.js","sourceRoot":"","sources":["../src/owner-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"owner-utils.js","sourceRoot":"","sources":["../src/owner-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC;;;;;;;;GAQG;AACH,MAAM,UAAU,kBAAkB,CAAC,IAAY,EAAE,QAAiB;IAChE,IAAI,CAAC,QAAQ,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QAAE,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IAC3D,OAAO,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;AAC7C,CAAC"}
|
package/dist/posix.d.ts
ADDED
package/dist/posix.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"posix.js","sourceRoot":"","sources":["../src/posix.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,UAAU,SAAS,CAAC,CAAS;IACjC,OAAO,CAAC,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AACjC,CAAC"}
|
package/dist/via-types.d.ts
CHANGED
|
@@ -44,9 +44,11 @@ export type OccurrenceVia = {
|
|
|
44
44
|
specifier: string;
|
|
45
45
|
import: string;
|
|
46
46
|
} | {
|
|
47
|
-
kind: "
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
kind: "passed-as-argument";
|
|
48
|
+
callee: string;
|
|
49
|
+
index: number;
|
|
50
|
+
specifier: string;
|
|
51
|
+
import: string;
|
|
50
52
|
} | {
|
|
51
53
|
kind: "prop-forward";
|
|
52
54
|
bindingName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@component-compass/plugin-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
"./logical-id": {
|
|
13
13
|
"types": "./dist/logical-id.d.ts",
|
|
14
14
|
"import": "./dist/logical-id.js"
|
|
15
|
+
},
|
|
16
|
+
"./id": {
|
|
17
|
+
"types": "./dist/id.d.ts",
|
|
18
|
+
"import": "./dist/id.js"
|
|
15
19
|
}
|
|
16
20
|
},
|
|
17
21
|
"files": [
|