sr-npm 1.7.317 → 1.7.318

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.
@@ -16,7 +16,15 @@ function getSmartToken() {
16
16
  return secret;
17
17
  })
18
18
  }
19
+
20
+ function getServerlessAuth() {
21
+ return getSecretValue("serverless_auth")
22
+ .then((secret) => {
23
+ return secret;
24
+ })
25
+ }
19
26
  module.exports = {
20
27
  getSmartToken,
21
- getCompanyId
28
+ getCompanyId,
29
+ getServerlessAuth
22
30
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.317",
3
+ "version": "1.7.318",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/public/utils.js CHANGED
@@ -1,15 +1,16 @@
1
1
  const { fetch } = require('wix-fetch');
2
- const { secrets } = require("wix-secrets-backend.v2");
3
- const { elevate } = require("wix-auth");
2
+ const { getServerlessAuth } = require('../backend/secretsData');
3
+ // const { secrets } = require("wix-secrets-backend.v2");
4
+ // const { elevate } = require("wix-auth");
4
5
 
5
- const elevatedGetSecretValue = elevate(secrets.getSecretValue);
6
+ // const elevatedGetSecretValue = elevate(secrets.getSecretValue);
6
7
 
7
- async function getServerlessAuth() {
8
- console.log("i am here")
9
- const serverlessAuth = await elevatedGetSecretValue("serverless_auth")
10
- console.log("serverlessAuth **********",serverlessAuth)
11
- return serverlessAuth.value;
12
- }
8
+ // async function getServerlessAuth() {
9
+ // console.log("i am here")
10
+ // const serverlessAuth = await elevatedGetSecretValue("serverless_auth")
11
+ // console.log("serverlessAuth **********",serverlessAuth)
12
+ // return serverlessAuth.value;
13
+ // }
13
14
 
14
15
 
15
16
  function htmlToText(html) {