component-shipinlv 0.0.20 → 0.0.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ interface Props {
3
3
  env?: Global.Env;
4
4
  vipId: number;
5
5
  productCount: number;
6
- productKind: 'vip' | 'card-vip';
6
+ productKind: 'vip' | 'vip-card';
7
7
  disabled?: boolean;
8
8
  children: React.ReactNode;
9
9
  }
@@ -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/dist/typings.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  declare namespace Global {
2
2
  export type Env = 'local' | 'pre' | 'prod';
3
3
  type AuthClientLoginType = 'wechat' | 'account' | 'alipay';
4
- export type ProductKind = 'vip' | 'card-vip' | string;
4
+ export type ProductKind = 'vip' | 'vip-card' | string;
5
5
  interface RequestResult{
6
6
  code: string;
7
7
  success?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",