@certik/skynet 0.22.0 → 0.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/build.ts +23 -0
- package/bun.lockb +0 -0
- package/dist/abi.d.ts +1 -2
- package/dist/abi.js +1 -46
- package/dist/address.d.ts +0 -1
- package/dist/address.js +1 -46
- package/dist/api.d.ts +0 -1
- package/dist/api.js +100 -35013
- package/dist/app.d.ts +1 -2
- package/dist/app.js +1185 -70817
- package/dist/availability.d.ts +0 -1
- package/dist/availability.js +7 -800
- package/dist/cli.d.ts +0 -1
- package/dist/cli.js +1 -46
- package/dist/const.d.ts +0 -1
- package/dist/const.js +2 -47
- package/dist/databricks.d.ts +0 -1
- package/dist/databricks.js +12 -84724
- package/dist/date.d.ts +0 -1
- package/dist/date.js +2 -47
- package/dist/deploy.d.ts +0 -1
- package/dist/deploy.js +27 -16944
- package/dist/dynamodb.d.ts +3 -4
- package/dist/dynamodb.js +146 -27032
- package/dist/env.d.ts +2 -3
- package/dist/env.js +1 -46
- package/dist/graphql.d.ts +0 -1
- package/dist/graphql.js +1 -46
- package/dist/indexer.d.ts +0 -1
- package/dist/indexer.js +552 -36430
- package/dist/log.d.ts +0 -1
- package/dist/log.js +1 -46
- package/dist/object-hash.d.ts +0 -1
- package/dist/object-hash.js +3 -388
- package/dist/opsgenie.d.ts +1 -1
- package/dist/opsgenie.js +3 -284
- package/dist/por.d.ts +0 -1
- package/dist/por.js +1 -45
- package/dist/s3.d.ts +7 -8
- package/dist/s3.js +27 -28783
- package/dist/search.d.ts +0 -1
- package/dist/search.js +6 -37655
- package/dist/selector.d.ts +0 -1
- package/dist/selector.js +1 -46
- package/dist/slack.d.ts +0 -1
- package/dist/slack.js +3 -16815
- package/dist/util.d.ts +0 -1
- package/dist/util.js +1 -46
- package/examples/api.ts +1 -1
- package/examples/indexer.ts +1 -1
- package/examples/mode-indexer.ts +1 -1
- package/package.json +4 -3
- package/{graphql.ts → src/graphql.ts} +1 -1
- package/{opsgenie.ts → src/opsgenie.ts} +2 -1
- package/tsconfig.build.json +2 -6
- package/tsconfig.json +11 -20
- package/dist/abi.d.ts.map +0 -1
- package/dist/address.d.ts.map +0 -1
- package/dist/api.d.ts.map +0 -1
- package/dist/app.d.ts.map +0 -1
- package/dist/availability.d.ts.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/const.d.ts.map +0 -1
- package/dist/databricks.d.ts.map +0 -1
- package/dist/date.d.ts.map +0 -1
- package/dist/deploy.d.ts.map +0 -1
- package/dist/dynamodb.d.ts.map +0 -1
- package/dist/env.d.ts.map +0 -1
- package/dist/graphql.d.ts.map +0 -1
- package/dist/indexer.d.ts.map +0 -1
- package/dist/log.d.ts.map +0 -1
- package/dist/object-hash.d.ts.map +0 -1
- package/dist/opsgenie.d.ts.map +0 -1
- package/dist/por.d.ts.map +0 -1
- package/dist/s3.d.ts.map +0 -1
- package/dist/search.d.ts.map +0 -1
- package/dist/selector.d.ts.map +0 -1
- package/dist/slack.d.ts.map +0 -1
- package/dist/util.d.ts.map +0 -1
- package/dist/xxhash.win32-x64-msvc-hrdz34v7.node +0 -0
- /package/{abi.ts → src/abi.ts} +0 -0
- /package/{address.ts → src/address.ts} +0 -0
- /package/{api.ts → src/api.ts} +0 -0
- /package/{app.ts → src/app.ts} +0 -0
- /package/{availability.ts → src/availability.ts} +0 -0
- /package/{cli.ts → src/cli.ts} +0 -0
- /package/{const.ts → src/const.ts} +0 -0
- /package/{databricks.ts → src/databricks.ts} +0 -0
- /package/{date.ts → src/date.ts} +0 -0
- /package/{deploy.ts → src/deploy.ts} +0 -0
- /package/{dynamodb.ts → src/dynamodb.ts} +0 -0
- /package/{env.ts → src/env.ts} +0 -0
- /package/{indexer.ts → src/indexer.ts} +0 -0
- /package/{log.ts → src/log.ts} +0 -0
- /package/{object-hash.ts → src/object-hash.ts} +0 -0
- /package/{por.ts → src/por.ts} +0 -0
- /package/{s3.ts → src/s3.ts} +0 -0
- /package/{search.ts → src/search.ts} +0 -0
- /package/{selector.ts → src/selector.ts} +0 -0
- /package/{slack.ts → src/slack.ts} +0 -0
- /package/{util.ts → src/util.ts} +0 -0
package/dist/log.d.ts
CHANGED
package/dist/log.js
CHANGED
|
@@ -1,49 +1,4 @@
|
|
|
1
|
-
//
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __toESM = (mod, isNodeMode, target) => {
|
|
9
|
-
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
10
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
11
|
-
for (let key of __getOwnPropNames(mod))
|
|
12
|
-
if (!__hasOwnProp.call(to, key))
|
|
13
|
-
__defProp(to, key, {
|
|
14
|
-
get: () => mod[key],
|
|
15
|
-
enumerable: true
|
|
16
|
-
});
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
|
20
|
-
var __toCommonJS = (from) => {
|
|
21
|
-
var entry = __moduleCache.get(from), desc;
|
|
22
|
-
if (entry)
|
|
23
|
-
return entry;
|
|
24
|
-
entry = __defProp({}, "__esModule", { value: true });
|
|
25
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
26
|
-
__getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
|
|
27
|
-
get: () => from[key],
|
|
28
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
29
|
-
}));
|
|
30
|
-
__moduleCache.set(from, entry);
|
|
31
|
-
return entry;
|
|
32
|
-
};
|
|
33
|
-
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
34
|
-
var __export = (target, all) => {
|
|
35
|
-
for (var name in all)
|
|
36
|
-
__defProp(target, name, {
|
|
37
|
-
get: all[name],
|
|
38
|
-
enumerable: true,
|
|
39
|
-
configurable: true,
|
|
40
|
-
set: (newValue) => all[name] = () => newValue
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
44
|
-
var __require = import.meta.require;
|
|
45
|
-
|
|
46
|
-
// log.ts
|
|
1
|
+
// src/log.ts
|
|
47
2
|
function isObject(a) {
|
|
48
3
|
return !!a && a.constructor === Object;
|
|
49
4
|
}
|
package/dist/object-hash.d.ts
CHANGED
package/dist/object-hash.js
CHANGED
|
@@ -1,392 +1,7 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __toESM = (mod, isNodeMode, target) => {
|
|
9
|
-
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
10
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
11
|
-
for (let key of __getOwnPropNames(mod))
|
|
12
|
-
if (!__hasOwnProp.call(to, key))
|
|
13
|
-
__defProp(to, key, {
|
|
14
|
-
get: () => mod[key],
|
|
15
|
-
enumerable: true
|
|
16
|
-
});
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __moduleCache = /* @__PURE__ */ new WeakMap;
|
|
20
|
-
var __toCommonJS = (from) => {
|
|
21
|
-
var entry = __moduleCache.get(from), desc;
|
|
22
|
-
if (entry)
|
|
23
|
-
return entry;
|
|
24
|
-
entry = __defProp({}, "__esModule", { value: true });
|
|
25
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
26
|
-
__getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp(entry, key, {
|
|
27
|
-
get: () => from[key],
|
|
28
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
29
|
-
}));
|
|
30
|
-
__moduleCache.set(from, entry);
|
|
31
|
-
return entry;
|
|
32
|
-
};
|
|
33
|
-
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
34
|
-
var __export = (target, all) => {
|
|
35
|
-
for (var name in all)
|
|
36
|
-
__defProp(target, name, {
|
|
37
|
-
get: all[name],
|
|
38
|
-
enumerable: true,
|
|
39
|
-
configurable: true,
|
|
40
|
-
set: (newValue) => all[name] = () => newValue
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
44
|
-
var __require = import.meta.require;
|
|
45
|
-
|
|
46
|
-
// node_modules/@node-rs/xxhash-win32-x64-msvc/xxhash.win32-x64-msvc.node
|
|
47
|
-
var require_xxhash_win32_x64_msvc = __commonJS((exports, module) => {
|
|
48
|
-
module.exports = __require("./xxhash.win32-x64-msvc-hrdz34v7.node");
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
// node_modules/@node-rs/xxhash/index.js
|
|
52
|
-
var require_xxhash = __commonJS((exports, module) => {
|
|
53
|
-
var __filename = "G:\\certik\\certik-skynet\\lib-skynet\\node_modules\\@node-rs\\xxhash\\index.js";
|
|
54
|
-
var { createRequire } = __require("module");
|
|
55
|
-
__require = createRequire(__filename);
|
|
56
|
-
var { readFileSync } = __require("fs");
|
|
57
|
-
var nativeBinding = null;
|
|
58
|
-
var loadErrors = [];
|
|
59
|
-
var isMusl = () => {
|
|
60
|
-
let musl = false;
|
|
61
|
-
if (process.platform === "linux") {
|
|
62
|
-
musl = isMuslFromFilesystem();
|
|
63
|
-
if (musl === null) {
|
|
64
|
-
musl = isMuslFromReport();
|
|
65
|
-
}
|
|
66
|
-
if (musl === null) {
|
|
67
|
-
musl = isMuslFromChildProcess();
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return musl;
|
|
71
|
-
};
|
|
72
|
-
var isFileMusl = (f) => f.includes("libc.musl-") || f.includes("ld-musl-");
|
|
73
|
-
var isMuslFromFilesystem = () => {
|
|
74
|
-
try {
|
|
75
|
-
return readFileSync("/usr/bin/ldd", "utf-8").includes("musl");
|
|
76
|
-
} catch {
|
|
77
|
-
return null;
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
var isMuslFromReport = () => {
|
|
81
|
-
const report = typeof process.report.getReport === "function" ? process.report.getReport() : null;
|
|
82
|
-
if (!report) {
|
|
83
|
-
return null;
|
|
84
|
-
}
|
|
85
|
-
if (report.header && report.header.glibcVersionRuntime) {
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
if (Array.isArray(report.sharedObjects)) {
|
|
89
|
-
if (report.sharedObjects.some(isFileMusl)) {
|
|
90
|
-
return true;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
return false;
|
|
94
|
-
};
|
|
95
|
-
var isMuslFromChildProcess = () => {
|
|
96
|
-
try {
|
|
97
|
-
return __require("child_process").execSync("ldd --version", { encoding: "utf8" }).includes("musl");
|
|
98
|
-
} catch (e) {
|
|
99
|
-
return false;
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
function requireNative() {
|
|
103
|
-
if (process.platform === "android") {
|
|
104
|
-
if (process.arch === "arm64") {
|
|
105
|
-
try {
|
|
106
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.android-arm64.node");})();
|
|
107
|
-
} catch (e) {
|
|
108
|
-
loadErrors.push(e);
|
|
109
|
-
}
|
|
110
|
-
try {
|
|
111
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-android-arm64");})();
|
|
112
|
-
} catch (e) {
|
|
113
|
-
loadErrors.push(e);
|
|
114
|
-
}
|
|
115
|
-
} else if (process.arch === "arm") {
|
|
116
|
-
try {
|
|
117
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.android-arm-eabi.node");})();
|
|
118
|
-
} catch (e) {
|
|
119
|
-
loadErrors.push(e);
|
|
120
|
-
}
|
|
121
|
-
try {
|
|
122
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-android-arm-eabi");})();
|
|
123
|
-
} catch (e) {
|
|
124
|
-
loadErrors.push(e);
|
|
125
|
-
}
|
|
126
|
-
} else {
|
|
127
|
-
loadErrors.push(new Error(`Unsupported architecture on Android ${process.arch}`));
|
|
128
|
-
}
|
|
129
|
-
} else if (process.platform === "win32") {
|
|
130
|
-
if (process.arch === "x64") {
|
|
131
|
-
try {
|
|
132
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.win32-x64-msvc.node");})();
|
|
133
|
-
} catch (e) {
|
|
134
|
-
loadErrors.push(e);
|
|
135
|
-
}
|
|
136
|
-
try {
|
|
137
|
-
return require_xxhash_win32_x64_msvc();
|
|
138
|
-
} catch (e) {
|
|
139
|
-
loadErrors.push(e);
|
|
140
|
-
}
|
|
141
|
-
} else if (process.arch === "ia32") {
|
|
142
|
-
try {
|
|
143
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.win32-ia32-msvc.node");})();
|
|
144
|
-
} catch (e) {
|
|
145
|
-
loadErrors.push(e);
|
|
146
|
-
}
|
|
147
|
-
try {
|
|
148
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-win32-ia32-msvc");})();
|
|
149
|
-
} catch (e) {
|
|
150
|
-
loadErrors.push(e);
|
|
151
|
-
}
|
|
152
|
-
} else if (process.arch === "arm64") {
|
|
153
|
-
try {
|
|
154
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.win32-arm64-msvc.node");})();
|
|
155
|
-
} catch (e) {
|
|
156
|
-
loadErrors.push(e);
|
|
157
|
-
}
|
|
158
|
-
try {
|
|
159
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-win32-arm64-msvc");})();
|
|
160
|
-
} catch (e) {
|
|
161
|
-
loadErrors.push(e);
|
|
162
|
-
}
|
|
163
|
-
} else {
|
|
164
|
-
loadErrors.push(new Error(`Unsupported architecture on Windows: ${process.arch}`));
|
|
165
|
-
}
|
|
166
|
-
} else if (process.platform === "darwin") {
|
|
167
|
-
try {
|
|
168
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.darwin-universal.node");})();
|
|
169
|
-
} catch (e) {
|
|
170
|
-
loadErrors.push(e);
|
|
171
|
-
}
|
|
172
|
-
try {
|
|
173
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-darwin-universal");})();
|
|
174
|
-
} catch (e) {
|
|
175
|
-
loadErrors.push(e);
|
|
176
|
-
}
|
|
177
|
-
if (process.arch === "x64") {
|
|
178
|
-
try {
|
|
179
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.darwin-x64.node");})();
|
|
180
|
-
} catch (e) {
|
|
181
|
-
loadErrors.push(e);
|
|
182
|
-
}
|
|
183
|
-
try {
|
|
184
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-darwin-x64");})();
|
|
185
|
-
} catch (e) {
|
|
186
|
-
loadErrors.push(e);
|
|
187
|
-
}
|
|
188
|
-
} else if (process.arch === "arm64") {
|
|
189
|
-
try {
|
|
190
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.darwin-arm64.node");})();
|
|
191
|
-
} catch (e) {
|
|
192
|
-
loadErrors.push(e);
|
|
193
|
-
}
|
|
194
|
-
try {
|
|
195
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-darwin-arm64");})();
|
|
196
|
-
} catch (e) {
|
|
197
|
-
loadErrors.push(e);
|
|
198
|
-
}
|
|
199
|
-
} else {
|
|
200
|
-
loadErrors.push(new Error(`Unsupported architecture on macOS: ${process.arch}`));
|
|
201
|
-
}
|
|
202
|
-
} else if (process.platform === "freebsd") {
|
|
203
|
-
if (process.arch === "x64") {
|
|
204
|
-
try {
|
|
205
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.freebsd-x64.node");})();
|
|
206
|
-
} catch (e) {
|
|
207
|
-
loadErrors.push(e);
|
|
208
|
-
}
|
|
209
|
-
try {
|
|
210
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-freebsd-x64");})();
|
|
211
|
-
} catch (e) {
|
|
212
|
-
loadErrors.push(e);
|
|
213
|
-
}
|
|
214
|
-
} else if (process.arch === "arm64") {
|
|
215
|
-
try {
|
|
216
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.freebsd-arm64.node");})();
|
|
217
|
-
} catch (e) {
|
|
218
|
-
loadErrors.push(e);
|
|
219
|
-
}
|
|
220
|
-
try {
|
|
221
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-freebsd-arm64");})();
|
|
222
|
-
} catch (e) {
|
|
223
|
-
loadErrors.push(e);
|
|
224
|
-
}
|
|
225
|
-
} else {
|
|
226
|
-
loadErrors.push(new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));
|
|
227
|
-
}
|
|
228
|
-
} else if (process.platform === "linux") {
|
|
229
|
-
if (process.arch === "x64") {
|
|
230
|
-
if (isMusl()) {
|
|
231
|
-
try {
|
|
232
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.linux-x64-musl.node");})();
|
|
233
|
-
} catch (e) {
|
|
234
|
-
loadErrors.push(e);
|
|
235
|
-
}
|
|
236
|
-
try {
|
|
237
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-linux-x64-musl");})();
|
|
238
|
-
} catch (e) {
|
|
239
|
-
loadErrors.push(e);
|
|
240
|
-
}
|
|
241
|
-
} else {
|
|
242
|
-
try {
|
|
243
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.linux-x64-gnu.node");})();
|
|
244
|
-
} catch (e) {
|
|
245
|
-
loadErrors.push(e);
|
|
246
|
-
}
|
|
247
|
-
try {
|
|
248
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-linux-x64-gnu");})();
|
|
249
|
-
} catch (e) {
|
|
250
|
-
loadErrors.push(e);
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
} else if (process.arch === "arm64") {
|
|
254
|
-
if (isMusl()) {
|
|
255
|
-
try {
|
|
256
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.linux-arm64-musl.node");})();
|
|
257
|
-
} catch (e) {
|
|
258
|
-
loadErrors.push(e);
|
|
259
|
-
}
|
|
260
|
-
try {
|
|
261
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-linux-arm64-musl");})();
|
|
262
|
-
} catch (e) {
|
|
263
|
-
loadErrors.push(e);
|
|
264
|
-
}
|
|
265
|
-
} else {
|
|
266
|
-
try {
|
|
267
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.linux-arm64-gnu.node");})();
|
|
268
|
-
} catch (e) {
|
|
269
|
-
loadErrors.push(e);
|
|
270
|
-
}
|
|
271
|
-
try {
|
|
272
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-linux-arm64-gnu");})();
|
|
273
|
-
} catch (e) {
|
|
274
|
-
loadErrors.push(e);
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
} else if (process.arch === "arm") {
|
|
278
|
-
if (isMusl()) {
|
|
279
|
-
try {
|
|
280
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.linux-arm-musleabihf.node");})();
|
|
281
|
-
} catch (e) {
|
|
282
|
-
loadErrors.push(e);
|
|
283
|
-
}
|
|
284
|
-
try {
|
|
285
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-linux-arm-musleabihf");})();
|
|
286
|
-
} catch (e) {
|
|
287
|
-
loadErrors.push(e);
|
|
288
|
-
}
|
|
289
|
-
} else {
|
|
290
|
-
try {
|
|
291
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.linux-arm-gnueabihf.node");})();
|
|
292
|
-
} catch (e) {
|
|
293
|
-
loadErrors.push(e);
|
|
294
|
-
}
|
|
295
|
-
try {
|
|
296
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-linux-arm-gnueabihf");})();
|
|
297
|
-
} catch (e) {
|
|
298
|
-
loadErrors.push(e);
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
} else if (process.arch === "riscv64") {
|
|
302
|
-
if (isMusl()) {
|
|
303
|
-
try {
|
|
304
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.linux-riscv64-musl.node");})();
|
|
305
|
-
} catch (e) {
|
|
306
|
-
loadErrors.push(e);
|
|
307
|
-
}
|
|
308
|
-
try {
|
|
309
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-linux-riscv64-musl");})();
|
|
310
|
-
} catch (e) {
|
|
311
|
-
loadErrors.push(e);
|
|
312
|
-
}
|
|
313
|
-
} else {
|
|
314
|
-
try {
|
|
315
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.linux-riscv64-gnu.node");})();
|
|
316
|
-
} catch (e) {
|
|
317
|
-
loadErrors.push(e);
|
|
318
|
-
}
|
|
319
|
-
try {
|
|
320
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-linux-riscv64-gnu");})();
|
|
321
|
-
} catch (e) {
|
|
322
|
-
loadErrors.push(e);
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
} else if (process.arch === "ppc64") {
|
|
326
|
-
try {
|
|
327
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.linux-ppc64-gnu.node");})();
|
|
328
|
-
} catch (e) {
|
|
329
|
-
loadErrors.push(e);
|
|
330
|
-
}
|
|
331
|
-
try {
|
|
332
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-linux-ppc64-gnu");})();
|
|
333
|
-
} catch (e) {
|
|
334
|
-
loadErrors.push(e);
|
|
335
|
-
}
|
|
336
|
-
} else if (process.arch === "s390x") {
|
|
337
|
-
try {
|
|
338
|
-
return (()=>{throw new Error("Cannot require module "+"./xxhash.linux-s390x-gnu.node");})();
|
|
339
|
-
} catch (e) {
|
|
340
|
-
loadErrors.push(e);
|
|
341
|
-
}
|
|
342
|
-
try {
|
|
343
|
-
return (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-linux-s390x-gnu");})();
|
|
344
|
-
} catch (e) {
|
|
345
|
-
loadErrors.push(e);
|
|
346
|
-
}
|
|
347
|
-
} else {
|
|
348
|
-
loadErrors.push(new Error(`Unsupported architecture on Linux: ${process.arch}`));
|
|
349
|
-
}
|
|
350
|
-
} else {
|
|
351
|
-
loadErrors.push(new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`));
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
nativeBinding = requireNative();
|
|
355
|
-
if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
|
|
356
|
-
try {
|
|
357
|
-
nativeBinding = (()=>{throw new Error("Cannot require module "+"./xxhash.wasi.cjs");})();
|
|
358
|
-
} catch (err) {
|
|
359
|
-
if (process.env.NAPI_RS_FORCE_WASI) {
|
|
360
|
-
loadErrors.push(err);
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
if (!nativeBinding) {
|
|
364
|
-
try {
|
|
365
|
-
nativeBinding = (()=>{throw new Error("Cannot require module "+"@node-rs/xxhash-wasm32-wasi");})();
|
|
366
|
-
} catch (err) {
|
|
367
|
-
if (process.env.NAPI_RS_FORCE_WASI) {
|
|
368
|
-
loadErrors.push(err);
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
if (!nativeBinding) {
|
|
374
|
-
if (loadErrors.length > 0) {
|
|
375
|
-
throw new Error("Failed to load native binding", { cause: loadErrors });
|
|
376
|
-
}
|
|
377
|
-
throw new Error(`Failed to load native binding`);
|
|
378
|
-
}
|
|
379
|
-
exports.Xxh32 = nativeBinding.Xxh32;
|
|
380
|
-
exports.Xxh64 = nativeBinding.Xxh64;
|
|
381
|
-
exports.xxh32 = nativeBinding.xxh32;
|
|
382
|
-
exports.xxh64 = nativeBinding.xxh64;
|
|
383
|
-
exports.xxh3 = nativeBinding.xxh3;
|
|
384
|
-
});
|
|
385
|
-
|
|
386
|
-
// object-hash.ts
|
|
387
|
-
var import_xxhash = __toESM(require_xxhash(), 1);
|
|
1
|
+
// src/object-hash.ts
|
|
2
|
+
import xh from "@node-rs/xxhash";
|
|
388
3
|
function getHash(obj) {
|
|
389
|
-
const xxh3 =
|
|
4
|
+
const xxh3 = xh.xxh3.Xxh3.withSeed();
|
|
390
5
|
hash(obj, xxh3);
|
|
391
6
|
return xxh3.digest().toString(16);
|
|
392
7
|
}
|
package/dist/opsgenie.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ type OpsgenieResponse = {
|
|
|
11
11
|
};
|
|
12
12
|
took: number;
|
|
13
13
|
requestId: string;
|
|
14
|
+
result: string;
|
|
14
15
|
};
|
|
15
16
|
export declare function postGenieMessage(body: {
|
|
16
17
|
alias?: string;
|
|
@@ -18,4 +19,3 @@ export declare function postGenieMessage(body: {
|
|
|
18
19
|
description?: string;
|
|
19
20
|
}, apiKey?: string, verbose?: boolean): Promise<OpsgenieResponse>;
|
|
20
21
|
export {};
|
|
21
|
-
//# sourceMappingURL=opsgenie.d.ts.map
|