@privateaim/kit 0.8.21 → 0.8.23

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/src/constants.ts CHANGED
@@ -11,6 +11,15 @@ export enum EnvironmentName {
11
11
  PRODUCTION = 'production',
12
12
  }
13
13
 
14
+ export enum ProcessStatus {
15
+ STARTING = 'starting',
16
+ STARTED = 'started',
17
+ STOPPING = 'stopping',
18
+ STOPPED = 'stopped',
19
+ FINISHED = 'finished',
20
+ FAILED = 'failed',
21
+ }
22
+
14
23
  export const MINUTE_IN_MS = 1000 * 60;
15
24
  export const HOUR_IN_MS = MINUTE_IN_MS * 60;
16
25
  export const DAY_IN_MS = HOUR_IN_MS * 24;
package/src/error.ts ADDED
@@ -0,0 +1,10 @@
1
+ /*
2
+ * Copyright (c) 2025.
3
+ * Author Peter Placzek (tada5hi)
4
+ * For the full copyright and license information,
5
+ * view the LICENSE file that was distributed with this source code.
6
+ */
7
+
8
+ export class HubError extends Error {
9
+
10
+ }
package/src/index.ts CHANGED
@@ -7,6 +7,7 @@
7
7
 
8
8
  export * from './crypto';
9
9
  export * from './domains';
10
+ export * from './error';
10
11
  export * from './domain-event';
11
12
  export * from './utils';
12
13
  export * from './constants';
package/src/types.ts CHANGED
@@ -16,3 +16,5 @@ export type ObjectDiff<T extends ObjectLiteral = ObjectLiteral> = {
16
16
  previous?: T[K]
17
17
  }
18
18
  };
19
+
20
+ export type ToTuple<T> = T extends [unknown, ...unknown[]] | [] ? T : [T];
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Copyright (c) 2026.
3
+ * Author Peter Placzek (tada5hi)
4
+ * For the full copyright and license information,
5
+ * view the LICENSE file that was distributed with this source code.
6
+ */
7
+
8
+ export function humanFileSize(bytes: number, si : boolean = false, dp : number = 1) {
9
+ const thresh = si ? 1000 : 1024;
10
+
11
+ if (Math.abs(bytes) < thresh) {
12
+ return `${bytes} B`;
13
+ }
14
+
15
+ const units = si ?
16
+ ['kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'] :
17
+ ['KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'];
18
+ let u = -1;
19
+ const r = 10 ** dp;
20
+
21
+ do {
22
+ bytes /= thresh;
23
+ ++u;
24
+ } while (Math.round(Math.abs(bytes) * r) / r >= thresh && u < units.length - 1);
25
+
26
+ return `${bytes.toFixed(dp)} ${units[u]}`;
27
+ }
@@ -7,6 +7,7 @@
7
7
 
8
8
  export * from './boolean';
9
9
  export * from './error';
10
+ export * from './file-size';
10
11
  export * from './has-own-property';
11
12
  export * from './hex-checker';
12
13
  export * from './hostname';
package/dist/index.cjs DELETED
@@ -1,575 +0,0 @@
1
- 'use strict';
2
-
3
- var coreKit = require('@authup/core-kit');
4
- var nanoid = require('nanoid');
5
-
6
- /*
7
- * Copyright (c) 2024.
8
- * Author Peter Placzek (tada5hi)
9
- * For the full copyright and license information,
10
- * view the LICENSE file that was distributed with this source code.
11
- */ var AsymmetricCryptoAlgorithmName = /*#__PURE__*/ function(AsymmetricCryptoAlgorithmName) {
12
- AsymmetricCryptoAlgorithmName["RSA_OAEP"] = "RSA-OAEP";
13
- AsymmetricCryptoAlgorithmName["ECDH"] = "ECDH";
14
- return AsymmetricCryptoAlgorithmName;
15
- }({});
16
-
17
- /*
18
- * Copyright (c) 2024.
19
- * Author Peter Placzek (tada5hi)
20
- * For the full copyright and license information,
21
- * view the LICENSE file that was distributed with this source code.
22
- */ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
23
- try {
24
- var info = gen[key](arg);
25
- var value = info.value;
26
- } catch (error) {
27
- reject(error);
28
- return;
29
- }
30
- if (info.done) {
31
- resolve(value);
32
- } else {
33
- Promise.resolve(value).then(_next, _throw);
34
- }
35
- }
36
- function _async_to_generator$2(fn) {
37
- return function() {
38
- var self = this, args = arguments;
39
- return new Promise(function(resolve, reject) {
40
- var gen = fn.apply(self, args);
41
- function _next(value) {
42
- asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "next", value);
43
- }
44
- function _throw(err) {
45
- asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "throw", err);
46
- }
47
- _next(undefined);
48
- });
49
- };
50
- }
51
- function arrayBufferToBase64(arrayBuffer) {
52
- return btoa(String.fromCharCode.apply(null, new Uint8Array(arrayBuffer)));
53
- }
54
- function exportAsymmetricPublicKey(key) {
55
- return _async_to_generator$2(function*() {
56
- const exported = yield crypto.subtle.exportKey('spki', key);
57
- return `-----BEGIN PUBLIC KEY-----\n${arrayBufferToBase64(exported)}\n-----END PUBLIC KEY-----`;
58
- })();
59
- }
60
- function exportAsymmetricPrivateKey(key) {
61
- return _async_to_generator$2(function*() {
62
- const exported = yield crypto.subtle.exportKey('pkcs8', key);
63
- return `-----BEGIN PRIVATE KEY-----\n${arrayBufferToBase64(exported)}\n-----END PRIVATE KEY-----`;
64
- })();
65
- }
66
-
67
- /*
68
- * Copyright (c) 2024.
69
- * Author Peter Placzek (tada5hi)
70
- * For the full copyright and license information,
71
- * view the LICENSE file that was distributed with this source code.
72
- */ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
73
- try {
74
- var info = gen[key](arg);
75
- var value = info.value;
76
- } catch (error) {
77
- reject(error);
78
- return;
79
- }
80
- if (info.done) {
81
- resolve(value);
82
- } else {
83
- Promise.resolve(value).then(_next, _throw);
84
- }
85
- }
86
- function _async_to_generator$1(fn) {
87
- return function() {
88
- var self = this, args = arguments;
89
- return new Promise(function(resolve, reject) {
90
- var gen = fn.apply(self, args);
91
- function _next(value) {
92
- asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "next", value);
93
- }
94
- function _throw(err) {
95
- asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "throw", err);
96
- }
97
- _next(undefined);
98
- });
99
- };
100
- }
101
- function _define_property(obj, key, value) {
102
- if (key in obj) {
103
- Object.defineProperty(obj, key, {
104
- value: value,
105
- enumerable: true,
106
- configurable: true,
107
- writable: true
108
- });
109
- } else {
110
- obj[key] = value;
111
- }
112
- return obj;
113
- }
114
- function _object_spread(target) {
115
- for(var i = 1; i < arguments.length; i++){
116
- var source = arguments[i] != null ? arguments[i] : {};
117
- var ownKeys = Object.keys(source);
118
- if (typeof Object.getOwnPropertySymbols === "function") {
119
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
120
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
121
- }));
122
- }
123
- ownKeys.forEach(function(key) {
124
- _define_property(target, key, source[key]);
125
- });
126
- }
127
- return target;
128
- }
129
- function ownKeys(object, enumerableOnly) {
130
- var keys = Object.keys(object);
131
- if (Object.getOwnPropertySymbols) {
132
- var symbols = Object.getOwnPropertySymbols(object);
133
- keys.push.apply(keys, symbols);
134
- }
135
- return keys;
136
- }
137
- function _object_spread_props(target, source) {
138
- source = source != null ? source : {};
139
- if (Object.getOwnPropertyDescriptors) {
140
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
141
- } else {
142
- ownKeys(Object(source)).forEach(function(key) {
143
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
144
- });
145
- }
146
- return target;
147
- }
148
- class CryptoAsymmetricAlgorithm {
149
- generateKeyPair() {
150
- return _async_to_generator$1(function*() {
151
- if (this.algorithm.name === AsymmetricCryptoAlgorithmName.RSA_OAEP) {
152
- this.keyPair = yield crypto.subtle.generateKey(this.algorithm, true, [
153
- 'encrypt',
154
- 'decrypt'
155
- ]);
156
- return this.keyPair;
157
- }
158
- if (this.algorithm.name === AsymmetricCryptoAlgorithmName.ECDH) {
159
- this.keyPair = yield crypto.subtle.generateKey(this.algorithm, true, [
160
- 'deriveKey'
161
- ]);
162
- return this.keyPair;
163
- }
164
- throw new Error('The algorithm is not supported for key generation.');
165
- }).call(this);
166
- }
167
- constructor(algorithm){
168
- _define_property(this, "algorithm", void 0);
169
- _define_property(this, "keyPair", void 0);
170
- if (algorithm.name === AsymmetricCryptoAlgorithmName.RSA_OAEP) {
171
- algorithm = _object_spread_props(_object_spread({}, algorithm), {
172
- publicExponent: new Uint8Array([
173
- 1,
174
- 0,
175
- 1
176
- ])
177
- });
178
- }
179
- this.algorithm = algorithm;
180
- }
181
- }
182
-
183
- /*
184
- * Copyright (c) 2021-2024.
185
- * Author Peter Placzek (tada5hi)
186
- * For the full copyright and license information,
187
- * view the LICENSE file that was distributed with this source code.
188
- */ var PermissionName = /*#__PURE__*/ function(PermissionName) {
189
- PermissionName["EVENT_CREATE"] = "event_create";
190
- PermissionName["EVENT_READ"] = "event_read";
191
- PermissionName["EVENT_DELETE"] = "event_delete";
192
- PermissionName["BUCKET_CREATE"] = "bucket_create";
193
- PermissionName["BUCKET_UPDATE"] = "bucket_update";
194
- PermissionName["BUCKET_DELETE"] = "bucket_delete";
195
- PermissionName["LOG_CREATE"] = "log_create";
196
- PermissionName["LOG_DELETE"] = "log_delete";
197
- PermissionName["LOG_READ"] = "log_read";
198
- PermissionName["PROJECT_CREATE"] = "project_create";
199
- PermissionName["PROJECT_DELETE"] = "project_delete";
200
- PermissionName["PROJECT_UPDATE"] = "project_update";
201
- PermissionName["PROJECT_APPROVE"] = "project_approve";
202
- PermissionName["REGISTRY_MANAGE"] = "registry_manage";
203
- PermissionName["REGISTRY_PROJECT_MANAGE"] = "registry_project_manage";
204
- PermissionName["NODE_CREATE"] = "node_create";
205
- PermissionName["NODE_DELETE"] = "node_delete";
206
- PermissionName["NODE_UPDATE"] = "node_update";
207
- PermissionName["ANALYSIS_APPROVE"] = "analysis_approve";
208
- PermissionName["ANALYSIS_UPDATE"] = "analysis_update";
209
- PermissionName["ANALYSIS_CREATE"] = "analysis_create";
210
- PermissionName["ANALYSIS_EXECUTION_START"] = "analysis_execution_start";
211
- PermissionName["ANALYSIS_EXECUTION_STOP"] = "analysis_execution_stop";
212
- PermissionName["ANALYSIS_DELETE"] = "analysis_delete";
213
- PermissionName["ANALYSIS_RESULT_READ"] = "analysis_result_read";
214
- PermissionName["ANALYSIS_SELF_MESSAGE_BROKER_USE"] = "analysis_self_message_broker_use";
215
- PermissionName["ANALYSIS_SELF_STORAGE_USE"] = "analysis_self_storage_use";
216
- PermissionName["MASTER_IMAGE_MANAGE"] = "master_image_manage";
217
- PermissionName["MASTER_IMAGE_GROUP_MANAGE"] = "master_image_group_manage";
218
- PermissionName["SERVICE_MANAGE"] = "service_manage";
219
- return PermissionName;
220
- }({});
221
-
222
- /*
223
- * Copyright (c) 2024.
224
- * Author Peter Placzek (tada5hi)
225
- * For the full copyright and license information,
226
- * view the LICENSE file that was distributed with this source code.
227
- */ function isBoolTrue(input) {
228
- return typeof input === 'boolean' && !!input;
229
- }
230
- function isBoolFalse(input) {
231
- return typeof input === 'boolean' && !input;
232
- }
233
- function isBool(input) {
234
- return typeof input === 'boolean';
235
- }
236
-
237
- /*
238
- * Copyright (c) 2021-2024.
239
- * Author Peter Placzek (tada5hi)
240
- * For the full copyright and license information,
241
- * view the LICENSE file that was distributed with this source code.
242
- */ // eslint-disable-next-line @typescript-eslint/ban-types
243
- function hasOwnProperty(obj, prop) {
244
- return Object.prototype.hasOwnProperty.call(obj, prop);
245
- }
246
- function isPropertySet(obj, prop) {
247
- return hasOwnProperty(obj, prop);
248
- }
249
-
250
- function isError(e) {
251
- return typeof e === 'object' && e && hasOwnProperty(e, 'message');
252
- }
253
- function extractErrorMessage(e) {
254
- return e.message;
255
- }
256
-
257
- /*
258
- * Copyright (c) 2021-2024.
259
- * Author Peter Placzek (tada5hi)
260
- * For the full copyright and license information,
261
- * view the LICENSE file that was distributed with this source code.
262
- */ function isHex(value) {
263
- return /^[A-Fa-f0-9]+$/i.test(value);
264
- }
265
- function hexToUTF8(value) {
266
- try {
267
- return decodeURIComponent(`%${value.match(/.{1,2}/g).join('%')}`);
268
- } catch (e) {
269
- if (e instanceof URIError) {
270
- return value;
271
- }
272
- throw e;
273
- }
274
- }
275
-
276
- /*
277
- * Copyright (c) 2022-2024.
278
- * Author Peter Placzek (tada5hi)
279
- * For the full copyright and license information,
280
- * view the LICENSE file that was distributed with this source code.
281
- */ function getHostNameFromString(value) {
282
- if (value.startsWith('http://') || value.startsWith('https://')) {
283
- const url = new URL(value);
284
- value = url.hostname;
285
- }
286
- return value;
287
- }
288
-
289
- /*
290
- * Copyright (c) 2025.
291
- * Author Peter Placzek (tada5hi)
292
- * For the full copyright and license information,
293
- * view the LICENSE file that was distributed with this source code.
294
- */ function isObject(item) {
295
- return !!item && typeof item === 'object' && !Array.isArray(item);
296
- }
297
-
298
- function createNanoID(alphabetOrLen, len) {
299
- if (typeof alphabetOrLen === 'string') {
300
- return nanoid.customAlphabet(alphabetOrLen, len || 21)();
301
- }
302
- if (typeof alphabetOrLen === 'number') {
303
- return nanoid.customAlphabet('0123456789abcdefghijklmnopqrstuvwxyz', alphabetOrLen)();
304
- }
305
- return nanoid.customAlphabet('0123456789abcdefghijklmnopqrstuvwxyz', len || 21)();
306
- }
307
-
308
- /*
309
- * Copyright (c) 2025.
310
- * Author Peter Placzek (tada5hi)
311
- * For the full copyright and license information,
312
- * view the LICENSE file that was distributed with this source code.
313
- */ function nanoSeconds() {
314
- return BigInt(Math.floor(performance.timeOrigin)) * 1000000n + BigInt(Math.floor(performance.now() * 1000000));
315
- }
316
-
317
- /*
318
- * Copyright (c) 2021-2024.
319
- * Author Peter Placzek (tada5hi)
320
- * For the full copyright and license information,
321
- * view the LICENSE file that was distributed with this source code.
322
- */ function nullifyEmptyObjectProperties(data) {
323
- const keys = Object.keys(data);
324
- for(let i = 0; i < keys.length; i++){
325
- const key = keys[i];
326
- if (data[key] === '') {
327
- data[key] = null;
328
- }
329
- }
330
- return data;
331
- }
332
- function deleteUndefinedObjectProperties(data) {
333
- const keys = Object.keys(data);
334
- for(let i = 0; i < keys.length; i++){
335
- if (typeof data[keys[i]] === 'undefined') {
336
- delete data[keys[i]];
337
- }
338
- }
339
- return data;
340
- }
341
-
342
- /*
343
- * Copyright (c) 2021-2024.
344
- * Author Peter Placzek (tada5hi)
345
- * For the full copyright and license information,
346
- * view the LICENSE file that was distributed with this source code.
347
- */ function parseProxyConnectionString(connectionStr) {
348
- const match = connectionStr.match(/(?:(https|http):\/\/)(?:(\w+)(?::(\w+))?@)?(?:([^:]+))(?::(\d{1,5}))?$/);
349
- if (!match) {
350
- return undefined;
351
- }
352
- return {
353
- protocol: match[1],
354
- host: match[4],
355
- port: parseInt(match[5], 10),
356
- auth: {
357
- username: match[2],
358
- password: match[3]
359
- }
360
- };
361
- }
362
- function detectProxyConnectionConfig() {
363
- const envKeys = [
364
- 'https_proxy',
365
- 'HTTPS_PROXY',
366
- 'http_proxy',
367
- 'HTTP_PROXY'
368
- ];
369
- let result;
370
- for(let i = 0; i < envKeys.length; i++){
371
- const envKey = envKeys[i];
372
- const envVal = process.env[envKey];
373
- if (envVal !== undefined && envVal !== null) {
374
- result = result || envVal;
375
- }
376
- }
377
- if (!result) {
378
- return undefined;
379
- }
380
- return parseProxyConnectionString(result);
381
- }
382
-
383
- /*
384
- * Copyright (c) 2023-2024.
385
- * Author Peter Placzek (tada5hi)
386
- * For the full copyright and license information,
387
- * view the LICENSE file that was distributed with this source code.
388
- */ const alphaNumHyphenUnderscoreRegex = /^[a-z0-9-_]*$/;
389
- const registryRobotSecretRegex = /^(?=.*[A-Z])(?=.*[a-z])(?=.*\d).{8,}$/;
390
-
391
- /*
392
- * Copyright (c) 2025.
393
- * Author Peter Placzek (tada5hi)
394
- * For the full copyright and license information,
395
- * view the LICENSE file that was distributed with this source code.
396
- */ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
397
- try {
398
- var info = gen[key](arg);
399
- var value = info.value;
400
- } catch (error) {
401
- reject(error);
402
- return;
403
- }
404
- if (info.done) {
405
- resolve(value);
406
- } else {
407
- Promise.resolve(value).then(_next, _throw);
408
- }
409
- }
410
- function _async_to_generator(fn) {
411
- return function() {
412
- var self = this, args = arguments;
413
- return new Promise(function(resolve, reject) {
414
- var gen = fn.apply(self, args);
415
- function _next(value) {
416
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
417
- }
418
- function _throw(err) {
419
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
420
- }
421
- _next(undefined);
422
- });
423
- };
424
- }
425
- function wait(ms) {
426
- return _async_to_generator(function*() {
427
- return new Promise((resolve)=>{
428
- setTimeout(resolve, ms);
429
- });
430
- })();
431
- }
432
-
433
- /**
434
- * Check if a realm resource is writable.
435
- *
436
- * @param realm
437
- * @param resourceRealmId
438
- */ function isRealmResourceWritable(realm, resourceRealmId) {
439
- if (Array.isArray(resourceRealmId)) {
440
- for(let i = 0; i < resourceRealmId.length; i++){
441
- if (isRealmResourceWritable(realm, resourceRealmId[i])) {
442
- return true;
443
- }
444
- }
445
- return false;
446
- }
447
- if (!realm) {
448
- return false;
449
- }
450
- if (isPropertySet(realm, 'name') && realm.name === coreKit.REALM_MASTER_NAME) {
451
- return true;
452
- }
453
- return (realm === null || realm === void 0 ? void 0 : realm.id) === resourceRealmId;
454
- }
455
- /**
456
- * Check if realm resource is readable.
457
- *
458
- * @param realm
459
- * @param resourceRealmId
460
- */ function isRealmResourceReadable(realm, resourceRealmId) {
461
- if (Array.isArray(resourceRealmId)) {
462
- if (resourceRealmId.length === 0) {
463
- return true;
464
- }
465
- for(let i = 0; i < resourceRealmId.length; i++){
466
- if (isRealmResourceReadable(realm, resourceRealmId[i])) {
467
- return true;
468
- }
469
- }
470
- return false;
471
- }
472
- if (typeof realm === 'undefined') {
473
- return false;
474
- }
475
- if (isPropertySet(realm, 'name') && realm.name === coreKit.REALM_MASTER_NAME) {
476
- return true;
477
- }
478
- return !resourceRealmId || (realm === null || realm === void 0 ? void 0 : realm.id) === resourceRealmId;
479
- }
480
-
481
- /*
482
- * Copyright (c) 2025.
483
- * Author Peter Placzek (tada5hi)
484
- * For the full copyright and license information,
485
- * view the LICENSE file that was distributed with this source code.
486
- */ var DomainEventName = /*#__PURE__*/ function(DomainEventName) {
487
- DomainEventName["CREATED"] = "created";
488
- DomainEventName["DELETED"] = "deleted";
489
- DomainEventName["UPDATED"] = "updated";
490
- return DomainEventName;
491
- }({});
492
- const DomainEventNamespace = 'resources';
493
-
494
- /*
495
- * Copyright (c) 2025.
496
- * Author Peter Placzek (tada5hi)
497
- * For the full copyright and license information,
498
- * view the LICENSE file that was distributed with this source code.
499
- */ function buildDomainChannelName(domain, id) {
500
- if (typeof id === 'string' || typeof id === 'number') {
501
- return `${domain}:${id}`;
502
- }
503
- return domain;
504
- }
505
- // todo: rename to buildEntityNamespaceName
506
- function buildDomainNamespaceName(id) {
507
- return id ? `/resources:${id}` : '/resources';
508
- }
509
-
510
- /*
511
- * Copyright (c) 2025.
512
- * Author Peter Placzek (tada5hi)
513
- * For the full copyright and license information,
514
- * view the LICENSE file that was distributed with this source code.
515
- */ function buildDomainEventFullName(type, event) {
516
- const eventCapitalized = event.substring(0, 1).toUpperCase() + event.substring(1);
517
- return type + eventCapitalized;
518
- }
519
-
520
- /*
521
- * Copyright (c) 2024.
522
- * Author Peter Placzek (tada5hi)
523
- * For the full copyright and license information,
524
- * view the LICENSE file that was distributed with this source code.
525
- */ var EnvironmentName = /*#__PURE__*/ function(EnvironmentName) {
526
- EnvironmentName["TEST"] = "test";
527
- EnvironmentName["DEVELOPMENT"] = "development";
528
- EnvironmentName["PRODUCTION"] = "production";
529
- return EnvironmentName;
530
- }({});
531
- const MINUTE_IN_MS = 1000 * 60;
532
- const HOUR_IN_MS = MINUTE_IN_MS * 60;
533
- const DAY_IN_MS = HOUR_IN_MS * 24;
534
- const WEEK_IN_MS = DAY_IN_MS * 7;
535
- const MONTH_IN_MS = WEEK_IN_MS * 4;
536
-
537
- exports.AsymmetricCryptoAlgorithmName = AsymmetricCryptoAlgorithmName;
538
- exports.CryptoAsymmetricAlgorithm = CryptoAsymmetricAlgorithm;
539
- exports.DAY_IN_MS = DAY_IN_MS;
540
- exports.DomainEventName = DomainEventName;
541
- exports.DomainEventNamespace = DomainEventNamespace;
542
- exports.EnvironmentName = EnvironmentName;
543
- exports.HOUR_IN_MS = HOUR_IN_MS;
544
- exports.MINUTE_IN_MS = MINUTE_IN_MS;
545
- exports.MONTH_IN_MS = MONTH_IN_MS;
546
- exports.PermissionName = PermissionName;
547
- exports.WEEK_IN_MS = WEEK_IN_MS;
548
- exports.alphaNumHyphenUnderscoreRegex = alphaNumHyphenUnderscoreRegex;
549
- exports.buildDomainChannelName = buildDomainChannelName;
550
- exports.buildDomainEventFullName = buildDomainEventFullName;
551
- exports.buildDomainNamespaceName = buildDomainNamespaceName;
552
- exports.createNanoID = createNanoID;
553
- exports.deleteUndefinedObjectProperties = deleteUndefinedObjectProperties;
554
- exports.detectProxyConnectionConfig = detectProxyConnectionConfig;
555
- exports.exportAsymmetricPrivateKey = exportAsymmetricPrivateKey;
556
- exports.exportAsymmetricPublicKey = exportAsymmetricPublicKey;
557
- exports.extractErrorMessage = extractErrorMessage;
558
- exports.getHostNameFromString = getHostNameFromString;
559
- exports.hasOwnProperty = hasOwnProperty;
560
- exports.hexToUTF8 = hexToUTF8;
561
- exports.isBool = isBool;
562
- exports.isBoolFalse = isBoolFalse;
563
- exports.isBoolTrue = isBoolTrue;
564
- exports.isError = isError;
565
- exports.isHex = isHex;
566
- exports.isObject = isObject;
567
- exports.isPropertySet = isPropertySet;
568
- exports.isRealmResourceReadable = isRealmResourceReadable;
569
- exports.isRealmResourceWritable = isRealmResourceWritable;
570
- exports.nanoSeconds = nanoSeconds;
571
- exports.nullifyEmptyObjectProperties = nullifyEmptyObjectProperties;
572
- exports.parseProxyConnectionString = parseProxyConnectionString;
573
- exports.registryRobotSecretRegex = registryRobotSecretRegex;
574
- exports.wait = wait;
575
- //# sourceMappingURL=index.cjs.map