esoftplay 0.0.130-u → 0.0.130-w
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/bin/router.js +24 -1
- package/oneplusfixfont.ts +2 -1
- package/package.json +1 -1
package/bin/router.js
CHANGED
|
@@ -143,6 +143,28 @@ checks.forEach(modules => {
|
|
|
143
143
|
if (m = (/\n?(?:(?:\/\/\s{0,})|(?:\/\*\s{0,}))orientation:([a-zAZ_]+)/).exec(data)) {
|
|
144
144
|
NavsOrientation[module + '/' + file.slice(0, file.lastIndexOf('.'))] = m?.[1]
|
|
145
145
|
}
|
|
146
|
+
|
|
147
|
+
if (isIndexed) {
|
|
148
|
+
if (n = (/\n?(?:(?:\/\/\s{0,})|(?:\/\*\s{0,}))withObject/).exec(data)) {
|
|
149
|
+
isUseLibs = true
|
|
150
|
+
tmpTask[clsName]['class'] = ""
|
|
151
|
+
tmpTask[clsName]['function'] = {}
|
|
152
|
+
UseLibs.push(module + "/" + name) /* get export default */
|
|
153
|
+
if (m = (/\n?export\sdefault(( )){/).exec(data)) {
|
|
154
|
+
tmpTask[clsName]['uselibs'] = 'function _' + m[1].replace(m[2], clsName).trim() + "(): void;"
|
|
155
|
+
tmpTask[clsName]['namespaces'] = "namespace " + clsName.trim()
|
|
156
|
+
}
|
|
157
|
+
/* get exported funtion */
|
|
158
|
+
if (f = data.match(/\n\s{2}(([A-Za-z0-9]+).*){/g)) {
|
|
159
|
+
for (let i = 0; i < f.length; i++) {
|
|
160
|
+
const _f = (/\n\s{2}(([A-Za-z0-9]+).*){/g).exec(f[i]);
|
|
161
|
+
tmpTask[clsName]['function'][_f[2]] = 'function ' + _f[1] + ';'
|
|
162
|
+
console.log(_f, "SSS")
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
146
168
|
if (isIndexed) {
|
|
147
169
|
if (n = (/\n?(?:(?:\/\/\s{0,})|(?:\/\*\s{0,}))useLibs/).exec(data)) {
|
|
148
170
|
isUseLibs = true
|
|
@@ -150,6 +172,7 @@ checks.forEach(modules => {
|
|
|
150
172
|
tmpTask[clsName]['function'] = {}
|
|
151
173
|
UseLibs.push(module + "/" + name) /* get export default */
|
|
152
174
|
if (m = (/\n(?:export\sdefault|\s{2}return)\sfunction\s(([a-zA-Z0-9]+).*)\{\n/).exec(data)) {
|
|
175
|
+
// console.log(' function ' + m[1].replace(m[2], clsName).trim() + ";")
|
|
153
176
|
tmpTask[clsName]['uselibs'] = ' function ' + m[1].replace(m[2], clsName).trim() + ";"
|
|
154
177
|
tmpTask[clsName]['namespaces'] = " namespace " + clsName.trim() + SuffixHooksProperty
|
|
155
178
|
}
|
|
@@ -464,7 +487,7 @@ declare module "esoftplay" {
|
|
|
464
487
|
render: (props: T) => any,
|
|
465
488
|
}`;
|
|
466
489
|
for (clsName in tmpTask) {
|
|
467
|
-
let ItemText = "\nimport { useGlobalSubscriberReturn } from 'esoftplay';\nimport { useGlobalReturn } from 'esoftplay';\n"
|
|
490
|
+
let ItemText = "\nimport { useGlobalSubscriberReturn } from 'esoftplay';\nimport { useGlobalReturn } from 'esoftplay';\nimport { LibNavigationRoutes } from 'esoftplay';\n"
|
|
468
491
|
if (clsName == "LibIcon") {
|
|
469
492
|
ItemText += "import { EvilIconsTypes, AntDesignTypes, EvilIconsTypes, FeatherTypes, FontAwesomeTypes, FontistoTypes, FoundationTypes, MaterialIconsTypes, EntypoTypes, OcticonsTypes, ZocialTypes, SimpleLineIconsTypes, IoniconsTypes, MaterialCommunityIconsTypes } from '@expo/vector-icons/build/esoftplay_icons';\n"
|
|
470
493
|
}
|
package/oneplusfixfont.ts
CHANGED