@scalar/api-client 0.3.2 → 0.3.3
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/index.js +24 -81
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -5906,7 +5906,7 @@ function getDefaultExportFromCjs(x2) {
|
|
|
5906
5906
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
5907
5907
|
}
|
|
5908
5908
|
var nunjucks$1 = { exports: {} };
|
|
5909
|
-
/*! Browser bundle of nunjucks 3.2.
|
|
5909
|
+
/*! Browser bundle of nunjucks 3.2.3 */
|
|
5910
5910
|
(function(module, exports) {
|
|
5911
5911
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
5912
5912
|
module.exports = factory();
|
|
@@ -5978,10 +5978,9 @@ var nunjucks$1 = { exports: {} };
|
|
|
5978
5978
|
'"': """,
|
|
5979
5979
|
"'": "'",
|
|
5980
5980
|
"<": "<",
|
|
5981
|
-
">": ">"
|
|
5982
|
-
"\\": "\"
|
|
5981
|
+
">": ">"
|
|
5983
5982
|
};
|
|
5984
|
-
var escapeRegex = /[&"'
|
|
5983
|
+
var escapeRegex = /[&"'<>]/g;
|
|
5985
5984
|
var exports2 = module2.exports = {};
|
|
5986
5985
|
function hasOwnProp(obj, k2) {
|
|
5987
5986
|
return ObjProto.hasOwnProperty.call(obj, k2);
|
|
@@ -6284,7 +6283,7 @@ var nunjucks$1 = { exports: {} };
|
|
|
6284
6283
|
descriptor.configurable = true;
|
|
6285
6284
|
if ("value" in descriptor)
|
|
6286
6285
|
descriptor.writable = true;
|
|
6287
|
-
Object.defineProperty(target,
|
|
6286
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6288
6287
|
}
|
|
6289
6288
|
}
|
|
6290
6289
|
function _createClass2(Constructor, protoProps, staticProps) {
|
|
@@ -6292,32 +6291,15 @@ var nunjucks$1 = { exports: {} };
|
|
|
6292
6291
|
_defineProperties2(Constructor.prototype, protoProps);
|
|
6293
6292
|
if (staticProps)
|
|
6294
6293
|
_defineProperties2(Constructor, staticProps);
|
|
6295
|
-
Object.defineProperty(Constructor, "prototype", { writable: false });
|
|
6296
6294
|
return Constructor;
|
|
6297
6295
|
}
|
|
6298
|
-
function _toPropertyKey(arg) {
|
|
6299
|
-
var key = _toPrimitive(arg, "string");
|
|
6300
|
-
return typeof key === "symbol" ? key : String(key);
|
|
6301
|
-
}
|
|
6302
|
-
function _toPrimitive(input, hint) {
|
|
6303
|
-
if (typeof input !== "object" || input === null)
|
|
6304
|
-
return input;
|
|
6305
|
-
var prim = input[Symbol.toPrimitive];
|
|
6306
|
-
if (prim !== void 0) {
|
|
6307
|
-
var res = prim.call(input, hint || "default");
|
|
6308
|
-
if (typeof res !== "object")
|
|
6309
|
-
return res;
|
|
6310
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6311
|
-
}
|
|
6312
|
-
return (hint === "string" ? String : Number)(input);
|
|
6313
|
-
}
|
|
6314
6296
|
function _inheritsLoose(subClass, superClass) {
|
|
6315
6297
|
subClass.prototype = Object.create(superClass.prototype);
|
|
6316
6298
|
subClass.prototype.constructor = subClass;
|
|
6317
6299
|
_setPrototypeOf(subClass, superClass);
|
|
6318
6300
|
}
|
|
6319
6301
|
function _setPrototypeOf(o2, p2) {
|
|
6320
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
6302
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
6321
6303
|
o3.__proto__ = p3;
|
|
6322
6304
|
return o3;
|
|
6323
6305
|
};
|
|
@@ -6738,7 +6720,7 @@ var nunjucks$1 = { exports: {} };
|
|
|
6738
6720
|
descriptor.configurable = true;
|
|
6739
6721
|
if ("value" in descriptor)
|
|
6740
6722
|
descriptor.writable = true;
|
|
6741
|
-
Object.defineProperty(target,
|
|
6723
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6742
6724
|
}
|
|
6743
6725
|
}
|
|
6744
6726
|
function _createClass2(Constructor, protoProps, staticProps) {
|
|
@@ -6746,32 +6728,15 @@ var nunjucks$1 = { exports: {} };
|
|
|
6746
6728
|
_defineProperties2(Constructor.prototype, protoProps);
|
|
6747
6729
|
if (staticProps)
|
|
6748
6730
|
_defineProperties2(Constructor, staticProps);
|
|
6749
|
-
Object.defineProperty(Constructor, "prototype", { writable: false });
|
|
6750
6731
|
return Constructor;
|
|
6751
6732
|
}
|
|
6752
|
-
function _toPropertyKey(arg) {
|
|
6753
|
-
var key = _toPrimitive(arg, "string");
|
|
6754
|
-
return typeof key === "symbol" ? key : String(key);
|
|
6755
|
-
}
|
|
6756
|
-
function _toPrimitive(input, hint) {
|
|
6757
|
-
if (typeof input !== "object" || input === null)
|
|
6758
|
-
return input;
|
|
6759
|
-
var prim = input[Symbol.toPrimitive];
|
|
6760
|
-
if (prim !== void 0) {
|
|
6761
|
-
var res = prim.call(input, hint || "default");
|
|
6762
|
-
if (typeof res !== "object")
|
|
6763
|
-
return res;
|
|
6764
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6765
|
-
}
|
|
6766
|
-
return (hint === "string" ? String : Number)(input);
|
|
6767
|
-
}
|
|
6768
6733
|
function _inheritsLoose(subClass, superClass) {
|
|
6769
6734
|
subClass.prototype = Object.create(superClass.prototype);
|
|
6770
6735
|
subClass.prototype.constructor = subClass;
|
|
6771
6736
|
_setPrototypeOf(subClass, superClass);
|
|
6772
6737
|
}
|
|
6773
6738
|
function _setPrototypeOf(o2, p2) {
|
|
6774
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
6739
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
6775
6740
|
o3.__proto__ = p3;
|
|
6776
6741
|
return o3;
|
|
6777
6742
|
};
|
|
@@ -6874,7 +6839,7 @@ var nunjucks$1 = { exports: {} };
|
|
|
6874
6839
|
}(Node2);
|
|
6875
6840
|
var Root = NodeList.extend("Root");
|
|
6876
6841
|
var Literal = Value.extend("Literal");
|
|
6877
|
-
var
|
|
6842
|
+
var Symbol2 = Value.extend("Symbol");
|
|
6878
6843
|
var Group = NodeList.extend("Group");
|
|
6879
6844
|
var ArrayNode = NodeList.extend("Array");
|
|
6880
6845
|
var Pair = Node2.extend("Pair", {
|
|
@@ -7056,7 +7021,7 @@ var nunjucks$1 = { exports: {} };
|
|
|
7056
7021
|
NodeList,
|
|
7057
7022
|
Value,
|
|
7058
7023
|
Literal,
|
|
7059
|
-
Symbol:
|
|
7024
|
+
Symbol: Symbol2,
|
|
7060
7025
|
Group,
|
|
7061
7026
|
Array: ArrayNode,
|
|
7062
7027
|
Pair,
|
|
@@ -7122,7 +7087,7 @@ var nunjucks$1 = { exports: {} };
|
|
|
7122
7087
|
_setPrototypeOf(subClass, superClass);
|
|
7123
7088
|
}
|
|
7124
7089
|
function _setPrototypeOf(o2, p2) {
|
|
7125
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
7090
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
7126
7091
|
o3.__proto__ = p3;
|
|
7127
7092
|
return o3;
|
|
7128
7093
|
};
|
|
@@ -8062,7 +8027,7 @@ var nunjucks$1 = { exports: {} };
|
|
|
8062
8027
|
_setPrototypeOf(subClass, superClass);
|
|
8063
8028
|
}
|
|
8064
8029
|
function _setPrototypeOf(o2, p2) {
|
|
8065
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
8030
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
8066
8031
|
o3.__proto__ = p3;
|
|
8067
8032
|
return o3;
|
|
8068
8033
|
};
|
|
@@ -8094,7 +8059,7 @@ var nunjucks$1 = { exports: {} };
|
|
|
8094
8059
|
_setPrototypeOf(subClass, superClass);
|
|
8095
8060
|
}
|
|
8096
8061
|
function _setPrototypeOf(o2, p2) {
|
|
8097
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
8062
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
8098
8063
|
o3.__proto__ = p3;
|
|
8099
8064
|
return o3;
|
|
8100
8065
|
};
|
|
@@ -8589,7 +8554,7 @@ var nunjucks$1 = { exports: {} };
|
|
|
8589
8554
|
_setPrototypeOf(subClass, superClass);
|
|
8590
8555
|
}
|
|
8591
8556
|
function _setPrototypeOf(o2, p2) {
|
|
8592
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
8557
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
8593
8558
|
o3.__proto__ = p3;
|
|
8594
8559
|
return o3;
|
|
8595
8560
|
};
|
|
@@ -9931,7 +9896,7 @@ var nunjucks$1 = { exports: {} };
|
|
|
9931
9896
|
_setPrototypeOf(subClass, superClass);
|
|
9932
9897
|
}
|
|
9933
9898
|
function _setPrototypeOf(o2, p2) {
|
|
9934
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
9899
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
9935
9900
|
o3.__proto__ = p3;
|
|
9936
9901
|
return o3;
|
|
9937
9902
|
};
|
|
@@ -10617,45 +10582,23 @@ var nunjucks$1 = { exports: {} };
|
|
|
10617
10582
|
}
|
|
10618
10583
|
function once(emitter, name) {
|
|
10619
10584
|
return new Promise(function(resolve, reject) {
|
|
10620
|
-
function
|
|
10621
|
-
|
|
10622
|
-
reject(err);
|
|
10623
|
-
}
|
|
10624
|
-
function resolver() {
|
|
10625
|
-
if (typeof emitter.removeListener === "function") {
|
|
10585
|
+
function eventListener() {
|
|
10586
|
+
if (errorListener !== void 0) {
|
|
10626
10587
|
emitter.removeListener("error", errorListener);
|
|
10627
10588
|
}
|
|
10628
10589
|
resolve([].slice.call(arguments));
|
|
10629
10590
|
}
|
|
10630
|
-
|
|
10591
|
+
var errorListener;
|
|
10631
10592
|
if (name !== "error") {
|
|
10632
|
-
|
|
10593
|
+
errorListener = function errorListener2(err) {
|
|
10594
|
+
emitter.removeListener(name, eventListener);
|
|
10595
|
+
reject(err);
|
|
10596
|
+
};
|
|
10597
|
+
emitter.once("error", errorListener);
|
|
10633
10598
|
}
|
|
10599
|
+
emitter.once(name, eventListener);
|
|
10634
10600
|
});
|
|
10635
10601
|
}
|
|
10636
|
-
function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
|
|
10637
|
-
if (typeof emitter.on === "function") {
|
|
10638
|
-
eventTargetAgnosticAddListener(emitter, "error", handler, flags);
|
|
10639
|
-
}
|
|
10640
|
-
}
|
|
10641
|
-
function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
|
10642
|
-
if (typeof emitter.on === "function") {
|
|
10643
|
-
if (flags.once) {
|
|
10644
|
-
emitter.once(name, listener);
|
|
10645
|
-
} else {
|
|
10646
|
-
emitter.on(name, listener);
|
|
10647
|
-
}
|
|
10648
|
-
} else if (typeof emitter.addEventListener === "function") {
|
|
10649
|
-
emitter.addEventListener(name, function wrapListener(arg) {
|
|
10650
|
-
if (flags.once) {
|
|
10651
|
-
emitter.removeEventListener(name, wrapListener);
|
|
10652
|
-
}
|
|
10653
|
-
listener(arg);
|
|
10654
|
-
});
|
|
10655
|
-
} else {
|
|
10656
|
-
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
10657
|
-
}
|
|
10658
|
-
}
|
|
10659
10602
|
},
|
|
10660
10603
|
/* 17 */
|
|
10661
10604
|
/***/
|
|
@@ -11310,7 +11253,7 @@ var nunjucks$1 = { exports: {} };
|
|
|
11310
11253
|
_setPrototypeOf(subClass, superClass);
|
|
11311
11254
|
}
|
|
11312
11255
|
function _setPrototypeOf(o2, p2) {
|
|
11313
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
11256
|
+
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
11314
11257
|
o3.__proto__ = p3;
|
|
11315
11258
|
return o3;
|
|
11316
11259
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scalar/api-client",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"author": "Scalar",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"@codemirror/view": "6.16.0",
|
|
30
30
|
"@headlessui/vue": "1.7.14",
|
|
31
31
|
"@lezer/highlight": "1.1.6",
|
|
32
|
-
"@types/nunjucks": "3.2.2",
|
|
33
32
|
"@uiw/codemirror-theme-duotone": "4.21.3",
|
|
34
33
|
"@uiw/codemirror-themes": "4.21.3",
|
|
35
34
|
"@vueuse/core": "10.1.2",
|
|
@@ -37,12 +36,12 @@
|
|
|
37
36
|
"codemirror": "6.0.1",
|
|
38
37
|
"javascript-time-ago": "2.5.9",
|
|
39
38
|
"nanoid": "4.0.2",
|
|
40
|
-
"nunjucks": "3.2.
|
|
39
|
+
"nunjucks": "3.2.3",
|
|
41
40
|
"pretty-bytes": "6.1.0",
|
|
42
41
|
"pretty-ms": "8.0.0",
|
|
43
42
|
"tippy.js": "6.3.7",
|
|
44
|
-
"@scalar/use-codemirror": "0.3.0",
|
|
45
43
|
"@scalar/default-theme": "0.1.1",
|
|
44
|
+
"@scalar/use-codemirror": "0.3.1",
|
|
46
45
|
"@scalar/use-keyboard-event": "0.3.0"
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
|
@@ -54,7 +53,8 @@
|
|
|
54
53
|
"vue-tsc": "1.8.8"
|
|
55
54
|
},
|
|
56
55
|
"peerDependencies": {
|
|
57
|
-
"vue": "3.3.4"
|
|
56
|
+
"vue": "3.3.4",
|
|
57
|
+
"@types/nunjucks": "3.2.3"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "vite build && pnpm types:build && tsc-alias -p tsconfig.build.json",
|