@forge/lint 6.2.1-next.0 → 6.2.1-next.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @forge/lint
|
|
2
2
|
|
|
3
|
+
## 6.2.1-next.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [db66d54]
|
|
8
|
+
- @forge/manifest@13.3.2-next.2
|
|
9
|
+
- @forge/cli-shared@9.4.1-next.2
|
|
10
|
+
|
|
11
|
+
## 6.2.1-next.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 0795370: Accept `.cjs` function handler files
|
|
16
|
+
- Updated dependencies [0795370]
|
|
17
|
+
- @forge/manifest@13.3.2-next.1
|
|
18
|
+
- @forge/cli-shared@9.4.1-next.1
|
|
19
|
+
|
|
3
20
|
## 6.2.1-next.0
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler-linter.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/handler-linter/handler-linter.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"handler-linter.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/handler-linter/handler-linter.ts"],"names":[],"mappings":"AACA,OAAO,EAA4C,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEvG,OAAO,UAAU,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAW,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGrF,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAE/D,UAAU,0BAA0B;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC;IAC7B,gBAAgB,EAAE,aAAa,CAAC;CACjC;AAED,qBAAa,aAAc,SAAQ,UAAU,CAAC,cAAc,EAAE,0BAA0B,EAAE,aAAa,CAAC;IAGpG,OAAO,CAAC,QAAQ;gBADhB,WAAW,EAAE,MAAM,EACX,QAAQ,EAAE,QAAQ,EAC1B,MAAM,EAAE,UAAU;IAKP,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IASvC,OAAO,CAAC,YAAY,CAA2E;IAE/F,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,mBAAmB;IAc3B,SAAS,CAAC,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAYjD,SAAS,CAAC,eAAe,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE;IAK3D,SAAS,CAAC,oBAAoB,CAAC,cAAc,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI;CAKvF"}
|
|
@@ -23,7 +23,7 @@ class HandlerLinter extends base_linter_1.default {
|
|
|
23
23
|
escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
24
24
|
isHandlerFile(handler, filepath) {
|
|
25
25
|
const handlersDirectory = (0, manifest_1.getHandlersDirectory)(this.manifest);
|
|
26
|
-
const handlerFileRegex = new RegExp(`^${this.escapeRegExp(handlersDirectory)}(\/|\\\\)${this.escapeRegExp(handler.file)}\.
|
|
26
|
+
const handlerFileRegex = new RegExp(`^${this.escapeRegExp(handlersDirectory)}(\/|\\\\)${this.escapeRegExp(handler.file)}\.(${manifest_1.HANDLER_EXTENSIONS.join('|')})$`);
|
|
27
27
|
return handlerFileRegex.test(filepath);
|
|
28
28
|
}
|
|
29
29
|
getFunctionHandlers(manifest) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/lint",
|
|
3
|
-
"version": "6.2.1-next.
|
|
3
|
+
"version": "6.2.1-next.2",
|
|
4
4
|
"description": "Linting for forge apps",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"eslint-plugin-import": "^2.29.1"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@forge/cli-shared": "9.4.1-next.
|
|
21
|
+
"@forge/cli-shared": "9.4.1-next.2",
|
|
22
22
|
"@forge/csp": "6.3.1",
|
|
23
23
|
"@forge/egress": "3.0.0",
|
|
24
|
-
"@forge/manifest": "13.3.2-next.
|
|
24
|
+
"@forge/manifest": "13.3.2-next.2",
|
|
25
25
|
"@typescript-eslint/typescript-estree": "^5.62.0",
|
|
26
26
|
"archiver": "^8.0.0",
|
|
27
27
|
"array.prototype.flatmap": "^1.3.3",
|