Skip to content

Commit

Permalink
server: rename fetch helper
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Sep 20, 2023
1 parent 2592a7c commit 6b9163e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
2 changes: 1 addition & 1 deletion server/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import tar from 'tar';
import { URL } from "url";
import WebSocket, { Server as WebSocketServer } from "ws";
import { Plugin, PluginDevice, ScryptedAlert, ScryptedUser } from './db-types';
import { fetchBuffer, getNpmPackageInfo } from './fetch-helpers';
import { fetchBuffer, getNpmPackageInfo } from './http-fetch-helpers';
import { createResponseInterface } from './http-interfaces';
import { getDisplayName, getDisplayRoom, getDisplayType, getProvidedNameOrDefault, getProvidedRoomOrDefault, getProvidedTypeOrDefault } from './infer-defaults';
import { IOServer } from './io';
Expand Down
2 changes: 1 addition & 1 deletion server/src/scrypted-server-main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { sleep } from './sleep';
import { ONE_DAY_MILLISECONDS, UserToken } from './usertoken';
import { once } from 'events';
import util from 'util';
import { getNpmPackageInfo } from './fetch-helpers';
import { getNpmPackageInfo } from './http-fetch-helpers';

export type Runtime = ScryptedRuntime;

Expand Down
2 changes: 1 addition & 1 deletion server/src/services/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ScryptedInterfaceProperty, ScryptedNativeId } from "@scrypted/types";
import semver from 'semver';
import { Plugin } from '../db-types';
import { getNpmPackageInfo } from "../fetch-helpers";
import { getNpmPackageInfo } from "../http-fetch-helpers";
import { hasMixinCycle } from "../mixin/mixin-cycle";
import { ScryptedRuntime } from "../runtime";
import { sleep } from "../sleep";
Expand Down
2 changes: 1 addition & 1 deletion server/src/services/service-control.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'fs';
import { fetchJSON } from "../fetch-helpers";
import { fetchJSON } from "../http-fetch-helpers";
import { ScryptedRuntime } from "../runtime";

export class ServiceControl {
Expand Down

0 comments on commit 6b9163e

Please sign in to comment.