Commit d5f102b
Changed files (6)
build/core.cjs
@@ -297,9 +297,9 @@ var log = function(entry) {
const data = format(entry);
stream.write(data);
};
-var SYNTAX = "()[]{}<>;:+|&=";
-var CMD_BREAK = /* @__PURE__ */ new Set(["|", "&", ";", ">", "<"]);
var SPACE_RE = /\s/;
+var SYNTAX = "()[]{}<>;:+|&=";
+var CMD_BREAK = "|&;><";
var RESERVED_WORDS = /* @__PURE__ */ new Set([
"if",
"then",
@@ -329,7 +329,7 @@ function formatCmd(cmd) {
if (word) {
pos++;
if (mode === "syntax") {
- if (CMD_BREAK.has(word)) {
+ if (CMD_BREAK.includes(word)) {
pos = 0;
}
out += import_vendor_core.chalk.red(buf);
build/vendor.cjs
@@ -1,6 +1,5 @@
"use strict";
const {
- __export,
__reExport,
__toCommonJS
} = require('./esblib.cjs');
@@ -8,17 +7,12 @@ const {
// src/vendor.ts
var vendor_exports = {};
-__export(vendor_exports, {
- createRequire: () => import_vendor_extra.createRequire
-});
module.exports = __toCommonJS(vendor_exports);
__reExport(vendor_exports, require("./vendor-core.cjs"), module.exports);
__reExport(vendor_exports, require("./vendor-extra.cjs"), module.exports);
-var import_vendor_extra = require("./vendor-extra.cjs");
/* c8 ignore next 100 */
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
- createRequire,
...require("./vendor-core.cjs"),
...require("./vendor-extra.cjs")
});
\ No newline at end of file
build/vendor.d.ts
@@ -3,4 +3,3 @@
export * from './vendor-core.js';
export * from './vendor-extra.js';
-export { createRequire } from './vendor-extra.js';
src/log.ts
@@ -120,9 +120,9 @@ export const log: Log = function (entry) {
stream.write(data)
}
-const SYNTAX = '()[]{}<>;:+|&='
-const CMD_BREAK = new Set(['|', '&', ';', '>', '<'])
const SPACE_RE = /\s/
+const SYNTAX = '()[]{}<>;:+|&='
+const CMD_BREAK = '|&;><'
const RESERVED_WORDS = new Set([
'if',
'then',
@@ -153,7 +153,7 @@ export function formatCmd(cmd: string): string {
if (word) {
pos++
if (mode === 'syntax') {
- if (CMD_BREAK.has(word)) {
+ if (CMD_BREAK.includes(word)) {
pos = 0
}
out += chalk.red(buf)
src/vendor.ts
@@ -14,4 +14,3 @@
export * from './vendor-core.ts'
export * from './vendor-extra.ts'
-export { createRequire } from './vendor-extra.ts'
.size-limit.json
@@ -15,7 +15,7 @@
"README.md",
"LICENSE"
],
- "limit": "120.60 kB",
+ "limit": "120.55 kB",
"brotli": false,
"gzip": false
},
@@ -29,14 +29,14 @@
"build/globals.js",
"build/deno.js"
],
- "limit": "813.0 kB",
+ "limit": "812.75 kB",
"brotli": false,
"gzip": false
},
{
"name": "libdefs",
"path": "build/*.d.ts",
- "limit": "39.05 kB",
+ "limit": "39.00 kB",
"brotli": false,
"gzip": false
},
@@ -62,7 +62,7 @@
"README.md",
"LICENSE"
],
- "limit": "868.40 kB",
+ "limit": "868.10 kB",
"brotli": false,
"gzip": false
}