@tarojs/plugin-platform-h5 4.0.0-beta.0 → 4.0.0-beta.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/LICENSE +14 -0
- package/dist/definition.json +41 -1
- package/dist/dist/definition.json.d.ts +1437 -1373
- package/dist/dist/definition.json.js +1 -1
- package/dist/index.js +82 -5
- package/dist/index.js.map +1 -1
- package/dist/runtime/apis/index.js.map +1 -1
- package/dist/runtime/index.js +5 -0
- package/dist/runtime/index.js.map +1 -1
- package/package.json +14 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/runtime/apis/index.ts"],"sourcesContent":["import definition from '@tarojs/plugin-platform-h5/dist/definition.json'\nimport isMatchWith from 'lodash-es/isMatchWith'\nimport set from 'lodash-es/set'\n\nimport Taro from './taro'\n\nexport * from './taro'\nexport * from './taro-h5'\n\nlet list: Record<string, unknown> | null = null\nexport function canIUse (scheme = '') {\n /** Note: 此处方法仅作适配使用,用于避免 babel 无法识别的情况,比如通过变量传递的 scheme 等等\n * 同时,此处的 scheme 不包括在编译时写入的 hooks 等方法,故而不支持相关判断\n */\n if (list === null) {\n list = {\n ...definition.apis,\n ...definition.components,\n canIUse: '*'\n } as Exclude<typeof list, null>\n }\n if (!scheme) return false\n const o = set({}, scheme, true)\n return isMatchWith(list, o, (a, b) => {\n if (a === '*' || b === true) return true\n })\n}\n\nexport default Taro\n"],"names":[],"mappings":";;;;;;;;;;AASA,IAAI,IAAI,GAAmC,IAAI,CAAA;AAC/B,SAAA,OAAO,CAAE,MAAM,GAAG,EAAE,EAAA;AAClC;;AAEG;
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/runtime/apis/index.ts"],"sourcesContent":["import definition from '@tarojs/plugin-platform-h5/dist/definition.json'\nimport isMatchWith from 'lodash-es/isMatchWith'\nimport set from 'lodash-es/set'\n\nimport Taro from './taro'\n\nexport * from './taro'\nexport * from './taro-h5'\n\nlet list: Record<string, unknown> | null = null\nexport function canIUse (scheme = '') {\n /** Note: 此处方法仅作适配使用,用于避免 babel 无法识别的情况,比如通过变量传递的 scheme 等等\n * 同时,此处的 scheme 不包括在编译时写入的 hooks 等方法,故而不支持相关判断\n */\n if (list === null) {\n list = {\n ...definition.apis,\n ...definition.components,\n canIUse: '*'\n } as Exclude<typeof list, null>\n }\n if (!scheme) return false\n const o = set({}, scheme, true)\n return isMatchWith(list, o, (a, b) => {\n if (a === '*' || b === true) return true\n })\n}\n\nexport default Taro\n"],"names":[],"mappings":";;;;;;;;;;AASA,IAAI,IAAI,GAAmC,IAAI,CAAA;AAC/B,SAAA,OAAO,CAAE,MAAM,GAAG,EAAE,EAAA;AAClC;;AAEG;AACH,IAAA,IAAI,IAAI,KAAK,IAAI,EAAE;AACjB,QAAA,IAAI,GAAG,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EACF,UAAU,CAAC,IAAI,CACf,EAAA,UAAU,CAAC,UAAU,CACxB,EAAA,EAAA,OAAO,EAAE,GAAG,GACiB,CAAA;KAChC;AACD,IAAA,IAAI,CAAC,MAAM;AAAE,QAAA,OAAO,KAAK,CAAA;IACzB,MAAM,CAAC,GAAG,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,CAAA;IAC/B,OAAO,WAAW,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAI;AACnC,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI;AAAE,YAAA,OAAO,IAAI,CAAA;AAC1C,KAAC,CAAC,CAAA;AACJ;;;;"}
|
package/dist/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/runtime/index.ts"],"sourcesContent":["import '@tarojs/components/dist/taro-components/taro-components.css'\n\nimport { handlePolyfill } from '@tarojs/runtime'\n\nif (process.env.SUPPORT_TARO_POLYFILL !== 'disabled') {\n handlePolyfill()\n}\n"],"names":[],"mappings":";;;AAIA,IAAI,OAAO,CAAC,GAAG,CAAC,qBAAqB,KAAK,UAAU,EAAE;AACpD,IAAA,cAAc,EAAE,CAAA;AAClB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/plugin-platform-h5",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.10",
|
|
4
4
|
"description": "Web 端平台插件",
|
|
5
5
|
"author": "ZakaryCode",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,28 +31,28 @@
|
|
|
31
31
|
"@babel/core": "^7.14.5",
|
|
32
32
|
"change-case": "^4.1.2",
|
|
33
33
|
"lodash-es": "4.17.21",
|
|
34
|
-
"@tarojs/components": "4.0.0-beta.
|
|
35
|
-
"@tarojs/
|
|
36
|
-
"@tarojs/
|
|
37
|
-
"@tarojs/
|
|
38
|
-
"@tarojs/shared": "4.0.0-beta.
|
|
39
|
-
"@tarojs/helper": "4.0.0-beta.
|
|
40
|
-
"@tarojs/
|
|
41
|
-
"
|
|
34
|
+
"@tarojs/components": "4.0.0-beta.10",
|
|
35
|
+
"@tarojs/runtime": "4.0.0-beta.10",
|
|
36
|
+
"@tarojs/components-react": "4.0.0-beta.10",
|
|
37
|
+
"@tarojs/service": "4.0.0-beta.10",
|
|
38
|
+
"@tarojs/shared": "4.0.0-beta.10",
|
|
39
|
+
"@tarojs/helper": "4.0.0-beta.10",
|
|
40
|
+
"@tarojs/router": "4.0.0-beta.10",
|
|
41
|
+
"@tarojs/taro-h5": "4.0.0-beta.10",
|
|
42
|
+
"babel-plugin-transform-taroapi": "4.0.0-beta.10"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
45
|
-
"@rollup/plugin-json": "^6.
|
|
46
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
46
47
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
47
48
|
"@rollup/plugin-typescript": "^11.1.0",
|
|
48
|
-
"@types/node": "^14.14.31",
|
|
49
49
|
"rollup": "^3.8.1",
|
|
50
50
|
"rollup-plugin-node-externals": "^5.0.0",
|
|
51
|
-
"rollup-plugin-ts": "^3.
|
|
51
|
+
"rollup-plugin-ts": "^3.4.5",
|
|
52
52
|
"ts-node": "^10.9.1",
|
|
53
53
|
"tsconfig-paths": "^3.14.1",
|
|
54
|
-
"typescript": "^
|
|
55
|
-
"@tarojs/taro": "4.0.0-beta.
|
|
54
|
+
"typescript": "^5.3.3",
|
|
55
|
+
"@tarojs/taro": "4.0.0-beta.10"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"prebuild": "run-s clean generate:desc",
|