@hw-component/form 0.0.5-beta-v7 → 0.0.5-beta-v8

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/es/index.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const a: () => void;
1
+ export declare const a: () => Promise<void>;
package/es/index.js CHANGED
@@ -1,7 +1,26 @@
1
1
  // welcome to hoo hoo hoo
2
- var a = function a() {
3
- console.log("fff");
4
- };
2
+ import _asyncToGenerator from '@babel/runtime-corejs3/helpers/asyncToGenerator';
3
+ import _regeneratorRuntime from '@babel/runtime-corejs3/regenerator';
4
+ import 'core-js/modules/es.object.to-string.js';
5
+ import 'core-js/modules/es.promise.js';
6
+
7
+ var a = /*#__PURE__*/function () {
8
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
9
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
10
+ while (1) switch (_context.prev = _context.next) {
11
+ case 0:
12
+ _context.next = 2;
13
+ return Promise.resolve("111");
14
+ case 2:
15
+ case "end":
16
+ return _context.stop();
17
+ }
18
+ }, _callee);
19
+ }));
20
+ return function a() {
21
+ return _ref.apply(this, arguments);
22
+ };
23
+ }();
5
24
 
6
25
  export { a };
7
26
  // powered by hdj
package/lib/index.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const a: () => void;
1
+ export declare const a: () => Promise<void>;
package/lib/index.js CHANGED
@@ -1,8 +1,27 @@
1
1
  'use strict';
2
2
 
3
- var a = function a() {
4
- console.log("fff");
5
- };
3
+ var _asyncToGenerator = require('@babel/runtime-corejs3/helpers/asyncToGenerator');
4
+ var _regeneratorRuntime = require('@babel/runtime-corejs3/regenerator');
5
+ require('core-js/modules/es.object.to-string.js');
6
+ require('core-js/modules/es.promise.js');
7
+
8
+ var a = /*#__PURE__*/function () {
9
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
10
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
11
+ while (1) switch (_context.prev = _context.next) {
12
+ case 0:
13
+ _context.next = 2;
14
+ return Promise.resolve("111");
15
+ case 2:
16
+ case "end":
17
+ return _context.stop();
18
+ }
19
+ }, _callee);
20
+ }));
21
+ return function a() {
22
+ return _ref.apply(this, arguments);
23
+ };
24
+ }();
6
25
 
7
26
  exports.a = a;
8
27
  // powered by h
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/form",
3
- "version": "0.0.5-beta-v7",
3
+ "version": "0.0.5-beta-v8",
4
4
  "description": "基于antd二次开发",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,3 +1,3 @@
1
- export const a=()=>{
2
- console.log("fff")
1
+ export const a=async ()=>{
2
+ await Promise.resolve("111");
3
3
  }