@fedify/lint 2.4.0-dev.1666 → 2.4.0-dev.1727
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/deno.json +1 -1
- package/dist/index.cjs +1 -2
- package/dist/index.js +1 -1
- package/dist/{outbox-listener-delivery-required-DOQezQGO.js → outbox-listener-delivery-required-BUbps-i4.js} +4 -4
- package/dist/{outbox-listener-delivery-required-DvXyH24A.cjs → outbox-listener-delivery-required-CJG1g7eO.cjs} +4 -5
- package/dist/oxlint.cjs +1 -1
- package/dist/oxlint.js +1 -1
- package/package.json +3 -3
package/deno.json
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
//#endregion
|
|
27
|
-
const require_outbox_listener_delivery_required = require("./outbox-listener-delivery-required-
|
|
27
|
+
const require_outbox_listener_delivery_required = require("./outbox-listener-delivery-required-CJG1g7eO.cjs");
|
|
28
28
|
let _fxts_core = require("@fxts/core");
|
|
29
29
|
let _typescript_eslint_parser = require("@typescript-eslint/parser");
|
|
30
30
|
_typescript_eslint_parser = __toESM(_typescript_eslint_parser, 1);
|
|
@@ -97,6 +97,5 @@ const recommendedConfig = {
|
|
|
97
97
|
rules: recommendedRules
|
|
98
98
|
};
|
|
99
99
|
//#endregion
|
|
100
|
-
exports.__toESM = __toESM;
|
|
101
100
|
exports.default = recommendedConfig;
|
|
102
101
|
exports.plugin = plugin;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as eslint$13, D as RULE_IDS, E as eslint$21, O as name, S as eslint$12, T as eslint$11, _ as eslint, a as eslint$18, b as eslint$4, c as eslint$17, d as eslint$7, f as eslint$8, g as eslint$1, h as eslint$15, i as eslint$22, k as version, l as eslint$20, m as eslint$14, n as eslint$24, o as eslint$19, p as eslint$9, r as eslint$25, s as eslint$16, t as eslint$23, u as eslint$6, v as eslint$2, w as eslint$10, x as eslint$5, y as eslint$3 } from "./outbox-listener-delivery-required-
|
|
1
|
+
import { C as eslint$13, D as RULE_IDS, E as eslint$21, O as name, S as eslint$12, T as eslint$11, _ as eslint, a as eslint$18, b as eslint$4, c as eslint$17, d as eslint$7, f as eslint$8, g as eslint$1, h as eslint$15, i as eslint$22, k as version, l as eslint$20, m as eslint$14, n as eslint$24, o as eslint$19, p as eslint$9, r as eslint$25, s as eslint$16, t as eslint$23, u as eslint$6, v as eslint$2, w as eslint$10, x as eslint$5, y as eslint$3 } from "./outbox-listener-delivery-required-BUbps-i4.js";
|
|
2
2
|
import { fromEntries, keys, map, pipe } from "@fxts/core";
|
|
3
3
|
import parser from "@typescript-eslint/parser";
|
|
4
4
|
//#region src/index.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { always, every, head, isEmpty, isObject, negate, pipe, pipeLazy, prop, some, toArray, unless, when } from "@fxts/core";
|
|
2
2
|
//#region deno.json
|
|
3
3
|
var name = "@fedify/lint";
|
|
4
|
-
var version = "2.4.0-dev.
|
|
4
|
+
var version = "2.4.0-dev.1727+1eadcb04";
|
|
5
5
|
//#endregion
|
|
6
6
|
//#region src/lib/const.ts
|
|
7
7
|
/**
|
|
@@ -712,7 +712,7 @@ function getContextParamName(callback) {
|
|
|
712
712
|
const contextParam = unwrapAssignmentPattern(callback.params[0]);
|
|
713
713
|
return contextParam?.type === "Identifier" ? contextParam.name : null;
|
|
714
714
|
}
|
|
715
|
-
const FUNCTION_NODE_TYPES = new Set([
|
|
715
|
+
const FUNCTION_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
716
716
|
"FunctionDeclaration",
|
|
717
717
|
"FunctionExpression",
|
|
718
718
|
"ArrowFunctionExpression"
|
|
@@ -853,7 +853,7 @@ function urlDerivesFromGetObjectUri(value, ctx, seen) {
|
|
|
853
853
|
}
|
|
854
854
|
return false;
|
|
855
855
|
}
|
|
856
|
-
const SPREAD_TYPES = new Set([
|
|
856
|
+
const SPREAD_TYPES = /* @__PURE__ */ new Set([
|
|
857
857
|
"SpreadElement",
|
|
858
858
|
"SpreadProperty",
|
|
859
859
|
"ExperimentalSpreadProperty"
|
|
@@ -988,7 +988,7 @@ const isChainedFromOutboxListeners = (expr, federationTracker) => {
|
|
|
988
988
|
if (methodName === "authorize" || methodName === "onError" || methodName === "on") return isChainedFromOutboxListeners(expr.callee.object, federationTracker);
|
|
989
989
|
return false;
|
|
990
990
|
};
|
|
991
|
-
const DELIVERY_METHOD_NAMES = new Set(["sendActivity", "forwardActivity"]);
|
|
991
|
+
const DELIVERY_METHOD_NAMES = /* @__PURE__ */ new Set(["sendActivity", "forwardActivity"]);
|
|
992
992
|
const getMemberPropertyName = (expr) => {
|
|
993
993
|
if (expr.type !== "MemberExpression") return null;
|
|
994
994
|
const property = expr.property;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
require("./index.cjs");
|
|
2
1
|
let _fxts_core = require("@fxts/core");
|
|
3
2
|
//#region deno.json
|
|
4
3
|
var name = "@fedify/lint";
|
|
5
|
-
var version = "2.4.0-dev.
|
|
4
|
+
var version = "2.4.0-dev.1727+1eadcb04";
|
|
6
5
|
//#endregion
|
|
7
6
|
//#region src/lib/const.ts
|
|
8
7
|
/**
|
|
@@ -713,7 +712,7 @@ function getContextParamName(callback) {
|
|
|
713
712
|
const contextParam = unwrapAssignmentPattern(callback.params[0]);
|
|
714
713
|
return contextParam?.type === "Identifier" ? contextParam.name : null;
|
|
715
714
|
}
|
|
716
|
-
const FUNCTION_NODE_TYPES = new Set([
|
|
715
|
+
const FUNCTION_NODE_TYPES = /* @__PURE__ */ new Set([
|
|
717
716
|
"FunctionDeclaration",
|
|
718
717
|
"FunctionExpression",
|
|
719
718
|
"ArrowFunctionExpression"
|
|
@@ -854,7 +853,7 @@ function urlDerivesFromGetObjectUri(value, ctx, seen) {
|
|
|
854
853
|
}
|
|
855
854
|
return false;
|
|
856
855
|
}
|
|
857
|
-
const SPREAD_TYPES = new Set([
|
|
856
|
+
const SPREAD_TYPES = /* @__PURE__ */ new Set([
|
|
858
857
|
"SpreadElement",
|
|
859
858
|
"SpreadProperty",
|
|
860
859
|
"ExperimentalSpreadProperty"
|
|
@@ -989,7 +988,7 @@ const isChainedFromOutboxListeners = (expr, federationTracker) => {
|
|
|
989
988
|
if (methodName === "authorize" || methodName === "onError" || methodName === "on") return isChainedFromOutboxListeners(expr.callee.object, federationTracker);
|
|
990
989
|
return false;
|
|
991
990
|
};
|
|
992
|
-
const DELIVERY_METHOD_NAMES = new Set(["sendActivity", "forwardActivity"]);
|
|
991
|
+
const DELIVERY_METHOD_NAMES = /* @__PURE__ */ new Set(["sendActivity", "forwardActivity"]);
|
|
993
992
|
const getMemberPropertyName = (expr) => {
|
|
994
993
|
if (expr.type !== "MemberExpression") return null;
|
|
995
994
|
const property = expr.property;
|
package/dist/oxlint.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_outbox_listener_delivery_required = require("./outbox-listener-delivery-required-
|
|
1
|
+
const require_outbox_listener_delivery_required = require("./outbox-listener-delivery-required-CJG1g7eO.cjs");
|
|
2
2
|
//#region src/oxlint.ts
|
|
3
3
|
const rules = {
|
|
4
4
|
[require_outbox_listener_delivery_required.RULE_IDS.actorIdMismatch]: require_outbox_listener_delivery_required.eslint$16,
|
package/dist/oxlint.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as eslint$13, D as RULE_IDS, E as eslint$21, O as name, S as eslint$12, T as eslint$11, _ as eslint, a as eslint$18, b as eslint$4, c as eslint$17, d as eslint$7, f as eslint$8, g as eslint$1, h as eslint$15, i as eslint$22, k as version, l as eslint$20, m as eslint$14, n as eslint$24, o as eslint$19, p as eslint$9, r as eslint$25, s as eslint$16, t as eslint$23, u as eslint$6, v as eslint$2, w as eslint$10, x as eslint$5, y as eslint$3 } from "./outbox-listener-delivery-required-
|
|
1
|
+
import { C as eslint$13, D as RULE_IDS, E as eslint$21, O as name, S as eslint$12, T as eslint$11, _ as eslint, a as eslint$18, b as eslint$4, c as eslint$17, d as eslint$7, f as eslint$8, g as eslint$1, h as eslint$15, i as eslint$22, k as version, l as eslint$20, m as eslint$14, n as eslint$24, o as eslint$19, p as eslint$9, r as eslint$25, s as eslint$16, t as eslint$23, u as eslint$6, v as eslint$2, w as eslint$10, x as eslint$5, y as eslint$3 } from "./outbox-listener-delivery-required-BUbps-i4.js";
|
|
2
2
|
//#region src/oxlint.ts
|
|
3
3
|
const rules = {
|
|
4
4
|
[RULE_IDS.actorIdMismatch]: eslint,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/lint",
|
|
3
|
-
"version": "2.4.0-dev.
|
|
3
|
+
"version": "2.4.0-dev.1727+1eadcb04",
|
|
4
4
|
"description": "Fedify linting rules and plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Fedify",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
],
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"eslint": ">=9.0.0",
|
|
54
|
-
"@fedify/fedify": "^2.4.0-dev.
|
|
54
|
+
"@fedify/fedify": "^2.4.0-dev.1727+1eadcb04"
|
|
55
55
|
},
|
|
56
56
|
"peerDependenciesMeta": {
|
|
57
57
|
"eslint": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@fxts/core": "^1.
|
|
62
|
+
"@fxts/core": "^1.21.1",
|
|
63
63
|
"@typescript-eslint/parser": "^8.49.0",
|
|
64
64
|
"@typescript-eslint/utils": "^8.0.0"
|
|
65
65
|
},
|