component-shipinlv 0.0.21 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
1
  declare class Product {
2
- detail(productType: string): Promise<Product.Detail>;
2
+ detail(productType: string, env?: Global.Env): Promise<Product.Detail>;
3
3
  }
4
4
  export default Product;
@@ -10,12 +10,14 @@ var Product = /*#__PURE__*/function () {
10
10
  _createClass(Product, [{
11
11
  key: "detail",
12
12
  value: function () {
13
- var _detail = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(productType) {
13
+ var _detail = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(productType, env) {
14
14
  return _regeneratorRuntime().wrap(function _callee$(_context) {
15
15
  while (1) switch (_context.prev = _context.next) {
16
16
  case 0:
17
17
  return _context.abrupt("return", ProductController.detail({
18
18
  productType: productType
19
+ }, {
20
+ env: env
19
21
  }));
20
22
  case 1:
21
23
  case "end":
@@ -23,7 +25,7 @@ var Product = /*#__PURE__*/function () {
23
25
  }
24
26
  }, _callee);
25
27
  }));
26
- function detail(_x) {
28
+ function detail(_x, _x2) {
27
29
  return _detail.apply(this, arguments);
28
30
  }
29
31
  return detail;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",