@speedkit/cli 2.40.0 → 2.41.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [2.41.1](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.41.0...v2.41.1) (2024-07-05)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **integrate-devtools:** add chromeDist to releaseBot ([2207940](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/2207940a032e944a65cdc470a9bed8971bfe109b))
|
|
7
|
+
|
|
8
|
+
# [2.41.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.40.0...v2.41.0) (2024-07-05)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **customer-config:** update dh config template ([f0b0fc5](https://gitlab.orestes.info/baqend/speed-kit-cli/commit/f0b0fc59452d49cb75980a60dc545b993353cc64))
|
|
14
|
+
|
|
1
15
|
# [2.40.0](https://gitlab.orestes.info/baqend/speed-kit-cli/compare/v2.39.0...v2.40.0) (2024-07-05)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const core_1 = require("@oclif/core");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const node_path_1 = tslib_1.__importDefault(require("node:path"));
|
|
6
|
+
const node_child_process_1 = require("node:child_process");
|
|
7
7
|
const dotenv = tslib_1.__importStar(require("dotenv"));
|
|
8
8
|
dotenv.config();
|
|
9
9
|
class Edit extends core_1.Command {
|
|
@@ -11,7 +11,7 @@ class Edit extends core_1.Command {
|
|
|
11
11
|
static examples = [`$ sk config edit`];
|
|
12
12
|
async run() {
|
|
13
13
|
const editor = process.env.EDITOR || "nano";
|
|
14
|
-
const editorSpawn = (0,
|
|
14
|
+
const editorSpawn = (0, node_child_process_1.spawn)(editor, [node_path_1.default.resolve(this.config.configDir, "config.json")], {
|
|
15
15
|
stdio: "inherit",
|
|
16
16
|
detached: true,
|
|
17
17
|
});
|
|
@@ -44,21 +44,22 @@
|
|
|
44
44
|
{{/if}}
|
|
45
45
|
{{/unless}}
|
|
46
46
|
const config = {
|
|
47
|
-
rejectHTML({db, {{#if addPreRendering}}document{{
|
|
47
|
+
rejectHTML({db, html, {{#if addPreRendering}}document, {{/if}}variation, url, headers}) {
|
|
48
48
|
/* Use to configure guards to prevent e.g. error and captcha pages from being cached */
|
|
49
49
|
return false;
|
|
50
50
|
},
|
|
51
|
-
blacklistHTML({db, {{#if addPreRendering}}document{{
|
|
51
|
+
blacklistHTML({db, html, {{#if addPreRendering}}document, {{/if}}variation, url, headers}) {
|
|
52
52
|
/* Use to configure guards to black-list e.g. specific page types */
|
|
53
53
|
{{#if addPreRendering}}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
// dynamically blacklist unsupported variations as they are not covered in lambda
|
|
55
|
+
if (variation.toUpperCase() === "TABLET") {
|
|
56
|
+
return `Tablet viewport is unsupported: ${url}`;
|
|
57
|
+
}
|
|
58
|
+
|
|
58
59
|
{{/if}}
|
|
59
60
|
return false;
|
|
60
61
|
},
|
|
61
|
-
shouldTransform({db, {{#if addPreRendering}}document{{
|
|
62
|
+
shouldTransform({db, html, {{#if addPreRendering}}document, {{/if}}variation, url, headers}) {
|
|
62
63
|
return true;
|
|
63
64
|
},
|
|
64
65
|
shouldDelayDom({db, {{#if addPreRendering}}document{{else}}html{{/if}}, variation, url, headers}) {
|
package/oclif.manifest.json
CHANGED