@digitaldefiance/node-express-suite 3.6.39 → 3.6.40
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/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/index.d.ts.map +1 -1
- package/src/index.js +39 -1
- package/src/index.js.map +1 -1
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export * from './schemas';
|
|
|
31
31
|
export * from './services';
|
|
32
32
|
export * from './transactions';
|
|
33
33
|
export * from './types';
|
|
34
|
-
export { withTransaction } from './utils';
|
|
34
|
+
export { type DEBUG_TYPE, debugLog, directLog, getValueAtPath, mapZodIssuesToValidationErrors, requireValidatedFieldsAsync, requireOneOfValidatedFieldsAsync, requireValidatedFieldsOrThrow, isValidStringId, DEFAULT_RETRY_ATTEMPTS, DEFAULT_TRANSACTION_TIMEOUT, DEFAULT_TRANSACTION_LOCK_REQUEST_TIMEOUT, type TransactionOptions, getDefaultBaseDelay, withTransaction, sendApiMessageResponse, sendApiErrorResponse, sendApiExpressValidationErrorResponse, sendApiMongoValidationErrorResponse, sendRawJsonResponse, handleError, locatePEMRoot, lengthEncodeData, decodeLengthEncodedData, isValidTimezone, omit, validateEnumCollection, uint8ArrayToBase64, base64ToUint8Array, uint8ArrayToHex, hexToUint8Array, crc16, stringToUint8Array, uint8ArrayToString, randomBytes, arraysEqual, concatUint8Arrays, getLengthEncodingTypeForLength, getLengthEncodingTypeFromValue, getLengthForLengthType, parseBackupCodes, } from './utils';
|
|
35
35
|
export type { TransactionOptions as UtilsTransactionOptions } from './utils';
|
|
36
36
|
export * from './validation';
|
|
37
37
|
//# sourceMappingURL=index.d.ts.map
|
package/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/digitaldefiance-node-express-suite/src/index.ts"],"names":[],"mappings":"AAEA,OAAO,kBAAkB,CAAC;AA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GACjB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAC7E,cAAc,cAAc,CAAC"}
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.withTransaction = exports.RouteBuilder = void 0;
|
|
3
|
+
exports.parseBackupCodes = exports.getLengthForLengthType = exports.getLengthEncodingTypeFromValue = exports.getLengthEncodingTypeForLength = exports.concatUint8Arrays = exports.arraysEqual = exports.randomBytes = exports.uint8ArrayToString = exports.stringToUint8Array = exports.crc16 = exports.hexToUint8Array = exports.uint8ArrayToHex = exports.base64ToUint8Array = exports.uint8ArrayToBase64 = exports.validateEnumCollection = exports.omit = exports.isValidTimezone = exports.decodeLengthEncodedData = exports.lengthEncodeData = exports.locatePEMRoot = exports.handleError = exports.sendRawJsonResponse = exports.sendApiMongoValidationErrorResponse = exports.sendApiExpressValidationErrorResponse = exports.sendApiErrorResponse = exports.sendApiMessageResponse = exports.withTransaction = exports.getDefaultBaseDelay = exports.DEFAULT_TRANSACTION_LOCK_REQUEST_TIMEOUT = exports.DEFAULT_TRANSACTION_TIMEOUT = exports.DEFAULT_RETRY_ATTEMPTS = exports.isValidStringId = exports.requireValidatedFieldsOrThrow = exports.requireOneOfValidatedFieldsAsync = exports.requireValidatedFieldsAsync = exports.mapZodIssuesToValidationErrors = exports.getValueAtPath = exports.directLog = exports.debugLog = exports.RouteBuilder = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
6
6
|
/// <reference path="./types.d.ts" />
|
|
@@ -38,6 +38,44 @@ tslib_1.__exportStar(require("./services"), exports);
|
|
|
38
38
|
tslib_1.__exportStar(require("./transactions"), exports);
|
|
39
39
|
tslib_1.__exportStar(require("./types"), exports);
|
|
40
40
|
var utils_1 = require("./utils");
|
|
41
|
+
Object.defineProperty(exports, "debugLog", { enumerable: true, get: function () { return utils_1.debugLog; } });
|
|
42
|
+
Object.defineProperty(exports, "directLog", { enumerable: true, get: function () { return utils_1.directLog; } });
|
|
43
|
+
Object.defineProperty(exports, "getValueAtPath", { enumerable: true, get: function () { return utils_1.getValueAtPath; } });
|
|
44
|
+
Object.defineProperty(exports, "mapZodIssuesToValidationErrors", { enumerable: true, get: function () { return utils_1.mapZodIssuesToValidationErrors; } });
|
|
45
|
+
Object.defineProperty(exports, "requireValidatedFieldsAsync", { enumerable: true, get: function () { return utils_1.requireValidatedFieldsAsync; } });
|
|
46
|
+
Object.defineProperty(exports, "requireOneOfValidatedFieldsAsync", { enumerable: true, get: function () { return utils_1.requireOneOfValidatedFieldsAsync; } });
|
|
47
|
+
Object.defineProperty(exports, "requireValidatedFieldsOrThrow", { enumerable: true, get: function () { return utils_1.requireValidatedFieldsOrThrow; } });
|
|
48
|
+
Object.defineProperty(exports, "isValidStringId", { enumerable: true, get: function () { return utils_1.isValidStringId; } });
|
|
49
|
+
Object.defineProperty(exports, "DEFAULT_RETRY_ATTEMPTS", { enumerable: true, get: function () { return utils_1.DEFAULT_RETRY_ATTEMPTS; } });
|
|
50
|
+
Object.defineProperty(exports, "DEFAULT_TRANSACTION_TIMEOUT", { enumerable: true, get: function () { return utils_1.DEFAULT_TRANSACTION_TIMEOUT; } });
|
|
51
|
+
Object.defineProperty(exports, "DEFAULT_TRANSACTION_LOCK_REQUEST_TIMEOUT", { enumerable: true, get: function () { return utils_1.DEFAULT_TRANSACTION_LOCK_REQUEST_TIMEOUT; } });
|
|
52
|
+
Object.defineProperty(exports, "getDefaultBaseDelay", { enumerable: true, get: function () { return utils_1.getDefaultBaseDelay; } });
|
|
41
53
|
Object.defineProperty(exports, "withTransaction", { enumerable: true, get: function () { return utils_1.withTransaction; } });
|
|
54
|
+
Object.defineProperty(exports, "sendApiMessageResponse", { enumerable: true, get: function () { return utils_1.sendApiMessageResponse; } });
|
|
55
|
+
Object.defineProperty(exports, "sendApiErrorResponse", { enumerable: true, get: function () { return utils_1.sendApiErrorResponse; } });
|
|
56
|
+
Object.defineProperty(exports, "sendApiExpressValidationErrorResponse", { enumerable: true, get: function () { return utils_1.sendApiExpressValidationErrorResponse; } });
|
|
57
|
+
Object.defineProperty(exports, "sendApiMongoValidationErrorResponse", { enumerable: true, get: function () { return utils_1.sendApiMongoValidationErrorResponse; } });
|
|
58
|
+
Object.defineProperty(exports, "sendRawJsonResponse", { enumerable: true, get: function () { return utils_1.sendRawJsonResponse; } });
|
|
59
|
+
Object.defineProperty(exports, "handleError", { enumerable: true, get: function () { return utils_1.handleError; } });
|
|
60
|
+
Object.defineProperty(exports, "locatePEMRoot", { enumerable: true, get: function () { return utils_1.locatePEMRoot; } });
|
|
61
|
+
Object.defineProperty(exports, "lengthEncodeData", { enumerable: true, get: function () { return utils_1.lengthEncodeData; } });
|
|
62
|
+
Object.defineProperty(exports, "decodeLengthEncodedData", { enumerable: true, get: function () { return utils_1.decodeLengthEncodedData; } });
|
|
63
|
+
Object.defineProperty(exports, "isValidTimezone", { enumerable: true, get: function () { return utils_1.isValidTimezone; } });
|
|
64
|
+
Object.defineProperty(exports, "omit", { enumerable: true, get: function () { return utils_1.omit; } });
|
|
65
|
+
Object.defineProperty(exports, "validateEnumCollection", { enumerable: true, get: function () { return utils_1.validateEnumCollection; } });
|
|
66
|
+
Object.defineProperty(exports, "uint8ArrayToBase64", { enumerable: true, get: function () { return utils_1.uint8ArrayToBase64; } });
|
|
67
|
+
Object.defineProperty(exports, "base64ToUint8Array", { enumerable: true, get: function () { return utils_1.base64ToUint8Array; } });
|
|
68
|
+
Object.defineProperty(exports, "uint8ArrayToHex", { enumerable: true, get: function () { return utils_1.uint8ArrayToHex; } });
|
|
69
|
+
Object.defineProperty(exports, "hexToUint8Array", { enumerable: true, get: function () { return utils_1.hexToUint8Array; } });
|
|
70
|
+
Object.defineProperty(exports, "crc16", { enumerable: true, get: function () { return utils_1.crc16; } });
|
|
71
|
+
Object.defineProperty(exports, "stringToUint8Array", { enumerable: true, get: function () { return utils_1.stringToUint8Array; } });
|
|
72
|
+
Object.defineProperty(exports, "uint8ArrayToString", { enumerable: true, get: function () { return utils_1.uint8ArrayToString; } });
|
|
73
|
+
Object.defineProperty(exports, "randomBytes", { enumerable: true, get: function () { return utils_1.randomBytes; } });
|
|
74
|
+
Object.defineProperty(exports, "arraysEqual", { enumerable: true, get: function () { return utils_1.arraysEqual; } });
|
|
75
|
+
Object.defineProperty(exports, "concatUint8Arrays", { enumerable: true, get: function () { return utils_1.concatUint8Arrays; } });
|
|
76
|
+
Object.defineProperty(exports, "getLengthEncodingTypeForLength", { enumerable: true, get: function () { return utils_1.getLengthEncodingTypeForLength; } });
|
|
77
|
+
Object.defineProperty(exports, "getLengthEncodingTypeFromValue", { enumerable: true, get: function () { return utils_1.getLengthEncodingTypeFromValue; } });
|
|
78
|
+
Object.defineProperty(exports, "getLengthForLengthType", { enumerable: true, get: function () { return utils_1.getLengthForLengthType; } });
|
|
79
|
+
Object.defineProperty(exports, "parseBackupCodes", { enumerable: true, get: function () { return utils_1.parseBackupCodes; } });
|
|
42
80
|
tslib_1.__exportStar(require("./validation"), exports);
|
|
43
81
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/digitaldefiance-node-express-suite/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAAqE;AACrE,qCAAqC;AACrC,4BAA0B;AAE1B,wDAA8B;AAC9B,6DAAmC;AACnC,iEAAuC;AACvC,wDAA8B;AAC9B,qDAA2B;AAC3B,sDAA4B;AAC5B,sDAA4B;AAC5B,wDAA8B;AAC9B,qDAA2B;AAC3B,uDAA6B;AAC7B,qDAA2B;AAC3B,sDAA4B;AAC5B,yDAA+B;AAC/B,wDAA8B;AAC9B,mDAAyB;AACzB,yDAA+B;AAC/B,yDAA+B;AAC/B,uDAA6B;AAC7B,wDAA8B;AAC9B,2DAAiC;AACjC,mDAAyB;AACzB,qDAA2B;AAC3B,oDAA0B;AAC1B,qDAA2B;AAC3B,sDAA4B;AAC5B,oDAA0B;AAC1B,qCAAyC;AAAhC,uGAAA,YAAY,OAAA;AAErB,oDAA0B;AAC1B,qDAA2B;AAC3B,yDAA+B;AAC/B,kDAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/digitaldefiance-node-express-suite/src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAAqE;AACrE,qCAAqC;AACrC,4BAA0B;AAE1B,wDAA8B;AAC9B,6DAAmC;AACnC,iEAAuC;AACvC,wDAA8B;AAC9B,qDAA2B;AAC3B,sDAA4B;AAC5B,sDAA4B;AAC5B,wDAA8B;AAC9B,qDAA2B;AAC3B,uDAA6B;AAC7B,qDAA2B;AAC3B,sDAA4B;AAC5B,yDAA+B;AAC/B,wDAA8B;AAC9B,mDAAyB;AACzB,yDAA+B;AAC/B,yDAA+B;AAC/B,uDAA6B;AAC7B,wDAA8B;AAC9B,2DAAiC;AACjC,mDAAyB;AACzB,qDAA2B;AAC3B,oDAA0B;AAC1B,qDAA2B;AAC3B,sDAA4B;AAC5B,oDAA0B;AAC1B,qCAAyC;AAAhC,uGAAA,YAAY,OAAA;AAErB,oDAA0B;AAC1B,qDAA2B;AAC3B,yDAA+B;AAC/B,kDAAwB;AACxB,iCA0CiB;AAxCf,iGAAA,QAAQ,OAAA;AACR,kGAAA,SAAS,OAAA;AACT,uGAAA,cAAc,OAAA;AACd,uHAAA,8BAA8B,OAAA;AAC9B,oHAAA,2BAA2B,OAAA;AAC3B,yHAAA,gCAAgC,OAAA;AAChC,sHAAA,6BAA6B,OAAA;AAC7B,wGAAA,eAAe,OAAA;AACf,+GAAA,sBAAsB,OAAA;AACtB,oHAAA,2BAA2B,OAAA;AAC3B,iIAAA,wCAAwC,OAAA;AAExC,4GAAA,mBAAm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