@twin.org/engine-core 0.0.1-next.11 → 0.0.1-next.12
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/cjs/index.cjs +5 -2
- package/dist/esm/index.mjs +5 -2
- package/docs/changelog.md +1 -1
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -107,7 +107,7 @@ function initialiseEntityStorageConnector(engineCore, context, typeCustom, schem
|
|
|
107
107
|
...entityStorageConfig.options,
|
|
108
108
|
config: {
|
|
109
109
|
...entityStorageConfig.options.config,
|
|
110
|
-
directory: path.join(entityStorageConfig.options.config.directory, instanceName)
|
|
110
|
+
directory: path.join(entityStorageConfig.options.config.directory, `${entityStorageConfig.options.folderPrefix ?? ""}${instanceName}`)
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
}
|
|
@@ -1785,7 +1785,10 @@ function configureEntityStorageConnectors(coreConfig, envVars) {
|
|
|
1785
1785
|
envVars.entityStorageConnectorType === engineModels.EntityStorageConnectorType.File) {
|
|
1786
1786
|
coreConfig.entityStorageConnector.push({
|
|
1787
1787
|
type: engineModels.EntityStorageConnectorType.File,
|
|
1788
|
-
options: {
|
|
1788
|
+
options: {
|
|
1789
|
+
config: { directory: envVars.storageFileRoot },
|
|
1790
|
+
folderPrefix: envVars.entityStorageTablePrefix
|
|
1791
|
+
}
|
|
1789
1792
|
});
|
|
1790
1793
|
}
|
|
1791
1794
|
if (core.Is.stringValue(envVars.awsDynamodbAccessKeyId)) {
|
package/dist/esm/index.mjs
CHANGED
|
@@ -105,7 +105,7 @@ function initialiseEntityStorageConnector(engineCore, context, typeCustom, schem
|
|
|
105
105
|
...entityStorageConfig.options,
|
|
106
106
|
config: {
|
|
107
107
|
...entityStorageConfig.options.config,
|
|
108
|
-
directory: path.join(entityStorageConfig.options.config.directory, instanceName)
|
|
108
|
+
directory: path.join(entityStorageConfig.options.config.directory, `${entityStorageConfig.options.folderPrefix ?? ""}${instanceName}`)
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
}
|
|
@@ -1783,7 +1783,10 @@ function configureEntityStorageConnectors(coreConfig, envVars) {
|
|
|
1783
1783
|
envVars.entityStorageConnectorType === EntityStorageConnectorType.File) {
|
|
1784
1784
|
coreConfig.entityStorageConnector.push({
|
|
1785
1785
|
type: EntityStorageConnectorType.File,
|
|
1786
|
-
options: {
|
|
1786
|
+
options: {
|
|
1787
|
+
config: { directory: envVars.storageFileRoot },
|
|
1788
|
+
folderPrefix: envVars.entityStorageTablePrefix
|
|
1789
|
+
}
|
|
1787
1790
|
});
|
|
1788
1791
|
}
|
|
1789
1792
|
if (Is.stringValue(envVars.awsDynamodbAccessKeyId)) {
|
package/docs/changelog.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/engine-core",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.12",
|
|
4
4
|
"description": "Engine implementation for a core.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@twin.org/crypto": "next",
|
|
44
44
|
"@twin.org/data-core": "next",
|
|
45
45
|
"@twin.org/data-schema-org": "next",
|
|
46
|
-
"@twin.org/engine-models": "0.0.1-next.
|
|
46
|
+
"@twin.org/engine-models": "0.0.1-next.12",
|
|
47
47
|
"@twin.org/entity": "next",
|
|
48
48
|
"@twin.org/entity-storage-connector-cosmosdb": "next",
|
|
49
49
|
"@twin.org/entity-storage-connector-dynamodb": "next",
|