@botpress/api 0.59.0 → 0.59.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/dist/index.js CHANGED
@@ -258740,9 +258740,9 @@ var require_side_channel = __commonJS({
258740
258740
  }
258741
258741
  });
258742
258742
 
258743
- // ../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/formats.js
258743
+ // ../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/formats.js
258744
258744
  var require_formats = __commonJS({
258745
- "../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/formats.js"(exports, module2) {
258745
+ "../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/formats.js"(exports, module2) {
258746
258746
  "use strict";
258747
258747
  var replace2 = String.prototype.replace;
258748
258748
  var percentTwenties = /%20/g;
@@ -258766,9 +258766,9 @@ var require_formats = __commonJS({
258766
258766
  }
258767
258767
  });
258768
258768
 
258769
- // ../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/utils.js
258769
+ // ../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/utils.js
258770
258770
  var require_utils5 = __commonJS({
258771
- "../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/utils.js"(exports, module2) {
258771
+ "../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/utils.js"(exports, module2) {
258772
258772
  "use strict";
258773
258773
  var formats = require_formats();
258774
258774
  var has = Object.prototype.hasOwnProperty;
@@ -258796,7 +258796,7 @@ var require_utils5 = __commonJS({
258796
258796
  }
258797
258797
  };
258798
258798
  var arrayToObject2 = function arrayToObject3(source, options) {
258799
- var obj = options && options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
258799
+ var obj = options && options.plainObjects ? { __proto__: null } : {};
258800
258800
  for (var i = 0; i < source.length; ++i) {
258801
258801
  if (typeof source[i] !== "undefined") {
258802
258802
  obj[i] = source[i];
@@ -258808,7 +258808,7 @@ var require_utils5 = __commonJS({
258808
258808
  if (!source) {
258809
258809
  return target;
258810
258810
  }
258811
- if (typeof source !== "object") {
258811
+ if (typeof source !== "object" && typeof source !== "function") {
258812
258812
  if (isArray2(target)) {
258813
258813
  target.push(source);
258814
258814
  } else if (target && typeof target === "object") {
@@ -258858,7 +258858,7 @@ var require_utils5 = __commonJS({
258858
258858
  return acc;
258859
258859
  }, target);
258860
258860
  };
258861
- var decode = function(str2, decoder, charset) {
258861
+ var decode = function(str2, defaultDecoder, charset) {
258862
258862
  var strWithoutPlus = str2.replace(/\+/g, " ");
258863
258863
  if (charset === "iso-8859-1") {
258864
258864
  return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -258971,9 +258971,9 @@ var require_utils5 = __commonJS({
258971
258971
  }
258972
258972
  });
258973
258973
 
258974
- // ../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/stringify.js
258974
+ // ../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/stringify.js
258975
258975
  var require_stringify = __commonJS({
258976
- "../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/stringify.js"(exports, module2) {
258976
+ "../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/stringify.js"(exports, module2) {
258977
258977
  "use strict";
258978
258978
  var getSideChannel = require_side_channel();
258979
258979
  var utils = require_utils5();
@@ -259005,11 +259005,13 @@ var require_stringify = __commonJS({
259005
259005
  arrayFormat: "indices",
259006
259006
  charset: "utf-8",
259007
259007
  charsetSentinel: false,
259008
+ commaRoundTrip: false,
259008
259009
  delimiter: "&",
259009
259010
  encode: true,
259010
259011
  encodeDotInKeys: false,
259011
259012
  encoder: utils.encode,
259012
259013
  encodeValuesOnly: false,
259014
+ filter: void 0,
259013
259015
  format: defaultFormat,
259014
259016
  formatter: formats.formatters[defaultFormat],
259015
259017
  indices: false,
@@ -259083,18 +259085,18 @@ var require_stringify = __commonJS({
259083
259085
  var keys = Object.keys(obj);
259084
259086
  objKeys = sort2 ? keys.sort(sort2) : keys;
259085
259087
  }
259086
- var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, "%2E") : prefix;
259088
+ var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, "%2E") : String(prefix);
259087
259089
  var adjustedPrefix = commaRoundTrip && isArray2(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
259088
259090
  if (allowEmptyArrays && isArray2(obj) && obj.length === 0) {
259089
259091
  return adjustedPrefix + "[]";
259090
259092
  }
259091
259093
  for (var j = 0; j < objKeys.length; ++j) {
259092
259094
  var key = objKeys[j];
259093
- var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
259095
+ var value = typeof key === "object" && key && typeof key.value !== "undefined" ? key.value : obj[key];
259094
259096
  if (skipNulls && value === null) {
259095
259097
  continue;
259096
259098
  }
259097
- var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, "%2E") : key;
259099
+ var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
259098
259100
  var keyPrefix = isArray2(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + encodedKey : "[" + encodedKey + "]");
259099
259101
  sideChannel.set(object, step);
259100
259102
  var valueSideChannel = getSideChannel();
@@ -259170,7 +259172,7 @@ var require_stringify = __commonJS({
259170
259172
  arrayFormat,
259171
259173
  charset,
259172
259174
  charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults2.charsetSentinel,
259173
- commaRoundTrip: opts.commaRoundTrip,
259175
+ commaRoundTrip: !!opts.commaRoundTrip,
259174
259176
  delimiter: typeof opts.delimiter === "undefined" ? defaults2.delimiter : opts.delimiter,
259175
259177
  encode: typeof opts.encode === "boolean" ? opts.encode : defaults2.encode,
259176
259178
  encodeDotInKeys: typeof opts.encodeDotInKeys === "boolean" ? opts.encodeDotInKeys : defaults2.encodeDotInKeys,
@@ -259212,11 +259214,12 @@ var require_stringify = __commonJS({
259212
259214
  var sideChannel = getSideChannel();
259213
259215
  for (var i = 0; i < objKeys.length; ++i) {
259214
259216
  var key = objKeys[i];
259215
- if (options.skipNulls && obj[key] === null) {
259217
+ var value = obj[key];
259218
+ if (options.skipNulls && value === null) {
259216
259219
  continue;
259217
259220
  }
259218
259221
  pushToArray(keys, stringify(
259219
- obj[key],
259222
+ value,
259220
259223
  key,
259221
259224
  generateArrayPrefix,
259222
259225
  commaRoundTrip,
@@ -259250,9 +259253,9 @@ var require_stringify = __commonJS({
259250
259253
  }
259251
259254
  });
259252
259255
 
259253
- // ../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/parse.js
259256
+ // ../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/parse.js
259254
259257
  var require_parse4 = __commonJS({
259255
- "../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/parse.js"(exports, module2) {
259258
+ "../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/parse.js"(exports, module2) {
259256
259259
  "use strict";
259257
259260
  var utils = require_utils5();
259258
259261
  var has = Object.prototype.hasOwnProperty;
@@ -259321,7 +259324,8 @@ var require_parse4 = __commonJS({
259321
259324
  var part = parts[i];
259322
259325
  var bracketEqualsPos = part.indexOf("]=");
259323
259326
  var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
259324
- var key, val;
259327
+ var key;
259328
+ var val;
259325
259329
  if (pos === -1) {
259326
259330
  key = options.decoder(part, defaults2.decoder, charset, "key");
259327
259331
  val = options.strictNullHandling ? null : "";
@@ -259335,7 +259339,7 @@ var require_parse4 = __commonJS({
259335
259339
  );
259336
259340
  }
259337
259341
  if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
259338
- val = interpretNumericEntities(val);
259342
+ val = interpretNumericEntities(String(val));
259339
259343
  }
259340
259344
  if (part.indexOf("[]=") > -1) {
259341
259345
  val = isArray2(val) ? [val] : val;
@@ -259357,7 +259361,7 @@ var require_parse4 = __commonJS({
259357
259361
  if (root === "[]" && options.parseArrays) {
259358
259362
  obj = options.allowEmptyArrays && (leaf === "" || options.strictNullHandling && leaf === null) ? [] : [].concat(leaf);
259359
259363
  } else {
259360
- obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
259364
+ obj = options.plainObjects ? { __proto__: null } : {};
259361
259365
  var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
259362
259366
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
259363
259367
  var index = parseInt(decodedRoot, 10);
@@ -259458,10 +259462,10 @@ var require_parse4 = __commonJS({
259458
259462
  module2.exports = function(str2, opts) {
259459
259463
  var options = normalizeParseOptions(opts);
259460
259464
  if (str2 === "" || str2 === null || typeof str2 === "undefined") {
259461
- return options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
259465
+ return options.plainObjects ? { __proto__: null } : {};
259462
259466
  }
259463
259467
  var tempObj = typeof str2 === "string" ? parseValues(str2, options) : str2;
259464
- var obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
259468
+ var obj = options.plainObjects ? { __proto__: null } : {};
259465
259469
  var keys = Object.keys(tempObj);
259466
259470
  for (var i = 0; i < keys.length; ++i) {
259467
259471
  var key = keys[i];
@@ -259476,9 +259480,9 @@ var require_parse4 = __commonJS({
259476
259480
  }
259477
259481
  });
259478
259482
 
259479
- // ../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/index.js
259483
+ // ../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/index.js
259480
259484
  var require_lib11 = __commonJS({
259481
- "../../node_modules/.pnpm/qs@6.13.0/node_modules/qs/lib/index.js"(exports, module2) {
259485
+ "../../node_modules/.pnpm/qs@6.13.1/node_modules/qs/lib/index.js"(exports, module2) {
259482
259486
  "use strict";
259483
259487
  var stringify = require_stringify();
259484
259488
  var parse = require_parse4();
@@ -294956,7 +294960,7 @@ var state = {
294956
294960
  "title": "Botpress API",
294957
294961
  "description": "API for Botpress Cloud",
294958
294962
  "server": "https://api.botpress.cloud",
294959
- "version": "0.59.0",
294963
+ "version": "0.59.1",
294960
294964
  "prefix": "v1"
294961
294965
  },
294962
294966
  "errors": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/api",
3
- "version": "0.59.0",
3
+ "version": "0.59.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {