windmill-components 1.13.8 → 1.13.9

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/infer.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import type { Schema } from './common';
1
+ import type { Schema } from './common.js';
2
2
  export declare function inferArgs(language: 'python3' | 'deno', code: string, schema: Schema): Promise<void>;
package/infer.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ScriptService } from './gen/index.js';
2
- import { sendUserToast } from './utils';
2
+ import { sendUserToast } from './utils.js';
3
3
  export async function inferArgs(language, code, schema) {
4
4
  try {
5
5
  let inferedSchema;
package/logout.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { goto } from '$app/navigation';
2
- import { UserService } from './gen';
3
- import { clearStores } from './stores';
4
- import { sendUserToast } from './utils';
2
+ import { UserService } from './gen/index.js';
3
+ import { clearStores } from './stores.js';
4
+ import { sendUserToast } from './utils.js';
5
5
  export function logoutWithRedirect(rd) {
6
6
  const error = encodeURIComponent('You have been logged out because your session has expired.');
7
7
  goto(`/user/login?error=${error}${rd ? '&rd=' + encodeURIComponent(rd) : ''}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "windmill-components",
3
- "version": "1.13.8",
3
+ "version": "1.13.9",
4
4
  "devDependencies": {
5
5
  "@sveltejs/adapter-node": "^1.0.0-next.78",
6
6
  "@sveltejs/adapter-static": "^1.0.0-next.34",
package/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type User } from './gen/index.js';
2
- import { type UserExt } from './stores';
2
+ import { type UserExt } from './stores.js';
3
3
  export declare function isToday(someDate: Date): boolean;
4
4
  export declare function daysAgo(someDate: Date): number;
5
5
  export declare function secondsAgo(date: Date): number;
package/utils.js CHANGED
@@ -2,8 +2,8 @@
2
2
  import { toast } from '@zerodevx/svelte-toast';
3
3
  import { get } from 'svelte/store';
4
4
  import { ScriptService, UserService } from './gen/index.js';
5
- import { inferArgs } from './infer';
6
- import { superadmin, workspaceStore } from './stores';
5
+ import { inferArgs } from './infer.js';
6
+ import { superadmin, workspaceStore } from './stores.js';
7
7
  export function isToday(someDate) {
8
8
  const today = new Date();
9
9
  return (someDate.getDate() == today.getDate() &&