@rotorsoft/act-diagram 0.3.0 → 0.3.2
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/.tsbuildinfo +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -716,9 +716,9 @@ function resolve(imp, fromPath, byKey) {
|
|
|
716
716
|
// src/client/lib/evaluate.ts
|
|
717
717
|
var stripNonCode = (src, level = "full") => {
|
|
718
718
|
const blank = (m) => m.replace(/[^\n]/g, " ");
|
|
719
|
-
let result = src.replace(/\/\/[^\n]*/g, blank).replace(/\/\*[\s\S]*?\*\//g, blank).replace(/`(?:\\[\s\S]|[
|
|
719
|
+
let result = src.replace(/\/\/[^\n]*/g, blank).replace(/\/\*[\s\S]*?\*\//g, blank).replace(/`(?:\\[\s\S]|[^`\\])*`/g, blank);
|
|
720
720
|
if (level === "full") {
|
|
721
|
-
result = result.replace(/"(?:\\[\s\S]|[^"])*"/g, blank).replace(/'(?:\\[\s\S]|[^'])*'/g, blank);
|
|
721
|
+
result = result.replace(/"(?:\\[\s\S]|[^"\\])*"/g, blank).replace(/'(?:\\[\s\S]|[^'\\])*'/g, blank);
|
|
722
722
|
}
|
|
723
723
|
return result;
|
|
724
724
|
};
|
|
@@ -829,7 +829,7 @@ function execute(files) {
|
|
|
829
829
|
"module",
|
|
830
830
|
`
|
|
831
831
|
"use strict";
|
|
832
|
-
var __filename =
|
|
832
|
+
var __filename = ${JSON.stringify(file.path)};
|
|
833
833
|
var __dirname = ".";
|
|
834
834
|
var process = { env: {}, cwd: function() { return "/"; }, exit: function() {}, on: function() {}, off: function() {} };
|
|
835
835
|
var Buffer = { from: function() { return ""; } };
|