@intentius/chant-lexicon-aws 0.41.0 → 0.41.4
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/components/capability-plugin.d.ts +1 -1
- package/dist/components/capability-plugin.d.ts.map +1 -1
- package/dist/generated/index.d.ts +31 -3
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/integrity.json +4 -4
- package/dist/manifest.json +1 -1
- package/dist/meta.json +266 -29
- package/dist/spec/fetch.d.ts +27 -1
- package/dist/spec/fetch.d.ts.map +1 -1
- package/dist/spec/pinned-types.json +2 -0
- package/dist/types/index.d.ts +358 -25
- package/package.json +2 -2
- package/src/components/capability-plugin.test.ts +19 -0
- package/src/components/capability-plugin.ts +5 -2
- package/src/generated/index.d.ts +358 -25
- package/src/generated/index.ts +34 -6
- package/src/generated/lexicon-aws.json +266 -29
- package/src/spec/fetch.test.ts +101 -1
- package/src/spec/fetch.ts +144 -4
- package/src/spec/pin.ts +3 -3
- package/src/spec/pinned-types.json +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-aws",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.4",
|
|
4
4
|
"description": "AWS CloudFormation lexicon for chant — declarative IaC in TypeScript",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://intentius.io/chant",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"typescript": "^5.9.3"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@intentius/chant": "^0.41.
|
|
83
|
+
"@intentius/chant": "^0.41.4",
|
|
84
84
|
"typescript": "^5.9.3"
|
|
85
85
|
}
|
|
86
86
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { describe, test, expect } from "vitest";
|
|
2
|
+
import { awsCapabilityPlugin } from "./capability-plugin";
|
|
3
|
+
import { isCapabilityPlugin } from "@intentius/chant/components/capability-plugin";
|
|
4
|
+
import { readFileSync } from "node:fs";
|
|
5
|
+
|
|
6
|
+
describe("awsCapabilityPlugin", () => {
|
|
7
|
+
test("satisfies the CapabilityPlugin contract", () => {
|
|
8
|
+
expect(isCapabilityPlugin(awsCapabilityPlugin)).toBe(true);
|
|
9
|
+
expect(awsCapabilityPlugin.capabilities().map((c) => c.kind)).toContain("cfn-deploy");
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
test("the plugin's version is the lexicon package's own, not a literal (#1505)", () => {
|
|
13
|
+
const { version } = JSON.parse(
|
|
14
|
+
readFileSync(new URL("../../package.json", import.meta.url), "utf-8"),
|
|
15
|
+
) as { version: string };
|
|
16
|
+
expect(awsCapabilityPlugin.version).toBe(version);
|
|
17
|
+
expect(awsCapabilityPlugin.version).not.toBe("1.0.0");
|
|
18
|
+
});
|
|
19
|
+
});
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import type { Capability } from "@intentius/chant/components/capability";
|
|
12
|
-
import type
|
|
12
|
+
import { ownPackageVersion, type CapabilityPlugin } from "@intentius/chant/components/capability-plugin";
|
|
13
13
|
|
|
14
14
|
import { publishImageCapability, loadImageOnHostCapability, publishArtifactCapability } from "./publish";
|
|
15
15
|
import { extractConfigBomCapability } from "./config-bom";
|
|
@@ -67,7 +67,10 @@ function awsCapabilities(): Array<Capability<never, unknown>> {
|
|
|
67
67
|
/** The aws lexicon's capability plugin — loaded by core when a project's `chant.config.ts` lists `lexicons: ["aws"]`. */
|
|
68
68
|
export const awsCapabilityPlugin: CapabilityPlugin = {
|
|
69
69
|
name: "aws",
|
|
70
|
-
version
|
|
70
|
+
// The lexicon package's own version (#1505) — the "1.0.0" this shipped with
|
|
71
|
+
// was the starter plugin's literal, copied along in the #681 extraction and
|
|
72
|
+
// never a real package version.
|
|
73
|
+
version: ownPackageVersion(import.meta.url),
|
|
71
74
|
capabilities: awsCapabilities,
|
|
72
75
|
families: () => AWS_VERB_FAMILIES,
|
|
73
76
|
};
|