fishpi 0.0.12 → 0.0.13

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/lib/src/utils.js +4 -3
  2. package/package.json +1 -1
package/lib/src/utils.js CHANGED
@@ -108,10 +108,11 @@ function analyzeMetalAttr(m) {
108
108
  if (typeof m.attr != 'string')
109
109
  return m;
110
110
  var attr = m.attr.split('&');
111
- m.attr = {};
111
+ var src = m.attr;
112
+ m.attr = { src: src };
112
113
  attr.forEach(function (a) { return m.attr[a.split('=')[0]] = a.split('=')[1]; });
113
- m.url = "https://fishpi.cn/gen?txt=".concat(m.description, "&").concat(m.attr.url);
114
- m.icon = "https://fishpi.cn/gen?txt=&".concat(m.attr.url);
114
+ m.url = "https://fishpi.cn/gen?txt=".concat(m.description, "&url=").concat(m.attr.src);
115
+ m.icon = "https://fishpi.cn/gen?txt=&".concat(m.attr.src);
115
116
  return m;
116
117
  }
117
118
  exports.analyzeMetalAttr = analyzeMetalAttr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fishpi",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "A Package to use API of fishpi.",
5
5
  "main": "./lib/src/index.js",
6
6
  "files": [