opencode-copilot-account-switcher 0.14.33 → 0.14.34

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.
@@ -5,6 +5,7 @@ type JitiResolve = (specifier: string) => string;
5
5
  type JitiNamespace = {
6
6
  createJiti?: unknown;
7
7
  default?: unknown;
8
+ "module.exports"?: unknown;
8
9
  };
9
10
  export declare function resolveCreateJiti(namespace: JitiNamespace): CreateJiti;
10
11
  export declare function resolveJitiEsmEntry(resolveImpl?: JitiResolve): string;
@@ -14,6 +14,9 @@ export function resolveCreateJiti(namespace) {
14
14
  if (isCreateJiti(namespace.default)) {
15
15
  return namespace.default;
16
16
  }
17
+ if (isCreateJiti(namespace["module.exports"])) {
18
+ return namespace["module.exports"];
19
+ }
17
20
  if (namespace.default &&
18
21
  typeof namespace.default === "object" &&
19
22
  isCreateJiti(namespace.default.createJiti)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-copilot-account-switcher",
3
- "version": "0.14.33",
3
+ "version": "0.14.34",
4
4
  "description": "GitHub Copilot account switcher plugin for OpenCode",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",