sr-npm 1.7.701 → 1.7.703

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/eslint.config.mjs CHANGED
@@ -1,7 +1,26 @@
1
1
  import globals from "globals";
2
+ import js from "@eslint/js";
2
3
  import { defineConfig } from "eslint/config";
3
4
 
4
5
  export default defineConfig([
5
- { files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
6
- { files: ["**/*.{js,mjs,cjs}"], languageOptions: { globals: globals.browser } },
7
- ]);
6
+ // Core recommended rules (includes no-undef, no-unused-vars, etc.)
7
+ js.configs.recommended,
8
+
9
+ // Node backend files
10
+ {
11
+ files: ["backend/**/*.js"],
12
+ languageOptions: {
13
+ sourceType: "commonjs",
14
+ globals: { ...globals.node },
15
+ },
16
+ },
17
+
18
+ // Browser/frontend files
19
+ {
20
+ files: ["pages/**/*.js", "public/**/*.js"],
21
+ languageOptions: {
22
+ sourceType: "commonjs",
23
+ globals: { ...globals.browser },
24
+ },
25
+ },
26
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.701",
3
+ "version": "1.7.703",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,6 +28,7 @@
28
28
  "tests-utils": "^1.0.7"
29
29
  },
30
30
  "devDependencies": {
31
+ "@eslint/js": "^9.39.0",
31
32
  "eslint": "^9.38.0",
32
33
  "globals": "^16.4.0",
33
34
  "prettier": "^3.6.2"
@@ -16,8 +16,8 @@ const pagination = {
16
16
  pageSize: 10,
17
17
  currentPage: 1,
18
18
  };
19
- async function careersMultiBoxesPageOnReady(_$w,queryParams) {
20
- console.log("queryParams: ", queryParams);
19
+ async function careersMultiBoxesPageOnReady(_$w,urlParams) {
20
+ console.log("urlParams: ", urlParams);
21
21
  await loadData(_$w);
22
22
  await loadJobsRepeater(_$w);
23
23
  await loadFilters(_$w);
@@ -29,12 +29,12 @@ async function careersMultiBoxesPageOnReady(_$w,queryParams) {
29
29
  }
30
30
  });
31
31
  await loadPaginationButtons(_$w);
32
- await handleUrlParams(_$w,queryParams);
32
+ await handleUrlParams(_$w,urlParams);
33
33
  }
34
34
 
35
- async function handleUrlParams(_$w,queryParams) {
36
- if(queryParams.Brand) {
37
- const brandValue = decodeURIComponent(queryParams.Brand);
35
+ async function handleUrlParams(_$w,urlParams) {
36
+ if(urlParams.Brand) {
37
+ const brandValue = decodeURIComponent(urlParams.Brand);
38
38
  console.log("brandValue: ", brandValue);
39
39
  console.log("selectedByField: ", selectedByField);
40
40
  console.log("optionsByFieldId: ", optionsByFieldId);
@@ -30,6 +30,7 @@ if(siteconfig===undefined) {
30
30
  const queryResult = await wixData.query(COLLECTIONS.SITE_CONFIGS).find();
31
31
  siteconfig = queryResult.items[0];
32
32
  }
33
+ console.log("queryParams inside careers: ", queryParams);
33
34
  if(siteconfig.customFields==="true") {
34
35
  console.log("queryParams$@#@$#@#$#$: ", queryParams);
35
36
  await careersMultiBoxesPageOnReady(_$w,queryParams);