@tscircuit/fake-snippets 0.0.146 → 0.0.147

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.js CHANGED
@@ -3890,9 +3890,16 @@ var initializer = combine(databaseSchema.parse({}), (set, get) => ({
3890
3890
  });
3891
3891
  }
3892
3892
  if (filters?.tscircuit_handle) {
3893
- orgs = orgs.filter(
3894
- (org) => org.tscircuit_handle === filters.tscircuit_handle
3893
+ const account = get().accounts.find(
3894
+ (account2) => account2.tscircuit_handle === filters.tscircuit_handle
3895
3895
  );
3896
+ orgs = orgs.filter((org) => {
3897
+ const orgAccount = get().orgAccounts.find(
3898
+ (oa) => oa.org_id === org.org_id && oa.account_id === account?.account_id
3899
+ );
3900
+ const isPersonalOrg = org.is_personal_org && org.owner_account_id === account?.account_id;
3901
+ return Boolean(orgAccount) || isPersonalOrg;
3902
+ });
3896
3903
  }
3897
3904
  if (filters?.name) {
3898
3905
  orgs = orgs.filter(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/fake-snippets",
3
- "version": "0.0.146",
3
+ "version": "0.0.147",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",