@account-kit/plugingen 4.0.0-alpha.0 → 4.0.0-alpha.10

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":"findConfig.js","sourceRoot":"","sources":["../../../src/utils/findConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAIhC,MAAM,WAAW,GAAG;IAClB,qBAAqB;IACrB,qBAAqB;IACrB,sBAAsB;IACtB,sBAAsB;CACvB,CAAC;AAeF,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,aAAmC,EAAE;IACpE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC;IACpC,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAC/C,IAAI,MAAM,EAAE,CAAC;QACX,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACtC,IAAI,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAC;QACzC,OAAO;IACT,CAAC;IACD,OAAO,MAAM,CAAC,WAAW,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;AAC/C,CAAC","sourcesContent":["// source: https://github.com/wevm/wagmi/blob/main/packages/cli/src/utils/findConfig.ts\nimport { findUp } from \"find-up\";\nimport { default as fs } from \"fs-extra\";\nimport { resolve } from \"pathe\";\n\n// Do not reorder\n// In order of preference files are checked\nconst configFiles = [\n \"plugingen.config.ts\",\n \"plugingen.config.js\",\n \"plugingen.config.mjs\",\n \"plugingen.config.mts\",\n];\n\ntype FindConfigParameters = {\n /** Config file name */\n config?: string;\n /** Config file directory */\n root?: string;\n};\n\n/**\n * Resolves path to plugingen CLI config file.\n *\n * @param parameters - optional override parameters for finding the config object\n * @returns the path to the config file\n */\nexport async function findConfig(parameters: FindConfigParameters = {}) {\n const { config, root } = parameters;\n const rootDir = resolve(root || process.cwd());\n if (config) {\n const path = resolve(rootDir, config);\n if (fs.pathExistsSync(path)) return path;\n return;\n }\n return findUp(configFiles, { cwd: rootDir });\n}\n"]}
1
+ {"version":3,"file":"findConfig.js","sourceRoot":"","sources":["../../../src/utils/findConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,OAAO,IAAI,EAAE,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAIhC,MAAM,WAAW,GAAG;IAClB,qBAAqB;IACrB,qBAAqB;IACrB,sBAAsB;IACtB,sBAAsB;CACvB,CAAC;AAeF,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,aAAmC,EAAE;IACpE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC;IACpC,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IAC/C,IAAI,MAAM,EAAE,CAAC;QACX,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACtC,IAAI,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAC;QACzC,OAAO;IACT,CAAC;IACD,OAAO,MAAM,CAAC,WAAW,EAAE,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC;AAC/C,CAAC","sourcesContent":["// source: https://github.com/wevm/wagmi/blob/main/packages/cli/src/utils/findConfig.ts\nimport { findUp } from \"find-up\";\nimport { default as fs } from \"fs-extra\";\nimport { resolve } from \"pathe\";\n\n// Do not reorder\n// In order of preference files are checked\nconst configFiles = [\n \"plugingen.config.ts\",\n \"plugingen.config.js\",\n \"plugingen.config.mjs\",\n \"plugingen.config.mts\",\n];\n\ntype FindConfigParameters = {\n /** Config file name */\n config?: string;\n /** Config file directory */\n root?: string;\n};\n\n/**\n * Resolves path to plugingen CLI config file.\n *\n * @param {FindConfigParameters | undefined} parameters - optional override parameters for finding the config object\n * @returns {string} the path to the config file\n */\nexport async function findConfig(parameters: FindConfigParameters = {}) {\n const { config, root } = parameters;\n const rootDir = resolve(root || process.cwd());\n if (config) {\n const path = resolve(rootDir, config);\n if (fs.pathExistsSync(path)) return path;\n return;\n }\n return findUp(configFiles, { cwd: rootDir });\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"resolveConfig.js","sourceRoot":"","sources":["../../../src/utils/resolveConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAe/C,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,UAAmC;IAEnC,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC;IAClC,MAAM,GAAG,GAAG,MAAM,aAAa,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,CAAC;IAC1D,IAAI,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC;IAC7B,IAAI,MAAM,CAAC,OAAO;QAAE,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC;IAC5C,IAAI,OAAO,MAAM,KAAK,UAAU;QAAE,OAAO,MAAM,CAAC;IAChD,OAAO,MAAM,MAAM,EAAE,CAAC;AACxB,CAAC","sourcesContent":["import { bundleRequire } from \"bundle-require\";\nimport type { Config } from \"../config\";\nimport type { MaybeArray } from \"../types\";\n\ntype ResolveConfigParameters = {\n /** Path to config file */\n configPath: string;\n};\n\n/**\n * Bundles and returns config object from path.\n *\n * @param parameters - Parameters to resolve config\n * @returns an array of the config objects\n */\nexport async function resolveConfig(\n parameters: ResolveConfigParameters\n): Promise<MaybeArray<Config>> {\n const { configPath } = parameters;\n const res = await bundleRequire({ filepath: configPath });\n let config = res.mod.default;\n if (config.default) config = config.default;\n if (typeof config !== \"function\") return config;\n return await config();\n}\n"]}
1
+ {"version":3,"file":"resolveConfig.js","sourceRoot":"","sources":["../../../src/utils/resolveConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAe/C,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,UAAmC;IAEnC,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC;IAClC,MAAM,GAAG,GAAG,MAAM,aAAa,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,CAAC;IAC1D,IAAI,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC;IAC7B,IAAI,MAAM,CAAC,OAAO;QAAE,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC;IAC5C,IAAI,OAAO,MAAM,KAAK,UAAU;QAAE,OAAO,MAAM,CAAC;IAChD,OAAO,MAAM,MAAM,EAAE,CAAC;AACxB,CAAC","sourcesContent":["import { bundleRequire } from \"bundle-require\";\nimport type { Config } from \"../config\";\nimport type { MaybeArray } from \"../types\";\n\ntype ResolveConfigParameters = {\n /** Path to config file */\n configPath: string;\n};\n\n/**\n * Bundles and returns config object from path.\n *\n * @param {ResolveConfigParameters} parameters - Parameters to resolve config\n * @returns {Promise<MaybeArray<Config>>} an array of the config objects\n */\nexport async function resolveConfig(\n parameters: ResolveConfigParameters\n): Promise<MaybeArray<Config>> {\n const { configPath } = parameters;\n const res = await bundleRequire({ filepath: configPath });\n let config = res.mod.default;\n if (config.default) config = config.default;\n if (typeof config !== \"function\") return config;\n return await config();\n}\n"]}
@@ -1 +1 @@
1
- export declare const VERSION = "4.0.0-alpha.0";
1
+ export declare const VERSION = "4.0.0-alpha.10";
@@ -1,2 +1,2 @@
1
- export const VERSION = "4.0.0-alpha.0";
1
+ export const VERSION = "4.0.0-alpha.10";
2
2
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"4.0.0-alpha.0\";\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC","sourcesContent":["// This file is autogenerated by inject-version.ts. Any changes will be\n// overwritten on commit!\nexport const VERSION = \"4.0.0-alpha.10\";\n"]}
@@ -7,8 +7,8 @@ type FindConfigParameters = {
7
7
  /**
8
8
  * Resolves path to plugingen CLI config file.
9
9
  *
10
- * @param parameters - optional override parameters for finding the config object
11
- * @returns the path to the config file
10
+ * @param {FindConfigParameters | undefined} parameters - optional override parameters for finding the config object
11
+ * @returns {string} the path to the config file
12
12
  */
13
13
  export declare function findConfig(parameters?: FindConfigParameters): Promise<string | undefined>;
14
14
  export {};
@@ -7,8 +7,8 @@ type ResolveConfigParameters = {
7
7
  /**
8
8
  * Bundles and returns config object from path.
9
9
  *
10
- * @param parameters - Parameters to resolve config
11
- * @returns an array of the config objects
10
+ * @param {ResolveConfigParameters} parameters - Parameters to resolve config
11
+ * @returns {Promise<MaybeArray<Config>>} an array of the config objects
12
12
  */
13
13
  export declare function resolveConfig(parameters: ResolveConfigParameters): Promise<MaybeArray<Config>>;
14
14
  export {};
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.0.0-alpha.0";
1
+ export declare const VERSION = "4.0.0-alpha.10";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,mBAAmB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@account-kit/plugingen",
3
- "version": "4.0.0-alpha.0",
3
+ "version": "4.0.0-alpha.10",
4
4
  "description": "A CLI tool that enables you to generate TS code for your ERC-6900 plugins",
5
5
  "author": "Alchemy",
6
6
  "license": "MIT",
@@ -45,7 +45,7 @@
45
45
  "@types/fs-extra": "^11.0.4",
46
46
  "typescript": "^5.0.4",
47
47
  "typescript-template": "*",
48
- "vitest": "^0.31.0"
48
+ "vitest": "^2.0.4"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public",
@@ -60,7 +60,7 @@
60
60
  },
61
61
  "homepage": "https://github.com/alchemyplatform/aa-sdk#readme",
62
62
  "dependencies": {
63
- "@aa-sdk/core": "^4.0.0-alpha.0",
63
+ "@aa-sdk/core": "^4.0.0-alpha.10",
64
64
  "bundle-require": "^4.0.2",
65
65
  "cac": "^6.7.14",
66
66
  "change-case": "^5.4.3",
@@ -79,5 +79,5 @@
79
79
  "peerDependencies": {
80
80
  "viem": "2.8.6"
81
81
  },
82
- "gitHead": "bd1788c2bd7f28ba762a06c649f30b544f8bade9"
82
+ "gitHead": "e3446b95cdee38c248f336857b24f78a32694076"
83
83
  }
@@ -22,8 +22,8 @@ type FindConfigParameters = {
22
22
  /**
23
23
  * Resolves path to plugingen CLI config file.
24
24
  *
25
- * @param parameters - optional override parameters for finding the config object
26
- * @returns the path to the config file
25
+ * @param {FindConfigParameters | undefined} parameters - optional override parameters for finding the config object
26
+ * @returns {string} the path to the config file
27
27
  */
28
28
  export async function findConfig(parameters: FindConfigParameters = {}) {
29
29
  const { config, root } = parameters;
@@ -10,8 +10,8 @@ type ResolveConfigParameters = {
10
10
  /**
11
11
  * Bundles and returns config object from path.
12
12
  *
13
- * @param parameters - Parameters to resolve config
14
- * @returns an array of the config objects
13
+ * @param {ResolveConfigParameters} parameters - Parameters to resolve config
14
+ * @returns {Promise<MaybeArray<Config>>} an array of the config objects
15
15
  */
16
16
  export async function resolveConfig(
17
17
  parameters: ResolveConfigParameters
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // This file is autogenerated by inject-version.ts. Any changes will be
2
2
  // overwritten on commit!
3
- export const VERSION = "4.0.0-alpha.0";
3
+ export const VERSION = "4.0.0-alpha.10";