tidewave 0.4.0 → 0.5.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.
- package/CHANGELOG.md +4 -50
- package/README.md +75 -23
- package/dist/cli/index.js +350 -22
- package/dist/cli/install.d.ts +7 -0
- package/dist/next-js/handler.js +442 -33
- package/dist/tools.d.ts +2 -2
- package/dist/vite-plugin.js +442 -33
- package/package.json +6 -13
package/dist/vite-plugin.js
CHANGED
|
@@ -444,7 +444,423 @@ var require_src = __commonJS((exports, module) => {
|
|
|
444
444
|
}
|
|
445
445
|
});
|
|
446
446
|
|
|
447
|
-
// node_modules/
|
|
447
|
+
// node_modules/finalhandler/node_modules/debug/node_modules/ms/index.js
|
|
448
|
+
var require_ms2 = __commonJS((exports, module) => {
|
|
449
|
+
var s = 1000;
|
|
450
|
+
var m = s * 60;
|
|
451
|
+
var h = m * 60;
|
|
452
|
+
var d = h * 24;
|
|
453
|
+
var y = d * 365.25;
|
|
454
|
+
module.exports = function(val, options) {
|
|
455
|
+
options = options || {};
|
|
456
|
+
var type = typeof val;
|
|
457
|
+
if (type === "string" && val.length > 0) {
|
|
458
|
+
return parse(val);
|
|
459
|
+
} else if (type === "number" && isNaN(val) === false) {
|
|
460
|
+
return options.long ? fmtLong(val) : fmtShort(val);
|
|
461
|
+
}
|
|
462
|
+
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
|
|
463
|
+
};
|
|
464
|
+
function parse(str) {
|
|
465
|
+
str = String(str);
|
|
466
|
+
if (str.length > 100) {
|
|
467
|
+
return;
|
|
468
|
+
}
|
|
469
|
+
var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);
|
|
470
|
+
if (!match) {
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
var n = parseFloat(match[1]);
|
|
474
|
+
var type = (match[2] || "ms").toLowerCase();
|
|
475
|
+
switch (type) {
|
|
476
|
+
case "years":
|
|
477
|
+
case "year":
|
|
478
|
+
case "yrs":
|
|
479
|
+
case "yr":
|
|
480
|
+
case "y":
|
|
481
|
+
return n * y;
|
|
482
|
+
case "days":
|
|
483
|
+
case "day":
|
|
484
|
+
case "d":
|
|
485
|
+
return n * d;
|
|
486
|
+
case "hours":
|
|
487
|
+
case "hour":
|
|
488
|
+
case "hrs":
|
|
489
|
+
case "hr":
|
|
490
|
+
case "h":
|
|
491
|
+
return n * h;
|
|
492
|
+
case "minutes":
|
|
493
|
+
case "minute":
|
|
494
|
+
case "mins":
|
|
495
|
+
case "min":
|
|
496
|
+
case "m":
|
|
497
|
+
return n * m;
|
|
498
|
+
case "seconds":
|
|
499
|
+
case "second":
|
|
500
|
+
case "secs":
|
|
501
|
+
case "sec":
|
|
502
|
+
case "s":
|
|
503
|
+
return n * s;
|
|
504
|
+
case "milliseconds":
|
|
505
|
+
case "millisecond":
|
|
506
|
+
case "msecs":
|
|
507
|
+
case "msec":
|
|
508
|
+
case "ms":
|
|
509
|
+
return n;
|
|
510
|
+
default:
|
|
511
|
+
return;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
function fmtShort(ms) {
|
|
515
|
+
if (ms >= d) {
|
|
516
|
+
return Math.round(ms / d) + "d";
|
|
517
|
+
}
|
|
518
|
+
if (ms >= h) {
|
|
519
|
+
return Math.round(ms / h) + "h";
|
|
520
|
+
}
|
|
521
|
+
if (ms >= m) {
|
|
522
|
+
return Math.round(ms / m) + "m";
|
|
523
|
+
}
|
|
524
|
+
if (ms >= s) {
|
|
525
|
+
return Math.round(ms / s) + "s";
|
|
526
|
+
}
|
|
527
|
+
return ms + "ms";
|
|
528
|
+
}
|
|
529
|
+
function fmtLong(ms) {
|
|
530
|
+
return plural(ms, d, "day") || plural(ms, h, "hour") || plural(ms, m, "minute") || plural(ms, s, "second") || ms + " ms";
|
|
531
|
+
}
|
|
532
|
+
function plural(ms, n, name) {
|
|
533
|
+
if (ms < n) {
|
|
534
|
+
return;
|
|
535
|
+
}
|
|
536
|
+
if (ms < n * 1.5) {
|
|
537
|
+
return Math.floor(ms / n) + " " + name;
|
|
538
|
+
}
|
|
539
|
+
return Math.ceil(ms / n) + " " + name + "s";
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
|
|
543
|
+
// node_modules/finalhandler/node_modules/debug/src/debug.js
|
|
544
|
+
var require_debug2 = __commonJS((exports, module) => {
|
|
545
|
+
exports = module.exports = createDebug.debug = createDebug["default"] = createDebug;
|
|
546
|
+
exports.coerce = coerce;
|
|
547
|
+
exports.disable = disable;
|
|
548
|
+
exports.enable = enable;
|
|
549
|
+
exports.enabled = enabled;
|
|
550
|
+
exports.humanize = require_ms2();
|
|
551
|
+
exports.names = [];
|
|
552
|
+
exports.skips = [];
|
|
553
|
+
exports.formatters = {};
|
|
554
|
+
var prevTime;
|
|
555
|
+
function selectColor(namespace) {
|
|
556
|
+
var hash = 0, i;
|
|
557
|
+
for (i in namespace) {
|
|
558
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
559
|
+
hash |= 0;
|
|
560
|
+
}
|
|
561
|
+
return exports.colors[Math.abs(hash) % exports.colors.length];
|
|
562
|
+
}
|
|
563
|
+
function createDebug(namespace) {
|
|
564
|
+
function debug() {
|
|
565
|
+
if (!debug.enabled)
|
|
566
|
+
return;
|
|
567
|
+
var self = debug;
|
|
568
|
+
var curr = +new Date;
|
|
569
|
+
var ms = curr - (prevTime || curr);
|
|
570
|
+
self.diff = ms;
|
|
571
|
+
self.prev = prevTime;
|
|
572
|
+
self.curr = curr;
|
|
573
|
+
prevTime = curr;
|
|
574
|
+
var args = new Array(arguments.length);
|
|
575
|
+
for (var i = 0;i < args.length; i++) {
|
|
576
|
+
args[i] = arguments[i];
|
|
577
|
+
}
|
|
578
|
+
args[0] = exports.coerce(args[0]);
|
|
579
|
+
if (typeof args[0] !== "string") {
|
|
580
|
+
args.unshift("%O");
|
|
581
|
+
}
|
|
582
|
+
var index = 0;
|
|
583
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {
|
|
584
|
+
if (match === "%%")
|
|
585
|
+
return match;
|
|
586
|
+
index++;
|
|
587
|
+
var formatter = exports.formatters[format];
|
|
588
|
+
if (typeof formatter === "function") {
|
|
589
|
+
var val = args[index];
|
|
590
|
+
match = formatter.call(self, val);
|
|
591
|
+
args.splice(index, 1);
|
|
592
|
+
index--;
|
|
593
|
+
}
|
|
594
|
+
return match;
|
|
595
|
+
});
|
|
596
|
+
exports.formatArgs.call(self, args);
|
|
597
|
+
var logFn = debug.log || exports.log || console.log.bind(console);
|
|
598
|
+
logFn.apply(self, args);
|
|
599
|
+
}
|
|
600
|
+
debug.namespace = namespace;
|
|
601
|
+
debug.enabled = exports.enabled(namespace);
|
|
602
|
+
debug.useColors = exports.useColors();
|
|
603
|
+
debug.color = selectColor(namespace);
|
|
604
|
+
if (typeof exports.init === "function") {
|
|
605
|
+
exports.init(debug);
|
|
606
|
+
}
|
|
607
|
+
return debug;
|
|
608
|
+
}
|
|
609
|
+
function enable(namespaces) {
|
|
610
|
+
exports.save(namespaces);
|
|
611
|
+
exports.names = [];
|
|
612
|
+
exports.skips = [];
|
|
613
|
+
var split = (typeof namespaces === "string" ? namespaces : "").split(/[\s,]+/);
|
|
614
|
+
var len = split.length;
|
|
615
|
+
for (var i = 0;i < len; i++) {
|
|
616
|
+
if (!split[i])
|
|
617
|
+
continue;
|
|
618
|
+
namespaces = split[i].replace(/\*/g, ".*?");
|
|
619
|
+
if (namespaces[0] === "-") {
|
|
620
|
+
exports.skips.push(new RegExp("^" + namespaces.substr(1) + "$"));
|
|
621
|
+
} else {
|
|
622
|
+
exports.names.push(new RegExp("^" + namespaces + "$"));
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
function disable() {
|
|
627
|
+
exports.enable("");
|
|
628
|
+
}
|
|
629
|
+
function enabled(name) {
|
|
630
|
+
var i, len;
|
|
631
|
+
for (i = 0, len = exports.skips.length;i < len; i++) {
|
|
632
|
+
if (exports.skips[i].test(name)) {
|
|
633
|
+
return false;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
for (i = 0, len = exports.names.length;i < len; i++) {
|
|
637
|
+
if (exports.names[i].test(name)) {
|
|
638
|
+
return true;
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
return false;
|
|
642
|
+
}
|
|
643
|
+
function coerce(val) {
|
|
644
|
+
if (val instanceof Error)
|
|
645
|
+
return val.stack || val.message;
|
|
646
|
+
return val;
|
|
647
|
+
}
|
|
648
|
+
});
|
|
649
|
+
|
|
650
|
+
// node_modules/finalhandler/node_modules/debug/src/browser.js
|
|
651
|
+
var require_browser2 = __commonJS((exports, module) => {
|
|
652
|
+
exports = module.exports = require_debug2();
|
|
653
|
+
exports.log = log;
|
|
654
|
+
exports.formatArgs = formatArgs;
|
|
655
|
+
exports.save = save;
|
|
656
|
+
exports.load = load;
|
|
657
|
+
exports.useColors = useColors;
|
|
658
|
+
exports.storage = typeof chrome != "undefined" && typeof chrome.storage != "undefined" ? chrome.storage.local : localstorage();
|
|
659
|
+
exports.colors = [
|
|
660
|
+
"lightseagreen",
|
|
661
|
+
"forestgreen",
|
|
662
|
+
"goldenrod",
|
|
663
|
+
"dodgerblue",
|
|
664
|
+
"darkorchid",
|
|
665
|
+
"crimson"
|
|
666
|
+
];
|
|
667
|
+
function useColors() {
|
|
668
|
+
if (typeof window !== "undefined" && window.process && window.process.type === "renderer") {
|
|
669
|
+
return true;
|
|
670
|
+
}
|
|
671
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
672
|
+
}
|
|
673
|
+
exports.formatters.j = function(v) {
|
|
674
|
+
try {
|
|
675
|
+
return JSON.stringify(v);
|
|
676
|
+
} catch (err) {
|
|
677
|
+
return "[UnexpectedJSONParseError]: " + err.message;
|
|
678
|
+
}
|
|
679
|
+
};
|
|
680
|
+
function formatArgs(args) {
|
|
681
|
+
var useColors2 = this.useColors;
|
|
682
|
+
args[0] = (useColors2 ? "%c" : "") + this.namespace + (useColors2 ? " %c" : " ") + args[0] + (useColors2 ? "%c " : " ") + "+" + exports.humanize(this.diff);
|
|
683
|
+
if (!useColors2)
|
|
684
|
+
return;
|
|
685
|
+
var c = "color: " + this.color;
|
|
686
|
+
args.splice(1, 0, c, "color: inherit");
|
|
687
|
+
var index = 0;
|
|
688
|
+
var lastC = 0;
|
|
689
|
+
args[0].replace(/%[a-zA-Z%]/g, function(match) {
|
|
690
|
+
if (match === "%%")
|
|
691
|
+
return;
|
|
692
|
+
index++;
|
|
693
|
+
if (match === "%c") {
|
|
694
|
+
lastC = index;
|
|
695
|
+
}
|
|
696
|
+
});
|
|
697
|
+
args.splice(lastC, 0, c);
|
|
698
|
+
}
|
|
699
|
+
function log() {
|
|
700
|
+
return typeof console === "object" && console.log && Function.prototype.apply.call(console.log, console, arguments);
|
|
701
|
+
}
|
|
702
|
+
function save(namespaces) {
|
|
703
|
+
try {
|
|
704
|
+
if (namespaces == null) {
|
|
705
|
+
exports.storage.removeItem("debug");
|
|
706
|
+
} else {
|
|
707
|
+
exports.storage.debug = namespaces;
|
|
708
|
+
}
|
|
709
|
+
} catch (e) {}
|
|
710
|
+
}
|
|
711
|
+
function load() {
|
|
712
|
+
var r;
|
|
713
|
+
try {
|
|
714
|
+
r = exports.storage.debug;
|
|
715
|
+
} catch (e) {}
|
|
716
|
+
if (!r && typeof process !== "undefined" && "env" in process) {
|
|
717
|
+
r = process.env.DEBUG;
|
|
718
|
+
}
|
|
719
|
+
return r;
|
|
720
|
+
}
|
|
721
|
+
exports.enable(load());
|
|
722
|
+
function localstorage() {
|
|
723
|
+
try {
|
|
724
|
+
return window.localStorage;
|
|
725
|
+
} catch (e) {}
|
|
726
|
+
}
|
|
727
|
+
});
|
|
728
|
+
|
|
729
|
+
// node_modules/finalhandler/node_modules/debug/src/node.js
|
|
730
|
+
var require_node2 = __commonJS((exports, module) => {
|
|
731
|
+
var tty = __require("tty");
|
|
732
|
+
var util = __require("util");
|
|
733
|
+
exports = module.exports = require_debug2();
|
|
734
|
+
exports.init = init;
|
|
735
|
+
exports.log = log;
|
|
736
|
+
exports.formatArgs = formatArgs;
|
|
737
|
+
exports.save = save;
|
|
738
|
+
exports.load = load;
|
|
739
|
+
exports.useColors = useColors;
|
|
740
|
+
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
741
|
+
exports.inspectOpts = Object.keys(process.env).filter(function(key) {
|
|
742
|
+
return /^debug_/i.test(key);
|
|
743
|
+
}).reduce(function(obj, key) {
|
|
744
|
+
var prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, function(_, k) {
|
|
745
|
+
return k.toUpperCase();
|
|
746
|
+
});
|
|
747
|
+
var val = process.env[key];
|
|
748
|
+
if (/^(yes|on|true|enabled)$/i.test(val))
|
|
749
|
+
val = true;
|
|
750
|
+
else if (/^(no|off|false|disabled)$/i.test(val))
|
|
751
|
+
val = false;
|
|
752
|
+
else if (val === "null")
|
|
753
|
+
val = null;
|
|
754
|
+
else
|
|
755
|
+
val = Number(val);
|
|
756
|
+
obj[prop] = val;
|
|
757
|
+
return obj;
|
|
758
|
+
}, {});
|
|
759
|
+
var fd = parseInt(process.env.DEBUG_FD, 10) || 2;
|
|
760
|
+
if (fd !== 1 && fd !== 2) {
|
|
761
|
+
util.deprecate(function() {}, "except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();
|
|
762
|
+
}
|
|
763
|
+
var stream = fd === 1 ? process.stdout : fd === 2 ? process.stderr : createWritableStdioStream(fd);
|
|
764
|
+
function useColors() {
|
|
765
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(fd);
|
|
766
|
+
}
|
|
767
|
+
exports.formatters.o = function(v) {
|
|
768
|
+
this.inspectOpts.colors = this.useColors;
|
|
769
|
+
return util.inspect(v, this.inspectOpts).split(`
|
|
770
|
+
`).map(function(str) {
|
|
771
|
+
return str.trim();
|
|
772
|
+
}).join(" ");
|
|
773
|
+
};
|
|
774
|
+
exports.formatters.O = function(v) {
|
|
775
|
+
this.inspectOpts.colors = this.useColors;
|
|
776
|
+
return util.inspect(v, this.inspectOpts);
|
|
777
|
+
};
|
|
778
|
+
function formatArgs(args) {
|
|
779
|
+
var name = this.namespace;
|
|
780
|
+
var useColors2 = this.useColors;
|
|
781
|
+
if (useColors2) {
|
|
782
|
+
var c = this.color;
|
|
783
|
+
var prefix = " \x1B[3" + c + ";1m" + name + " " + "\x1B[0m";
|
|
784
|
+
args[0] = prefix + args[0].split(`
|
|
785
|
+
`).join(`
|
|
786
|
+
` + prefix);
|
|
787
|
+
args.push("\x1B[3" + c + "m+" + exports.humanize(this.diff) + "\x1B[0m");
|
|
788
|
+
} else {
|
|
789
|
+
args[0] = new Date().toUTCString() + " " + name + " " + args[0];
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
function log() {
|
|
793
|
+
return stream.write(util.format.apply(util, arguments) + `
|
|
794
|
+
`);
|
|
795
|
+
}
|
|
796
|
+
function save(namespaces) {
|
|
797
|
+
if (namespaces == null) {
|
|
798
|
+
delete process.env.DEBUG;
|
|
799
|
+
} else {
|
|
800
|
+
process.env.DEBUG = namespaces;
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
function load() {
|
|
804
|
+
return process.env.DEBUG;
|
|
805
|
+
}
|
|
806
|
+
function createWritableStdioStream(fd2) {
|
|
807
|
+
var stream2;
|
|
808
|
+
var tty_wrap = process.binding("tty_wrap");
|
|
809
|
+
switch (tty_wrap.guessHandleType(fd2)) {
|
|
810
|
+
case "TTY":
|
|
811
|
+
stream2 = new tty.WriteStream(fd2);
|
|
812
|
+
stream2._type = "tty";
|
|
813
|
+
if (stream2._handle && stream2._handle.unref) {
|
|
814
|
+
stream2._handle.unref();
|
|
815
|
+
}
|
|
816
|
+
break;
|
|
817
|
+
case "FILE":
|
|
818
|
+
var fs = __require("fs");
|
|
819
|
+
stream2 = new fs.SyncWriteStream(fd2, { autoClose: false });
|
|
820
|
+
stream2._type = "fs";
|
|
821
|
+
break;
|
|
822
|
+
case "PIPE":
|
|
823
|
+
case "TCP":
|
|
824
|
+
var net = __require("net");
|
|
825
|
+
stream2 = new net.Socket({
|
|
826
|
+
fd: fd2,
|
|
827
|
+
readable: false,
|
|
828
|
+
writable: true
|
|
829
|
+
});
|
|
830
|
+
stream2.readable = false;
|
|
831
|
+
stream2.read = null;
|
|
832
|
+
stream2._type = "pipe";
|
|
833
|
+
if (stream2._handle && stream2._handle.unref) {
|
|
834
|
+
stream2._handle.unref();
|
|
835
|
+
}
|
|
836
|
+
break;
|
|
837
|
+
default:
|
|
838
|
+
throw new Error("Implement me. Unknown stream file type!");
|
|
839
|
+
}
|
|
840
|
+
stream2.fd = fd2;
|
|
841
|
+
stream2._isStdio = true;
|
|
842
|
+
return stream2;
|
|
843
|
+
}
|
|
844
|
+
function init(debug) {
|
|
845
|
+
debug.inspectOpts = {};
|
|
846
|
+
var keys = Object.keys(exports.inspectOpts);
|
|
847
|
+
for (var i = 0;i < keys.length; i++) {
|
|
848
|
+
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
exports.enable(load());
|
|
852
|
+
});
|
|
853
|
+
|
|
854
|
+
// node_modules/finalhandler/node_modules/debug/src/index.js
|
|
855
|
+
var require_src2 = __commonJS((exports, module) => {
|
|
856
|
+
if (typeof process !== "undefined" && process.type === "renderer") {
|
|
857
|
+
module.exports = require_browser2();
|
|
858
|
+
} else {
|
|
859
|
+
module.exports = require_node2();
|
|
860
|
+
}
|
|
861
|
+
});
|
|
862
|
+
|
|
863
|
+
// node_modules/finalhandler/node_modules/encodeurl/index.js
|
|
448
864
|
var require_encodeurl = __commonJS((exports, module) => {
|
|
449
865
|
/*!
|
|
450
866
|
* encodeurl
|
|
@@ -569,7 +985,7 @@ var require_ee_first = __commonJS((exports, module) => {
|
|
|
569
985
|
}
|
|
570
986
|
});
|
|
571
987
|
|
|
572
|
-
// node_modules/
|
|
988
|
+
// node_modules/finalhandler/node_modules/on-finished/index.js
|
|
573
989
|
var require_on_finished = __commonJS((exports, module) => {
|
|
574
990
|
/*!
|
|
575
991
|
* on-finished
|
|
@@ -744,7 +1160,7 @@ var require_parseurl = __commonJS((exports, module) => {
|
|
|
744
1160
|
}
|
|
745
1161
|
});
|
|
746
1162
|
|
|
747
|
-
// node_modules/
|
|
1163
|
+
// node_modules/finalhandler/node_modules/statuses/codes.json
|
|
748
1164
|
var require_codes = __commonJS((exports, module) => {
|
|
749
1165
|
module.exports = {
|
|
750
1166
|
"100": "Continue",
|
|
@@ -814,7 +1230,7 @@ var require_codes = __commonJS((exports, module) => {
|
|
|
814
1230
|
};
|
|
815
1231
|
});
|
|
816
1232
|
|
|
817
|
-
// node_modules/
|
|
1233
|
+
// node_modules/finalhandler/node_modules/statuses/index.js
|
|
818
1234
|
var require_statuses = __commonJS((exports, module) => {
|
|
819
1235
|
/*!
|
|
820
1236
|
* statuses
|
|
@@ -919,14 +1335,14 @@ var require_unpipe = __commonJS((exports, module) => {
|
|
|
919
1335
|
}
|
|
920
1336
|
});
|
|
921
1337
|
|
|
922
|
-
// node_modules/
|
|
1338
|
+
// node_modules/finalhandler/index.js
|
|
923
1339
|
var require_finalhandler = __commonJS((exports, module) => {
|
|
924
1340
|
/*!
|
|
925
1341
|
* finalhandler
|
|
926
1342
|
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
927
1343
|
* MIT Licensed
|
|
928
1344
|
*/
|
|
929
|
-
var debug =
|
|
1345
|
+
var debug = require_src2()("finalhandler");
|
|
930
1346
|
var encodeUrl = require_encodeurl();
|
|
931
1347
|
var escapeHtml = require_escape_html();
|
|
932
1348
|
var onFinished = require_on_finished();
|
|
@@ -19623,12 +20039,12 @@ Module reference format:
|
|
|
19623
20039
|
|
|
19624
20040
|
Examples:
|
|
19625
20041
|
- src/types.ts:SymbolInfo (local file symbol)
|
|
19626
|
-
- lodash:isEmpty (dependency function)
|
|
20042
|
+
- lodash:isEmpty (dependency function)
|
|
19627
20043
|
- react:Component#render (instance method)
|
|
19628
20044
|
- node:Math.max (builtin static method)`, docsInputSchema, sourceInputSchema, getLogsInputSchema, tools;
|
|
19629
20045
|
var init_tools = __esm(() => {
|
|
19630
20046
|
init_zod();
|
|
19631
|
-
projectEvalDescription = `
|
|
20047
|
+
projectEvalDescription = `
|
|
19632
20048
|
Evaluates JavaScript/TypeScript code in the context of the project.
|
|
19633
20049
|
|
|
19634
20050
|
The current NodeJS version is: ${process.version}
|
|
@@ -19655,7 +20071,7 @@ Defaults to 30000 (30 seconds).`),
|
|
|
19655
20071
|
reference: exports_external.string().describe(referenceDescription)
|
|
19656
20072
|
});
|
|
19657
20073
|
getLogsInputSchema = exports_external.object({
|
|
19658
|
-
tail: exports_external.number().
|
|
20074
|
+
tail: exports_external.number().describe("Number of log entries to return from the end"),
|
|
19659
20075
|
grep: exports_external.string().optional().describe("Filter logs with regex pattern (case insensitive)"),
|
|
19660
20076
|
level: exports_external.enum(["DEBUG", "INFO", "WARN", "ERROR"]).optional().describe("Filter by log severity level"),
|
|
19661
20077
|
since: exports_external.string().optional().describe("ISO 8601 timestamp - return logs after this time")
|
|
@@ -19721,12 +20137,12 @@ Defaults to 30000 (30 seconds).`),
|
|
|
19721
20137
|
});
|
|
19722
20138
|
|
|
19723
20139
|
// package.json
|
|
19724
|
-
var name = "tidewave", version = "0.
|
|
20140
|
+
var name = "tidewave", version = "0.5.1", package_default;
|
|
19725
20141
|
var init_package = __esm(() => {
|
|
19726
20142
|
package_default = {
|
|
19727
20143
|
name,
|
|
19728
20144
|
version,
|
|
19729
|
-
description: "Tidewave
|
|
20145
|
+
description: "Tidewave for JavaScript/Next.js",
|
|
19730
20146
|
keywords: [
|
|
19731
20147
|
"typescript",
|
|
19732
20148
|
"documentation",
|
|
@@ -19737,7 +20153,7 @@ var init_package = __esm(() => {
|
|
|
19737
20153
|
homepage: "https://tidewave.ai",
|
|
19738
20154
|
repository: {
|
|
19739
20155
|
type: "git",
|
|
19740
|
-
url: "git+https://github.com/
|
|
20156
|
+
url: "git+https://github.com/tidewave-ai/tidewave_js.git"
|
|
19741
20157
|
},
|
|
19742
20158
|
license: "Apache-2.0",
|
|
19743
20159
|
author: "Dashbit",
|
|
@@ -19792,23 +20208,14 @@ var init_package = __esm(() => {
|
|
|
19792
20208
|
},
|
|
19793
20209
|
dependencies: {
|
|
19794
20210
|
"@modelcontextprotocol/sdk": "^1.17.4",
|
|
19795
|
-
"@opentelemetry/api": "^1.9.0",
|
|
19796
|
-
"@opentelemetry/api-logs": "^0.206.0",
|
|
19797
|
-
"@opentelemetry/core": "^2.1.0",
|
|
19798
|
-
"@opentelemetry/resources": "^2.1.0",
|
|
19799
|
-
"@opentelemetry/sdk-logs": "^0.206.0",
|
|
19800
|
-
"@opentelemetry/sdk-trace-base": "^2.1.0",
|
|
19801
|
-
"@opentelemetry/sdk-trace-node": "^2.1.0",
|
|
19802
|
-
"@opentelemetry/semantic-conventions": "^1.37.0",
|
|
19803
20211
|
"body-parser": "^2.2.0",
|
|
19804
|
-
chalk: "^5.3.0",
|
|
19805
|
-
commander: "^12.1.0",
|
|
19806
20212
|
connect: "^3.7.0",
|
|
19807
20213
|
typescript: "^5",
|
|
19808
20214
|
zod: "3.25.76"
|
|
19809
20215
|
},
|
|
19810
20216
|
devDependencies: {
|
|
19811
20217
|
"@eslint/js": "^9.16.0",
|
|
20218
|
+
"@opentelemetry/sdk-trace-node": "^2.1.0",
|
|
19812
20219
|
"@types/body-parser": "^1.19.6",
|
|
19813
20220
|
"@types/bun": "latest",
|
|
19814
20221
|
"@types/connect": "^3.4.38",
|
|
@@ -19818,6 +20225,8 @@ var init_package = __esm(() => {
|
|
|
19818
20225
|
"@vercel/otel": "^2.0.1",
|
|
19819
20226
|
"@vitest/ui": "^3.2.4",
|
|
19820
20227
|
"bun-types": "latest",
|
|
20228
|
+
commander: "^12.1.0",
|
|
20229
|
+
chalk: "^5.3.0",
|
|
19821
20230
|
eslint: "^9.16.0",
|
|
19822
20231
|
globals: "^15.14.0",
|
|
19823
20232
|
next: "^15.5.3",
|
|
@@ -21026,7 +21435,7 @@ var init_shell = __esm(() => {
|
|
|
21026
21435
|
});
|
|
21027
21436
|
|
|
21028
21437
|
// node_modules/ms/index.js
|
|
21029
|
-
var
|
|
21438
|
+
var require_ms3 = __commonJS((exports, module) => {
|
|
21030
21439
|
var s = 1000;
|
|
21031
21440
|
var m = s * 60;
|
|
21032
21441
|
var h = m * 60;
|
|
@@ -21144,7 +21553,7 @@ var require_common = __commonJS((exports, module) => {
|
|
|
21144
21553
|
createDebug.disable = disable;
|
|
21145
21554
|
createDebug.enable = enable;
|
|
21146
21555
|
createDebug.enabled = enabled;
|
|
21147
|
-
createDebug.humanize =
|
|
21556
|
+
createDebug.humanize = require_ms3();
|
|
21148
21557
|
createDebug.destroy = destroy;
|
|
21149
21558
|
Object.keys(env).forEach((key) => {
|
|
21150
21559
|
createDebug[key] = env[key];
|
|
@@ -21311,7 +21720,7 @@ var require_common = __commonJS((exports, module) => {
|
|
|
21311
21720
|
});
|
|
21312
21721
|
|
|
21313
21722
|
// node_modules/debug/src/browser.js
|
|
21314
|
-
var
|
|
21723
|
+
var require_browser3 = __commonJS((exports, module) => {
|
|
21315
21724
|
exports.formatArgs = formatArgs;
|
|
21316
21725
|
exports.save = save;
|
|
21317
21726
|
exports.load = load;
|
|
@@ -21580,7 +21989,7 @@ var require_supports_color = __commonJS((exports, module) => {
|
|
|
21580
21989
|
});
|
|
21581
21990
|
|
|
21582
21991
|
// node_modules/debug/src/node.js
|
|
21583
|
-
var
|
|
21992
|
+
var require_node3 = __commonJS((exports, module) => {
|
|
21584
21993
|
var tty = __require("tty");
|
|
21585
21994
|
var util3 = __require("util");
|
|
21586
21995
|
exports.init = init;
|
|
@@ -21751,11 +22160,11 @@ var require_node2 = __commonJS((exports, module) => {
|
|
|
21751
22160
|
});
|
|
21752
22161
|
|
|
21753
22162
|
// node_modules/debug/src/index.js
|
|
21754
|
-
var
|
|
22163
|
+
var require_src3 = __commonJS((exports, module) => {
|
|
21755
22164
|
if (typeof process === "undefined" || process.type === "renderer" || false || process.__nwjs) {
|
|
21756
|
-
module.exports =
|
|
22165
|
+
module.exports = require_browser3();
|
|
21757
22166
|
} else {
|
|
21758
|
-
module.exports =
|
|
22167
|
+
module.exports = require_node3();
|
|
21759
22168
|
}
|
|
21760
22169
|
});
|
|
21761
22170
|
|
|
@@ -31717,7 +32126,7 @@ var require_json = __commonJS((exports, module) => {
|
|
|
31717
32126
|
* MIT Licensed
|
|
31718
32127
|
*/
|
|
31719
32128
|
var createError = require_http_errors();
|
|
31720
|
-
var debug =
|
|
32129
|
+
var debug = require_src3()("body-parser:json");
|
|
31721
32130
|
var isFinished = require_on_finished2().isFinished;
|
|
31722
32131
|
var read = require_read();
|
|
31723
32132
|
var typeis = require_type_is();
|
|
@@ -31834,7 +32243,7 @@ var require_raw = __commonJS((exports, module) => {
|
|
|
31834
32243
|
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
31835
32244
|
* MIT Licensed
|
|
31836
32245
|
*/
|
|
31837
|
-
var debug =
|
|
32246
|
+
var debug = require_src3()("body-parser:raw");
|
|
31838
32247
|
var isFinished = require_on_finished2().isFinished;
|
|
31839
32248
|
var read = require_read();
|
|
31840
32249
|
var typeis = require_type_is();
|
|
@@ -31882,7 +32291,7 @@ var require_text = __commonJS((exports, module) => {
|
|
|
31882
32291
|
* Copyright(c) 2014-2015 Douglas Christopher Wilson
|
|
31883
32292
|
* MIT Licensed
|
|
31884
32293
|
*/
|
|
31885
|
-
var debug =
|
|
32294
|
+
var debug = require_src3()("body-parser:text");
|
|
31886
32295
|
var isFinished = require_on_finished2().isFinished;
|
|
31887
32296
|
var read = require_read();
|
|
31888
32297
|
var typeis = require_type_is();
|
|
@@ -34112,7 +34521,7 @@ var require_urlencoded = __commonJS((exports, module) => {
|
|
|
34112
34521
|
* MIT Licensed
|
|
34113
34522
|
*/
|
|
34114
34523
|
var createError = require_http_errors();
|
|
34115
|
-
var debug =
|
|
34524
|
+
var debug = require_src3()("body-parser:urlencoded");
|
|
34116
34525
|
var isFinished = require_on_finished2().isFinished;
|
|
34117
34526
|
var read = require_read();
|
|
34118
34527
|
var typeis = require_type_is();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tidewave",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Tidewave
|
|
3
|
+
"version": "0.5.1",
|
|
4
|
+
"description": "Tidewave for JavaScript/Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
7
7
|
"documentation",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"homepage": "https://tidewave.ai",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
|
-
"url": "git+https://github.com/
|
|
15
|
+
"url": "git+https://github.com/tidewave-ai/tidewave_js.git"
|
|
16
16
|
},
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
18
|
"author": "Dashbit",
|
|
@@ -67,23 +67,14 @@
|
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
69
|
"@modelcontextprotocol/sdk": "^1.17.4",
|
|
70
|
-
"@opentelemetry/api": "^1.9.0",
|
|
71
|
-
"@opentelemetry/api-logs": "^0.206.0",
|
|
72
|
-
"@opentelemetry/core": "^2.1.0",
|
|
73
|
-
"@opentelemetry/resources": "^2.1.0",
|
|
74
|
-
"@opentelemetry/sdk-logs": "^0.206.0",
|
|
75
|
-
"@opentelemetry/sdk-trace-base": "^2.1.0",
|
|
76
|
-
"@opentelemetry/sdk-trace-node": "^2.1.0",
|
|
77
|
-
"@opentelemetry/semantic-conventions": "^1.37.0",
|
|
78
70
|
"body-parser": "^2.2.0",
|
|
79
|
-
"chalk": "^5.3.0",
|
|
80
|
-
"commander": "^12.1.0",
|
|
81
71
|
"connect": "^3.7.0",
|
|
82
72
|
"typescript": "^5",
|
|
83
73
|
"zod": "3.25.76"
|
|
84
74
|
},
|
|
85
75
|
"devDependencies": {
|
|
86
76
|
"@eslint/js": "^9.16.0",
|
|
77
|
+
"@opentelemetry/sdk-trace-node": "^2.1.0",
|
|
87
78
|
"@types/body-parser": "^1.19.6",
|
|
88
79
|
"@types/bun": "latest",
|
|
89
80
|
"@types/connect": "^3.4.38",
|
|
@@ -93,6 +84,8 @@
|
|
|
93
84
|
"@vercel/otel": "^2.0.1",
|
|
94
85
|
"@vitest/ui": "^3.2.4",
|
|
95
86
|
"bun-types": "latest",
|
|
87
|
+
"commander": "^12.1.0",
|
|
88
|
+
"chalk": "^5.3.0",
|
|
96
89
|
"eslint": "^9.16.0",
|
|
97
90
|
"globals": "^15.14.0",
|
|
98
91
|
"next": "^15.5.3",
|