@noego/trust 0.5.1-dev.3 → 0.5.1-dev.5
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/{baseline-DMNO7IAl.d.ts → baseline-DsqHPLAg.d.ts} +9 -2
- package/dist/{chunk-VJGGEY4G.js → chunk-4XGOH7JE.js} +11 -1
- package/dist/{chunk-VJGGEY4G.js.map → chunk-4XGOH7JE.js.map} +1 -1
- package/dist/{chunk-2MSSO67W.js → chunk-6K5I3ZRI.js} +2 -2
- package/dist/{chunk-3IIEQHH2.js → chunk-QTS55J43.js} +1856 -123
- package/dist/chunk-QTS55J43.js.map +1 -0
- package/dist/cli/index.js +5 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +2 -2
- package/dist/eslint/index.d.ts +3 -2
- package/dist/eslint/index.js +49 -14
- package/dist/eslint/index.js.map +1 -1
- package/dist/index.cjs +1191 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +171 -2
- package/dist/index.d.ts +171 -2
- package/dist/index.js +1182 -2
- package/dist/index.js.map +1 -1
- package/dist/native/trust_native_wasm.wasm +0 -0
- package/package.json +4 -4
- package/dist/chunk-3IIEQHH2.js.map +0 -1
- /package/dist/{chunk-2MSSO67W.js.map → chunk-6K5I3ZRI.js.map} +0 -0
package/dist/cli/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
untrustedValueContext,
|
|
25
25
|
untrustedValueMessage,
|
|
26
26
|
untrustedValuesIn
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-QTS55J43.js";
|
|
28
28
|
import {
|
|
29
29
|
compareFindings,
|
|
30
30
|
forEachSourceFile,
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
logWalkFailure,
|
|
35
35
|
relativeTo,
|
|
36
36
|
resolveFiles
|
|
37
|
-
} from "../chunk-
|
|
37
|
+
} from "../chunk-6K5I3ZRI.js";
|
|
38
38
|
import {
|
|
39
39
|
BOUNDARY_RULE,
|
|
40
40
|
DROPPED_RESULT_RULE,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
svelteFor,
|
|
63
63
|
svelteForSource,
|
|
64
64
|
updateBaseline
|
|
65
|
-
} from "../chunk-
|
|
65
|
+
} from "../chunk-4XGOH7JE.js";
|
|
66
66
|
|
|
67
67
|
// src/cli/baseline-command.ts
|
|
68
68
|
import { existsSync, writeFileSync } from "fs";
|
|
@@ -179,7 +179,7 @@ function nativeEngine(options = {}) {
|
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
// src/cli/native-check.ts
|
|
182
|
-
var NATIVE_PROTOCOL_VERSION =
|
|
182
|
+
var NATIVE_PROTOCOL_VERSION = 6;
|
|
183
183
|
var WASM_STACK_SIZE_MB = 256;
|
|
184
184
|
var OPT_IN_RULES = [];
|
|
185
185
|
function runBinary(binary, request, cwd) {
|
|
@@ -263,7 +263,7 @@ async function checkNative(options) {
|
|
|
263
263
|
extraRoots,
|
|
264
264
|
programs: options.programs,
|
|
265
265
|
perf: options.perf ?? false,
|
|
266
|
-
rules: { trustedState: isRuleEnabled(config, "trusted-state"), typeClaim: isRuleEnabled(config, "type-claim"), untrustedValue: isRuleEnabled(config, "untrusted-value"), untrustedCallbacks: config.rules.untrustedCallbacks, droppedResult: isRuleEnabled(config, "dropped-result"), redundantGuard: isRuleEnabled(config, "redundant-guard"), resultLookalike: config.rules["result-lookalike"] },
|
|
266
|
+
rules: { trustedState: isRuleEnabled(config, "trusted-state"), typeClaim: isRuleEnabled(config, "type-claim"), untrustedValue: isRuleEnabled(config, "untrusted-value"), untrustedCallbacks: config.rules.untrustedCallbacks, droppedResult: isRuleEnabled(config, "dropped-result"), redundantGuard: isRuleEnabled(config, "redundant-guard"), finallyReturn: isRuleEnabled(config, "finally-return"), resultLookalike: config.rules["result-lookalike"] },
|
|
267
267
|
config: {
|
|
268
268
|
levels: config.levels.map((level) => ({ source: level.source, trust: level.trust, distrust: level.distrust, typeTrust: level.typeTrust, typeDistrust: level.typeDistrust })),
|
|
269
269
|
passthrough: config.passthrough.map((group) => ({ source: group.source, baseDir: group.baseDir, patterns: group.patterns })),
|