create-mastra 0.10.3-alpha.1 → 0.10.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 +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -432,8 +432,8 @@ function requireQuote () {
|
|
|
432
432
|
if (s && typeof s === 'object') {
|
|
433
433
|
return s.op.replace(/(.)/g, '\\$1');
|
|
434
434
|
}
|
|
435
|
-
if ((/["\s
|
|
436
|
-
return "'" + s.replace(/(['])/g, '\\$1') + "'";
|
|
435
|
+
if ((/["\s]/).test(s) && !(/'/).test(s)) {
|
|
436
|
+
return "'" + s.replace(/(['\\])/g, '\\$1') + "'";
|
|
437
437
|
}
|
|
438
438
|
if ((/["'\s]/).test(s)) {
|
|
439
439
|
return '"' + s.replace(/(["\\$`!])/g, '\\$1') + '"';
|
|
@@ -540,7 +540,7 @@ function requireParse () {
|
|
|
540
540
|
return matches.map(function (match) {
|
|
541
541
|
var s = match[0];
|
|
542
542
|
if (!s || commented) {
|
|
543
|
-
return void
|
|
543
|
+
return void undefined;
|
|
544
544
|
}
|
|
545
545
|
if (controlRE.test(s)) {
|
|
546
546
|
return { op: s };
|