@scout9/app 1.0.0-alpha.0.4.0 → 1.0.0-alpha.0.4.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.
@@ -29483,7 +29483,7 @@ class Body {
29483
29483
  }
29484
29484
  const {
29485
29485
  toFormData
29486
- } = await Promise.resolve().then(function () { return require("./multipart-parser-d7d5d504.cjs"); });
29486
+ } = await Promise.resolve().then(function () { return require("./multipart-parser-1d947388.cjs"); });
29487
29487
  return toFormData(this.body, ct);
29488
29488
  }
29489
29489
 
@@ -41884,7 +41884,7 @@ function _loadUserPackageJson() {
41884
41884
  targetPkgUrl = isTest ? packageTestJsonUrl : packageJsonUrl;
41885
41885
  _context.t0 = JSON;
41886
41886
  _context.next = 10;
41887
- return fs__default["default"].readFile(new URL(targetPkgUrl, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-9822d519.js', document.baseURI).href))), 'utf-8');
41887
+ return fs__default["default"].readFile(new URL(targetPkgUrl, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-9280182b.js', document.baseURI).href))), 'utf-8');
41888
41888
  case 10:
41889
41889
  _context.t1 = _context.sent;
41890
41890
  pkg = _context.t0.parse.call(_context.t0, _context.t1);
@@ -42061,12 +42061,12 @@ function _did() {
42061
42061
  prompt: prompt,
42062
42062
  convoId: convoId,
42063
42063
  event: event
42064
- }).then(handleAxiosResponse);
42065
- case 8:
42066
- _yield$Scout9Api$did$ = _context2.sent["catch"](function (err) {
42064
+ }).then(handleAxiosResponse)["catch"](function (err) {
42067
42065
  console.error('Error in did macro', err);
42068
42066
  throw err;
42069
42067
  });
42068
+ case 8:
42069
+ _yield$Scout9Api$did$ = _context2.sent;
42070
42070
  value = _yield$Scout9Api$did$.value;
42071
42071
  return _context2.abrupt("return", value);
42072
42072
  case 11:
@@ -42104,12 +42104,12 @@ function _context() {
42104
42104
  examples: examples,
42105
42105
  convoId: convoId,
42106
42106
  event: event
42107
- }).then(handleAxiosResponse);
42108
- case 8:
42109
- _yield$Scout9Api$capt = _context3.sent["catch"](function (err) {
42107
+ }).then(handleAxiosResponse)["catch"](function (err) {
42110
42108
  console.error('Error in context macro', err);
42111
42109
  throw err;
42112
42110
  });
42111
+ case 8:
42112
+ _yield$Scout9Api$capt = _context3.sent;
42113
42113
  value = _yield$Scout9Api$capt.value;
42114
42114
  return _context3.abrupt("return", value);
42115
42115
  case 11:
@@ -43115,7 +43115,7 @@ var ProjectFiles = /*#__PURE__*/function () {
43115
43115
  return ProjectFiles;
43116
43116
  }();
43117
43117
 
43118
- var __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-9822d519.js', document.baseURI).href)));
43118
+ var __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-9280182b.js', document.baseURI).href)));
43119
43119
  var __dirname$1 = path__default["default"].dirname(__filename$1);
43120
43120
  function zipDirectory(source, out) {
43121
43121
  var archive = archiver$1('tar', {
@@ -43330,7 +43330,7 @@ function _buildApp() {
43330
43330
  case 11:
43331
43331
  _context4.t0 = JSON;
43332
43332
  _context4.next = 14;
43333
- return fs__default["default"].readFile(new URL(templatePackagePath, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-9822d519.js', document.baseURI).href))), 'utf-8');
43333
+ return fs__default["default"].readFile(new URL(templatePackagePath, (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('index-9280182b.js', document.baseURI).href))), 'utf-8');
43334
43334
  case 14:
43335
43335
  _context4.t1 = _context4.sent;
43336
43336
  packageTemplate = _context4.t0.parse.call(_context4.t0, _context4.t1);
package/dist/index.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var index = require("./index-9822d519.cjs");
5
+ var index = require("./index-9280182b.cjs");
6
6
  var dev = require("./dev-0876e8d1.cjs");
7
7
  require("./spirits-5c9243a1.cjs");
8
8
  require("./macros-e4105c56.cjs");
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('node:fs');
4
4
  require('node:path');
5
- var index = require("./index-9822d519.cjs");
5
+ var index = require("./index-9280182b.cjs");
6
6
  require("./spirits-5c9243a1.cjs");
7
7
  require("./dev-0876e8d1.cjs");
8
8
  require('util');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scout9/app",
3
- "version": "1.0.0-alpha.0.4.0",
3
+ "version": "1.0.0-alpha.0.4.1",
4
4
  "description": "Build and deploy your Scout9 app for SMS auto replies",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -33,11 +33,11 @@ export async function did(prompt) {
33
33
  convoId,
34
34
  event
35
35
  })
36
- .then(handleAxiosResponse))
36
+ .then(handleAxiosResponse)
37
37
  .catch((err) => {
38
38
  console.error('Error in did macro', err);
39
39
  throw err;
40
- });
40
+ }));
41
41
  return value;
42
42
  }
43
43
 
@@ -77,10 +77,10 @@ export async function context(prompt, examples) {
77
77
  convoId,
78
78
  event,
79
79
  })
80
- .then(handleAxiosResponse))
80
+ .then(handleAxiosResponse)
81
81
  .catch((err) => {
82
82
  console.error('Error in context macro', err);
83
83
  throw err;
84
- });
84
+ }));
85
85
  return value;
86
86
  }