@codama/renderers-rust 1.0.3 → 1.0.5
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/README.md +4 -4
- package/dist/index.node.cjs +15 -12
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.mjs +16 -13
- package/dist/index.node.mjs.map +1 -1
- package/dist/templates/instructionsPage.njk +2 -7
- package/dist/types/getRenderMapVisitor.d.ts.map +1 -1
- package/dist/types/utils/traitOptions.d.ts +3 -3
- package/dist/types/utils/traitOptions.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccountNode, DefinedTypeNode } from '@codama/nodes';
|
|
1
|
+
import { AccountNode, DefinedTypeNode, InstructionNode } from '@codama/nodes';
|
|
2
2
|
import { ImportMap } from '../ImportMap';
|
|
3
3
|
export type TraitOptions = {
|
|
4
4
|
/** The default traits to implement for all types. */
|
|
@@ -27,12 +27,12 @@ export type TraitOptions = {
|
|
|
27
27
|
useFullyQualifiedName?: boolean;
|
|
28
28
|
};
|
|
29
29
|
export declare const DEFAULT_TRAIT_OPTIONS: Required<TraitOptions>;
|
|
30
|
-
export type GetTraitsFromNodeFunction = (node: AccountNode | DefinedTypeNode) => {
|
|
30
|
+
export type GetTraitsFromNodeFunction = (node: AccountNode | DefinedTypeNode | InstructionNode) => {
|
|
31
31
|
imports: ImportMap;
|
|
32
32
|
render: string;
|
|
33
33
|
};
|
|
34
34
|
export declare function getTraitsFromNodeFactory(options?: TraitOptions): GetTraitsFromNodeFunction;
|
|
35
|
-
export declare function getTraitsFromNode(node: AccountNode | DefinedTypeNode, userOptions?: TraitOptions): {
|
|
35
|
+
export declare function getTraitsFromNode(node: AccountNode | DefinedTypeNode | InstructionNode, userOptions?: TraitOptions): {
|
|
36
36
|
imports: ImportMap;
|
|
37
37
|
render: string;
|
|
38
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"traitOptions.d.ts","sourceRoot":"","sources":["../../../src/utils/traitOptions.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"traitOptions.d.ts","sourceRoot":"","sources":["../../../src/utils/traitOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EAGX,eAAe,EACf,eAAe,EAGlB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG;IACvB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACxC,sDAAsD;IACtD,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACrC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,sFAAsF;IACtF,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,4FAA4F;IAC5F,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,YAAY,CAiBxD,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,CAAC,IAAI,EAAE,WAAW,GAAG,eAAe,GAAG,eAAe,KAAK;IAC/F,OAAO,EAAE,SAAS,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,wBAAgB,wBAAwB,CAAC,OAAO,GAAE,YAAiB,GAAG,yBAAyB,CAE9F;AAED,wBAAgB,iBAAiB,CAC7B,IAAI,EAAE,WAAW,GAAG,eAAe,GAAG,eAAe,EACrD,WAAW,GAAE,YAAiB,GAC/B;IAAE,OAAO,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAqCxC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codama/renderers-rust",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Renders Rust clients for your programs",
|
|
5
5
|
"exports": {
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@solana/codecs-strings": "rc",
|
|
32
32
|
"nunjucks": "^3.2.4",
|
|
33
|
-
"@codama/
|
|
34
|
-
"@codama/
|
|
35
|
-
"@codama/
|
|
36
|
-
"@codama/visitors-core": "1.
|
|
33
|
+
"@codama/errors": "1.2.0",
|
|
34
|
+
"@codama/nodes": "1.2.0",
|
|
35
|
+
"@codama/renderers-core": "1.0.2",
|
|
36
|
+
"@codama/visitors-core": "1.2.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/nunjucks": "^3.2.6"
|