sr-npm 1.7.330 → 1.7.331

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.330",
3
+ "version": "1.7.331",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2,6 +2,8 @@ const { getAllPositions } = require('../backend/queries');
2
2
  const {wixData} = require('wix-data');
3
3
  const { window } = require('@wix/site-window');
4
4
  const { query,queryParams,onChange} = require("wix-location-frontend");
5
+ import { location } from "@wix/site-location";
6
+
5
7
  const {
6
8
  debounce,
7
9
  getFilter,
@@ -178,13 +180,16 @@ function init(_$w) {
178
180
  _$w('#dropdownsContainer, #closeFiltersButton').collapse();
179
181
  });
180
182
 
181
- onChange((location)=>{
183
+ onChange(async (location)=>{
182
184
  console.log("URL changed onChange ", location);
183
185
  console.log("query.location: ", query.location);
184
186
  console.log("query.keyWord: ", query.keyWord);
185
187
  console.log("query.department: ", query.department);
186
188
  console.log("query.page: ", query.page);
187
189
  console.log("query ",query);
190
+ console.log("testing n ew ");
191
+ const my_test=await location.query();
192
+ console.log("location.query(): ", my_test);
188
193
  handleUrlParams(_$w);
189
194
  });
190
195