babel-plugin-transform-taroapi 3.6.5-alpha → 3.6.5-canary.0

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.
@@ -13,12 +13,10 @@ Taro.noop();"
13
13
 
14
14
  exports[`should not go wrong when using an api twice 1`] = `
15
15
  "import Taro, { createAnimation as _createAnimation } from '@tarojs/taro-h5';
16
-
17
16
  const animation = _createAnimation({
18
17
  duration: dura * 1000,
19
18
  timingFunction: 'linear'
20
19
  });
21
-
22
20
  const resetAnimation = _createAnimation({
23
21
  duration: 0,
24
22
  timingFunction: 'linear'
@@ -28,9 +26,7 @@ const resetAnimation = _createAnimation({
28
26
  exports[`should not import taro duplicatly 1`] = `
29
27
  "import Taro, { createAnimation as _createAnimation, initPxTransform as _initPxTransform } from "@tarojs/taro-h5";
30
28
  Taro.Component;
31
-
32
29
  _createAnimation();
33
-
34
30
  _initPxTransform();"
35
31
  `;
36
32
 
@@ -43,9 +39,7 @@ animation = _createAnimation({
43
39
  timingFunction: "ease",
44
40
  delay: 0
45
41
  });
46
-
47
42
  _request();
48
-
49
43
  Taro.request = '';
50
44
  Taro['request'] = '';"
51
45
  `;
@@ -63,16 +57,10 @@ export class Connected extends Taro.Component {}"
63
57
 
64
58
  exports[`should work! 1`] = `
65
59
  "import Taro, { setStorage as _setStorage, initPxTransform as _initPxTransform, getStorage as _getStorage } from '@tarojs/taro-h5';
66
-
67
60
  _initPxTransform(Taro.param);
68
-
69
61
  _initPxTransform();
70
-
71
62
  _initPxTransform();
72
-
73
63
  _getStorage();
74
-
75
64
  _setStorage();
76
-
77
65
  export { Taro };"
78
66
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-plugin-transform-taroapi",
3
- "version": "3.6.5-alpha",
3
+ "version": "3.6.5-canary.0",
4
4
  "main": "dist/index.js",
5
5
  "devDependencies": {
6
6
  "@babel/core": "^7.14.5",