@etainabl/nodejs-sdk 1.3.129 → 1.3.131
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.
- package/dist/esm/{chunk-XSPB2DRU.js → chunk-6ZE6VFBF.js} +52 -1
- package/dist/esm/{chunk-XSPB2DRU.js.map → chunk-6ZE6VFBF.js.map} +1 -1
- package/dist/esm/{chunk-VSMDPKQT.js → chunk-AFIWRSL2.js} +2 -2
- package/dist/esm/{chunk-EAEPE6LV.js → chunk-GEJJRBZZ.js} +3 -3
- package/dist/esm/{chunk-DDCT4ZYV.js → chunk-JFJBZL6W.js} +2 -2
- package/dist/esm/{chunk-YUPOEH3S.js → chunk-UGK43V2L.js} +2 -2
- package/dist/esm/{dist-es-LEN5TBON.js → dist-es-AV5FKRC6.js} +2 -2
- package/dist/esm/{dist-es-MTQJIBCO.js → dist-es-HQRLUYWI.js} +2 -2
- package/dist/esm/{dist-es-4PZVI2OP.js → dist-es-N5B4V37N.js} +5 -5
- package/dist/esm/{dist-es-43LBWNIP.js → dist-es-T2FMHNMU.js} +4 -4
- package/dist/esm/index.js +689 -203
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/{loadSso-TNKRSJIY.js → loadSso-KRYOAJJX.js} +5 -5
- package/dist/esm/{sso-oidc-LXV5UW7C.js → sso-oidc-RASI2Q3K.js} +5 -5
- package/dist/esm/{sts-7CU5WIQI.js → sts-IERANB7E.js} +4 -4
- package/dist/index.d.cts +46 -9
- package/dist/index.d.ts +46 -9
- package/dist/index.js +747 -212
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- /package/dist/esm/{chunk-VSMDPKQT.js.map → chunk-AFIWRSL2.js.map} +0 -0
- /package/dist/esm/{chunk-EAEPE6LV.js.map → chunk-GEJJRBZZ.js.map} +0 -0
- /package/dist/esm/{chunk-DDCT4ZYV.js.map → chunk-JFJBZL6W.js.map} +0 -0
- /package/dist/esm/{chunk-YUPOEH3S.js.map → chunk-UGK43V2L.js.map} +0 -0
- /package/dist/esm/{dist-es-LEN5TBON.js.map → dist-es-AV5FKRC6.js.map} +0 -0
- /package/dist/esm/{dist-es-MTQJIBCO.js.map → dist-es-HQRLUYWI.js.map} +0 -0
- /package/dist/esm/{dist-es-4PZVI2OP.js.map → dist-es-N5B4V37N.js.map} +0 -0
- /package/dist/esm/{dist-es-43LBWNIP.js.map → dist-es-T2FMHNMU.js.map} +0 -0
- /package/dist/esm/{loadSso-TNKRSJIY.js.map → loadSso-KRYOAJJX.js.map} +0 -0
- /package/dist/esm/{sso-oidc-LXV5UW7C.js.map → sso-oidc-RASI2Q3K.js.map} +0 -0
- /package/dist/esm/{sts-7CU5WIQI.js.map → sts-IERANB7E.js.map} +0 -0
|
@@ -1940,12 +1940,62 @@ var parseRfc3339DateTimeWithOffset = (value) => {
|
|
|
1940
1940
|
var IMF_FIXDATE = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);
|
|
1941
1941
|
var RFC_850_DATE = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);
|
|
1942
1942
|
var ASC_TIME = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);
|
|
1943
|
+
var parseRfc7231DateTime = (value) => {
|
|
1944
|
+
if (value === null || value === void 0) {
|
|
1945
|
+
return void 0;
|
|
1946
|
+
}
|
|
1947
|
+
if (typeof value !== "string") {
|
|
1948
|
+
throw new TypeError("RFC-7231 date-times must be expressed as strings");
|
|
1949
|
+
}
|
|
1950
|
+
let match = IMF_FIXDATE.exec(value);
|
|
1951
|
+
if (match) {
|
|
1952
|
+
const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match;
|
|
1953
|
+
return buildDate(strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds });
|
|
1954
|
+
}
|
|
1955
|
+
match = RFC_850_DATE.exec(value);
|
|
1956
|
+
if (match) {
|
|
1957
|
+
const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match;
|
|
1958
|
+
return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), {
|
|
1959
|
+
hours,
|
|
1960
|
+
minutes,
|
|
1961
|
+
seconds,
|
|
1962
|
+
fractionalMilliseconds
|
|
1963
|
+
}));
|
|
1964
|
+
}
|
|
1965
|
+
match = ASC_TIME.exec(value);
|
|
1966
|
+
if (match) {
|
|
1967
|
+
const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match;
|
|
1968
|
+
return buildDate(strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds });
|
|
1969
|
+
}
|
|
1970
|
+
throw new TypeError("Invalid RFC-7231 date-time value");
|
|
1971
|
+
};
|
|
1943
1972
|
var buildDate = (year, month, day, time) => {
|
|
1944
1973
|
const adjustedMonth = month - 1;
|
|
1945
1974
|
validateDayOfMonth(year, adjustedMonth, day);
|
|
1946
1975
|
return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, "hour", 0, 23), parseDateValue(time.minutes, "minute", 0, 59), parseDateValue(time.seconds, "seconds", 0, 60), parseMilliseconds(time.fractionalMilliseconds)));
|
|
1947
1976
|
};
|
|
1977
|
+
var parseTwoDigitYear = (value) => {
|
|
1978
|
+
const thisYear = (/* @__PURE__ */ new Date()).getUTCFullYear();
|
|
1979
|
+
const valueInThisCentury = Math.floor(thisYear / 100) * 100 + strictParseShort(stripLeadingZeroes(value));
|
|
1980
|
+
if (valueInThisCentury < thisYear) {
|
|
1981
|
+
return valueInThisCentury + 100;
|
|
1982
|
+
}
|
|
1983
|
+
return valueInThisCentury;
|
|
1984
|
+
};
|
|
1948
1985
|
var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3;
|
|
1986
|
+
var adjustRfc850Year = (input) => {
|
|
1987
|
+
if (input.getTime() - (/* @__PURE__ */ new Date()).getTime() > FIFTY_YEARS_IN_MILLIS) {
|
|
1988
|
+
return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds()));
|
|
1989
|
+
}
|
|
1990
|
+
return input;
|
|
1991
|
+
};
|
|
1992
|
+
var parseMonthByShortName = (value) => {
|
|
1993
|
+
const monthIdx = MONTHS.indexOf(value);
|
|
1994
|
+
if (monthIdx < 0) {
|
|
1995
|
+
throw new TypeError(`Invalid month: ${value}`);
|
|
1996
|
+
}
|
|
1997
|
+
return monthIdx + 1;
|
|
1998
|
+
};
|
|
1949
1999
|
var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
1950
2000
|
var validateDayOfMonth = (year, month, day) => {
|
|
1951
2001
|
let maxDays = DAYS_IN_MONTH[month];
|
|
@@ -2345,6 +2395,7 @@ export {
|
|
|
2345
2395
|
dateToUtcString,
|
|
2346
2396
|
parseRfc3339DateTime,
|
|
2347
2397
|
parseRfc3339DateTimeWithOffset,
|
|
2398
|
+
parseRfc7231DateTime,
|
|
2348
2399
|
v4_default,
|
|
2349
2400
|
resolvedPath,
|
|
2350
2401
|
Client,
|
|
@@ -2366,4 +2417,4 @@ export {
|
|
|
2366
2417
|
serializeDateTime,
|
|
2367
2418
|
_json
|
|
2368
2419
|
};
|
|
2369
|
-
//# sourceMappingURL=chunk-
|
|
2420
|
+
//# sourceMappingURL=chunk-6ZE6VFBF.js.map
|