@fjell/core 4.4.47 → 4.4.48
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.js +2 -2
- package/package.json +1 -1
- package/src/key/KUtils.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -179,11 +179,11 @@ var isItemKey = (key) => {
|
|
|
179
179
|
};
|
|
180
180
|
var isComKey = (key) => {
|
|
181
181
|
logger2.trace("isComKey", { key });
|
|
182
|
-
return key !== void 0 && (key.pk !== void 0 && key.kt !== void 0) && (key.loc !== void 0 && key.loc
|
|
182
|
+
return key !== void 0 && (key.pk !== void 0 && key.kt !== void 0) && (key.loc !== void 0 && Array.isArray(key.loc));
|
|
183
183
|
};
|
|
184
184
|
var isPriKey = (key) => {
|
|
185
185
|
logger2.trace("isPriKey", { key });
|
|
186
|
-
return key !== void 0 && (key.pk !== void 0 && key.kt !== void 0) &&
|
|
186
|
+
return key !== void 0 && (key.pk !== void 0 && key.kt !== void 0) && key.loc === void 0;
|
|
187
187
|
};
|
|
188
188
|
var isLocKey = (key) => {
|
|
189
189
|
logger2.trace("isLocKey", { key });
|
package/package.json
CHANGED
package/src/key/KUtils.ts
CHANGED
|
@@ -192,13 +192,13 @@ export const isItemKey = (key: any): boolean => {
|
|
|
192
192
|
export const isComKey = (key: any): boolean => {
|
|
193
193
|
logger.trace('isComKey', { key });
|
|
194
194
|
return key !== undefined &&
|
|
195
|
-
(key.pk !== undefined && key.kt !== undefined) && (key.loc !== undefined && key.loc
|
|
195
|
+
(key.pk !== undefined && key.kt !== undefined) && (key.loc !== undefined && Array.isArray(key.loc));
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
export const isPriKey = (key: any): boolean => {
|
|
199
199
|
logger.trace('isPriKey', { key });
|
|
200
200
|
return key !== undefined &&
|
|
201
|
-
(key.pk !== undefined && key.kt !== undefined) && (key.loc === undefined
|
|
201
|
+
(key.pk !== undefined && key.kt !== undefined) && (key.loc === undefined);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
export const isLocKey = (key: any): boolean => {
|