babel-plugin-transform-taroapi 3.6.0-canary.0 → 3.6.0-canary.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-plugin-transform-taroapi",
3
- "version": "3.6.0-canary.0",
3
+ "version": "3.6.0-canary.10",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -1,75 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`should leave other apis untouched 1`] = `
4
- "
5
- import Taro from '@tarojs/taro-h5';
6
- Taro.noop;"
7
- `;
8
-
9
- exports[`should move static apis under "Taro" 1`] = `
10
- "
11
- import Taro from '@tarojs/taro-h5';
12
- Taro.noop;
13
- Taro.noop();"
14
- `;
15
-
16
- exports[`should not go wrong when using an api twice 1`] = `
17
- "
18
- import Taro, { createAnimation as _createAnimation } from '@tarojs/taro-h5';
19
- const animation = _createAnimation({
20
- duration: dura * 1000,
21
- timingFunction: 'linear'
22
- });
23
- const resetAnimation = _createAnimation({
24
- duration: 0,
25
- timingFunction: 'linear'
26
- });"
27
- `;
28
-
29
- exports[`should not import taro duplicatly 1`] = `
30
- "
31
- import Taro, { createAnimation as _createAnimation } from \\"@tarojs/taro-h5\\";
32
-
33
- Taro.Component;
34
- _createAnimation();
35
- Taro.initPxTransform();"
36
- `;
37
-
38
- exports[`should preserve assignments in lefthands 1`] = `
39
- "
40
- import Taro, { createAnimation as _createAnimation, request as _request } from '@tarojs/taro-h5';
41
- let animation;
42
- animation = _createAnimation({
43
- transformOrigin: \\"50% 50%\\",
44
- duration: 1000,
45
- timingFunction: \\"ease\\",
46
- delay: 0
47
- });
48
- _request();
49
- Taro.request = '';
50
- Taro['request'] = '';"
51
- `;
52
-
53
- exports[`should preserve default imports 1`] = `
54
- "
55
- import Taro from '@tarojs/taro-h5';
56
- console.log(Taro);"
57
- `;
58
-
59
- exports[`should support rename of imported names 1`] = `
60
- "
61
- // import { inject as mobxInject, observer as mobxObserver } from '@tarojs/mobx'
62
- import Taro from \\"@tarojs/taro-h5\\";
63
- export class Connected extends Taro.Component {}"
64
- `;
65
-
66
- exports[`should work! 1`] = `
67
- "
68
- import Taro, { setStorage as _setStorage, getStorage as _getStorage } from '@tarojs/taro-h5';
69
- Taro.initPxTransform(Taro.param);
70
- Taro.initPxTransform();
71
- Taro.initPxTransform();
72
- _getStorage();
73
- _setStorage();
74
- export { Taro };"
75
- `;