@geekmidas/testkit 0.3.1 → 0.4.0

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,4 +1,4 @@
1
- import { FakerFactory } from "./faker-Cg76aFNO.cjs";
1
+ import { FakerFactory } from "./faker-DvxiCtxc.cjs";
2
2
 
3
3
  //#region src/Factory.d.ts
4
4
 
@@ -143,4 +143,4 @@ type ExtractSeedAttrs<T> = T extends ((context: {
143
143
  }) => any) ? A : never;
144
144
  //#endregion
145
145
  export { ExtractSeedAttrs, Factory, FactorySeed, MixedFactoryBuilder };
146
- //# sourceMappingURL=Factory-BK06XuDA.d.cts.map
146
+ //# sourceMappingURL=Factory-c16c27Y6.d.cts.map
@@ -1,3 +1,3 @@
1
- import "./faker-Cg76aFNO.cjs";
2
- import { ExtractSeedAttrs, Factory, FactorySeed, MixedFactoryBuilder } from "./Factory-BK06XuDA.cjs";
1
+ import "./faker-DvxiCtxc.cjs";
2
+ import { ExtractSeedAttrs, Factory, FactorySeed, MixedFactoryBuilder } from "./Factory-c16c27Y6.cjs";
3
3
  export { ExtractSeedAttrs, Factory, FactorySeed, MixedFactoryBuilder };
@@ -1,5 +1,5 @@
1
- import { FakerFactory } from "./faker-Cg76aFNO.cjs";
2
- import { ExtractSeedAttrs, Factory, FactorySeed } from "./Factory-BK06XuDA.cjs";
1
+ import { FakerFactory } from "./faker-DvxiCtxc.cjs";
2
+ import { ExtractSeedAttrs, Factory, FactorySeed } from "./Factory-c16c27Y6.cjs";
3
3
  import { ControlledTransaction, Insertable, Kysely, Selectable } from "kysely";
4
4
 
5
5
  //#region src/KyselyFactory.d.ts
@@ -224,4 +224,4 @@ declare class KyselyFactory<DB, Builders extends Record<string, any>, Seeds exte
224
224
  }
225
225
  //#endregion
226
226
  export { KyselyFactory };
227
- //# sourceMappingURL=KyselyFactory-Bu9ssWZP.d.cts.map
227
+ //# sourceMappingURL=KyselyFactory-uZ45h7YU.d.cts.map
@@ -1,4 +1,4 @@
1
- import "./faker-Cg76aFNO.cjs";
2
- import "./Factory-BK06XuDA.cjs";
3
- import { KyselyFactory } from "./KyselyFactory-Bu9ssWZP.cjs";
1
+ import "./faker-DvxiCtxc.cjs";
2
+ import "./Factory-c16c27Y6.cjs";
3
+ import { KyselyFactory } from "./KyselyFactory-uZ45h7YU.cjs";
4
4
  export { KyselyFactory };
@@ -1,5 +1,5 @@
1
- import { FakerFactory } from "./faker-Cg76aFNO.cjs";
2
- import { ExtractSeedAttrs, Factory, FactorySeed } from "./Factory-BK06XuDA.cjs";
1
+ import { FakerFactory } from "./faker-DvxiCtxc.cjs";
2
+ import { ExtractSeedAttrs, Factory, FactorySeed } from "./Factory-c16c27Y6.cjs";
3
3
  import { Knex } from "knex";
4
4
  import { Model } from "objection";
5
5
 
@@ -237,4 +237,4 @@ declare class ObjectionFactory<Builders extends Record<string, any>, Seeds exten
237
237
  }
238
238
  //#endregion
239
239
  export { ObjectionFactory };
240
- //# sourceMappingURL=ObjectionFactory-tKWZOiYO.d.cts.map
240
+ //# sourceMappingURL=ObjectionFactory-CdhzKs4f.d.cts.map
@@ -1,4 +1,4 @@
1
- import "./faker-Cg76aFNO.cjs";
2
- import "./Factory-BK06XuDA.cjs";
3
- import { ObjectionFactory } from "./ObjectionFactory-tKWZOiYO.cjs";
1
+ import "./faker-DvxiCtxc.cjs";
2
+ import "./Factory-c16c27Y6.cjs";
3
+ import { ObjectionFactory } from "./ObjectionFactory-CdhzKs4f.cjs";
4
4
  export { ObjectionFactory };
@@ -1,4 +1,4 @@
1
- import * as better_auth_adapters0 from "better-auth/adapters";
1
+ import * as better_auth_adapters3 from "better-auth/adapters";
2
2
  import { DBAdapterDebugLogOption } from "better-auth/adapters";
3
3
 
4
4
  //#region src/better-auth.d.ts
@@ -7,7 +7,7 @@ interface MemoryAdapterConfig {
7
7
  usePlural?: boolean;
8
8
  initialData?: Record<string, any[]>;
9
9
  }
10
- declare const memoryAdapter: (config?: MemoryAdapterConfig, store?: Map<any, any>) => better_auth_adapters0.AdapterFactory & {
10
+ declare const memoryAdapter: (config?: MemoryAdapterConfig, store?: Map<any, any>) => better_auth_adapters3.AdapterFactory & {
11
11
  clear: () => void;
12
12
  getAllData: () => Record<string, any[]>;
13
13
  getStore: () => Map<any, any>;
@@ -9,4 +9,4 @@ interface DirectoryFixtures {
9
9
  }
10
10
  //#endregion
11
11
  export { DirectoryFixtures, itWithDir };
12
- //# sourceMappingURL=directory-DlkPEzL4.d.cts.map
12
+ //# sourceMappingURL=directory-BXavAeJZ.d.mts.map
@@ -9,4 +9,4 @@ interface DirectoryFixtures {
9
9
  }
10
10
  //#endregion
11
11
  export { DirectoryFixtures, itWithDir };
12
- //# sourceMappingURL=directory-BPf1LgNX.d.mts.map
12
+ //# sourceMappingURL=directory-Mi7tdOuD.d.cts.map
@@ -1,4 +1,4 @@
1
- import * as _faker_js_faker1 from "@faker-js/faker";
1
+ import * as _faker_js_faker2 from "@faker-js/faker";
2
2
 
3
3
  //#region src/faker.d.ts
4
4
 
@@ -134,7 +134,7 @@ declare function coordinateOutsideRadius(center: Coordinate, minRadiusMeters: nu
134
134
  * const productPrice = faker.price();
135
135
  * ```
136
136
  */
137
- declare const faker: Readonly<_faker_js_faker1.Faker & {
137
+ declare const faker: Readonly<_faker_js_faker2.Faker & {
138
138
  timestamps: typeof timestamps;
139
139
  identifier: typeof identifier;
140
140
  sequence: typeof sequence;
@@ -163,4 +163,4 @@ type Timestamps = {
163
163
  type FakerFactory = typeof faker;
164
164
  //#endregion
165
165
  export { FakerFactory, Timestamps, coordinateInRadius, faker, identifier, resetAllSequences, resetSequence, sequence, timestamps };
166
- //# sourceMappingURL=faker-Cg76aFNO.d.cts.map
166
+ //# sourceMappingURL=faker-DvxiCtxc.d.cts.map
package/dist/faker.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { FakerFactory, Timestamps, coordinateInRadius, faker, identifier, resetAllSequences, resetSequence, sequence, timestamps } from "./faker-Cg76aFNO.cjs";
1
+ import { FakerFactory, Timestamps, coordinateInRadius, faker, identifier, resetAllSequences, resetSequence, sequence, timestamps } from "./faker-DvxiCtxc.cjs";
2
2
  export { FakerFactory, Timestamps, coordinateInRadius, faker, identifier, resetAllSequences, resetSequence, sequence, timestamps };
package/dist/kysely.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- import { FakerFactory, faker } from "./faker-Cg76aFNO.cjs";
2
- import { ExtractSeedAttrs, FactorySeed } from "./Factory-BK06XuDA.cjs";
3
- import { KyselyFactory } from "./KyselyFactory-Bu9ssWZP.cjs";
1
+ import { FakerFactory, faker } from "./faker-DvxiCtxc.cjs";
2
+ import { ExtractSeedAttrs, FactorySeed } from "./Factory-c16c27Y6.cjs";
3
+ import { KyselyFactory } from "./KyselyFactory-uZ45h7YU.cjs";
4
4
  import "./PostgresMigrator-D5UkK1_K.cjs";
5
5
  import { PostgresKyselyMigrator } from "./PostgresKyselyMigrator-CQ3aUoy_.cjs";
6
6
  import { DatabaseConnection, DatabaseFixtures, ExtendedDatabaseFixtures, FixtureCreators, IsolationLevel, TestWithExtendedFixtures, TransactionWrapperOptions } from "./VitestTransactionIsolator-CwQaxZLP.cjs";
@@ -1,6 +1,6 @@
1
- import { FakerFactory, faker } from "./faker-Cg76aFNO.cjs";
2
- import { ExtractSeedAttrs, FactorySeed } from "./Factory-BK06XuDA.cjs";
3
- import { ObjectionFactory } from "./ObjectionFactory-tKWZOiYO.cjs";
1
+ import { FakerFactory, faker } from "./faker-DvxiCtxc.cjs";
2
+ import { ExtractSeedAttrs, FactorySeed } from "./Factory-c16c27Y6.cjs";
3
+ import { ObjectionFactory } from "./ObjectionFactory-CdhzKs4f.cjs";
4
4
  import "./PostgresMigrator-D5UkK1_K.cjs";
5
5
  import { PostgresObjectionMigrator } from "./PostgresObjectionMigrator-CZHHcCOv.cjs";
6
6
  import { DatabaseConnection, DatabaseFixtures, ExtendedDatabaseFixtures, FixtureCreators, IsolationLevel, TestWithExtendedFixtures, TransactionWrapperOptions } from "./VitestTransactionIsolator-CwQaxZLP.cjs";
@@ -1,2 +1,2 @@
1
- import { DirectoryFixtures, itWithDir } from "../directory-DlkPEzL4.cjs";
1
+ import { DirectoryFixtures, itWithDir } from "../directory-Mi7tdOuD.cjs";
2
2
  export { DirectoryFixtures, itWithDir };
@@ -1,2 +1,2 @@
1
- import { DirectoryFixtures, itWithDir } from "../directory-BPf1LgNX.mjs";
1
+ import { DirectoryFixtures, itWithDir } from "../directory-BXavAeJZ.mjs";
2
2
  export { DirectoryFixtures, itWithDir };
@@ -1,2 +1,2 @@
1
- import { itWithDir } from "../directory-DlkPEzL4.cjs";
1
+ import { itWithDir } from "../directory-Mi7tdOuD.cjs";
2
2
  export { itWithDir };
@@ -1,2 +1,2 @@
1
- import { itWithDir } from "../directory-BPf1LgNX.mjs";
1
+ import { itWithDir } from "../directory-BXavAeJZ.mjs";
2
2
  export { itWithDir };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geekmidas/testkit",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {
@@ -51,11 +51,12 @@
51
51
  }
52
52
  },
53
53
  "dependencies": {
54
- "@faker-js/faker": "~9.9.0",
55
- "@geekmidas/logger": "0.1.0"
54
+ "@faker-js/faker": "~9.9.0"
56
55
  },
57
56
  "devDependencies": {
58
- "@types/pg": "~8.15.4"
57
+ "@types/pg": "~8.15.4",
58
+ "@geekmidas/logger": "^0.3.0",
59
+ "@geekmidas/envkit": "^0.2.0"
59
60
  },
60
61
  "repository": {
61
62
  "type": "git",
@@ -74,6 +75,39 @@
74
75
  "vitest": "~3.2.4",
75
76
  "@types/aws-lambda": ">=8.10.92",
76
77
  "better-auth": ">=1.3.34",
77
- "@geekmidas/envkit": "0.1.0"
78
+ "@geekmidas/envkit": "^0.2.0",
79
+ "@geekmidas/logger": "^0.3.0"
80
+ },
81
+ "peerDependenciesMeta": {
82
+ "@geekmidas/envkit": {
83
+ "optional": true
84
+ },
85
+ "@geekmidas/logger": {
86
+ "optional": true
87
+ },
88
+ "kysely": {
89
+ "optional": true
90
+ },
91
+ "pg": {
92
+ "optional": true
93
+ },
94
+ "knex": {
95
+ "optional": true
96
+ },
97
+ "objection": {
98
+ "optional": true
99
+ },
100
+ "db-errors": {
101
+ "optional": true
102
+ },
103
+ "vitest": {
104
+ "optional": true
105
+ },
106
+ "@types/aws-lambda": {
107
+ "optional": true
108
+ },
109
+ "better-auth": {
110
+ "optional": true
111
+ }
78
112
  }
79
113
  }