Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@speedy-js/code-helper-diagnostic

Package Overview
Dependencies
Maintainers
9
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@speedy-js/code-helper-diagnostic - npm Package Compare versions

Comparing version 1.4.4 to 1.4.5

lib/linter/server/parse-utils/ast-get-importer.d.ts

3

lib/linter/rules/no-same-name-with-type-import/index.js

@@ -15,3 +15,2 @@ "use strict";

const rule_1 = require("../../rule");
const utils_1 = require("./utils");
const ruleName = 'no-same-name-with-type-import';

@@ -77,3 +76,3 @@ /**

}
const { imports, identifiers } = (0, utils_1.getImportAndDeclarationIdentifiers)(ast, parser);
const { imports, identifiers } = parser.utils.getImportAndDeclarationIdentifiers(ast, parser);
const tokens = identifiers.filter((id) => {

@@ -80,0 +79,0 @@ return imports.some((item) => item.local.name === id.name);

@@ -23,10 +23,11 @@ "use strict";

},
check({ compilers, report, chalk, documents }) {
check({ compilers, report, chalk, documents, moduleGraphMap }) {
return __awaiter(this, void 0, void 0, function* () {
const workerModuleGraphs = [];
yield Promise.all(compilers.map((compiler) => __awaiter(this, void 0, void 0, function* () {
compilers.map((compiler) => {
if (compiler.name === 'worker' || (0, utils_1.inputsIsWorkers)(compiler.config.input)) {
workerModuleGraphs.push(compiler.moduleGraph);
const _moduleGraph = moduleGraphMap.get(compiler);
_moduleGraph && workerModuleGraphs.push(_moduleGraph);
}
})));
});
const errorListMap = new Map();

@@ -33,0 +34,0 @@ workerModuleGraphs.map((_moduleGraph) => {

@@ -1,6 +0,6 @@

import { ModuleGraph } from '@speedy-js/speedy-types';
import { Input, ModuleGraph } from '@speedy-js/speedy-types';
import { IErrorListMap } from './types';
export declare function inputsIsWorkers(inputs: Map<string, string>): boolean;
export declare function inputsIsWorkers(inputs: Input): boolean;
export declare function checkFileType(path: string): boolean;
export declare function getErrorFileImporters(file: string, _moduleGraph: ModuleGraph, errorListMap: IErrorListMap): void;
//# sourceMappingURL=utils.d.ts.map

@@ -16,3 +16,10 @@ import type { ParserServer as ParserServerInstance } from '@speedy-js/code-helper-types';

parse: (doc: Document) => Promise<assert.File | undefined>;
utils: {
getImportAndDeclarationIdentifiers: (node: assert.Node, { traverse, assert }: ParserServerInstance) => {
imports: assert.ImportSpecifier[];
importDeclarations: assert.ImportDeclaration[];
identifiers: assert.Identifier[];
};
};
}
//# sourceMappingURL=parser.d.ts.map

@@ -39,2 +39,3 @@ "use strict";

const path_1 = __importDefault(require("path"));
const parse_utils_1 = require("./parse-utils");
class ParserServer {

@@ -77,2 +78,5 @@ constructor() {

});
this.utils = {
getImportAndDeclarationIdentifiers: parse_utils_1.getImportAndDeclarationIdentifiers,
};
}

@@ -79,0 +83,0 @@ }

{
"name": "@speedy-js/code-helper-diagnostic",
"version": "1.4.4",
"version": "1.4.5",
"description": "",

@@ -20,3 +20,3 @@ "keywords": [],

"@babel/traverse": "7.18.13",
"@speedy-js/speedy-utils": "0.14.1-alpha.4",
"@speedy-js/speedy-utils": "0.14.1-alpha.6",
"lines-and-columns": "2.0.3",

@@ -27,9 +27,9 @@ "look-it-up": "2.1.0"

"@speedy-js/config": "0.8.0-3",
"@speedy-js/code-helper-types": "1.3.4",
"@speedy-js/speedy-logger": "0.14.1-alpha.6",
"@speedy-js/code-helper-types": "1.3.5",
"@speedy-js/esbuild": "0.14.28-speedy-5",
"@speedy-js/eslint-config": "0.0.1",
"@speedy-js/speedy-config-loader": "0.14.1-alpha.4",
"@speedy-js/speedy-error": "0.14.1-alpha.4",
"@speedy-js/speedy-logger": "0.14.1-alpha.4",
"@speedy-js/speedy-types": "0.14.1-alpha.4",
"@speedy-js/speedy-config-loader": "0.14.1-alpha.6",
"@speedy-js/speedy-error": "0.14.1-alpha.6",
"@speedy-js/speedy-types": "0.14.1-alpha.6",
"@speedy-js/test-toolkit": "0.9.2-alpha.2",

@@ -36,0 +36,0 @@ "@types/babel__traverse": "7.17.1",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc