Initial commit

This commit is contained in:
jiapengyu
2026-07-27 13:37:48 +08:00
commit ecba71e2a5
39123 changed files with 5989154 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.isMiniProgramAssetFile = void 0;
const path_1 = __importDefault(require("path"));
const EXTNAMES = [
'.png',
'.jpg',
'.jpeg',
'.gif',
'.svg',
'.json',
'.cer',
'.mp3',
'.aac',
'.m4a',
'.mp4',
'.wav',
'.ogg',
'.silk',
'.wasm',
'.br',
'.cert',
];
function isMiniProgramAssetFile(filename) {
if (!path_1.default.isAbsolute(filename)) {
return false;
}
return EXTNAMES.includes(path_1.default.extname(filename));
}
exports.isMiniProgramAssetFile = isMiniProgramAssetFile;