This commit is contained in:
fisker committed 2022-06-19 11:28:28 +08:00
1 parent 0e0f879c1a
commit 21f2ea0f1e
13 files changed
+53 -83

No files matched your search

-3
View File
@@ -1,3 +0,0 @@
// This file is generated automatically.
export {default} from "sdbm";
export * from "sdbm";
-35
View File
@@ -1,35 +0,0 @@
// @ts-nocheck
// This file is generated automatically
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// node_modules/sdbm/index.js
var sdbm_exports = {};
__export(sdbm_exports, {
default: () => sdbm
});
module.exports = __toCommonJS(sdbm_exports);
function sdbm(string) {
let hash = 0;
for (let i = 0; i < string.length; i++) {
hash = string.charCodeAt(i) + (hash << 6) + (hash << 16) - hash;
}
return hash >>> 0;
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {});