sr-npm 1.7.500 → 1.7.502

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.
@@ -76,7 +76,7 @@ const COLLECTIONS_FIELDS = {
76
76
  ],
77
77
  SECRET_MANAGER_MIRROR: [
78
78
  {key:'tokenName', type: 'TEXT'},
79
- {key:'tokenValue', type: 'TEXT'},
79
+ {key:'value', type: 'TEXT'},
80
80
  ],
81
81
  BRANDS: [
82
82
  {key:'title', type: 'TEXT'},
@@ -84,7 +84,7 @@ const COLLECTIONS_FIELDS = {
84
84
  ],
85
85
  };
86
86
 
87
-
87
+
88
88
  const TEMPLATE_TYPE = {
89
89
  INTERNAL: 'INTERNAL_OR_PUBLIC',
90
90
  EXTERNAL: 'PUBLIC',
package/backend/data.js CHANGED
@@ -28,7 +28,7 @@ function validatePosition(position) {
28
28
 
29
29
  async function filterBasedOnBrand(positions) {
30
30
  try{
31
-
31
+
32
32
  const desiredBrand = await getTokenFromCMS(TOKEN_NAME.DESIRED_BRAND);
33
33
  validateSingleDesiredBrand(desiredBrand);
34
34
  console.log("filtering positions based on brand: ", desiredBrand);
@@ -406,9 +406,10 @@ async function fillSecretManagerMirror() {
406
406
 
407
407
  async function insertSecretValToCMS(tokenName) {
408
408
  const token = await retrieveSecretVal(tokenName);
409
+ console.log("token is: ", token);
409
410
  await wixData.save(COLLECTIONS.SECRET_MANAGER_MIRROR, {
410
411
  tokenName: tokenName,
411
- tokenValue: token.value,
412
+ value: token.value,
412
413
  _id: normalizeString(tokenName)
413
414
  });
414
415
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.500",
3
+ "version": "1.7.502",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -28,10 +28,9 @@ const {
28
28
  }
29
29
 
30
30
  function handleReferFriendButton(_$w,item) {
31
- console.log("item is: ", item);
32
31
  if(!item.referFriendLink){
33
- _$w('#referFriendButton').hide();
34
- console.log("referFriendButton is hidden");
32
+ console.log("hiding referFriendButton");
33
+ _$w('#referFriendButton').hide();
35
34
  }
36
35
  }
37
36