wgt-node-utils 1.1.2 → 1.1.3

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": "wgt-node-utils",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "WGT工具类包",
5
5
  "main": "dist/bundle.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -695,13 +695,14 @@ class wgtNodeUtils {
695
695
  * @returns
696
696
  */
697
697
  getPolicyAndContact = (url, hostname) => {
698
+ let self = this
698
699
  return new Promise((resolve) => {
699
700
  axios.get(url).then(res => {
700
701
  let policyAndContact = res.data.data.properties;
701
702
  if (!policyAndContact) {
702
703
  policyAndContact = {
703
704
  contact: '',
704
- txt: setPolicyText(hostname, 'This Privacy Policy is effective [ Jan 5,], 2021 for all users.')
705
+ txt: self.setPolicyText(hostname, 'This Privacy Policy is effective [ Jan 5,], 2021 for all users.')
705
706
  }
706
707
  } else {
707
708
  const { txt, title } = policyAndContact;