utilitas 1999.1.44 → 1999.1.46

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/lib/alan.mjs CHANGED
@@ -712,7 +712,7 @@ const packResp = async (resp, options) => {
712
712
  else if (options?.simple && options?.jsonMode) { return json; }
713
713
  else if (options?.simple && options?.imageMode) { return images; }
714
714
  else if (options?.simple) { return simpleText; }
715
- else if (options?.jsonMode) { txt = `\`\`\`json\n${simpleText}\n\`\`\``; }
715
+ else if (options?.jsonMode) { txt = simpleText; }
716
716
  // references debug codes:
717
717
  // references = {
718
718
  // "segments": [
package/lib/bot.mjs CHANGED
@@ -1057,7 +1057,7 @@ const parseArgs = async (args, ctx) => {
1057
1057
  const init = async (options) => {
1058
1058
  if (options) {
1059
1059
  assert(
1060
- insensitiveCompare(options?.botProvider, provider),
1060
+ insensitiveCompare(options?.provider, provider),
1061
1061
  'Invalid bot provider.', 501
1062
1062
  );
1063
1063
  if (isPrimary) {
package/lib/manifest.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  const manifest = {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1999.1.44",
4
+ "version": "1999.1.46",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "1999.1.44",
4
+ "version": "1999.1.46",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",