mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-24 15:07:17 +00:00
move location of PuterClient and rename to networkUtils
This commit is contained in:
@@ -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
-1
@@ -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,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,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,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,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,4 +1,4 @@
|
||||
import { fetchUrl } from '../lib/PuterClient.js';
|
||||
import { fetchUrl } from '../lib/networkUtils.js';
|
||||
|
||||
class FetchDriverCallBackend {
|
||||
constructor ({ getAPIOrigin, getAuthToken }) {
|
||||
|
||||
@@ -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,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,4 +1,4 @@
|
||||
import { fetchUrl } from '../lib/PuterClient.js';
|
||||
import { fetchUrl } from '../lib/networkUtils.js';
|
||||
|
||||
class PuterPeerServerConnectionEvent extends Event {
|
||||
conn;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user