gscan 5.4.0 → 5.4.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/README.md +5 -2
- package/lib/ast-linter/rules/internal/scope.js +5 -1
- package/package.json +8 -10
package/README.md
CHANGED
|
@@ -96,9 +96,12 @@ gscan.checkZip({
|
|
|
96
96
|
|
|
97
97
|
### Publish
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
Ghost core team only
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
1. run `yarn ship` - this bumps the version, commits, tags and pushes to `main`
|
|
102
|
+
2. npm publishing is handled by GitHub Actions in `.github/workflows/publish.yml`
|
|
103
|
+
|
|
104
|
+
Manual preview is available via workflow dispatch with `dry-run: true`
|
|
102
105
|
|
|
103
106
|
### Tools
|
|
104
107
|
When developing new rules or testing gscan following tools are great to have in the toolbelt:
|
|
@@ -147,7 +147,11 @@ class Frame {
|
|
|
147
147
|
throw new Error('fileName must be passed as an option when constructing a template-level Frame');
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
const
|
|
150
|
+
const templateContext = getTemplateContext(options.fileName);
|
|
151
|
+
if (!templateContext) {
|
|
152
|
+
throw new Error(`No template context found for template: ${options.fileName}`);
|
|
153
|
+
}
|
|
154
|
+
const {context, locals} = templateContext;
|
|
151
155
|
this.context = context;
|
|
152
156
|
this.locals = locals; // eg. {post: {...postContext}}
|
|
153
157
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gscan",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.2",
|
|
4
4
|
"description": "Scans Ghost themes looking for errors, deprecations, features and compatibility",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ghost",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"posttest": "yarn lint",
|
|
38
38
|
"preship": "yarn test",
|
|
39
39
|
"ship": "pro-ship",
|
|
40
|
-
"
|
|
40
|
+
"ship:ci": "npm publish"
|
|
41
41
|
},
|
|
42
42
|
"bin": {
|
|
43
43
|
"gscan": "./bin/cli.js"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@sentry/node": "10.
|
|
46
|
+
"@sentry/node": "10.47.0",
|
|
47
47
|
"@tryghost/config": "2.0.3",
|
|
48
48
|
"@tryghost/debug": "2.0.3",
|
|
49
49
|
"@tryghost/errors": "3.0.3",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"express-handlebars": "7.1.3",
|
|
58
58
|
"fs-extra": "11.3.4",
|
|
59
59
|
"glob": "13.0.6",
|
|
60
|
-
"lodash": "4.
|
|
60
|
+
"lodash": "4.18.1",
|
|
61
61
|
"multer": "2.1.1",
|
|
62
62
|
"semver": "7.7.4",
|
|
63
63
|
"validator": "^13.0.0"
|
|
@@ -66,14 +66,12 @@
|
|
|
66
66
|
"@eslint/compat": "2.0.3",
|
|
67
67
|
"@eslint/eslintrc": "3.3.5",
|
|
68
68
|
"@eslint/js": "10.0.1",
|
|
69
|
-
"@tryghost/pro-ship": "1.0.
|
|
70
|
-
"@vitest/coverage-v8": "4.1.
|
|
71
|
-
"eslint": "10.0
|
|
69
|
+
"@tryghost/pro-ship": "1.0.8",
|
|
70
|
+
"@vitest/coverage-v8": "4.1.2",
|
|
71
|
+
"eslint": "10.1.0",
|
|
72
72
|
"eslint-plugin-ghost": "3.5.0",
|
|
73
73
|
"nodemon": "3.1.14",
|
|
74
|
-
"
|
|
75
|
-
"sinon": "21.0.2",
|
|
76
|
-
"vitest": "4.1.0"
|
|
74
|
+
"vitest": "4.1.2"
|
|
77
75
|
},
|
|
78
76
|
"resolutions": {
|
|
79
77
|
"node-loggly-bulk": "4.0.2",
|