@wovin/connect-web3storage 0.0.1-RC13 → 0.0.1-RC14
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/{chunk-PNASAMO3.cjs → chunk-OIB44YLC.cjs} +30 -25
- package/dist/chunk-OIB44YLC.cjs.map +1 -0
- package/dist/{chunk-SIRHAPOU.js → chunk-OZ7IMBJ4.js} +30 -25
- package/dist/chunk-OZ7IMBJ4.js.map +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/retrieve.cjs +2 -2
- package/dist/retrieve.js +1 -1
- package/package.json +3 -3
- package/dist/chunk-PNASAMO3.cjs.map +0 -1
- package/dist/chunk-SIRHAPOU.js.map +0 -1
|
@@ -6956,8 +6956,8 @@ function f$6() {
|
|
|
6956
6956
|
else if (s7.length < p8 + 1)
|
|
6957
6957
|
_4 > 1 && p8 > 2 && (_4 > 4 ? (c8 += "\n".concat(m6, "...").concat(S4), u7 = true) : _4 > 3 && (c8 += "\n ".concat(f8[p8 - 2]), R5++), c8 += "\n ".concat(f8[p8 - 1]), R5++), a8 = p8, c8 += "\n".concat(E4, "+").concat(S4, " ").concat(f8[p8]), R5++;
|
|
6958
6958
|
else {
|
|
6959
|
-
var T5 = s7[p8],
|
|
6960
|
-
I4 && d6(T5, ",") && T5.slice(0, -1) ===
|
|
6959
|
+
var T5 = s7[p8], P4 = f8[p8], I4 = P4 !== T5 && (!d6(P4, ",") || P4.slice(0, -1) !== T5);
|
|
6960
|
+
I4 && d6(T5, ",") && T5.slice(0, -1) === P4 && (I4 = false, P4 += ","), I4 ? (_4 > 1 && p8 > 2 && (_4 > 4 ? (c8 += "\n".concat(m6, "...").concat(S4), u7 = true) : _4 > 3 && (c8 += "\n ".concat(f8[p8 - 2]), R5++), c8 += "\n ".concat(f8[p8 - 1]), R5++), a8 = p8, c8 += "\n".concat(E4, "+").concat(S4, " ").concat(P4), o9 += "\n".concat(w4, "-").concat(S4, " ").concat(T5), R5 += 2) : (c8 += o9, o9 = "", 1 !== _4 && 0 !== p8 || (c8 += "\n ".concat(P4), R5++));
|
|
6961
6961
|
}
|
|
6962
6962
|
if (R5 > 20 && p8 < O6 - 2)
|
|
6963
6963
|
return "".concat(A4).concat(k4, "\n").concat(c8, "\n").concat(m6, "...").concat(S4).concat(o9, "\n") + "".concat(m6, "...").concat(S4);
|
|
@@ -7472,7 +7472,7 @@ function tt() {
|
|
|
7472
7472
|
R4({ actual: t8, expected: e9, message: r9, operator: c8.name, stackStartFn: c8 });
|
|
7473
7473
|
}
|
|
7474
7474
|
}
|
|
7475
|
-
function
|
|
7475
|
+
function P4(t8, e9, n8, r9) {
|
|
7476
7476
|
if ("function" != typeof e9) {
|
|
7477
7477
|
if (E4(e9))
|
|
7478
7478
|
return e9.test(t8);
|
|
@@ -7544,12 +7544,12 @@ function tt() {
|
|
|
7544
7544
|
var a8 = "rejects" === t8.name ? "rejection" : "exception";
|
|
7545
7545
|
R4({ actual: void 0, expected: n8, operator: t8.name, message: "Missing expected ".concat(a8).concat(o9), stackStartFn: t8 });
|
|
7546
7546
|
}
|
|
7547
|
-
if (n8 && !
|
|
7547
|
+
if (n8 && !P4(e9, n8, r9, t8))
|
|
7548
7548
|
throw e9;
|
|
7549
7549
|
}
|
|
7550
7550
|
function L4(t8, e9, n8, r9) {
|
|
7551
7551
|
if (e9 !== q3) {
|
|
7552
|
-
if ("string" == typeof n8 && (r9 = n8, n8 = void 0), !n8 ||
|
|
7552
|
+
if ("string" == typeof n8 && (r9 = n8, n8 = void 0), !n8 || P4(e9, n8)) {
|
|
7553
7553
|
var o9 = r9 ? ": ".concat(r9) : ".", c8 = "doesNotReject" === t8.name ? "rejection" : "exception";
|
|
7554
7554
|
R4({ actual: e9, expected: n8, operator: t8.name, message: "Got unwanted ".concat(c8).concat(o9, "\n") + 'Actual message: "'.concat(e9 && e9.message, '"'), stackStartFn: t8 });
|
|
7555
7555
|
}
|
|
@@ -8604,8 +8604,8 @@ r8.prototype.parse = function(t8, s6, h8) {
|
|
|
8604
8604
|
}
|
|
8605
8605
|
}
|
|
8606
8606
|
this.hostname.length > 255 ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), U4 || (this.hostname = e8.toASCII(this.hostname));
|
|
8607
|
-
var E4 = this.port ? ":" + this.port : "",
|
|
8608
|
-
this.host =
|
|
8607
|
+
var E4 = this.port ? ":" + this.port : "", P4 = this.hostname || "";
|
|
8608
|
+
this.host = P4 + E4, this.href += this.host, U4 && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), "/" !== O5[0] && (O5 = "/" + O5));
|
|
8609
8609
|
}
|
|
8610
8610
|
if (!v5[q3])
|
|
8611
8611
|
for (w4 = 0, S4 = p6.length; w4 < S4; w4++) {
|
|
@@ -18532,7 +18532,7 @@ var fswrite = promisify2(fs.write);
|
|
|
18532
18532
|
var _applog = require('@wovin/core/applog');
|
|
18533
18533
|
var _ipfs = require('@wovin/core/ipfs');
|
|
18534
18534
|
|
|
18535
|
-
// ../../../node_modules/.pnpm/besonders-logger@1.0.0-
|
|
18535
|
+
// ../../../node_modules/.pnpm/besonders-logger@1.0.0-RC11_3myifxmc6j23mthq5k5h6wvx4a/node_modules/besonders-logger/dist/src/index.mjs
|
|
18536
18536
|
_chunkIPDFNP52cjs.init_dirname.call(void 0, );
|
|
18537
18537
|
var __create = Object.create;
|
|
18538
18538
|
var __defProp = Object.defineProperty;
|
|
@@ -18653,15 +18653,18 @@ var require_fast_json_stable_stringify = __commonJS2({
|
|
|
18653
18653
|
});
|
|
18654
18654
|
var import_browser_or_node = __toESM2(require_lib(), 1);
|
|
18655
18655
|
var import_fast_json_stable_stringify = __toESM2(require_fast_json_stable_stringify(), 1);
|
|
18656
|
-
var TIME_PREFIX_ENABLED =
|
|
18657
|
-
var PERFORMANCE_PREFIX_ENABLED =
|
|
18656
|
+
var TIME_PREFIX_ENABLED = false;
|
|
18657
|
+
var PERFORMANCE_PREFIX_ENABLED = false;
|
|
18658
18658
|
if (import_browser_or_node.isNode) {
|
|
18659
|
-
|
|
18660
|
-
|
|
18659
|
+
if (_optionalChain([process, 'optionalAccess', _5 => _5.env, 'optionalAccess', _6 => _6.LOGGER_TIME_PREFIX]))
|
|
18660
|
+
TIME_PREFIX_ENABLED = _optionalChain([process, 'optionalAccess', _7 => _7.env, 'optionalAccess', _8 => _8.LOGGER_TIME_PREFIX]) === "true";
|
|
18661
|
+
if (_optionalChain([process, 'optionalAccess', _9 => _9.env, 'optionalAccess', _10 => _10.LOGGER_PERF_PREFIX]))
|
|
18662
|
+
PERFORMANCE_PREFIX_ENABLED = _optionalChain([process, 'optionalAccess', _11 => _11.env, 'optionalAccess', _12 => _12.LOGGER_PERF_PREFIX]) === "true";
|
|
18661
18663
|
}
|
|
18662
18664
|
var DEFAULT_CONFIG = Object.freeze({
|
|
18663
18665
|
prefix: void 0,
|
|
18664
|
-
|
|
18666
|
+
time: TIME_PREFIX_ENABLED,
|
|
18667
|
+
delta: PERFORMANCE_PREFIX_ENABLED,
|
|
18665
18668
|
dimDebugOnServer: true,
|
|
18666
18669
|
printOriginOnServer: true,
|
|
18667
18670
|
serverInspectOptions: {},
|
|
@@ -18682,17 +18685,19 @@ var StringFormatters = [
|
|
|
18682
18685
|
// },
|
|
18683
18686
|
// },
|
|
18684
18687
|
];
|
|
18685
|
-
var
|
|
18686
|
-
constructor(sinceFirst, sinceLast) {
|
|
18688
|
+
var LoggerTime = class {
|
|
18689
|
+
constructor(sinceFirst, sinceLast, time, delta) {
|
|
18687
18690
|
_chunkIPDFNP52cjs.__publicField.call(void 0, this, "sinceFirst", 0);
|
|
18688
18691
|
_chunkIPDFNP52cjs.__publicField.call(void 0, this, "sinceLast", 0);
|
|
18689
|
-
|
|
18692
|
+
_chunkIPDFNP52cjs.__publicField.call(void 0, this, "time", false);
|
|
18693
|
+
_chunkIPDFNP52cjs.__publicField.call(void 0, this, "delta", false);
|
|
18694
|
+
Object.assign(this, { sinceFirst, sinceLast, time, delta });
|
|
18690
18695
|
}
|
|
18691
18696
|
toString() {
|
|
18692
18697
|
const sinceFirstNum = this.sinceFirst * 1e-3;
|
|
18693
18698
|
const sinceFirst = sinceFirstNum.toFixed(sinceFirstNum < 5 ? 2 : 1);
|
|
18694
18699
|
const sinceLast = this.sinceLast < 1e3 ? `${this.sinceLast.toFixed(0)}`.padStart(5, " ") : `${`${(this.sinceLast * 1e-3).toFixed(this.sinceLast < 1e4 ? 1 : 0)}`.padStart(4, " ")}s`;
|
|
18695
|
-
return `[${[
|
|
18700
|
+
return `[${[this.time ? sinceFirst : null, this.delta ? sinceLast : null].join(",")}]`;
|
|
18696
18701
|
}
|
|
18697
18702
|
};
|
|
18698
18703
|
var Style = class {
|
|
@@ -18720,7 +18725,7 @@ var _Logger = class {
|
|
|
18720
18725
|
* @ typedef {Function & {isDisabled: boolean, isEnabled: boolean, ...}} LogFunc
|
|
18721
18726
|
* @ returns {{LOG: LogFunc, VERBOSE: LogFunc, DEBUG: LogFunc, WARN: LogFunc, ERROR: LogFunc}}
|
|
18722
18727
|
*/
|
|
18723
|
-
static setup(level, config = {}) {
|
|
18728
|
+
static setup(level = _Logger.INFO, config = {}) {
|
|
18724
18729
|
config = Object.assign({}, DEFAULT_CONFIG, config);
|
|
18725
18730
|
if (level > 10)
|
|
18726
18731
|
console.debug("setup logger", { config });
|
|
@@ -18790,9 +18795,9 @@ var _Logger = class {
|
|
|
18790
18795
|
static wrapLog(logFunc, config) {
|
|
18791
18796
|
if (!import_browser_or_node.isNode) {
|
|
18792
18797
|
const fixedArgs = [];
|
|
18793
|
-
if (config.
|
|
18798
|
+
if (config.time || config.delta) {
|
|
18794
18799
|
const isChrome = import_browser_or_node.isBrowser && navigator.userAgent.includes("Chrome");
|
|
18795
|
-
const p7 = isChrome ? ["", _Logger.
|
|
18800
|
+
const p7 = isChrome ? ["", _Logger.timeStr(!!config.time, !!config.delta)] : [];
|
|
18796
18801
|
fixedArgs.push(...p7);
|
|
18797
18802
|
}
|
|
18798
18803
|
if (config.prefix) {
|
|
@@ -18810,7 +18815,7 @@ var _Logger = class {
|
|
|
18810
18815
|
// const p = this.perf();
|
|
18811
18816
|
// return logPerformance ? `${p} ${msg}` : msg;
|
|
18812
18817
|
// }
|
|
18813
|
-
static
|
|
18818
|
+
static timeStr(time, delta, returnAsString = 0) {
|
|
18814
18819
|
if (!performance.now)
|
|
18815
18820
|
return void 0;
|
|
18816
18821
|
const now = performance.now();
|
|
@@ -18818,7 +18823,7 @@ var _Logger = class {
|
|
|
18818
18823
|
_Logger.firstLog = now;
|
|
18819
18824
|
_Logger.lastLog = now;
|
|
18820
18825
|
}
|
|
18821
|
-
const p7 = new
|
|
18826
|
+
const p7 = new LoggerTime(now - _Logger.firstLog, now - _Logger.lastLog, time, delta);
|
|
18822
18827
|
_Logger.lastLog = now;
|
|
18823
18828
|
return returnAsString ? p7.toString() : p7;
|
|
18824
18829
|
}
|
|
@@ -18870,11 +18875,11 @@ if (import_browser_or_node.isBrowser) {
|
|
|
18870
18875
|
// LOG('...')() - returns the log function with all argumends bound
|
|
18871
18876
|
// But instead we are adding a custom formatter that replaced the placeholder object of class P with the performance info
|
|
18872
18877
|
header: (obj) => {
|
|
18873
|
-
if (!(obj instanceof
|
|
18878
|
+
if (!(obj instanceof LoggerTime))
|
|
18874
18879
|
return null;
|
|
18875
18880
|
if (!formattersEnabled)
|
|
18876
18881
|
formattersEnabled = true;
|
|
18877
|
-
const p7 = Logger.
|
|
18882
|
+
const p7 = Logger.timeStr(obj.time, obj.delta);
|
|
18878
18883
|
return [
|
|
18879
18884
|
"span",
|
|
18880
18885
|
{ style: "font-weight: light; color: grey" },
|
|
@@ -20070,4 +20075,4 @@ exports.retrievePubStream = retrievePubStream; exports.resolveIPNS = resolveIPNS
|
|
|
20070
20075
|
@jspm/core/nodelibs/browser/buffer.js:
|
|
20071
20076
|
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
20072
20077
|
*/
|
|
20073
|
-
//# sourceMappingURL=chunk-
|
|
20078
|
+
//# sourceMappingURL=chunk-OIB44YLC.cjs.map
|