@danielx/civet 0.4.36 → 0.4.37
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/browser.js +1 -1
- package/dist/civet +3 -3
- package/dist/main.js +1 -1
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -14099,7 +14099,7 @@ ${input.slice(result.pos)}
|
|
|
14099
14099
|
compile: function(src, options = defaultOptions) {
|
|
14100
14100
|
var ast, code, events, filename, sm, srcMapJSON;
|
|
14101
14101
|
filename = options.filename || "unknown";
|
|
14102
|
-
if (options.
|
|
14102
|
+
if (!options.noCache) {
|
|
14103
14103
|
events = makeCache();
|
|
14104
14104
|
}
|
|
14105
14105
|
ast = prune(parse(src, { filename, events }));
|
package/dist/civet
CHANGED
|
@@ -56,9 +56,9 @@ readLines = function(rl) {
|
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
58
|
readLines(readline.createInterface(process.stdin)).then(function(input) {
|
|
59
|
-
var ast,
|
|
59
|
+
var ast, filename, inlineMap, js, noCache, output;
|
|
60
60
|
ast = process.argv.includes("--ast");
|
|
61
|
-
|
|
61
|
+
noCache = process.argv.includes("--no-cache");
|
|
62
62
|
inlineMap = process.argv.includes("--inline-map");
|
|
63
63
|
js = process.argv.includes("--js");
|
|
64
64
|
filename = "unknown";
|
|
@@ -66,7 +66,7 @@ readLines(readline.createInterface(process.stdin)).then(function(input) {
|
|
|
66
66
|
filename = fs.realpathSync("/dev/stdin");
|
|
67
67
|
} catch (error) {
|
|
68
68
|
}
|
|
69
|
-
output = compile(input, { ast,
|
|
69
|
+
output = compile(input, { ast, noCache, filename, inlineMap, js });
|
|
70
70
|
if (ast) {
|
|
71
71
|
output = JSON.stringify(output, null, 2);
|
|
72
72
|
}
|
package/dist/main.js
CHANGED
|
@@ -14096,7 +14096,7 @@ module.exports = {
|
|
|
14096
14096
|
compile: function(src, options = defaultOptions) {
|
|
14097
14097
|
var ast, code, events, filename, sm, srcMapJSON;
|
|
14098
14098
|
filename = options.filename || "unknown";
|
|
14099
|
-
if (options.
|
|
14099
|
+
if (!options.noCache) {
|
|
14100
14100
|
events = makeCache();
|
|
14101
14101
|
}
|
|
14102
14102
|
ast = prune(parse(src, { filename, events }));
|