@punks/backend-entity-manager 0.0.371 → 0.0.374
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/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Log, csvParse, excelParse, ExcelKeyTransform, excelBuild, csvBuild, mapAsync, isNullOrUndefined, addTime, newUuid as newUuid$1, buildObject, toDict, sleep, sort, byField, toArrayDict, toItemsDict, ensureTailingSlash, ensureStartSlash, removeUndefinedProps } from '@punks/backend-core';
|
|
1
|
+
import { Log, csvParse, excelParse, ExcelKeyTransform, excelBuild, csvBuild, mapAsync, isNullOrUndefined, addTime, newUuid as newUuid$1, buildObject, toDict, sleep, sort, byField, toArrayDict, toItemsDict, floorDateToSecond, ensureTailingSlash, ensureStartSlash, removeUndefinedProps } from '@punks/backend-core';
|
|
2
2
|
import { QueryCommand, ScanCommand, GetItemCommand, PutItemCommand, DeleteItemCommand, DynamoDBClient } from '@aws-sdk/client-dynamodb';
|
|
3
3
|
import { unmarshall, marshall } from '@aws-sdk/util-dynamodb';
|
|
4
4
|
import { Module, applyDecorators, Injectable, SetMetadata, createParamDecorator, Global, Scope, Inject, Logger, StreamableFile, HttpException, HttpStatus } from '@nestjs/common';
|
|
@@ -34792,12 +34792,6 @@ const getCronCurrentSchedule = (cronExpression, ref) => {
|
|
|
34792
34792
|
return interval.prev().toDate();
|
|
34793
34793
|
};
|
|
34794
34794
|
|
|
34795
|
-
function floorDateToSecond(date) {
|
|
34796
|
-
const flooredDate = new Date(date);
|
|
34797
|
-
flooredDate.setMilliseconds(0);
|
|
34798
|
-
return flooredDate;
|
|
34799
|
-
}
|
|
34800
|
-
|
|
34801
34795
|
var TaskShell_1;
|
|
34802
34796
|
let TaskShell = TaskShell_1 = class TaskShell {
|
|
34803
34797
|
constructor(registry, operations) {
|
|
@@ -40654,6 +40648,14 @@ const registerHandlebarsHelpers = () => {
|
|
|
40654
40648
|
if (helpersRegistered) {
|
|
40655
40649
|
return;
|
|
40656
40650
|
}
|
|
40651
|
+
lib.registerHelper("truncate", function (text, maxChars) {
|
|
40652
|
+
if (text?.length > maxChars) {
|
|
40653
|
+
return text.substring(0, maxChars) + "...";
|
|
40654
|
+
}
|
|
40655
|
+
else {
|
|
40656
|
+
return text;
|
|
40657
|
+
}
|
|
40658
|
+
});
|
|
40657
40659
|
lib.registerHelper("uppercase", function (str) {
|
|
40658
40660
|
return str.toUpperCase();
|
|
40659
40661
|
});
|