@alpic-ai/sdk 1.182.0 → 1.183.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,10 +15,10 @@ export function detectRuntime() {
|
|
|
15
15
|
if (has("package.json")) {
|
|
16
16
|
const nvmrc = has(".nvmrc") ? (read(".nvmrc").trim().split(/\s/)[0] ?? "") : "";
|
|
17
17
|
const major = nvmrc.replace(/^v/i, "").match(/^(\d+)/)?.[1];
|
|
18
|
-
if (major === "22") {
|
|
19
|
-
return
|
|
18
|
+
if (major === "22" || major === "24") {
|
|
19
|
+
return `node${major}`;
|
|
20
20
|
}
|
|
21
|
-
return "
|
|
21
|
+
return "node26";
|
|
22
22
|
}
|
|
23
23
|
return null;
|
|
24
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detect-runtime.js","sourceRoot":"","sources":["../../src/project/detect-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAGnD,MAAM,UAAU,aAAa;IAC3B,MAAM,GAAG,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,IAAI,GAAG,CAAC,IAAY,EAAU,EAAE;QACpC,IAAI,CAAC;YACH,OAAO,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACpC,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC,CAAC;IAEF,IAAI,GAAG,CAAC,gBAAgB,CAAC,IAAI,GAAG,CAAC,kBAAkB,CAAC,IAAI,GAAG,CAAC,UAAU,CAAC,IAAI,GAAG,CAAC,iBAAiB,CAAC,EAAE,CAAC;QAClG,OAAO,YAAY,CAAC;IACtB,CAAC;IACD,IAAI,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC;QACxB,MAAM,KAAK,GAAG,GAAG,CAA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CAAC,CAAC,EAAE,CAAC;QAChF,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAC5D,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACrC,OAAO,OAAO,KAAK,EAAE,CAAC;QACxB,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/dist/vendor/pipenet.js
CHANGED
|
@@ -11538,9 +11538,9 @@ var require_dist = __commonJS({
|
|
|
11538
11538
|
}
|
|
11539
11539
|
});
|
|
11540
11540
|
|
|
11541
|
-
// ../../node_modules/.pnpm/follow-redirects@1.16.
|
|
11541
|
+
// ../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js
|
|
11542
11542
|
var require_debug = __commonJS({
|
|
11543
|
-
"../../node_modules/.pnpm/follow-redirects@1.16.
|
|
11543
|
+
"../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/debug.js"(exports, module) {
|
|
11544
11544
|
var debug3;
|
|
11545
11545
|
module.exports = function() {
|
|
11546
11546
|
if (!debug3) {
|
|
@@ -11558,9 +11558,9 @@ var require_debug = __commonJS({
|
|
|
11558
11558
|
}
|
|
11559
11559
|
});
|
|
11560
11560
|
|
|
11561
|
-
// ../../node_modules/.pnpm/follow-redirects@1.16.
|
|
11561
|
+
// ../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js
|
|
11562
11562
|
var require_follow_redirects = __commonJS({
|
|
11563
|
-
"../../node_modules/.pnpm/follow-redirects@1.16.
|
|
11563
|
+
"../../node_modules/.pnpm/follow-redirects@1.16.2_debug@4.4.3_supports-color@8.1.1_/node_modules/follow-redirects/index.js"(exports, module) {
|
|
11564
11564
|
var url2 = __require("url");
|
|
11565
11565
|
var URL2 = url2.URL;
|
|
11566
11566
|
var http3 = __require("http");
|
|
@@ -11788,8 +11788,14 @@ var require_follow_redirects = __commonJS({
|
|
|
11788
11788
|
RedirectableRequest.prototype._sanitizeOptions = function(options) {
|
|
11789
11789
|
if (!options.headers) {
|
|
11790
11790
|
options.headers = {};
|
|
11791
|
+
} else if (Array.isArray(options.headers)) {
|
|
11792
|
+
var headerList = options.headers;
|
|
11793
|
+
options.headers = {};
|
|
11794
|
+
for (var i = 0; i < headerList.length; i += 2) {
|
|
11795
|
+
options.headers[headerList[i]] = headerList[i + 1];
|
|
11796
|
+
}
|
|
11791
11797
|
}
|
|
11792
|
-
if (!
|
|
11798
|
+
if (!Array.isArray(options.sensitiveHeaders)) {
|
|
11793
11799
|
options.sensitiveHeaders = [];
|
|
11794
11800
|
}
|
|
11795
11801
|
if (options.host) {
|
|
@@ -12046,9 +12052,6 @@ var require_follow_redirects = __commonJS({
|
|
|
12046
12052
|
var dot = subdomain.length - domain.length - 1;
|
|
12047
12053
|
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
|
12048
12054
|
}
|
|
12049
|
-
function isArray2(value) {
|
|
12050
|
-
return value instanceof Array;
|
|
12051
|
-
}
|
|
12052
12055
|
function isString2(value) {
|
|
12053
12056
|
return typeof value === "string" || value instanceof String;
|
|
12054
12057
|
}
|
|
@@ -12062,7 +12065,7 @@ var require_follow_redirects = __commonJS({
|
|
|
12062
12065
|
return URL2 && value instanceof URL2;
|
|
12063
12066
|
}
|
|
12064
12067
|
function escapeRegex(regex) {
|
|
12065
|
-
return regex.replace(/[\]\\/()
|
|
12068
|
+
return regex.replace(/[[\]\\/()*+?.^$|]/g, "\\$&");
|
|
12066
12069
|
}
|
|
12067
12070
|
module.exports = wrap({ http: http3, https: https2 });
|
|
12068
12071
|
module.exports.wrap = wrap;
|