@ruiapp/rapid-core 0.9.3 → 0.9.4
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/index.d.ts
CHANGED
|
@@ -16,8 +16,11 @@ export * from "./utilities/entityUtility";
|
|
|
16
16
|
export * from "./utilities/jwtUtility";
|
|
17
17
|
export * from "./utilities/timeUtility";
|
|
18
18
|
export * from "./utilities/passwordUtility";
|
|
19
|
-
export * from "./helpers/
|
|
19
|
+
export * from "./helpers/entityHelper";
|
|
20
20
|
export * from "./helpers/licenseHelper";
|
|
21
|
+
export * as entityHelper from "./helpers/entityHelper";
|
|
22
|
+
export * as licenseHelper from "./helpers/licenseHelper";
|
|
23
|
+
export * as metaHelper from "./helpers/metaHelper";
|
|
21
24
|
export * from "./deno-std/http/cookie";
|
|
22
25
|
export { mapDbRowToEntity } from "./dataAccess/entityMapper";
|
|
23
26
|
export * as bootstrapApplicationConfig from "./bootstrapApplicationConfig";
|
package/dist/index.js
CHANGED
|
@@ -2088,6 +2088,20 @@ function getEntityPropertyByFieldName(server, model, fieldName) {
|
|
|
2088
2088
|
return property;
|
|
2089
2089
|
}
|
|
2090
2090
|
|
|
2091
|
+
var metaHelper = /*#__PURE__*/Object.freeze({
|
|
2092
|
+
__proto__: null,
|
|
2093
|
+
isRelationProperty: isRelationProperty,
|
|
2094
|
+
isOneRelationProperty: isOneRelationProperty,
|
|
2095
|
+
isManyRelationProperty: isManyRelationProperty,
|
|
2096
|
+
getEntityProperties: getEntityProperties,
|
|
2097
|
+
getEntityPropertiesIncludingBase: getEntityPropertiesIncludingBase,
|
|
2098
|
+
getEntityPropertyByCode: getEntityPropertyByCode,
|
|
2099
|
+
getEntityProperty: getEntityProperty,
|
|
2100
|
+
getEntityOwnPropertyByCode: getEntityOwnPropertyByCode,
|
|
2101
|
+
getEntityOwnProperty: getEntityOwnProperty,
|
|
2102
|
+
getEntityPropertyByFieldName: getEntityPropertyByFieldName
|
|
2103
|
+
});
|
|
2104
|
+
|
|
2091
2105
|
function getNowString() {
|
|
2092
2106
|
return dayjs__default["default"]().format("YYYY-MM-DD HH:mm:ss.SSS");
|
|
2093
2107
|
}
|
|
@@ -2288,6 +2302,11 @@ function detectChangedFieldsOfEntity(server, model, before, after) {
|
|
|
2288
2302
|
return null;
|
|
2289
2303
|
}
|
|
2290
2304
|
|
|
2305
|
+
var entityHelper = /*#__PURE__*/Object.freeze({
|
|
2306
|
+
__proto__: null,
|
|
2307
|
+
detectChangedFieldsOfEntity: detectChangedFieldsOfEntity
|
|
2308
|
+
});
|
|
2309
|
+
|
|
2291
2310
|
async function validateEntity(server, model, entity) {
|
|
2292
2311
|
for (const propCode in entity) {
|
|
2293
2312
|
let prop = getEntityPropertyByCode(server, model, propCode);
|
|
@@ -5075,6 +5094,12 @@ function tryValidateLicense(logger, server) {
|
|
|
5075
5094
|
return false;
|
|
5076
5095
|
}
|
|
5077
5096
|
|
|
5097
|
+
var licenseHelper = /*#__PURE__*/Object.freeze({
|
|
5098
|
+
__proto__: null,
|
|
5099
|
+
validateLicense: validateLicense,
|
|
5100
|
+
tryValidateLicense: tryValidateLicense
|
|
5101
|
+
});
|
|
5102
|
+
|
|
5078
5103
|
const values = new Map();
|
|
5079
5104
|
async function set(key, value, options) {
|
|
5080
5105
|
let expireAt = -1;
|
|
@@ -9602,6 +9627,7 @@ exports.createJwt = createJwt;
|
|
|
9602
9627
|
exports.decodeJwt = decodeJwt;
|
|
9603
9628
|
exports.deleteCookie = deleteCookie;
|
|
9604
9629
|
exports.detectChangedFieldsOfEntity = detectChangedFieldsOfEntity;
|
|
9630
|
+
exports.entityHelper = entityHelper;
|
|
9605
9631
|
exports.formatDateTimeWithTimezone = formatDateTimeWithTimezone;
|
|
9606
9632
|
exports.generateJwtSecretKey = generateJwtSecretKey;
|
|
9607
9633
|
exports.generatePasswordHash = generatePasswordHash;
|
|
@@ -9612,7 +9638,9 @@ exports.getNowString = getNowString;
|
|
|
9612
9638
|
exports.getNowStringWithTimezone = getNowStringWithTimezone;
|
|
9613
9639
|
exports.getSetCookies = getSetCookies;
|
|
9614
9640
|
exports.isAccessAllowed = isAccessAllowed;
|
|
9641
|
+
exports.licenseHelper = licenseHelper;
|
|
9615
9642
|
exports.mapDbRowToEntity = mapDbRowToEntity;
|
|
9643
|
+
exports.metaHelper = metaHelper;
|
|
9616
9644
|
exports.setCookie = setCookie;
|
|
9617
9645
|
exports.tryValidateLicense = tryValidateLicense;
|
|
9618
9646
|
exports.validateLicense = validateLicense;
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@ import { isNullOrUndefined } from "~/utilities/typeUtility";
|
|
|
23
23
|
import { mapDbRowToEntity, mapEntityToDbRow } from "./entityMapper";
|
|
24
24
|
import { mapPropertyNameToColumnName } from "./propertyMapper";
|
|
25
25
|
import { IRpdServer, RapidPlugin } from "~/core/server";
|
|
26
|
-
import { detectChangedFieldsOfEntity } from "~/helpers/
|
|
26
|
+
import { detectChangedFieldsOfEntity } from "~/helpers/entityHelper";
|
|
27
27
|
import {
|
|
28
28
|
cloneDeep,
|
|
29
29
|
concat,
|
package/src/index.ts
CHANGED
|
@@ -24,8 +24,11 @@ export * from "./utilities/jwtUtility";
|
|
|
24
24
|
export * from "./utilities/timeUtility";
|
|
25
25
|
export * from "./utilities/passwordUtility";
|
|
26
26
|
|
|
27
|
-
export * from "./helpers/
|
|
27
|
+
export * from "./helpers/entityHelper";
|
|
28
28
|
export * from "./helpers/licenseHelper";
|
|
29
|
+
export * as entityHelper from "./helpers/entityHelper";
|
|
30
|
+
export * as licenseHelper from "./helpers/licenseHelper";
|
|
31
|
+
export * as metaHelper from "./helpers/metaHelper";
|
|
29
32
|
|
|
30
33
|
export * from "./deno-std/http/cookie";
|
|
31
34
|
|
|
File without changes
|
|
File without changes
|