move location of PuterClient and rename to networkUtils

This commit is contained in:
Neal Shah
2026-07-22 18:18:52 -04:00
parent 5aeed62d22
commit 2e8a3219e3
14 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import kvjs from '@heyputer/kv.js';
import APICallLogger from './lib/APICallLogger.js';
import { fetchUrl } from './lib/PuterClient.js';
import { fetchUrl } from './lib/networkUtils.js';
import { isStoredTokenUsableForOrigin } from './lib/authTokenOrigin.js';
import path from './lib/path.js';
import localStorageMemory from './lib/polyfills/localStorage.js';
@@ -1,5 +1,5 @@
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { fetchUrl } from './PuterClient.js';
import { fetchUrl } from './networkUtils.js';
// -- Controllable fake XMLHttpRequest --
// Drives fetchUrl's event handlers deterministically. Each instance plays the
+1 -1
View File
@@ -1,5 +1,5 @@
import { FileReaderPoly } from './polyfills/fileReaderPoly.js';
import { resolveReauth } from './PuterClient.js';
import { resolveReauth } from './networkUtils.js';
import { showUsageLimitDialog } from '../modules/UsageLimitDialog.js';
import { showEmailConfirmationDialog } from '../modules/EmailConfirmationDialog.js';
+1 -1
View File
@@ -1,5 +1,5 @@
import * as utils from '../lib/utils.js';
import { fetchUrl } from '../lib/PuterClient.js';
import { fetchUrl } from '../lib/networkUtils.js';
import getAbsolutePathForApp from './FileSystem/utils/getAbsolutePathForApp.js';
const normalizeTTSProvider = (value) => {
+1 -1
View File
@@ -1,5 +1,5 @@
import * as utils from '../lib/utils.js';
import { fetchUrl } from '../lib/PuterClient.js';
import { fetchUrl } from '../lib/networkUtils.js';
class Apps {
/**
+1 -1
View File
@@ -1,5 +1,5 @@
import * as utils from '../lib/utils.js';
import { fetchUrl } from '../lib/PuterClient.js';
import { fetchUrl } from '../lib/networkUtils.js';
import PuterDialog from './PuterDialog.js';
import { hasUserActivation, openAuthPopup } from '../lib/auth-popup.js';
+1 -1
View File
@@ -1,4 +1,4 @@
import { fetchUrl } from '../lib/PuterClient.js';
import { fetchUrl } from '../lib/networkUtils.js';
class FetchDriverCallBackend {
constructor ({ getAPIOrigin, getAuthToken }) {
+1 -1
View File
@@ -1,4 +1,4 @@
import { fetchUrl } from '../../lib/PuterClient.js';
import { fetchUrl } from '../../lib/networkUtils.js';
export default puter => class Batch {
constructor () {
@@ -1,5 +1,5 @@
import path from '../../../lib/path.js';
import { fetchUrl } from '../../../lib/PuterClient.js';
import { fetchUrl } from '../../../lib/networkUtils.js';
import * as utils from '../../../lib/utils.js';
import { showUsageLimitDialog } from '../../../modules/UsageLimitDialog.js';
import getAbsolutePathForApp from '../utils/getAbsolutePathForApp.js';
+1 -1
View File
@@ -1,5 +1,5 @@
import * as utils from '../lib/utils.js';
import { fetchUrl } from '../lib/PuterClient.js';
import { fetchUrl } from '../lib/networkUtils.js';
const createDeferred = () => {
let resolve;
+1 -1
View File
@@ -1,4 +1,4 @@
import { fetchUrl } from '../lib/PuterClient.js';
import { fetchUrl } from '../lib/networkUtils.js';
class PuterPeerServerConnectionEvent extends Event {
conn;
+1 -1
View File
@@ -1,4 +1,4 @@
import { fetchUrl } from '../lib/PuterClient.js';
import { fetchUrl } from '../lib/networkUtils.js';
export default class Perms {
constructor (puter) {
@@ -1,5 +1,5 @@
import EventListener from '../../lib/EventListener.js';
import { fetchUrl } from '../../lib/PuterClient.js';
import { fetchUrl } from '../../lib/networkUtils.js';
import { errors } from './parsers.js';
import { PWispHandler } from './PWispHandler.js';
const texten = new TextEncoder();