babel-plugin-hylid-bridge 0.0.1 → 2.2.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.
package/CHANGELOG.md CHANGED
@@ -0,0 +1,24 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [2.2.0](https://code.alipay.com/ant-ife/hylid-bridge/compare/v2.1.0...v2.2.0) (2022-07-08)
7
+
8
+
9
+ ### Features
10
+
11
+ * 调整 eslint 配置
12
+
13
+ ### Bug Fixes
14
+
15
+ * 依赖* build error* split the target
16
+
17
+
18
+ # [2.1.0](https://code.alipay.com/ant-ife/hylid-bridge/compare/v1.1.0...v2.1.0) (2022-04-25)
19
+
20
+
21
+ ### Features
22
+
23
+ * 接入 babel 插件 ([fdb8885](https://code.alipay.com/ant-ife/hylid-bridge/commits/fdb8885c6d7f16b8fbc528540ff3b397096da60b))
24
+ * 统一版本号 ([7539c2f](https://code.alipay.com/ant-ife/hylid-bridge/commits/7539c2f9fa4646fde964b609259e61d5e008c511))
package/lib/index.js CHANGED
@@ -136,8 +136,8 @@ var _default = function _default(_, opts) {
136
136
 
137
137
  normalizedJSAPIList.forEach(function (name) {
138
138
  targets.forEach(function (target) {
139
- var localName = "".concat(identifierPrefix).concat(target, "_").concat(name, "__");
140
139
  var targetSplit = target.split('|');
140
+ var localName = "".concat(identifierPrefix).concat(targetSplit[0], "_").concat(targetSplit[1], "_").concat(name, "__");
141
141
  var n = babelTypes.importDeclaration([babelTypes.importDefaultSpecifier(babelTypes.identifier(localName))], babelTypes.stringLiteral("".concat(libraryName, "/lib/clients/").concat(targetSplit[0], "/").concat(targetSplit[1], "/").concat(name)));
142
142
  nodes.push(n);
143
143
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-plugin-hylid-bridge",
3
- "version": "0.0.1",
3
+ "version": "2.2.0",
4
4
  "description": "babel-plugin-hylid-bridge",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -14,6 +14,7 @@
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
16
  "@babel/core": "^7.15.6",
17
+ "@babel/runtime": "^7.18.6",
17
18
  "@babel/types": "^7.15.6",
18
19
  "@types/fs-extra": "^9.0.13",
19
20
  "@types/lodash": "^4.14.176",
@@ -23,8 +24,8 @@
23
24
  },
24
25
  "devDependencies": {
25
26
  "gulp": "4.0.2",
26
- "gulp-plumber": "^1.2.1",
27
27
  "gulp-babel": "8.0.0",
28
+ "gulp-plumber": "^1.2.1",
28
29
  "gulp-typescript": "5.0.1"
29
30
  },
30
31
  "sideEffects": false,