@txstate-mws/sveltekit-utils 1.2.0 → 1.2.1

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/api.d.ts CHANGED
@@ -2,7 +2,7 @@ import type { InteractionEvent, ValidatedResponse } from '@txstate-mws/fastify-s
2
2
  export type APIBaseQueryPayload = string | Record<string, undefined | string | number | (string | number)[]>;
3
3
  type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
4
4
  export interface APIUploadInfo {
5
- __type: 'APIUploadInfo';
5
+ _type: 'APIUploadInfo';
6
6
  multipartIndex: number;
7
7
  name: string;
8
8
  mime: string;
package/dist/api.js CHANGED
@@ -41,7 +41,7 @@ function replaceFiles(variables, files) {
41
41
  if (val instanceof File) {
42
42
  files.push(val);
43
43
  newVariables ??= { ...variables };
44
- newVariables[key] = { __type: 'APIUploadInfo', multipartIndex: files.length - 1, name: val.name, mime: val.type, size: val.size };
44
+ newVariables[key] = { _type: 'APIUploadInfo', multipartIndex: files.length - 1, name: val.name, mime: val.type, size: val.size };
45
45
  }
46
46
  else if (val instanceof Object) {
47
47
  const newVal = replaceFiles(val, files);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@txstate-mws/sveltekit-utils",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Shared library for code that is specifically tied to sveltekit in addition to svelte.",
5
5
  "type": "module",
6
6
  "exports": {