lightning-flow-scanner-core
Advanced tools
Comparing version 3.22.0 to 3.22.1
{ | ||
"name": "lightning-flow-scanner-core", | ||
"version": "3.22.0", | ||
"version": "3.22.1", | ||
"main": "out/**", | ||
@@ -10,3 +10,3 @@ "types": "index.d.ts", | ||
"scripts": { | ||
"test": "TS_NODE_PROJECT=tsconfig.cjs.json mocha -r ts-node/register tests/**/*.test.ts", | ||
"test": "TS_NODE_PROJECT=tsconfig.cjs.json mocha", | ||
"build": "tsc -p tsconfig.cjs.json", | ||
@@ -33,9 +33,10 @@ "prepare": "husky", | ||
"@rollup/plugin-typescript": "^11.1.6", | ||
"@types/chai": "^4.3.16", | ||
"@types/chai": "^4.3.17", | ||
"@types/mocha": "^10.0.7", | ||
"@types/node": "^20.14.12", | ||
"chai": "4.4.1", | ||
"@types/node": "^22.1.0", | ||
"chai": "^5.1.1", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^9.8.0", | ||
"husky": "^9.1.4", | ||
"lint-staged": "^15.2.7", | ||
"lint-staged": "^15.2.8", | ||
"logging": "^3.3.0", | ||
@@ -45,3 +46,3 @@ "mocha": "^10.7.0", | ||
"prettier": "^3.3.3", | ||
"rollup": "^4.19.0", | ||
"rollup": "^4.20.0", | ||
"rollup-plugin-polyfill-node": "^0.13.0", | ||
@@ -55,3 +56,2 @@ "semantic-release": "^24.0.0", | ||
}, | ||
"packageManager": "npm@10.8.0", | ||
"dependencies": { | ||
@@ -58,0 +58,0 @@ "@types/path-browserify": "^1.0.2", |
@@ -1,2 +0,1 @@ | ||
import { assert, expect } from "chai"; | ||
import "mocha"; | ||
@@ -7,4 +6,8 @@ import * as core from "../src"; | ||
describe("APIVersion", () => { | ||
let example_uri = path.join(__dirname, "./xmlfiles/Outdated_API_Version.flow-meta.xml"); | ||
let fixed_uri = path.join(__dirname, "./xmlfiles/Outdated_API_Version_Fixed.flow-meta.xml"); | ||
let expect; | ||
before(async () => { | ||
expect = (await import("chai")).expect; | ||
}); | ||
const example_uri = path.join(__dirname, "./xmlfiles/Outdated_API_Version.flow-meta.xml"); | ||
const fixed_uri = path.join(__dirname, "./xmlfiles/Outdated_API_Version_Fixed.flow-meta.xml"); | ||
@@ -11,0 +14,0 @@ it("should have a result when attribute is missing", async () => { |
@@ -1,2 +0,1 @@ | ||
import { assert, expect } from "chai"; | ||
import "mocha"; | ||
@@ -7,2 +6,6 @@ import * as core from "../src"; | ||
describe("Autolayout", () => { | ||
let expect; | ||
before(async () => { | ||
expect = (await import("chai")).expect; | ||
}); | ||
let example_uri = path.join(__dirname, "./xmlfiles/Unconnected_Element.flow-meta.xml"); | ||
@@ -9,0 +12,0 @@ let fixed_uri = path.join(__dirname, "./xmlfiles/Outdated_API_Version_Fixed.flow-meta.xml"); |
@@ -1,2 +0,1 @@ | ||
import { assert, expect } from "chai"; | ||
import "mocha"; | ||
@@ -7,4 +6,7 @@ import * as core from "../src"; | ||
describe("Rule Configurations ", () => { | ||
let expect; | ||
before(async () => { | ||
expect = (await import("chai")).expect; | ||
}); | ||
let example_uri1 = path.join(__dirname, "./xmlfiles/Unconnected_Element.flow-meta.xml"); | ||
let example_uri2 = path.join(__dirname, "./xmlfiles/Duplicate_DML_Operation_Fixed.flow-meta.xml"); | ||
@@ -11,0 +13,0 @@ it(" should use default when no configuration is provided", async () => { |
@@ -1,2 +0,1 @@ | ||
import { assert, expect } from "chai"; | ||
import "mocha"; | ||
@@ -7,2 +6,6 @@ import * as core from "../src"; | ||
describe("CopyAPIName ", () => { | ||
let expect; | ||
before(async () => { | ||
expect = (await import("chai")).expect; | ||
}); | ||
let example_uri = path.join(__dirname, "./xmlfiles/Copy_API_Name.flow-meta.xml"); | ||
@@ -9,0 +12,0 @@ let fixed_uri = path.join(__dirname, "./xmlfiles/Copy_API_Name_Fixed.flow-meta.xml"); |
@@ -1,2 +0,1 @@ | ||
import { assert, expect } from "chai"; | ||
import "mocha"; | ||
@@ -7,2 +6,6 @@ import * as core from "../src"; | ||
describe("DMLStatementInLoop ", () => { | ||
let expect; | ||
before(async () => { | ||
expect = (await import("chai")).expect; | ||
}); | ||
let example_uri = path.join(__dirname, "./xmlfiles/DML_Statement_In_A_Loop.flow-meta.xml"); | ||
@@ -9,0 +12,0 @@ let fixed_uri = path.join(__dirname, "./xmlfiles/Duplicate_DML_Operation_Fixed.flow-meta.xml"); |
@@ -1,2 +0,1 @@ | ||
import { assert, expect } from "chai"; | ||
import "mocha"; | ||
@@ -7,2 +6,6 @@ import * as core from "../src"; | ||
describe("DuplicateDMLOperation ", () => { | ||
let expect; | ||
before(async () => { | ||
expect = (await import("chai")).expect; | ||
}); | ||
let example_uri = path.join(__dirname, "./xmlfiles/Duplicate_DML_Operation.flow-meta.xml"); | ||
@@ -9,0 +12,0 @@ let fixed_uri = path.join(__dirname, "./xmlfiles/Duplicate_DML_Operation_Fixed.flow-meta.xml"); |
@@ -1,2 +0,1 @@ | ||
import { assert, expect } from "chai"; | ||
import "mocha"; | ||
@@ -7,2 +6,6 @@ import * as core from "../src"; | ||
describe("FlowDescription", () => { | ||
let expect; | ||
before(async () => { | ||
expect = (await import("chai")).expect; | ||
}); | ||
let example_uri = path.join(__dirname, "./xmlfiles/Missing_Flow_Description.flow-meta.xml"); | ||
@@ -9,0 +12,0 @@ let fixed_uri = path.join(__dirname, "./xmlfiles/Missing_Flow_Description_Fixed.flow-meta.xml"); |
@@ -1,2 +0,1 @@ | ||
import { assert, expect } from "chai"; | ||
import "mocha"; | ||
@@ -7,2 +6,6 @@ import * as core from "../src"; | ||
describe("FlowName", () => { | ||
let expect; | ||
before(async () => { | ||
expect = (await import("chai")).expect; | ||
}); | ||
let example_uri = path.join(__dirname, "./xmlfiles/FlowNamingConvention.flow-meta.xml"); | ||
@@ -9,0 +12,0 @@ let fixed_uri = path.join(__dirname, "./xmlfiles/Flow_Naming_Convention_Fixed.flow-meta.xml"); |
@@ -1,2 +0,1 @@ | ||
import { assert, expect } from "chai"; | ||
import "mocha"; | ||
@@ -7,2 +6,6 @@ import * as core from "../src"; | ||
describe("HardcodedId", () => { | ||
let expect; | ||
before(async () => { | ||
expect = (await import("chai")).expect; | ||
}); | ||
let example_uri = path.join(__dirname, "./xmlfiles/Hardcoded_Id.flow-meta.xml"); | ||
@@ -9,0 +12,0 @@ |
@@ -1,2 +0,1 @@ | ||
import { assert, expect } from "chai"; | ||
import "mocha"; | ||
@@ -7,2 +6,6 @@ import * as core from "../src"; | ||
describe("InactiveFlow", () => { | ||
let expect; | ||
before(async () => { | ||
expect = (await import("chai")).expect; | ||
}); | ||
let example_uri = path.join(__dirname, "./xmlfiles/Utility_Copy_Files_Subflow.flow-meta.xml"); | ||
@@ -9,0 +12,0 @@ let fixed_uri = path.join(__dirname, "./xmlfiles/Missing_Flow_Description_Fixed.flow-meta.xml"); |
@@ -1,2 +0,1 @@ | ||
import { assert, expect } from "chai"; | ||
import "mocha"; | ||
@@ -7,2 +6,6 @@ import * as core from "../src"; | ||
describe("MissingFaultPath", () => { | ||
let expect; | ||
before(async () => { | ||
expect = (await import("chai")).expect; | ||
}); | ||
let example_uri = path.join(__dirname, "./xmlfiles/Missing_Error_Handler.flow-meta.xml"); | ||
@@ -9,0 +12,0 @@ let fixed_uri = path.join(__dirname, "./xmlfiles/Missing_Error_Handler_Fixed.flow-meta.xml"); |
@@ -1,2 +0,1 @@ | ||
import { assert, expect } from "chai"; | ||
import "mocha"; | ||
@@ -7,2 +6,6 @@ import * as core from "../src"; | ||
describe("MissingNullHandler ", () => { | ||
let expect; | ||
before(async () => { | ||
expect = (await import("chai")).expect; | ||
}); | ||
let example_uri = path.join(__dirname, "./xmlfiles/Missing_Null_Handler.flow-meta.xml"); | ||
@@ -9,0 +12,0 @@ let fixed_uri = path.join(__dirname, "./xmlfiles/Missing_Null_Handler_Fixed.flow-meta.xml"); |
@@ -1,2 +0,1 @@ | ||
import { assert, expect } from "chai"; | ||
import "mocha"; | ||
@@ -7,4 +6,7 @@ import * as core from "../src"; | ||
describe("SOQLQueryInLoop ", () => { | ||
let expect; | ||
before(async () => { | ||
expect = (await import("chai")).expect; | ||
}); | ||
let example_uri = path.join(__dirname, "./xmlfiles/SOQL_Query_In_A_Loop.flow-meta.xml"); | ||
let fixed_uri = path.join(__dirname, "./xmlfiles/SOQL_Query_In_A_Loop_Fixed.flow-meta.xml"); | ||
@@ -11,0 +13,0 @@ it("there should be one result for the rule SOQLQueryInLoop", async () => { |
@@ -1,2 +0,1 @@ | ||
import { expect } from "chai"; | ||
import "mocha"; | ||
@@ -12,2 +11,6 @@ import * as core from "../src"; | ||
describe("UnconnectedElement", () => { | ||
let expect; | ||
before(async () => { | ||
expect = (await import("chai")).expect; | ||
}); | ||
const unconnectedElementRule: UnconnectedElement = new UnconnectedElement(); | ||
@@ -14,0 +17,0 @@ |
@@ -1,2 +0,1 @@ | ||
import { expect } from "chai"; | ||
import "mocha"; | ||
@@ -12,2 +11,6 @@ import * as core from "../src"; | ||
describe("UnsafeRunningContext", () => { | ||
let expect; | ||
before(async () => { | ||
expect = (await import("chai")).expect; | ||
}); | ||
const unsafeRunningContext: UnsafeRunningContext = new UnsafeRunningContext(); | ||
@@ -14,0 +17,0 @@ |
@@ -1,2 +0,1 @@ | ||
import { expect } from "chai"; | ||
import "mocha"; | ||
@@ -7,2 +6,6 @@ import * as core from "../src"; | ||
describe("UnusedVariable Rule", () => { | ||
let expect; | ||
before(async () => { | ||
expect = (await import("chai")).expect; | ||
}); | ||
let example_uri = path.join(__dirname, "./xmlfiles/Unused_Variable.flow-meta.xml"); | ||
@@ -9,0 +12,0 @@ let fixed_uri = path.join(__dirname, "./xmlfiles/Unused_Variable_Fixed.flow-meta.xml"); |
{ | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"target": "es6", | ||
"resolveJsonModule": true, | ||
"outDir": "out", | ||
"lib": ["es2020.string", "es6"], | ||
"experimentalDecorators": true, | ||
"sourceMap": true, | ||
"rootDir": "src", | ||
"strict": false /* enable all strict type-checking options */, | ||
"baseUrl": ".", | ||
"declaration": true, | ||
"esModuleInterop": true | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"out/**", | ||
".idea/**", | ||
"src/data/CustomRuleExample.ts", | ||
"tests/**/*.test.ts" | ||
], | ||
"ts-node": { | ||
"compilerOptions": { | ||
"module": "commonjs", | ||
"target": "es6", | ||
"resolveJsonModule": true, | ||
"outDir": "out", | ||
"lib": [ | ||
"es2020.string", | ||
"es6" | ||
], | ||
"experimentalDecorators": true, | ||
"sourceMap": true, | ||
"rootDir": "src", | ||
"strict": false, /* enable all strict type-checking options */ | ||
"baseUrl": ".", | ||
"declaration": true, | ||
"esModuleInterop": true | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"out/**", | ||
".idea/**", | ||
"src/data/CustomRuleExample.ts", | ||
"tests/**/*.test.ts" | ||
] | ||
"module": "NodeNext" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1409446
279
36471
23