init commit

This commit is contained in:
rxliuli
2025-11-04 05:03:50 +08:00
commit bce557cc2d
1396 changed files with 172991 additions and 0 deletions

40
node_modules/@jet/engine/lib/dependencies/jet-bag.js generated vendored Normal file
View File

@@ -0,0 +1,40 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.JetBag = void 0;
class JetBag {
constructor(backing) {
this.backing = backing;
}
registerBagKeys() {
// do nothing.
}
string(key) {
const value = this.backing[key];
return typeof value === "string" || value === null ? value : undefined;
}
double(key) {
const value = this.backing[key];
return typeof value === "number" || value === null ? value : undefined;
}
integer(key) {
const value = this.backing[key];
return typeof value === "number" || value === null ? value : undefined;
}
boolean(key) {
const value = this.backing[key];
return typeof value === "boolean" || value === null ? value : undefined;
}
array(key) {
const value = this.backing[key];
return Array.isArray(value) || value === null ? value : undefined;
}
dictionary(key) {
const value = this.backing[key];
return typeof value === "object" ? value : undefined;
}
url(key) {
const value = this.backing[key];
return typeof value === "string" ? value : undefined;
}
}
exports.JetBag = JetBag;