penambahan web socket

This commit is contained in:
2025-09-18 19:01:22 +07:00
parent 1d053646a9
commit d7bb2eb5bb
15070 changed files with 2402916 additions and 0 deletions

No files matched your search

@@ -0,0 +1,6 @@
// https://github.com/lquixada/cross-fetch
export declare const fetch: unknown;
export default fetch;
export declare const Headers: unknown;
export declare const Request: unknown;
export declare const Response: unknown;
@@ -0,0 +1,6 @@
// https://github.com/lquixada/cross-fetch
export const fetch = (...args) => globalThis.fetch(...args);
export default fetch;
export const Headers = globalThis.Headers;
export const Request = globalThis.Request;
export const Response = globalThis.Response;
@@ -0,0 +1,21 @@
declare const debug: unknown;
export declare const coerce: unknown;
export declare const disable: unknown;
export declare const enable: unknown;
export declare const enabled: unknown;
export declare const extend: unknown;
export declare const humanize: unknown;
export declare const destroy: unknown;
export declare const init: unknown;
export declare const log: unknown;
export declare const formatArgs: unknown;
export declare const save: unknown;
export declare const load: unknown;
export declare const useColors: unknown;
export declare const colors: unknown;
export declare const inspectOpts: {};
export declare const names: unknown;
export declare const skips: unknown;
export declare const formatters: {};
export declare const selectColors: unknown;
export default debug;
@@ -0,0 +1,45 @@
// https://www.npmjs.com/package/debug
const noop = () => {};
const debug = () => console.debug;
export const coerce = noop;
export const disable = noop;
export const enable = noop;
export const enabled = noop;
export const extend = debug;
export const humanize = noop;
export const destroy = noop;
export const init = noop;
export const log = console.debug;
export const formatArgs = noop;
export const save = noop;
export const load = noop;
export const useColors = noop;
export const colors = [];
export const inspectOpts = {};
export const names = [];
export const skips = [];
export const formatters = {};
export const selectColors = noop;
Object.assign(debug, {
default: debug,
coerce,
disable,
enable,
enabled,
extend,
humanize,
destroy,
init,
log,
formatArgs,
save,
load,
useColors,
colors,
inspectOpts,
names,
skips,
formatters,
selectColors
});
export default debug;
@@ -0,0 +1,16 @@
// https://www.npmjs.com/package/fsevents
declare const _default: {
watch(_dir: string, _cb: (...args: any[]) => any);
getInfo(path: string, _flags: number, _id: string): {
event: string;
type: string;
flags: number;
changes: {
inode: boolean;
finder: boolean;
access: boolean;
xattrs: boolean;
};
};
};
export default _default;
@@ -0,0 +1,20 @@
// https://www.npmjs.com/package/fsevents
export default {
watch(_dir, _cb) {
return Promise.resolve();
},
getInfo(path, _flags, _id) {
return {
event: "mock",
path,
type: "file",
flags: 4294967296,
changes: {
inode: false,
finder: false,
access: false,
xattrs: false
}
};
}
};
@@ -0,0 +1,2 @@
import { inherits } from "node:util";
export default inherits;
@@ -0,0 +1,2 @@
import { inherits } from "node:util";
export default inherits;
@@ -0,0 +1,12 @@
// https://github.com/node-fetch/node-fetch
// Native browser APIs
export declare const fetch: unknown;
export declare const Headers: unknown;
export declare const Request: unknown;
export declare const Response: unknown;
export declare const AbortController: unknown;
// Error handling
export declare const FetchError: unknown;
export declare const AbortError: unknown;
export declare const isRedirect: unknown;
export default fetch;
@@ -0,0 +1,23 @@
// https://github.com/node-fetch/node-fetch
// Native browser APIs
export const fetch = (...args) => globalThis.fetch(...args);
export const Headers = globalThis.Headers;
export const Request = globalThis.Request;
export const Response = globalThis.Response;
export const AbortController = globalThis.AbortController;
// Error handling
export const FetchError = Error;
export const AbortError = Error;
// Top-level exported helpers (from node-fetch v3)
const redirectStatus = new Set([
301,
302,
303,
307,
308
]);
export const isRedirect = (code) => redirectStatus.has(code);
// node-fetch v2
fetch.Promise = globalThis.Promise;
fetch.isRedirect = isRedirect;
export default fetch;
@@ -0,0 +1,13 @@
export declare const URL: unknown;
export declare const URLSearchParams: unknown;
export declare const parseURL: unknown;
export declare const basicURLParse: unknown;
export declare const serializeURL: unknown;
export declare const serializeHost: unknown;
export declare const serializeInteger: unknown;
export declare const serializeURLOrigin: unknown;
export declare const setTheUsername: unknown;
export declare const setThePassword: unknown;
export declare const cannotHaveAUsernamePasswordPort: unknown;
export declare const percentDecodeBytes: unknown;
export declare const percentDecodeString: unknown;
@@ -0,0 +1,15 @@
// https://www.npmjs.com/package/whatwg-url
import { notImplemented } from "../../_internal/utils.mjs";
export const URL = globalThis.URL;
export const URLSearchParams = globalThis.URLSearchParams;
export const parseURL = /* @__PURE__ */ notImplemented("whatwg-url.parseURL");
export const basicURLParse = /* @__PURE__ */ notImplemented("whatwg-url.basicURLParse");
export const serializeURL = /* @__PURE__ */ notImplemented("whatwg-url.serializeURL");
export const serializeHost = /* @__PURE__ */ notImplemented("whatwg-url.serializeHost");
export const serializeInteger = /* @__PURE__ */ notImplemented("whatwg-url.serializeInteger");
export const serializeURLOrigin = /* @__PURE__ */ notImplemented("whatwg-url.serializeURLOrigin");
export const setTheUsername = /* @__PURE__ */ notImplemented("whatwg-url.setTheUsername");
export const setThePassword = /* @__PURE__ */ notImplemented("whatwg-url.setThePassword");
export const cannotHaveAUsernamePasswordPort = /* @__PURE__ */ notImplemented("whatwg-url.cannotHaveAUsernamePasswordPort");
export const percentDecodeBytes = /* @__PURE__ */ notImplemented("whatwg-url.percentDecodeBytes");
export const percentDecodeString = /* @__PURE__ */ notImplemented("whatwg-url.percentDecodeString");
@@ -0,0 +1,2 @@
export declare const URL: unknown;
export declare const URLSearchParams: unknown;
@@ -0,0 +1,2 @@
export const URL = globalThis.URL;
export const URLSearchParams = globalThis.URLSearchParams;