1
0
forked from dyf/APP
revert Merge branch 'main' of http://47.107.152.87:3000/liubiao/APP

# Conflicts:
#	.gitignore
#	pages/common/index/index.vue
#	unpackage/dist/dev/app-plus/app-config-service.js
#	unpackage/dist/dev/app-plus/app-service.js
#	unpackage/dist/dev/app-plus/app-view.js
#	unpackage/dist/dev/app-plus/manifest.json
#	utils/request.js
This commit is contained in:
2025-07-31 10:59:29 +08:00
parent e5e2aca0c4
commit 70651b81f5
1387 changed files with 102695 additions and 5024 deletions

40
node_modules/esniff/function.js generated vendored Normal file
View File

@ -0,0 +1,40 @@
"use strict";
var ensureString = require("type/string/ensure")
, isValue = require("type/value/is")
, esniff = require("./");
module.exports = function (name/*, options*/) {
var options = Object(arguments[1])
, asProperty = options.asProperty
, asPlain = isValue(options.asPlain) ? options.asPlain : true;
var length, names;
name = ensureString(name);
names = name.split(".").map(function (prop) {
prop = prop.trim();
if (!prop) throw new TypeError(name + " is not valid function name");
return prop;
});
length = names.length;
return function (code) {
code = ensureString(code);
return esniff(code, function (emitter) {
emitter.on("trigger:" + names[0][0], function (accessor) {
if (accessor.previousToken === ".") {
if (!asProperty) return;
} else if (!asPlain) {
return;
}
for (var i = 0, propertyName; (propertyName = names[i]); ++i) {
if (!accessor.skipCodePart(propertyName)) return;
accessor.skipWhitespace();
if (i < length - 1) {
if (!accessor.skipCodePart(".")) return;
accessor.skipWhitespace();
}
}
accessor.collectScope();
});
});
};
};