@m1212e/rumble 0.21.2 → 0.21.3
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/out/index.cjs +4 -5
- package/out/index.cjs.map +1 -1
- package/out/index.d.cts +10 -6
- package/out/index.d.cts.map +1 -1
- package/out/index.d.mts +10 -6
- package/out/index.d.mts.map +1 -1
- package/out/index.mjs +4 -5
- package/out/index.mjs.map +1 -1
- package/package.json +3 -4
package/out/index.cjs
CHANGED
|
@@ -208,7 +208,7 @@ function mapNullFieldsToUndefined(obj) {
|
|
|
208
208
|
}
|
|
209
209
|
//#endregion
|
|
210
210
|
//#region package.json
|
|
211
|
-
var version = "0.21.
|
|
211
|
+
var version = "0.21.3";
|
|
212
212
|
//#endregion
|
|
213
213
|
//#region lib/helpers/mergeFilters.ts
|
|
214
214
|
function mergeFilters(filterA, filterB, mode = "AND") {
|
|
@@ -814,10 +814,9 @@ const createEnumImplementer = ({ schema, schemaBuilder }) => {
|
|
|
814
814
|
}
|
|
815
815
|
if (!enumSchemaName || !enumValues) throw new RumbleError("Could not determine enum structure!");
|
|
816
816
|
const graphqlImplementationName = refName ?? `${(0, es_toolkit.capitalize)((0, drizzle_orm_casing.toCamelCase)(enumSchemaName))}Enum`;
|
|
817
|
-
|
|
818
|
-
if (
|
|
819
|
-
const
|
|
820
|
-
ret = implement();
|
|
817
|
+
const cached = referenceStorage.get(graphqlImplementationName);
|
|
818
|
+
if (cached) return cached;
|
|
819
|
+
const ret = schemaBuilder.enumType(graphqlImplementationName, { values: enumValues });
|
|
821
820
|
referenceStorage.set(graphqlImplementationName, ret);
|
|
822
821
|
return ret;
|
|
823
822
|
};
|