Required Library either outdated or not listed as dependency in package.json
The library @itential/itential-utils
required on line 25 of entitiesToDB.js
, linked here and shown below, is not listed as a dependency within the package.json file at the root of this repo.
const { PropertyEncryption } = require('@itential/itential-utils');
What looks to be a similarly functioning library is used on line 105 of utils/tbUtils.js as shown below:
const propertyEncryptionClassPath = path.join(iapDir, 'node_modules/@itential/pronghorn-core/core/PropertyEncryption.js'); const isEncrypted = props.pathProps.encrypted; const PropertyEncryption = discovery.require(propertyEncryptionClassPath, isEncrypted);
Can we replace the @itential/itential-utils
library in entitiesToDB.js
with the same PropertyEncryption.js
referenced in utils/tbUtils.js
? I have proposed the following MR