Fix
This commit is contained in:
1 parent
0e0f879c1a
commit
21f2ea0f1e
13 files changed
+53
-83
No files matched your search
Vendored
-3
@@ -1,3 +0,0 @@
|
||||
// This file is generated automatically.
|
||||
export {default} from "sdbm";
|
||||
export * from "sdbm";
|
||||
Vendored
-35
@@ -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 = {});
|
||||
Reference in new issue
Block a user