@bigbinary/neeto-commons-frontend 2.0.77 → 2.0.79

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.
@@ -2,7 +2,7 @@ const { mergeLeft } = require("ramda");
2
2
 
3
3
  const commonConfiguration = require("../../eslint");
4
4
 
5
- const nanosConfiguration = {
5
+ const nextjsConfiguration = {
6
6
  extends: [
7
7
  "plugin:@bigbinary/neeto/recommended",
8
8
  "plugin:cypress/recommended",
@@ -20,4 +20,4 @@ const nanosConfiguration = {
20
20
  ],
21
21
  };
22
22
 
23
- module.exports = mergeLeft(nanosConfiguration, commonConfiguration);
23
+ module.exports = mergeLeft(nextjsConfiguration, commonConfiguration);
@@ -13,7 +13,7 @@ const {
13
13
  existsBy,
14
14
  } = require("@bigbinary/neeto-commons-frontend/pure");
15
15
  const enhancedResolve = require("enhanced-resolve");
16
- const { isEmpty } = require("ramda");
16
+ const { isEmpty, includes, __ } = require("ramda");
17
17
 
18
18
  const {
19
19
  RAILS_MOUNTED_COMPONENTS_REGEX,
@@ -47,7 +47,7 @@ const isRailsMountedOrPacksFiles = filePath =>
47
47
  PACKS_FILES_REGEX.test(filePath);
48
48
 
49
49
  const isInImportedList = (item, filePath) =>
50
- existsBy({ item, filePath }, importedItems);
50
+ existsBy({ item: includes(__, [item, "*"]), filePath }, importedItems);
51
51
 
52
52
  const findImports = filePath => {
53
53
  const code = fs.readFileSync(filePath, "utf8");
@@ -73,11 +73,7 @@ const findImports = filePath => {
73
73
 
74
74
  node.specifiers.forEach(specifier => {
75
75
  if (specifier.type === TYPES.IMPORT_NAMESPACE_SPECIFIER) {
76
- const binding = path.scope.getBinding(specifier.local.name);
77
- binding?.referencePaths?.forEach(refPath => {
78
- const item = refPath.parentPath?.node?.property?.name;
79
- importedItems.push({ item, filePath: resolvedPath });
80
- });
76
+ importedItems.push({ item: "*", filePath: resolvedPath });
81
77
  } else if (specifier.type === TYPES.IMPORT_DEFAULT_SPECIFIER) {
82
78
  importedItems.push({ item: "default", filePath: resolvedPath });
83
79
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-commons-frontend",
3
- "version": "2.0.77",
3
+ "version": "2.0.79",
4
4
  "description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
5
5
  "repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
6
6
  "author": "Amaljith K <amaljith.k@bigbinary.com>",