sr-npm 1.7.27 → 1.7.28

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.
Files changed (2) hide show
  1. package/backend/data.js +2 -2
  2. package/package.json +2 -1
package/backend/data.js CHANGED
@@ -4,7 +4,7 @@ const { chunkedBulkOperation } = require('./utils');
4
4
  const { createCollectionIfMissing } = require('@hisense-staging/velo-npm/backend');
5
5
  const { COLLECTIONS, COLLECTIONS_FIELDS } = require('./collectionConsts');
6
6
  const { secrets } = require("@wix/secrets");
7
- const { elevate } = require("wix-auth");
7
+ const { auth } = require('@wix/essentials');
8
8
 
9
9
  // Utility function to normalize city names
10
10
  function normalizeCityName(city) {
@@ -320,7 +320,7 @@ function fetchJobLocation(jobDetails) {
320
320
 
321
321
 
322
322
  function getSmartToken() {
323
- const elevatedGetSecretValue = elevate(secrets.getSecretValue);
323
+ const elevatedGetSecretValue = auth.elevate(secrets.getSecretValue);
324
324
  return elevatedGetSecretValue("x-smarttoken")
325
325
  .then((secret) => {
326
326
  return secret;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.27",
3
+ "version": "1.7.28",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -19,6 +19,7 @@
19
19
  "dependencies": {
20
20
  "@hisense-staging/velo-npm": "1.7.249",
21
21
  "@wix/data": "^1.0.211",
22
+ "@wix/essentials": "^0.1.24",
22
23
  "@wix/secrets": "1.0.53"
23
24
  }
24
25
  }