Fix dependencies: Add flag-icons, tailwind directives, and postcss config

This commit is contained in:
MivoDev
2026-01-18 11:16:21 +07:00
commit 266a4b1296
10758 changed files with 1547435 additions and 0 deletions

21
node_modules/@algolia/requester-node-http/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2013-Present Algolia
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -0,0 +1,119 @@
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var src_exports = {};
__export(src_exports, {
createHttpRequester: () => createHttpRequester
});
module.exports = __toCommonJS(src_exports);
// src/createHttpRequester.ts
var import_http = __toESM(require("http"), 1);
var import_https = __toESM(require("https"), 1);
var import_url = require("url");
var agentOptions = { keepAlive: true };
var defaultHttpAgent = new import_http.default.Agent(agentOptions);
var defaultHttpsAgent = new import_https.default.Agent(agentOptions);
function createHttpRequester({
agent: userGlobalAgent,
httpAgent: userHttpAgent,
httpsAgent: userHttpsAgent,
requesterOptions = {}
} = {}) {
const httpAgent = userHttpAgent || userGlobalAgent || defaultHttpAgent;
const httpsAgent = userHttpsAgent || userGlobalAgent || defaultHttpsAgent;
function send(request) {
return new Promise((resolve) => {
let responseTimeout;
let connectTimeout;
const url = new import_url.URL(request.url);
const path = url.search === null ? url.pathname : `${url.pathname}${url.search}`;
const options = {
agent: url.protocol === "https:" ? httpsAgent : httpAgent,
hostname: url.hostname,
path,
method: request.method,
...requesterOptions,
headers: {
...request.headers,
...requesterOptions.headers
}
};
if (url.port && !requesterOptions.port) {
options.port = url.port;
}
const req = (url.protocol === "https:" ? import_https.default : import_http.default).request(options, (response) => {
let contentBuffers = [];
response.on("data", (chunk) => {
contentBuffers = contentBuffers.concat(chunk);
});
response.on("end", () => {
clearTimeout(connectTimeout);
clearTimeout(responseTimeout);
resolve({
status: response.statusCode || 0,
content: Buffer.concat(contentBuffers).toString(),
isTimedOut: false
});
});
});
const createTimeout = (timeout, content) => {
return setTimeout(() => {
req.destroy();
resolve({
status: 0,
content,
isTimedOut: true
});
}, timeout);
};
connectTimeout = createTimeout(request.connectTimeout, "Connection timeout");
req.on("error", (error) => {
clearTimeout(connectTimeout);
clearTimeout(responseTimeout);
resolve({ status: 0, content: error.message, isTimedOut: false });
});
req.once("response", () => {
clearTimeout(connectTimeout);
responseTimeout = createTimeout(request.responseTimeout, "Socket timeout");
});
if (request.data !== void 0) {
req.write(request.data);
}
req.end();
});
}
return { send };
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
createHttpRequester
});
//# sourceMappingURL=requester.http.cjs.map

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,16 @@
import http from 'http';
import https from 'https';
import { Requester } from '@algolia/client-common';
type CreateHttpRequesterOptions = Partial<{
agent: http.Agent | https.Agent;
httpAgent: http.Agent;
httpsAgent: https.Agent;
/**
* RequestOptions to be merged with the end request, it will override default options if provided.
*/
requesterOptions: https.RequestOptions;
}>;
declare function createHttpRequester({ agent: userGlobalAgent, httpAgent: userHttpAgent, httpsAgent: userHttpsAgent, requesterOptions, }?: CreateHttpRequesterOptions): Requester;
export { type CreateHttpRequesterOptions, createHttpRequester };

View File

@@ -0,0 +1,16 @@
import http from 'http';
import https from 'https';
import { Requester } from '@algolia/client-common';
type CreateHttpRequesterOptions = Partial<{
agent: http.Agent | https.Agent;
httpAgent: http.Agent;
httpsAgent: https.Agent;
/**
* RequestOptions to be merged with the end request, it will override default options if provided.
*/
requesterOptions: https.RequestOptions;
}>;
declare function createHttpRequester({ agent: userGlobalAgent, httpAgent: userHttpAgent, httpsAgent: userHttpsAgent, requesterOptions, }?: CreateHttpRequesterOptions): Requester;
export { type CreateHttpRequesterOptions, createHttpRequester };

View File

@@ -0,0 +1,82 @@
// src/createHttpRequester.ts
import http from "http";
import https from "https";
import { URL } from "url";
var agentOptions = { keepAlive: true };
var defaultHttpAgent = new http.Agent(agentOptions);
var defaultHttpsAgent = new https.Agent(agentOptions);
function createHttpRequester({
agent: userGlobalAgent,
httpAgent: userHttpAgent,
httpsAgent: userHttpsAgent,
requesterOptions = {}
} = {}) {
const httpAgent = userHttpAgent || userGlobalAgent || defaultHttpAgent;
const httpsAgent = userHttpsAgent || userGlobalAgent || defaultHttpsAgent;
function send(request) {
return new Promise((resolve) => {
let responseTimeout;
let connectTimeout;
const url = new URL(request.url);
const path = url.search === null ? url.pathname : `${url.pathname}${url.search}`;
const options = {
agent: url.protocol === "https:" ? httpsAgent : httpAgent,
hostname: url.hostname,
path,
method: request.method,
...requesterOptions,
headers: {
...request.headers,
...requesterOptions.headers
}
};
if (url.port && !requesterOptions.port) {
options.port = url.port;
}
const req = (url.protocol === "https:" ? https : http).request(options, (response) => {
let contentBuffers = [];
response.on("data", (chunk) => {
contentBuffers = contentBuffers.concat(chunk);
});
response.on("end", () => {
clearTimeout(connectTimeout);
clearTimeout(responseTimeout);
resolve({
status: response.statusCode || 0,
content: Buffer.concat(contentBuffers).toString(),
isTimedOut: false
});
});
});
const createTimeout = (timeout, content) => {
return setTimeout(() => {
req.destroy();
resolve({
status: 0,
content,
isTimedOut: true
});
}, timeout);
};
connectTimeout = createTimeout(request.connectTimeout, "Connection timeout");
req.on("error", (error) => {
clearTimeout(connectTimeout);
clearTimeout(responseTimeout);
resolve({ status: 0, content: error.message, isTimedOut: false });
});
req.once("response", () => {
clearTimeout(connectTimeout);
responseTimeout = createTimeout(request.responseTimeout, "Socket timeout");
});
if (request.data !== void 0) {
req.write(request.data);
}
req.end();
});
}
return { send };
}
export {
createHttpRequester
};
//# sourceMappingURL=requester.http.js.map

File diff suppressed because one or more lines are too long

1
node_modules/@algolia/requester-node-http/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export * from './dist/requester.http';

1
node_modules/@algolia/requester-node-http/index.js generated vendored Normal file
View File

@@ -0,0 +1 @@
module.exports = require('./dist/requester.http.cjs');

53
node_modules/@algolia/requester-node-http/package.json generated vendored Normal file
View File

@@ -0,0 +1,53 @@
{
"name": "@algolia/requester-node-http",
"version": "5.46.3",
"description": "Promise-based request library for node using the native http module.",
"repository": {
"type": "git",
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
},
"homepage": "https://github.com/algolia/algoliasearch-client-javascript#readme",
"license": "MIT",
"author": "Algolia",
"type": "module",
"files": [
"dist",
"index.d.ts",
"index.js"
],
"exports": {
".": {
"types": {
"import": "./dist/requester.http.d.ts",
"module": "./dist/requester.http.d.ts",
"require": "./dist/requester.http.d.cts"
},
"import": "./dist/requester.http.js",
"module": "./dist/requester.http.js",
"require": "./dist/requester.http.cjs"
},
"./src/*": "./src/*.ts"
},
"scripts": {
"build": "yarn clean && yarn tsup",
"clean": "rm -rf ./dist || true",
"test": "tsc --noEmit && vitest --run",
"test:bundle": "publint . && attw --pack ."
},
"dependencies": {
"@algolia/client-common": "5.46.3"
},
"devDependencies": {
"@arethetypeswrong/cli": "0.18.2",
"@types/node": "24.10.7",
"nock": "14.0.10",
"publint": "0.3.16",
"tsup": "8.5.1",
"typescript": "5.9.3",
"vitest": "4.0.16"
},
"engines": {
"node": ">= 14.0.0"
},
"gitHead": "5be82d3f2ae7cd97f5d42c3451e966daa53fd06a"
}